/* ===== 基础变量 ===== */
:root {
    --bg: #050510;
    --bg-2: #0a0a18;
    --bg-3: #0f0f22;
    --fg: #e8eaf6;
    --fg-dim: #9aa0c0;
    --fg-muted: #5a5f7d;
    --cyan: #00f0ff;
    --purple: #a855f7;
    --pink: #ec4899;
    --gradient: linear-gradient(135deg, #00f0ff 0%, #a855f7 100%);
    --gradient-text: linear-gradient(120deg, #00f0ff 0%, #a855f7 60%, #ec4899 100%);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.06);
    --radius: 16px;
    --shadow-glow: 0 0 40px rgba(0, 240, 255, 0.15);
    --max-width: 1200px;
}

/* ===== 重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; }

/* ===== 粒子画布 ===== */
#particle-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
}

/* ===== 通用容器 ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ===== 玻璃拟态 ===== */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass:hover {
    background: var(--glass-hover);
    border-color: rgba(0, 240, 255, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 240, 255, 0.12);
}

/* ===== 渐变文字 ===== */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ===== 导航 ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 18px 0;
    transition: all 0.4s ease;
}
.navbar.scrolled {
    background: rgba(5, 5, 16, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 0;
}
.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-icon { display: flex; filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.5)); }
.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.logo-text small {
    font-size: 10px;
    font-weight: 400;
    color: var(--fg-dim);
    letter-spacing: 2px;
    margin-top: 3px;
}
.logo-text.small { font-size: 16px; }
.logo-text.small small { font-size: 9px; }
.nav-menu {
    display: flex;
    gap: 8px;
}
.nav-link {
    padding: 8px 18px;
    font-size: 14px;
    color: var(--fg-dim);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}
.nav-link:hover { color: var(--fg); }
.nav-link.active { color: var(--cyan); }
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
}
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    width: 24px; height: 2px;
    background: var(--fg);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero 首页 ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}
.hero-bg-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, rgba(168, 85, 247, 0.08) 40%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: pulse-glow 8s ease-in-out infinite;
}
@keyframes pulse-glow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 100px;
    font-size: 13px;
    color: var(--cyan);
    letter-spacing: 1px;
    margin-bottom: 28px;
}
.hero-badge .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
    animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero-title {
    font-family: 'Orbitron', 'Noto Sans SC', sans-serif;
    font-size: clamp(48px, 9vw, 96px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 2px;
    margin-bottom: 24px;
}
.hero-slogan {
    font-size: clamp(20px, 3.5vw, 32px);
    font-weight: 500;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
    letter-spacing: 2px;
}
.hero-desc {
    font-size: 16px;
    color: var(--fg-dim);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: var(--gradient);
    color: #050510;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 240, 255, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 240, 255, 0.45);
}
.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--fg);
    border: 1px solid var(--glass-border);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 240, 255, 0.3);
    transform: translateY(-2px);
}

/* ===== 滚动提示 ===== */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.scroll-indicator span {
    width: 18px; height: 18px;
    border-right: 2px solid var(--fg-muted);
    border-bottom: 2px solid var(--fg-muted);
    transform: rotate(45deg);
    animation: scroll-down 2s ease-in-out infinite;
    opacity: 0;
}
.scroll-indicator span:nth-child(1) { animation-delay: 0s; }
.scroll-indicator span:nth-child(2) { animation-delay: 0.2s; }
.scroll-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes scroll-down {
    0% { opacity: 0; transform: rotate(45deg) translate(-4px, -4px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(4px, 4px); }
}

/* ===== 数据条 ===== */
.stats {
    padding: 60px 24px;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: var(--bg-2);
    position: relative;
    z-index: 1;
}
.stats-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.stat-item { text-align: center; }
.stat-num {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.stat-label {
    margin-top: 10px;
    font-size: 14px;
    color: var(--fg-dim);
    letter-spacing: 1px;
}

/* ===== 通用 section ===== */
.section {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}
.section-alt { background: var(--bg-2); }
.section-head { text-align: center; margin-bottom: 64px; }
.section-tag {
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--cyan);
    margin-bottom: 16px;
    padding: 4px 14px;
    background: rgba(0, 240, 255, 0.06);
    border-radius: 100px;
}
.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 1px;
}
.section-subtitle {
    font-size: 16px;
    color: var(--fg-dim);
}

