/* ═══════════════════════════════════════════════
   零域 ZEROX · 卡密云验证系统官网
   设计语言：深空科技 / 玻璃拟态 / 渐变光晕
   ═══════════════════════════════════════════════ */

:root {
  --bg: #07090f;
  --bg-2: #0b0e17;
  --bg-3: #10141f;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef1f8;
  --text-2: #a3aac2;
  --text-3: #6b7288;
  --primary: #6d7cff;
  --primary-2: #9d6bff;
  --cyan: #4de3ff;
  --green: #3df5a6;
  --red: #ff5d7a;
  --grad: linear-gradient(100deg, #6d7cff 0%, #9d6bff 45%, #4de3ff 100%);
  --radius: 18px;
  --font-cn: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-en: "Space Grotesk", "Noto Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-cn);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(109, 124, 255, 0.4); color: #fff; }

body::-webkit-scrollbar { width: 10px; }
body::-webkit-scrollbar-track { background: var(--bg); }
body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2a3050, #1a1f33);
  border-radius: 6px;
  border: 2px solid var(--bg);
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }

.container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.container--narrow { width: min(860px, calc(100% - 48px)); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ═══════════ 自定义光标 ═══════════ */
.cursor, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 999;
  pointer-events: none; border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor {
  width: 8px; height: 8px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(77, 227, 255, 0.9);
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1.5px solid rgba(109, 124, 255, 0.55);
  transition: width 0.25s ease, height 0.25s ease,
              border-color 0.25s ease, background 0.25s ease;
}
.cursor-ring.hovering {
  width: 58px; height: 58px;
  border-color: rgba(77, 227, 255, 0.9);
  background: rgba(77, 227, 255, 0.07);
}
@media (hover: none), (max-width: 768px) {
  .cursor, .cursor-ring { display: none; }
}

/* ═══════════ 按钮 ═══════════ */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px;
  padding: 14px 30px; border-radius: 999px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s;
  overflow: hidden; white-space: nowrap;
}
.btn span { position: relative; z-index: 2; }
.btn svg { position: relative; z-index: 2; transition: transform 0.3s; }
.btn:hover svg { transform: translateX(4px); }
.btn--primary {
  color: #fff;
  background: linear-gradient(100deg, #5a6bff, #8d5bff);
  box-shadow: 0 6px 28px rgba(109, 124, 255, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--primary::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, #4de3ff, #6d7cff);
  opacity: 0; transition: opacity 0.35s;
}
.btn--primary:hover::before { opacity: 1; }
.btn--primary:hover { box-shadow: 0 10px 40px rgba(77, 227, 255, 0.45); }
.btn--ghost {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px);
}
.btn--ghost:hover { background: var(--surface-2); border-color: rgba(109, 124, 255, 0.6); }
.btn--sm { padding: 10px 22px; font-size: 14px; }
.btn--lg { padding: 16px 36px; font-size: 16px; }
.btn--xl { padding: 19px 46px; font-size: 17px; }
.btn--block { width: 100%; justify-content: center; }

/* ═══════════ 导航 ═══════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 9, 15, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--border);
}
.nav__inner {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.nav__logo { display: flex; align-items: center; gap: 12px; }
.nav__mark { width: 36px; height: 36px; }
.mark-bg { fill: #141a2c; stroke: rgba(109, 124, 255, 0.5); stroke-width: 2; }
.mark-z {
  stroke: url(#none); stroke: #7d8bff;
  fill: none; stroke-width: 10;
  stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 5px rgba(109, 124, 255, 0.7));
}
.nav__brand { font-size: 19px; font-weight: 700; letter-spacing: 0.06em; }
.nav__brand em {
  font-style: normal; font-family: var(--font-en);
  font-size: 11px; color: var(--text-3);
  margin-left: 7px; letter-spacing: 0.24em; vertical-align: 2px;
}
.nav__links { display: flex; gap: 6px; }
.nav__links a {
  position: relative;
  padding: 8px 15px; font-size: 14.5px; color: var(--text-2);
  border-radius: 10px;
  transition: color 0.25s, background 0.25s;
}
.nav__links a:hover { color: var(--text); background: var(--surface-2); }
.nav__actions { display: flex; gap: 12px; align-items: center; }
.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__burger span {
  width: 24px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════ Hero ═══════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 130px 24px 90px;
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(109, 124, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 124, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 42%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 42%, #000 30%, transparent 75%);
}
.hero__glow {
  position: absolute; border-radius: 50%;
  filter: blur(110px); pointer-events: none;
  animation: glowFloat 9s ease-in-out infinite alternate;
}
.hero__glow--1 {
  width: 560px; height: 560px; top: -12%; left: -8%;
  background: radial-gradient(circle, rgba(109, 124, 255, 0.32), transparent 65%);
}
.hero__glow--2 {
  width: 520px; height: 520px; bottom: -18%; right: -6%;
  background: radial-gradient(circle, rgba(77, 227, 255, 0.2), transparent 65%);
  animation-delay: -4.5s;
}
@keyframes glowFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 50px) scale(1.12); }
}
.hero__content { position: relative; z-index: 2; text-align: center; max-width: 960px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; color: var(--text-2);
  padding: 9px 20px; border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  margin-bottom: 34px;
}
.hero__badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.55; }
}
.hero__title {
  font-size: clamp(42px, 7.2vw, 88px);
  font-weight: 900; line-height: 1.18;
  letter-spacing: 0.01em;
  margin-bottom: 30px;
}
.hero__line { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.split { display: inline-block; }
.split .char { display: inline-block; transform: translateY(115%); }
.hero__sub {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-2); font-weight: 300;
  margin-bottom: 44px;
}
.hero__sub b { color: var(--cyan); font-weight: 600; }
.hero__cta { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 76px; }
.hero__stats {
  display: inline-flex; align-items: center; gap: clamp(20px, 4vw, 46px);
  padding: 26px clamp(24px, 4vw, 50px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  backdrop-filter: blur(16px);
  flex-wrap: wrap; justify-content: center;
}
.stat__num {
  font-family: var(--font-en);
  font-size: clamp(24px, 3vw, 34px); font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat__num i { font-style: normal; font-size: 0.62em; margin-left: 2px; }
.stat__label { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.stat__divider { width: 1px; height: 44px; background: var(--border-strong); }
.hero__scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 12px; color: var(--text-3); letter-spacing: 0.3em;
  z-index: 2;
}
.hero__scroll-line {
  width: 1px; height: 52px;
  background: linear-gradient(180deg, transparent, var(--primary));
  position: relative; overflow: hidden;
}
.hero__scroll-line::after {
  content: ""; position: absolute; top: -50%; left: 0;
  width: 100%; height: 50%;
  background: linear-gradient(180deg, transparent, var(--cyan));
  animation: scrollDrop 1.8s ease-in-out infinite;
}
@keyframes scrollDrop { to { top: 110%; } }

/* ═══════════ 跑马灯 ═══════════ */
.marquee {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  overflow: hidden; padding: 22px 0;
}
.marquee__track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: flex; align-items: center; gap: 34px; padding-right: 34px;
  font-family: var(--font-en);
  font-size: 15px; font-weight: 500; letter-spacing: 0.14em;
  color: var(--text-2); white-space: nowrap;
}
.marquee__group i { font-style: normal; font-size: 8px; color: var(--primary); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ═══════════ 通用 Section ═══════════ */
.section { position: relative; padding: 130px 0; }
.section--alt {
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(109, 124, 255, 0.06), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section__head { text-align: center; max-width: 720px; margin: 0 auto 70px; }
.section__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12.5px; letter-spacing: 0.3em;
  color: var(--primary);
  padding: 7px 18px; border-radius: 999px;
  border: 1px solid rgba(109, 124, 255, 0.35);
  background: rgba(109, 124, 255, 0.07);
  margin-bottom: 22px;
}
.section__title {
  font-size: clamp(30px, 4.4vw, 50px);
  font-weight: 800; line-height: 1.3;
  margin-bottom: 18px;
}
.section__desc { color: var(--text-2); font-size: 16px; font-weight: 300; }

/* ═══════════ 核心能力卡片 ═══════════ */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.feature-card {
  position: relative;
  padding: 38px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.35s, background 0.35s;
  will-change: transform;
}
.feature-card:hover { border-color: rgba(109, 124, 255, 0.5); background: var(--surface-2); }
.feature-card__shine {
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
              rgba(109, 124, 255, 0.14), transparent 45%);
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.feature-card:hover .feature-card__shine { opacity: 1; }
.feature-card__icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(109, 124, 255, 0.16), rgba(77, 227, 255, 0.1));
  border: 1px solid rgba(109, 124, 255, 0.3);
  color: var(--cyan);
  margin-bottom: 24px;
  transform: translateZ(30px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.feature-card:hover .feature-card__icon { transform: translateZ(30px) scale(1.1) rotate(-4deg); }
.feature-card__icon svg { width: 27px; height: 27px; }
.feature-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; transform: translateZ(24px); }
.feature-card p { font-size: 14.5px; color: var(--text-2); font-weight: 300; transform: translateZ(16px); }

/* ═══════════ 验证流程 ═══════════ */
.flow { position: relative; max-width: 780px; margin: 0 auto; }
.flow__line {
  position: absolute; left: 34px; top: 20px; bottom: 20px;
  width: 2px; background: var(--surface-2); border-radius: 2px; overflow: hidden;
}
.flow__line span {
  display: block; width: 100%; height: 0%;
  background: linear-gradient(180deg, var(--primary), var(--cyan));
  box-shadow: 0 0 14px rgba(77, 227, 255, 0.7);
  transition: height 0.3s linear;
}
.flow__steps { display: flex; flex-direction: column; gap: 40px; }
.flow-step { display: flex; gap: 30px; align-items: flex-start; }
.flow-step__num {
  flex-shrink: 0;
  width: 70px; height: 70px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en); font-size: 21px; font-weight: 700;
  color: var(--cyan);
  background: var(--bg-3);
  border: 1px solid rgba(77, 227, 255, 0.35);
  border-radius: 50%;
  box-shadow: 0 0 0 8px var(--bg-2), 0 0 26px rgba(77, 227, 255, 0.16);
  position: relative; z-index: 2;
}
.flow-step__body {
  flex: 1;
  padding: 24px 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s;
}
.flow-step:hover .flow-step__body {
  border-color: rgba(109, 124, 255, 0.5);
  transform: translateX(8px);
}
.flow-step__body h3 { font-size: 19px; margin-bottom: 8px; }
.flow-step__body p { font-size: 14.5px; color: var(--text-2); font-weight: 300; }

