:root {
  --bg: #0a0e1a;
  --bg-alt: #0e1424;
  --surface: #131a2c;
  --surface-2: #182135;
  --border: rgba(148, 163, 184, 0.14);
  --text: #e8ecf4;
  --text-muted: #9aa7bd;
  --accent: #4f7cff;
  --accent-2: #22d3ee;
  --warn: #f59e0b;
  --grad: linear-gradient(135deg, #4f7cff 0%, #22d3ee 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(2, 6, 18, 0.5);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* 导航 */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 26, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; white-space: nowrap; }
.brand-mark { color: var(--accent-2); font-size: 18px; }
.nav-links { display: flex; gap: 20px; margin-left: auto; font-size: 14.5px; color: var(--text-muted); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--grad); color: #06121f; font-weight: 600; font-size: 14px;
  padding: 9px 18px; border-radius: 999px; white-space: nowrap;
}
.lang-toggle {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text);
  border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 700; cursor: pointer;
  white-space: nowrap; transition: border-color .2s, color .2s;
}
.lang-toggle:hover { border-color: var(--accent-2); color: var(--accent-2); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 110px 0 90px; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(800px 400px at 20% 10%, rgba(79, 124, 255, 0.22), transparent 60%),
    radial-gradient(700px 400px at 80% 20%, rgba(34, 211, 238, 0.16), transparent 60%);
}
.hero-inner { text-align: center; max-width: 820px; }
.hero-badge {
  display: inline-block; font-size: 13.5px; color: var(--accent-2);
  border: 1px solid rgba(34, 211, 238, 0.35); border-radius: 999px;
  padding: 6px 16px; margin-bottom: 26px; background: rgba(34, 211, 238, 0.06);
}
.hero-title { font-size: clamp(42px, 7vw, 72px); line-height: 1.08; font-weight: 800; letter-spacing: -0.5px; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 18px; color: var(--text-muted); max-width: 680px; margin: 26px auto 0; text-wrap: balance; }
.hero-actions { display: flex; gap: 14px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 14px 30px; border-radius: 999px; font-size: 16px; font-weight: 600; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #06121f; box-shadow: 0 8px 30px rgba(79, 124, 255, 0.35); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); background: rgba(255,255,255,0.02); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 48px; list-style: none; }
.hero-trust li { font-size: 13.5px; color: var(--text-muted); border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px; }

/* 通用章节 */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-tag { font-size: 13px; letter-spacing: 2px; color: var(--accent-2); text-transform: uppercase; margin-bottom: 14px; }
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.5px; text-wrap: balance; }
.section-desc { color: var(--text-muted); margin-top: 16px; font-size: 16.5px; text-wrap: balance; }
.sub-title { font-size: 20px; font-weight: 700; margin: 40px 0 20px; }

/* 网格 */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* 卡片 */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(79,124,255,0.4); box-shadow: var(--shadow); }
.card h3 { font-size: 17.5px; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 14.5px; }

/* 痛点 */
.pain-card { position: relative; }
.card-num { position: absolute; top: 18px; right: 20px; font-size: 26px; font-weight: 800; color: rgba(148,163,184,0.15); }

/* 理念 */
.concept-icon { font-size: 30px; margin-bottom: 14px; }

/* 对比表 */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 14.5px; }
.compare-table th, .compare-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.compare-table thead th { background: var(--surface-2); font-weight: 700; color: var(--text); }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table td { color: var(--text-muted); }
.compare-table td:first-child { color: var(--text); font-weight: 600; }
.compare-table .col-hl { color: #cfe0ff; background: rgba(79, 124, 255, 0.06); }
.compare-table thead .col-hl { color: var(--accent-2); }

/* 安全治理 */
.env-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.env-card { border-radius: var(--radius); padding: 22px; border: 1px solid var(--border); background: var(--surface); }
.env-tag { font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.env-card p { color: var(--text-muted); font-size: 13.5px; min-height: 40px; }
.env-perm { display: inline-block; margin-top: 10px; font-size: 12.5px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); }
.env-dev .env-perm { color: #4ade80; border-color: rgba(74,222,128,0.4); background: rgba(74,222,128,0.08); }
.env-test .env-perm { color: #4ade80; border-color: rgba(74,222,128,0.4); background: rgba(74,222,128,0.08); }
.env-stage .env-perm { color: #fbbf24; border-color: rgba(251,191,36,0.4); background: rgba(251,191,36,0.08); }
.env-prod .env-perm { color: #f87171; border-color: rgba(248,113,113,0.4); background: rgba(248,113,113,0.08); }
.security-points { margin-top: 8px; }

/* 时间线 */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--accent), var(--accent-2)); border-radius: 2px; }
.timeline-item { position: relative; padding: 0 0 30px 20px; }
.timeline-dot { position: absolute; left: -26px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px rgba(34,211,238,0.15); }
.timeline-body h3 { font-size: 17px; margin-bottom: 6px; }
.timeline-body p { color: var(--text-muted); font-size: 14.5px; }

/* CTA */
.cta { padding: 88px 0; text-align: center; }
.cta-inner { max-width: 720px; }
.cta h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; }
.cta p { color: var(--text-muted); margin: 16px 0 34px; font-size: 17px; }

/* 页脚 */
.footer { border-top: 1px solid var(--border); padding: 48px 0; background: var(--bg-alt); }
.footer-inner { text-align: center; }
.footer .brand { justify-content: center; margin-bottom: 12px; }
.footer-note { color: var(--text-muted); font-size: 13.5px; }
.footer-copy { color: rgba(148,163,184,0.5); font-size: 12.5px; margin-top: 16px; }
.footer-icp { margin-top: 14px; }
.footer-icp a { color: rgba(148,163,184,0.6); font-size: 12.5px; text-decoration: none; transition: color .2s; }
.footer-icp a:hover { color: var(--accent-2); }

/* 滚动显现动画 */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* 响应式 */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .env-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .container { padding: 0 18px; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .env-grid { grid-template-columns: 1fr; }
  .nav-inner { gap: 12px; }
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0; flex-direction: column;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    padding: 16px 18px; gap: 14px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { padding: 56px 0 48px; }
  .hero-title { font-size: 40px; }
  .hero-sub { font-size: 15.5px; }
  .hero-metric .hm-line { font-size: 15.5px; }
  .hm-stats { gap: 20px; }
  .hm-count { font-size: 17px; }
  .hm-count .count { font-size: 26px; }
  .hero-trust { margin-top: 34px; gap: 8px; }
  .hero-trust li { font-size: 12px; padding: 5px 11px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }
  .section-title { font-size: 26px; }
  .section-desc { font-size: 14.5px; }
  .card { padding: 20px; }
  .card h3 { font-size: 16px; }
  .card p { font-size: 13.5px; }
  .diagram-card { padding: 18px; }
  .diagram-card h3 { font-size: 17px; }
  .unit-value { font-size: 56px; }
  .unit-side { padding: 22px 14px; }
  .unit-row > div { padding: 11px 10px; font-size: 12.5px; }
  .cta { padding: 56px 0; }
  .cta h2 { font-size: 26px; }
  .timeline { padding-left: 22px; }
}
@media (max-width: 400px) {
  .hero-title { font-size: 34px; }
  .brand-name { font-size: 15px; }
}

/* ===== 图解 ===== */
.diagram-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 1040px; margin: 0 auto; }
.diagram { width: 100%; min-width: 780px; height: auto; display: block; }
.diagram text { font-family: var(--font); }
.diagram-caption { text-align: center; color: var(--text-muted); font-size: 14.5px; margin-top: 16px; }
.diagram-grid { display: grid; gap: 40px; }
.diagram-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.diagram-card h3 { font-size: 19px; margin-bottom: 20px; }
.diagram-card .diagram-caption { margin-top: 18px; }
.diagram-card + .diagram-card, .diagram-card + .table-wrap, .table-wrap + .diagram-card, .diagram-card + .grid { margin-top: 28px; }

