/* ========== 基础变量 ========== */
:root {
    --bg: #060912;
    --bg-2: #0b1020;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(99, 179, 255, 0.4);
    --text: #e8ecf5;
    --text-dim: #9aa6bd;
    --text-faint: #5d6884;
    --accent: #4f8cff;
    --accent-2: #00e5c7;
    --accent-3: #a06bff;
    --grad: linear-gradient(120deg, #4f8cff 0%, #00e5c7 50%, #a06bff 100%);
    --grad-soft: linear-gradient(120deg, rgba(79,140,255,.15), rgba(0,229,199,.12));
    --radius: 18px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    font-family: 'Noto Sans SC', 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ========== 背景装饰 ========== */
.bg-grid {
    position: fixed; inset: 0; z-index: -2;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.bg-glow {
    position: fixed; border-radius: 50%; filter: blur(110px); z-index: -1;
    opacity: .5; pointer-events: none;
}
.bg-glow-1 { width: 520px; height: 520px; background: #1f4fff; top: -160px; left: -120px; }
.bg-glow-2 { width: 480px; height: 480px; background: #00e5c7; top: 380px; right: -160px; opacity: .28; }

/* ========== 按钮 ========== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
    cursor: pointer; border: 1px solid transparent; transition: all .25s ease; white-space: nowrap;
}
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-primary {
    background: var(--grad); color: #05101f;
    box-shadow: 0 8px 28px rgba(79,140,255,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(79,140,255,.5); }
.btn-ghost { border-color: var(--border); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--border-hover); background: rgba(79,140,255,.08); }

/* ========== 导航 ========== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    transition: all .3s ease; padding: 18px 0;
}
.navbar.scrolled {
    padding: 10px 0;
    background: rgba(6,9,18,.8); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; }
.logo-mark {
    width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px;
    background: var(--grad); color: #05101f; font-size: 17px;
}
.logo-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: .5px; }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a { color: var(--text-dim); font-size: 15px; font-weight: 500; transition: color .2s; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
    content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
    background: var(--grad); transition: width .25s;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { margin-left: 6px; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 22px; cursor: pointer; }

/* ========== Hero ========== */
.hero { padding: 170px 0 90px; text-align: center; position: relative; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
    background: var(--grad-soft); border: 1px solid var(--border); color: var(--accent-2);
    font-size: 14px; font-weight: 500; margin-bottom: 26px;
}
.hero-title { font-size: clamp(38px, 6.2vw, 76px); font-weight: 900; line-height: 1.1; letter-spacing: -1px; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub {
    max-width: 720px; margin: 26px auto 0; font-size: clamp(17px, 2.2vw, 21px);
    color: var(--text-dim); font-weight: 300;
}
.hero-sub strong { color: var(--accent-2); font-weight: 700; }
.hero-actions { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; justify-content: center; }

.hero-stats {
    margin-top: 70px; width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.stat-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px 18px; transition: all .3s; backdrop-filter: blur(6px);
}
.stat-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.stat-num { font-size: clamp(34px, 4vw, 52px); font-weight: 800; line-height: 1;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { margin-top: 10px; color: var(--text-dim); font-size: 14px; }

/* ========== 通用 section ========== */
.section { padding: 100px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(11,16,32,.6), transparent); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.eyebrow {
    font-size: 13px; font-weight: 700; letter-spacing: 3px; color: var(--accent);
    text-transform: uppercase;
}
.section-title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin: 14px 0 16px; letter-spacing: -.5px; }
.section-desc { color: var(--text-dim); font-size: 17px; font-weight: 300; }

/* ========== 是什么 ========== */
.what-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.what-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 34px 30px; transition: all .3s;
}
.what-card:hover { border-color: var(--border-hover); transform: translateY(-5px); box-shadow: var(--shadow); }
.what-icon {
    width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
    background: var(--grad-soft); color: var(--accent-2); font-size: 24px; margin-bottom: 20px;
}
.what-card h3 { font-size: 20px; margin-bottom: 10px; }
.what-card p { color: var(--text-dim); font-size: 15px; }

/* ========== 三大技术 ========== */
.tech-list { display: flex; flex-direction: column; gap: 28px; }
.tech-row {
    display: grid; grid-template-columns: 70px 1fr 360px; gap: 30px; align-items: center;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 24px;
    padding: 40px; transition: all .3s;
}
.tech-row:hover { border-color: var(--border-hover); box-shadow: var(--shadow); }
.tech-row.reverse { grid-template-columns: 70px 360px 1fr; }
.tech-row.reverse .tech-no { grid-column: 1; }
.tech-row.reverse .tech-visual { grid-column: 2; }
.tech-row.reverse .tech-body { grid-column: 3; }
.tech-no {
    font-size: 50px; font-weight: 900; line-height: 1;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9;
}
.tech-tag {
    display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--accent-2);
    margin-bottom: 12px;
}
.tech-tag span {
    font-size: 12px; font-weight: 500; color: var(--text-faint);
    border: 1px solid var(--border); padding: 3px 9px; border-radius: 999px;
}
.tech-body h3 { font-size: 23px; margin-bottom: 12px; }
.tech-body > p { color: var(--text-dim); font-size: 15.5px; margin-bottom: 18px; }
.tech-points { display: flex; flex-direction: column; gap: 9px; }
.tech-points li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-dim); font-size: 14.5px; }
.tech-points i { color: var(--accent-2); margin-top: 5px; font-size: 12px; }

.tech-visual { display: grid; place-items: center; }

/* 瘦身演示 */
.weight-demo { display: flex; align-items: center; gap: 18px; }
.weight {
    width: 110px; height: 110px; border-radius: 50%; display: grid; place-content: center; text-align: center;
    border: 2px solid var(--border);
}
.weight span { font-size: 30px; font-weight: 800; }
.weight small { color: var(--text-faint); font-size: 12px; }
.weight.before { background: rgba(255,90,90,.08); border-color: rgba(255,90,90,.3); }
.weight.before span { color: #ff7a7a; }
.weight.after { background: rgba(0,229,199,.1); border-color: rgba(0,229,199,.4); transform: scale(.78); }
.weight.after span { color: var(--accent-2); }
.weight-arrow { color: var(--accent); font-size: 22px; }

/* 推测解码演示 */
.spec-demo { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.spec-bubble {
    width: 100%; max-width: 240px; padding: 16px; border-radius: 14px; text-align: center;
    border: 1px solid var(--border); font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.spec-bubble.small { background: rgba(79,140,255,.1); color: var(--accent); font-size: 15px; }
.spec-bubble.big { background: rgba(160,107,255,.1); color: var(--accent-3); font-size: 17px; }
.spec-flow { display: flex; flex-direction: column; gap: 5px; align-items: center; }
.spec-flow span { width: 3px; height: 8px; background: var(--accent-2); border-radius: 2px; opacity: .4; animation: flowPulse 1.4s infinite; }
.spec-flow span:nth-child(2) { animation-delay: .2s; }
.spec-flow span:nth-child(3) { animation-delay: .4s; }
@keyframes flowPulse { 0%,100% { opacity:.25; } 50% { opacity:1; } }

/* ETC 演示 */
.etc-demo { width: 100%; max-width: 300px; }
.etc-lane {
    position: relative; height: 56px; border-radius: 12px; overflow: hidden;
    background: rgba(255,255,255,.03); border: 1px solid var(--border);
    display: flex; align-items: center;
}
.car {
    position: absolute; width: 30px; height: 18px; border-radius: 4px; top: 19px;
    background: var(--grad); animation: drive 3.2s linear infinite;
}
.car.c1 { animation-delay: 0s; } .car.c2 { animation-delay: .8s; }
.car.c3 { animation-delay: 1.6s; } .car.c4 { animation-delay: 2.4s; }
@keyframes drive { from { left: -34px; } to { left: 100%; } }
.etc-gate {
    margin-top: 14px; text-align: center; font-weight: 700; color: var(--accent-2);
    padding: 10px; border-radius: 10px; background: rgba(0,229,199,.08); border: 1px solid rgba(0,229,199,.3);
}

/* ========== 性能对比 ========== */
.perf-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: stretch; }
.perf-chart-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px;
}
.perf-chart-title { font-size: 18px; margin-bottom: 18px; }
.chart-box { height: 340px; position: relative; }
.perf-side { display: flex; flex-direction: column; gap: 16px; }
.perf-metric {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px;
}
.perf-metric-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.perf-metric-top span { color: var(--text-dim); font-size: 15px; }
.perf-metric-top strong { font-size: 22px; font-weight: 800; }
.perf-metric-top .up { color: var(--accent-2); }
.perf-metric-top .down { color: #ff9a62; }
.perf-bar { height: 7px; background: rgba(255,255,255,.06); border-radius: 999px; overflow: hidden; }
.perf-bar-fill { height: 100%; width: 0; background: var(--grad); border-radius: 999px; transition: width 1.2s ease; }
.perf-bar-fill.down { background: linear-gradient(90deg,#ff9a62,#ffd166); }
.perf-bar-fill.animate { width: var(--w); }
.perf-metric p { margin-top: 8px; color: var(--text-faint); font-size: 13px; }

/* ========== GPU ========== */
.gpu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gpu-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px;
    transition: all .3s;
}
.gpu-card:hover { border-color: var(--border-hover); transform: translateY(-5px); box-shadow: var(--shadow); }
.gpu-gen {
    display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent-2);
    background: rgba(0,229,199,.08); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
}
.gpu-head h3 { font-size: 19px; margin-bottom: 18px; }
.gpu-models { display: flex; flex-wrap: wrap; gap: 8px; }
.gpu-models span {
    font-family: 'Inter', monospace; font-size: 14px; font-weight: 600; color: var(--text);
    border: 1px solid var(--border); padding: 6px 12px; border-radius: 8px; background: rgba(255,255,255,.02);
    transition: all .2s;
}
.gpu-models span:hover { border-color: var(--accent); color: var(--accent); }

/* ========== 商业价值 ========== */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px;
    transition: all .3s;
}
.value-card:hover { border-color: var(--border-hover); transform: translateY(-5px); box-shadow: var(--shadow); }
.value-card i { font-size: 26px; color: var(--accent); margin-bottom: 16px; }
.value-card h3 { font-size: 18px; margin-bottom: 10px; }
.value-card p { color: var(--text-dim); font-size: 14.5px; }

/* ========== 流程 ========== */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.process-step {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px;
    position: relative; transition: all .3s;
}
.process-step:hover { border-color: var(--border-hover); transform: translateY(-5px); }
.step-num {
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    background: var(--grad); color: #05101f; font-weight: 800; font-size: 20px; margin-bottom: 18px;
}
.process-step h3 { font-size: 18px; margin-bottom: 10px; }
.process-step p { color: var(--text-dim); font-size: 14.5px; }

/* ========== CTA ========== */
.cta-section { padding: 90px 0 110px; }
.cta-card {
    background: var(--grad-soft); border: 1px solid var(--border); border-radius: 28px;
    padding: 64px 40px; text-align: center; position: relative; overflow: hidden;
}
.cta-card::before {
    content: ''; position: absolute; inset: 0; background: var(--grad); opacity: .06; pointer-events: none;
}
.cta-card h2 { font-size: clamp(26px, 4vw, 42px); font-weight: 800; margin-bottom: 16px; letter-spacing: -.5px; }
.cta-card p { max-width: 620px; margin: 0 auto 30px; color: var(--text-dim); font-size: 17px; font-weight: 300; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-meta { margin-top: 30px; display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; color: var(--text-faint); font-size: 14px; }
.cta-meta i { color: var(--accent-2); margin-right: 6px; }

/* ========== 页脚 ========== */
.footer { border-top: 1px solid var(--border); padding: 56px 0 30px; background: rgba(11,16,32,.4); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 36px; }
.footer-brand { max-width: 340px; }
.footer-brand p { margin-top: 14px; color: var(--text-dim); font-size: 14px; font-weight: 300; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
.footer-links a { color: var(--text-dim); font-size: 15px; transition: color .2s; }
.footer-links a:hover { color: var(--accent-2); }
.footer-bottom {
    border-top: 1px solid var(--border); padding-top: 22px; display: flex; justify-content: space-between;
    flex-wrap: wrap; gap: 10px; color: var(--text-faint); font-size: 13px;
}

/* ========== 动画 ========== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ========== 响应式 ========== */
@media (max-width: 980px) {
    .what-grid, .value-grid, .process-steps { grid-template-columns: repeat(2, 1fr); }
    .gpu-grid { grid-template-columns: repeat(2, 1fr); }
    .perf-grid { grid-template-columns: 1fr; }
    .tech-row, .tech-row.reverse {
        grid-template-columns: 1fr; gap: 18px; text-align: left; padding: 30px;
    }
    .tech-row .tech-no, .tech-row.reverse .tech-no { grid-column: auto; }
    .tech-row .tech-body, .tech-row.reverse .tech-body { grid-column: auto; }
    .tech-row .tech-visual, .tech-row.reverse .tech-visual { grid-column: auto; margin: 10px 0; }
}
@media (max-width: 760px) {
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; gap: 0; background: rgba(6,9,18,.97); backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border); padding: 10px 24px; }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--border); }
    .nav-links a::after { display: none; }
    .nav-cta { display: none; }
    .nav-toggle { display: block; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .what-grid, .value-grid, .process-steps, .gpu-grid { grid-template-columns: 1fr; }
    .hero { padding-top: 140px; }
    .footer-bottom { flex-direction: column; }
}