/* ===== 关于我们 ===== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.about-card {
    padding: 40px 32px;
    text-align: center;
}
.about-icon {
    display: inline-flex;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.3));
}
.about-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 14px;
}
.about-card p {
    color: var(--fg-dim);
    font-size: 14.5px;
    line-height: 1.8;
}

/* ===== 核心能力 ===== */
.cap-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.cap-card {
    padding: 40px;
    position: relative;
    overflow: hidden;
}
.cap-num {
    position: absolute;
    top: 24px; right: 28px;
    font-family: 'Orbitron', sans-serif;
    font-size: 64px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.04);
    line-height: 1;
}
.cap-icon {
    margin-bottom: 24px;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.25));
}
.cap-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}
.cap-card p {
    color: var(--fg-dim);
    font-size: 14.5px;
    line-height: 1.8;
    margin-bottom: 20px;
}
.cap-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.cap-tags li {
    font-size: 12px;
    padding: 4px 12px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.15);
    color: var(--cyan);
    border-radius: 100px;
    letter-spacing: 0.5px;
}

/* ===== 联系我们 ===== */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}
.contact-card {
    padding: 16px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 0;
}
.contact-ico {
    flex-shrink: 0;
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 240, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 12px;
}
.contact-divider {
    height: 1px;
    background: var(--glass-border);
}
.contact-label {
    font-size: 12px;
    color: var(--fg-muted);
    letter-spacing: 1px;
    margin-bottom: 4px;
    text-transform: uppercase;
}
.contact-value {
    font-size: 16px;
    color: var(--fg);
}
.contact-link {
    transition: color 0.3s ease;
}
.contact-link:hover { color: var(--cyan); }
.contact-cta {
    padding: 48px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.cta-bg-glow {
    position: absolute;
    top: -50%; right: -30%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.18) 0%, transparent 60%);
    border-radius: 50%;
}
.cta-content { position: relative; z-index: 2; }
.cta-content h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.4;
}
.cta-content p {
    color: var(--fg-dim);
    margin-bottom: 28px;
    line-height: 1.8;
}
.cta-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ===== 页脚 ===== */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--glass-border);
    background: var(--bg-2);
    position: relative;
    z-index: 1;
}
.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}
.footer-brand p {
    color: var(--fg-dim);
    font-size: 13px;
    margin-top: 8px;
    letter-spacing: 1px;
}
.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-links a {
    font-size: 14px;
    color: var(--fg-dim);
    transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--cyan); }
.footer-copy {
    font-size: 12px;
    color: var(--fg-muted);
    letter-spacing: 0.5px;
}
.footer-icp {
    color: var(--fg-muted);
    transition: color 0.3s ease;
}
.footer-icp:hover { color: var(--cyan); }
.footer-gongan {
    color: var(--fg-muted);
    transition: color 0.3s ease;
}
.footer-gongan:hover { color: var(--cyan); }
.footer-sep {
    color: var(--fg-muted);
    margin: 0 8px;
    opacity: 0.5;
}

/* ===== 滚动出现动画 ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .nav-menu {
        position: fixed;
        top: 64px; left: 0; right: 0;
        flex-direction: column;
        background: rgba(5, 5, 16, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 16px;
        gap: 4px;
        border-bottom: 1px solid var(--glass-border);
        transform: translateY(-150%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .nav-menu.open { transform: translateY(0); }
    .nav-toggle { display: flex; }

    .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .about-grid { grid-template-columns: 1fr; }
    .cap-grid { grid-template-columns: 1fr; }
    .contact-wrap { grid-template-columns: 1fr; }
    .contact-cta { padding: 36px; }
    .section { padding: 80px 0; }
}
@media (max-width: 520px) {
    .stats-inner { grid-template-columns: 1fr 1fr; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn { justify-content: center; }
    .contact-card { padding: 8px 20px; }
    .contact-item { gap: 14px; }
}