/* ═══════════ API 区块 ═══════════ */
.api-grid {
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: 70px; align-items: center;
}
.api-list { margin-top: 30px; display: flex; flex-direction: column; gap: 14px; }
.api-list li {
  position: relative;
  padding: 13px 20px 13px 46px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px; color: var(--text-2);
  transition: border-color 0.3s, transform 0.3s;
}
.api-list li:hover { border-color: rgba(77, 227, 255, 0.45); transform: translateX(6px); }
.api-list li::before {
  content: "→"; position: absolute; left: 18px; top: 50%;
  transform: translateY(-50%); color: var(--cyan); font-weight: 700;
}
.api-list b { font-family: var(--font-mono); color: var(--cyan); font-weight: 500; }

.code-window {
  position: relative;
  background: #0c101c;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(109, 124, 255, 0.08);
  transform-style: preserve-3d;
  will-change: transform;
}
.code-window__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot--r { background: #ff5f57; } .dot--y { background: #febc2e; } .dot--g { background: #28c840; }
.code-window__title {
  margin-left: 10px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-3);
}
.code-window__body {
  padding: 24px 24px 18px;
  font-family: var(--font-mono);
  font-size: 13.5px; line-height: 1.85;
  min-height: 300px;
  white-space: pre-wrap; word-break: break-all;
  color: #c9d1e3;
}
.code-window__body .tk-k { color: #9d6bff; }   /* 关键字 */
.code-window__body .tk-s { color: #4de3ff; }   /* 字符串 */
.code-window__body .tk-f { color: #6d7cff; }   /* 函数 */
.code-window__body .tk-c { color: #59617a; }   /* 注释 */
.code-window__body .tk-n { color: #3df5a6; }   /* 数字/值 */
.caret {
  display: inline-block; width: 8px; height: 17px;
  background: var(--cyan); vertical-align: -3px;
  animation: caretBlink 0.9s step-end infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }
.code-window__resp {
  margin: 0 24px 22px;
  padding: 12px 18px;
  font-family: var(--font-mono); font-size: 13px;
  color: var(--text-2);
  background: rgba(61, 245, 166, 0.06);
  border: 1px solid rgba(61, 245, 166, 0.28);
  border-radius: 10px;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.5s, transform 0.5s;
}
.code-window__resp.show { opacity: 1; transform: translateY(0); }
.resp-ok { color: var(--green); font-weight: 700; }

/* ═══════════ 数据面板 ═══════════ */
.dash {
  background: #0c101c;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
}
.dash__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}
.dash__url {
  margin-left: 12px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-3);
  padding: 5px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.dash__body { padding: 28px; }
.dash__kpis {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px; margin-bottom: 26px;
}
.kpi {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.3s, transform 0.3s;
}
.kpi:hover { border-color: rgba(109, 124, 255, 0.45); transform: translateY(-4px); }
.kpi__label { font-size: 13px; color: var(--text-3); margin-bottom: 6px; }
.kpi__num { font-family: var(--font-en); font-size: 27px; font-weight: 700; }
.kpi__num small { font-size: 14px; color: var(--text-3); font-weight: 400; }
.kpi__trend { font-size: 12px; margin-top: 5px; color: var(--text-3); }
.kpi__trend.up { color: var(--red); }   /* 中国市场配色约定：涨红 */
.kpi__trend.down { color: var(--green); } /* 跌绿 */
.dash__chart {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.dash__chart-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; color: var(--text-2); margin-bottom: 16px; flex-wrap: wrap; gap: 10px;
}
.dash__legend { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-3); }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: 12px; }
.lg--a { background: var(--primary); }
.lg--b { background: var(--red); }
#dashChart { width: 100%; }

/* ═══════════ 计费 ═══════════ */
.pricing {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px; align-items: stretch;
}
.price-card {
  position: relative;
  padding: 42px 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transform-style: preserve-3d;
  transition: border-color 0.35s;
  will-change: transform;
}
.price-card:hover { border-color: rgba(109, 124, 255, 0.55); }
.price-card--hot {
  background: linear-gradient(170deg, rgba(109, 124, 255, 0.13), rgba(77, 227, 255, 0.05) 60%), var(--surface);
  border-color: rgba(109, 124, 255, 0.5);
  box-shadow: 0 24px 70px rgba(109, 124, 255, 0.18);
}
.price-card__ribbon {
  position: absolute; top: 20px; right: -40px;
  transform: rotate(38deg);
  padding: 6px 48px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  background: var(--grad); color: #fff;
}
.price-card__tag {
  font-size: 13px; letter-spacing: 0.2em; color: var(--text-3);
  margin-bottom: 18px;
}
.price-card__num {
  font-family: var(--font-en);
  font-size: 52px; font-weight: 700; line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.price-card__num small { font-size: 17px; font-weight: 500; }
.price-card__unit { font-size: 13px; color: var(--text-3); margin: 12px 0 26px; }
.price-card ul { display: flex; flex-direction: column; gap: 12px; margin-bottom: 34px; flex: 1; }
.price-card li {
  position: relative; padding-left: 26px;
  font-size: 14px; color: var(--text-2); font-weight: 300;
}
.price-card li b { color: var(--text); font-weight: 600; }
.price-card li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 15px; height: 15px;
  background:
    linear-gradient(135deg, var(--primary), var(--cyan));
  clip-path: polygon(14% 44%, 0 61%, 40% 100%, 100% 16%, 84% 2%, 38% 70%);
}
.price-card__shine {
  position: absolute; inset: 0;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%),
              rgba(109, 124, 255, 0.12), transparent 45%);
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.price-card:hover .price-card__shine { opacity: 1; }

/* ═══════════ 代理商 ═══════════ */
.agent-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 70px; align-items: center;
}
.agent-feats { display: flex; flex-direction: column; gap: 18px; margin-top: 34px; }
.agent-feat {
  padding: 20px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 12px;
  transition: transform 0.3s, border-color 0.3s;
}
.agent-feat:hover { transform: translateX(8px); border-color: rgba(109, 124, 255, 0.5); }
.agent-feat h4 { font-size: 16px; margin-bottom: 5px; }
.agent-feat p { font-size: 13.5px; color: var(--text-2); font-weight: 300; }