/* ===== Hero 计量单位 ===== */
.hero-metric { margin-top: 20px; }
.hm-line { font-size: 18px; font-weight: 700; }
.hm-stats { margin-top: 12px; display: flex; gap: 44px; justify-content: center; flex-wrap: wrap; }
.hm-count { font-size: 20px; font-weight: 700; color: var(--text-muted); }
.hm-count .count { font-size: 34px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 2px; }
.hm-dim { color: var(--text-muted); }
.hm-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===== 计量单位对比 ===== */
.unit-contrast { display: flex; align-items: stretch; gap: 20px; margin-bottom: 28px; }
.unit-side { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 20px; text-align: center; }
.unit-trad { border-color: rgba(100,116,139,0.5); }
.unit-ai { border-color: rgba(79,124,255,0.5); background: linear-gradient(180deg, rgba(79,124,255,0.08), rgba(34,211,238,0.05)); }
.unit-label { font-size: 15px; color: var(--text-muted); margin-bottom: 10px; }
.unit-value { font-size: clamp(64px, 9vw, 110px); font-weight: 800; line-height: 1; letter-spacing: -2px; }
.unit-trad .unit-value { color: #94a3b8; }
.unit-ai .unit-value { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.unit-note { font-size: 14px; color: var(--text-muted); margin-top: 14px; }
.unit-vs { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 0 6px; }
.unit-arrow { font-size: 30px; color: var(--accent-2); }
.unit-mult { font-size: 24px; font-weight: 800; color: var(--accent-2); white-space: nowrap; }
.unit-vs-sub { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.unit-table { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); margin-bottom: 28px; }
.unit-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; border-bottom: 1px solid var(--border); }
.unit-row:last-child { border-bottom: 0; }
.unit-row > div { padding: 13px 18px; font-size: 14.5px; text-align: center; }
.unit-row > div:first-child { text-align: left; color: var(--text); font-weight: 600; }
.unit-row-head > div { background: var(--surface-2); color: var(--text-muted); font-weight: 700; font-size: 13.5px; }
.unit-row-head > div:first-child { text-align: left; }
.u-trad { color: #94a3b8; }
.u-ai { color: var(--accent-2); font-weight: 700; }
@media (max-width: 720px) {
  .unit-contrast { flex-direction: column; }
  .unit-vs { flex-direction: row; }
}

/* ===== 双语 ===== */
.section-en-title { text-align: center; color: var(--accent-2); font-size: 15px; letter-spacing: 1px; margin-top: 6px; }
.en { display: block; font-size: 12.5px; color: var(--text-muted); font-weight: 400; margin-top: 3px; letter-spacing: 0; }

/* ===== 交付周期柱状图 ===== */
.bar-chart { display: flex; flex-direction: column; gap: 22px; }
.bc-row { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; }
.bc-label { color: var(--text); font-weight: 600; font-size: 14.5px; text-align: right; }
.bc-bars { display: flex; flex-direction: column; gap: 8px; }
.bc-bar { height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: flex-end; padding: 0 12px; font-size: 13px; font-weight: 700; min-width: 64px; }
.bc-trad { background: rgba(100,116,139,0.40); color: #cbd5e1; }
.bc-ai { background: var(--grad); color: #06121f; }
@media (max-width: 720px) { .bc-row { grid-template-columns: 84px 1fr; } .bc-label { font-size: 13px; } }