.agent-tree {
  position: relative;
  padding: 44px 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  display: flex; flex-direction: column; gap: 0;
}
.tree-node {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px;
  background: var(--bg-3);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.tree-node:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 227, 255, 0.5);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
}
.tree-node--root {
  border-color: rgba(109, 124, 255, 0.6);
  background: linear-gradient(135deg, rgba(109, 124, 255, 0.14), rgba(77, 227, 255, 0.06)), var(--bg-3);
  overflow: visible;
}
.tree-node__avatar {
  flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px;
  background: var(--grad); color: #fff;
}
.tree-node__avatar.a1 { background: linear-gradient(135deg, #ff9d6b, #ff5d7a); }
.tree-node__avatar.a2 { background: linear-gradient(135deg, #3df5a6, #1ec9e8); }
.tree-node__avatar.a3 { background: linear-gradient(135deg, #ffd166, #ff9d6b); }
.tree-node__info b { display: block; font-size: 15px; }
.tree-node__info span { font-size: 12.5px; color: var(--text-3); }
.tree-node__pulse {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 10px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
.tree-branches {
  display: flex; flex-direction: column; gap: 14px;
  margin-top: 34px; padding-left: 44px; position: relative;
}
.tree-branches::before {
  content: ""; position: absolute; left: 16px; top: -20px; bottom: 50%;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), rgba(109, 124, 255, 0.1));
}
.tree-branches .tree-node::before {
  content: ""; position: absolute; left: -28px; top: 50%;
  width: 28px; height: 2px;
  background: rgba(109, 124, 255, 0.4);
}

/* ═══════════ FAQ ═══════════ */
.faq { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s;
}
.faq-item.open { border-color: rgba(109, 124, 255, 0.55); background: var(--surface-2); }
.faq-item__q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 28px;
  font-size: 16.5px; font-weight: 600; text-align: left;
  color: var(--text);
  transition: color 0.25s;
}
.faq-item__icon {
  position: relative; flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--border-strong);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s, border-color 0.3s;
}
.faq-item__icon::before, .faq-item__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 12px; height: 2px; border-radius: 2px;
  background: var(--text-2);
  transform: translate(-50%, -50%);
  transition: transform 0.4s, background 0.3s;
}
.faq-item__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .faq-item__icon {
  transform: rotate(135deg);
  background: var(--grad); border-color: transparent;
}
.faq-item.open .faq-item__icon::before,
.faq-item.open .faq-item__icon::after { background: #fff; }
.faq-item__a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item__a p {
  padding: 0 28px 26px;
  font-size: 14.5px; color: var(--text-2); font-weight: 300;
}

/* ═══════════ CTA ═══════════ */
.cta { position: relative; padding: 150px 0; overflow: hidden; }
.cta__glow {
  position: absolute; left: 50%; top: 50%;
  width: 900px; height: 560px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(109, 124, 255, 0.18), transparent 65%);
  filter: blur(60px); pointer-events: none;
}
.cta__box {
  position: relative;
  text-align: center;
  padding: 90px 40px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 30px;
  backdrop-filter: blur(14px);
}
.cta__box h2 { font-size: clamp(32px, 5vw, 56px); font-weight: 900; line-height: 1.3; margin-bottom: 18px; }
.cta__box p { color: var(--text-2); font-size: 16px; margin-bottom: 42px; }
.cta__actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.cta__note { font-size: 13px; color: var(--text-3); letter-spacing: 0.08em; }

/* ═══════════ Footer ═══════════ */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 70px 0 34px;
}
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px; margin-bottom: 60px;
}
.footer__brand p { margin-top: 20px; font-size: 14px; color: var(--text-3); font-weight: 300; }
.footer__col h5 {
  font-size: 13px; letter-spacing: 0.22em; color: var(--text-3);
  margin-bottom: 20px; font-weight: 600;
}
.footer__col a {
  display: block; padding: 6px 0;
  font-size: 14.5px; color: var(--text-2);
  transition: color 0.25s, transform 0.25s;
}
.footer__col a:hover { color: var(--cyan); transform: translateX(5px); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-3); flex-wrap: wrap; gap: 12px;
}
.footer__status { display: flex; align-items: center; gap: 8px; }
.footer__status i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

/* ═══════════ 回到顶部 ═══════════ */
.to-top {
  position: fixed; right: 30px; bottom: 30px; z-index: 150;
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px);
  color: var(--text);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity 0.35s, transform 0.35s, visibility 0.35s, background 0.3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: rgba(109, 124, 255, 0.3); }

/* ═══════════ 入场动画基类 ═══════════ */
.reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ═══════════ 响应式 ═══════════ */
@media (max-width: 1024px) {
  .api-grid, .agent-grid { grid-template-columns: 1fr; gap: 50px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav__links, .nav__actions { display: none; }
  .nav__burger { display: flex; }
  .nav__links.mobile-open {
    display: flex; flex-direction: column;
    position: absolute; top: 74px; left: 0; right: 0;
    background: rgba(7, 9, 15, 0.96);
    backdrop-filter: blur(20px);
    padding: 18px 24px 26px; gap: 4px;
    border-bottom: 1px solid var(--border);
  }
  .nav__links.mobile-open a { padding: 13px 16px; font-size: 16px; }
  .section { padding: 90px 0; }
  .stat__divider { display: none; }
  .hero__stats { gap: 26px; }
  .flow__line { left: 27px; }
  .flow-step__num { width: 56px; height: 56px; font-size: 17px; }
  .tree-branches { padding-left: 26px; }
  .tree-branches::before { left: 8px; }
  .tree-branches .tree-node::before { left: -18px; width: 18px; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; gap: 34px; }
  .code-window__body { font-size: 12px; min-height: 260px; }
  .cta__box { padding: 60px 24px; }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

:root[data-theme="light"] { --bg:#f4f7fb; --bg-2:#eaf0f7; --bg-3:#fff; --surface:rgba(255,255,255,.86); --surface-2:rgba(226,234,245,.92); --border:rgba(34,52,78,.13); --border-strong:rgba(34,52,78,.22); --text:#172238; --text-2:#52627a; --text-3:#748198; --primary:#5265dc; --primary-2:#7752cc; --cyan:#168fb0; --grad:linear-gradient(100deg,#5265dc 0%,#7752cc 48%,#168fb0 100%); }
:root[data-theme="light"] .nav.scrolled { background:rgba(244,247,251,.9); }
.theme-toggle { width:auto; min-width:78px; padding:8px 12px; gap:6px; border-radius:10px; }
.theme-toggle__icon { font-size:17px; line-height:1; }
.theme-toggle__label { font-size:12px; }
@media (max-width:860px) { .theme-toggle { position:fixed; top:18px; right:66px; z-index:220; } }
