/* ============================================================
   Zhida 智达 · 官网样式
   设计语言：深墨蓝底 + 碧青(teal)→电光靛(indigo)流动渐变
   字体：Space Grotesk(工程 display) / Inter+苹方(正文) / JetBrains Mono(标签)
   Signature：Hero 中"活的研发流水线"——把产品本身可视化
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  color-scheme: dark;

  /* 色板 */
  --bg-0: #080B14;          /* 最深背景 */
  --bg-1: #0B1020;          /* 主背景 */
  --bg-2: #111829;          /* 抬升区块 */
  --surface: #141C30;       /* 卡片 */
  --surface-2: #1A2440;     /* 卡片 hover */
  --line: rgba(150, 170, 210, 0.12);
  --line-strong: rgba(150, 170, 210, 0.22);

  --text-0: #EAF0FF;        /* 主文字（微蓝白） */
  --text-1: #A7B2CC;        /* 次要文字 */
  --text-2: #6B7793;        /* 弱文字 */

  --teal: #35E6C5;          /* 碧青 主强调 */
  --teal-deep: #12B79B;
  --indigo: #6D8BFF;        /* 电光靛 */
  --indigo-deep: #4B63E8;
  --amber: #FFC178;         /* 暖点缀，极少量使用 */

  --grad-flow: linear-gradient(90deg, var(--teal) 0%, var(--indigo) 100%);
  --grad-flow-135: linear-gradient(135deg, var(--teal) 0%, var(--indigo) 100%);
  --grad-text: linear-gradient(92deg, #6FF3DA 0%, #8FA6FF 60%, #B7A0FF 100%);

  /* 字体 */
  --font-display: "Space Grotesk", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  /* 尺度 */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 10px;

  --shadow-glow: 0 0 0 1px rgba(53, 230, 197, 0.14), 0 20px 60px -24px rgba(53, 230, 197, 0.35);
  --shadow-card: 0 24px 60px -32px rgba(0, 0, 0, 0.8);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-1);
  color: var(--text-0);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
p { margin: 0; }
::selection { background: rgba(53, 230, 197, 0.28); color: #fff; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 11vw, 140px); position: relative; }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--grad-flow);
}
.section-title {
  font-size: clamp(28px, 4.4vw, 46px);
  max-width: 20ch;
  margin-bottom: 18px;
}
.section-lead {
  color: var(--text-1);
  font-size: clamp(15.5px, 1.6vw, 18px);
  max-width: 58ch;
}
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 .grad-text {
  background-size: 220% auto;
  animation: textflow 9s ease-in-out infinite alternate;
}
@keyframes textflow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .3s ease, background .3s ease, border-color .3s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--grad-flow);
  color: #05231F;
  box-shadow: 0 12px 30px -12px rgba(53, 230, 197, 0.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(53, 230, 197, 0.75); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
  color: var(--text-0);
}
.btn--ghost:hover { border-color: var(--teal); background: rgba(53, 230, 197, 0.06); transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(11, 16, 32, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(9, 13, 26, 0.9); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__zh { color: var(--text-1); font-size: 15px; font-weight: 500; letter-spacing: 0.04em; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { color: var(--text-1); font-size: 14.5px; transition: color .2s ease; }
.nav__links a:hover { color: var(--text-0); }
.nav__right { display: flex; align-items: center; gap: 16px; }
.lang-switch { display: inline-flex; font-family: var(--font-mono); font-size: 12.5px; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.lang-switch a { padding: 6px 12px; color: var(--text-2); transition: all .2s ease; }
.lang-switch a.active { background: rgba(53, 230, 197, 0.12); color: var(--teal); }
.nav__toggle { display: none; background: none; border: 0; color: var(--text-0); padding: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(48px, 8vw, 92px); padding-bottom: clamp(40px, 6vw, 72px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; will-change: transform, opacity; }
.hero__glow--1 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(53,230,197,0.35), transparent 70%); top: -160px; right: -80px; animation: glow-drift 12s ease-in-out infinite alternate; }
.hero__glow--2 { width: 480px; height: 480px; background: radial-gradient(circle, rgba(91,124,250,0.32), transparent 70%); bottom: -200px; left: -120px; animation: glow-drift-alt 14s ease-in-out infinite alternate; }
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 54px 54px;
  background-position: 0 0, 0 0;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  opacity: 0.5;
  animation: grid-drift 18s linear infinite;
  will-change: background-position;
}
@keyframes grid-drift {
  100% { background-position: 54px 54px, 54px 54px; }
}
@keyframes glow-drift {
  0% { opacity: .42; transform: translate3d(0, 0, 0) scale(1); }
  100% { opacity: .62; transform: translate3d(-24px, 18px, 0) scale(1.06); }
}
@keyframes glow-drift-alt {
  0% { opacity: .36; transform: translate3d(0, 0, 0) scale(.98); }
  100% { opacity: .55; transform: translate3d(28px, -16px, 0) scale(1.05); }
}
.hero__inner { position: relative; z-index: 1; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.06em;
  color: var(--text-1);
  border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 7px 15px 7px 12px;
  margin-bottom: 26px;
  background: rgba(255,255,255,0.02);
}
.hero__tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.hero h1 {
  font-size: clamp(34px, 6.2vw, 68px);
  line-height: 1.05;
  max-width: 16ch;
  margin-bottom: 24px;
}
.hero__sub { color: var(--text-1); font-size: clamp(16px, 1.9vw, 20px); max-width: 52ch; margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__note { font-family: var(--font-mono); font-size: 12px; color: var(--text-2); margin-top: 20px; }

/* ---------- Signature: 研发流水线 ---------- */
.pipeline {
  margin-top: clamp(48px, 7vw, 80px);
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(20,28,48,0.7), rgba(11,16,32,0.4));
  padding: clamp(22px, 3vw, 38px) clamp(18px, 3vw, 40px) clamp(26px, 3vw, 40px);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  isolation: isolate;
}
.pipeline::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(53,230,197,0.08) 38%, rgba(109,139,255,0.1) 50%, transparent 64%);
  opacity: 0;
  transform: translateX(-70%);
  animation: panel-scan 8.5s ease-in-out infinite;
  pointer-events: none;
}
.pipeline::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  border-radius: calc(var(--radius-lg) - 1px);
  background:
    radial-gradient(circle at 18% 0%, rgba(53,230,197,0.08), transparent 32%),
    radial-gradient(circle at 85% 100%, rgba(109,139,255,0.08), transparent 34%);
  pointer-events: none;
}
.pipeline.is-paused::before,
.pipeline.is-paused .flow__connector::after {
  animation-play-state: paused;
}
.pipeline__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; gap: 16px; flex-wrap: wrap; position: relative; z-index: 1; }
.pipeline__title { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); display: flex; align-items: center; gap: 10px; }
.pipeline__title b { color: var(--text-0); font-weight: 600; }
.pipeline__dots { display: flex; gap: 7px; }
.pipeline__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); animation: status-dot 2.8s ease-in-out infinite; }
.pipeline__dots i:nth-child(1){ background:#FF6B6B33; } .pipeline__dots i:nth-child(2){ background:#FFC17833; } .pipeline__dots i:nth-child(3){ background:#35E6C533; }
.pipeline__dots i:nth-child(2) { animation-delay: .35s; }
.pipeline__dots i:nth-child(3) { animation-delay: .7s; }

.flow { display: flex; align-items: stretch; gap: 0; position: relative; z-index: 1; }
.flow__stage { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; position: relative; z-index: 2; min-width: 0; }
.flow__node {
  width: 58px; height: 58px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--teal);
  position: relative;
  isolation: isolate;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease, background .3s ease, color .3s ease;
}
.flow__stage:hover .flow__node { transform: translateY(-4px); border-color: var(--teal); box-shadow: var(--shadow-glow); }
.flow__node::before {
  content: "";
  position: absolute;
  inset: -7px;
  z-index: -1;
  border: 1px solid rgba(53,230,197,0.34);
  border-radius: 22px;
  opacity: 0;
  transform: scale(.92);
  transition: opacity .3s ease, transform .3s ease;
}
.flow__node::after {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: -1;
  border-radius: 12px;
  background: radial-gradient(circle, rgba(53,230,197,0.18), transparent 64%);
  opacity: 0;
  transform: scale(.75);
  transition: opacity .3s ease, transform .3s ease;
}
.flow__node > * { position: relative; z-index: 1; }
.flow__node svg { width: 26px; height: 26px; }
.flow__label { font-weight: 600; font-size: 14.5px; transition: color .3s ease; }
.flow__desc { font-family: var(--font-mono); font-size: 11px; color: var(--text-2); letter-spacing: 0.02em; transition: color .3s ease; }
.flow__ai {
  position: absolute; top: -9px; right: 50%; transform: translateX(28px);
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em;
  color: #05231F; background: var(--teal); border-radius: 5px; padding: 2px 5px; font-weight: 700;
  transition: box-shadow .3s ease, background .3s ease;
}
.flow__stage.is-active .flow__node {
  transform: translateY(-5px);
  border-color: var(--teal);
  color: var(--text-0);
  box-shadow: var(--shadow-glow);
}
.flow__stage.is-active .flow__node::before {
  opacity: 1;
  transform: scale(1);
  animation: node-ring 1.5s ease-out infinite;
}
.flow__stage.is-active .flow__node::after {
  opacity: 1;
  transform: scale(1);
}
.flow__stage.is-active .flow__label { color: var(--text-0); }
.flow__stage.is-active .flow__desc { color: var(--teal); }
.flow__stage.is-active .flow__ai {
  box-shadow: 0 0 18px rgba(53,230,197,0.45);
  background: var(--grad-flow);
}
.flow__stage.is-complete .flow__node {
  border-color: rgba(53,230,197,0.32);
  box-shadow: 0 0 0 1px rgba(53,230,197,0.08);
}
/* 连接线 */
.flow__connector { flex: 0 0 auto; align-self: flex-start; margin-top: 28px; height: 2px; min-width: 24px; flex: 1 1 24px; position: relative; background: var(--line-strong); border-radius: 2px; overflow: hidden; }
.flow__connector::after {
  content: ""; position: absolute; top: 0; left: -48%; height: 100%; width: 48%;
  background: var(--grad-flow);
  animation: flowmove 3.1s linear infinite;
  border-radius: 2px;
  box-shadow: 0 0 14px rgba(53,230,197,0.5);
}
.flow__connector:nth-of-type(4)::after { animation-delay: .45s; }
.flow__connector:nth-of-type(6)::after { animation-delay: .9s; }
.flow__connector:nth-of-type(8)::after { animation-delay: 1.35s; }
@keyframes flowmove { 0%{left:-45%} 100%{left:105%} }
@keyframes panel-scan {
  0%, 58% { transform: translateX(-76%); opacity: 0; }
  68% { opacity: .9; }
  100% { transform: translateX(76%); opacity: 0; }
}
@keyframes status-dot {
  0%, 100% { opacity: .38; transform: scale(.86); }
  45% { opacity: 1; transform: scale(1); }
}
@keyframes node-ring {
  0% { opacity: .65; transform: scale(.92); }
  100% { opacity: 0; transform: scale(1.16); }
}

/* ---------- Trust / ecosystem ---------- */
.trust { border-block: 1px solid var(--line); background: var(--bg-0); }
.trust__inner { display: flex; align-items: center; gap: clamp(20px, 4vw, 54px); flex-wrap: wrap; justify-content: center; padding-block: 26px; }
.trust__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--text-2); text-transform: uppercase; }
.trust__chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip { font-family: var(--font-mono); font-size: 13px; color: var(--text-1); border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; background: rgba(255,255,255,0.02); transition: border-color .2s ease, color .2s; }
.chip:hover { border-color: var(--teal); color: var(--text-0); }

/* ---------- Generic grids ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .3s ease, border-color .3s ease, background .3s ease, box-shadow .3s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(53,230,197,0.13), transparent 32%),
    linear-gradient(120deg, transparent, rgba(109,139,255,0.08), transparent);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.card > * { position: relative; z-index: 1; }
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--surface-2); box-shadow: 0 22px 48px -34px rgba(53,230,197,0.45); }
.card:hover::before { opacity: 1; transform: translateY(0); }
.card__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(53,230,197,0.1); color: var(--teal); margin-bottom: 18px; transition: transform .3s ease, box-shadow .3s ease, background .3s ease; }
.card:hover .card__icon { transform: translateY(-3px); box-shadow: 0 14px 28px -18px rgba(53,230,197,0.8); }
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--text-1); font-size: 15px; }

/* ---------- Problem section ---------- */
.problem { background: var(--bg-0); }
.problem__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.stat-row { display: grid; gap: 18px; }
.stat {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
  background: linear-gradient(120deg, rgba(20,28,48,0.6), transparent);
  display: flex; align-items: baseline; gap: 18px;
}
.stat__num { font-family: var(--font-display); font-size: clamp(30px, 4vw, 42px); font-weight: 600; line-height: 1; flex: none; min-width: 3.4ch; }
.stat__txt { color: var(--text-1); font-size: 14.5px; }

/* ---------- Flagship deep-dive ---------- */
.flagship { position: relative; overflow: hidden; }
.flagship__glow { position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(91,124,250,0.16), transparent 70%); top: 10%; right: -240px; filter: blur(70px); pointer-events: none; }
.flagship__layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(34px, 5vw, 68px); align-items: center; position: relative; z-index: 1; }
.feature-list { display: grid; gap: 8px; margin-top: 30px; }
.feature {
  display: flex; gap: 16px; padding: 18px; border-radius: var(--radius-sm);
  border: 1px solid transparent; transition: transform .3s ease, border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.feature:hover { transform: translateX(4px); border-color: var(--line); background: rgba(255,255,255,0.02); box-shadow: 0 16px 36px -34px rgba(53,230,197,0.5); }
.feature__no { font-family: var(--font-mono); font-size: 13px; color: var(--teal); flex: none; padding-top: 2px; }
.feature h4 { font-family: var(--font-body); font-weight: 600; font-size: 16.5px; margin-bottom: 5px; }
.feature p { color: var(--text-1); font-size: 14.5px; }

/* 代码/工作流演示面板 */
.code-panel {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-0); overflow: hidden; box-shadow: var(--shadow-card);
  position: relative;
  isolation: isolate;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.code-panel::after {
  content: "";
  position: absolute;
  inset: 43px 0 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(53,230,197,0.12), transparent);
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}
.code-panel.is-scanning {
  border-color: rgba(53,230,197,0.34);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(53,230,197,0.08);
}
.code-panel.is-scanning::after { animation: code-scan 1.55s ease-out both; }
.code-panel__bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.code-panel__bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.code-panel__bar i:nth-child(1){background:#FF6B6B66}.code-panel__bar i:nth-child(2){background:#FFC17866}.code-panel__bar i:nth-child(3){background:#35E6C566}
.code-panel.is-scanning .code-panel__bar i:nth-child(3) { box-shadow: 0 0 14px rgba(53,230,197,0.7); }
.code-panel__file { margin-left: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--text-2); }
.code-panel__body { padding: 20px; font-family: var(--font-mono); font-size: 13px; line-height: 1.85; overflow-x: auto; }
.code-panel__body .ln {
  display: block;
  white-space: pre;
  position: relative;
  border-radius: 6px;
  padding: 0 8px;
  margin-inline: -8px;
  opacity: .76;
  transition: opacity .28s ease, background .28s ease, box-shadow .28s ease, transform .28s ease;
}
.code-panel__body .ln.is-lit {
  opacity: 1;
  transform: translateX(2px);
  background: linear-gradient(90deg, rgba(53,230,197,0.1), rgba(109,139,255,0.06), transparent 86%);
  box-shadow: inset 2px 0 0 rgba(53,230,197,0.48);
}
.c-com { color: var(--text-2); }
.c-key { color: var(--indigo); }
.c-fn  { color: var(--teal); }
.c-str { color: var(--amber); }
.c-tag { color: #FF8FB0; }
.c-ai  { color: var(--teal); background: rgba(53,230,197,0.1); border-radius: 4px; padding: 0 5px; }
@keyframes code-scan {
  0% { opacity: 0; transform: translateY(-100%); }
  18% { opacity: .9; }
  100% { opacity: 0; transform: translateY(100%); }
}

/* ---------- Service tiers ---------- */
.tiers { background: var(--bg-0); }
.tier {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 30px; background: var(--surface); position: relative;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  overflow: hidden;
  isolation: isolate;
}
.tier::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(53,230,197,0.08) 42%, rgba(109,139,255,0.08) 58%, transparent 100%);
  opacity: 0;
  transform: translateX(-24%);
  transition: opacity .3s ease, transform .5s ease;
  pointer-events: none;
}
.tier > * { position: relative; z-index: 1; }
.tier:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: 0 24px 54px -36px rgba(53,230,197,0.42); }
.tier:hover::after { opacity: 1; transform: translateX(18%); }
.tier--featured { border-color: transparent; background: linear-gradient(180deg, rgba(53,230,197,0.08), rgba(20,28,48,0.6)); box-shadow: var(--shadow-glow); }
.tier--featured::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius-lg); padding: 1px; background: var(--grad-flow); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.tier__badge { position: absolute; top: -12px; left: 30px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; background: var(--grad-flow); color: #05231F; padding: 4px 12px; border-radius: 999px; font-weight: 700; }
.tier__name { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.tier__price { font-family: var(--font-display); font-size: 30px; font-weight: 600; margin-bottom: 4px; }
.tier__price small { font-size: 14px; color: var(--text-2); font-weight: 400; font-family: var(--font-body); }
.tier__for { color: var(--text-2); font-size: 13.5px; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.tier__feats { display: grid; gap: 12px; margin-bottom: 26px; flex: 1; }
.tier__feats li { display: flex; gap: 11px; color: var(--text-1); font-size: 14.5px; }
.tier__feats svg { width: 18px; height: 18px; color: var(--teal); flex: none; margin-top: 3px; }

/* ---------- Secondary capabilities ---------- */
.cap { display: flex; gap: 18px; align-items: flex-start; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(120deg, rgba(20,28,48,0.5), transparent); }
.cap__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(109,139,255,0.12); color: var(--indigo); flex: none; }
.cap__icon svg { width: 23px; height: 23px; }
.cap h3 { font-size: 18px; margin-bottom: 8px; }
.cap p { color: var(--text-1); font-size: 14.5px; }
.cap__tag { font-family: var(--font-mono); font-size: 11px; color: var(--text-2); letter-spacing: 0.08em; }

/* ---------- Policy (上海) ---------- */
.policy { position: relative; overflow: hidden; background: var(--bg-0); }
.policy__card {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(53,230,197,0.07), rgba(91,124,250,0.06));
  padding: clamp(30px, 4vw, 56px);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(30px, 4vw, 56px); align-items: center;
}
.policy__big { font-family: var(--font-display); font-size: clamp(48px, 8vw, 88px); font-weight: 600; line-height: 1; }
.policy__big span { font-size: 0.42em; color: var(--text-1); font-weight: 400; }
.policy__points { display: grid; gap: 16px; margin-top: 22px; }
.policy__points li { display: flex; gap: 12px; color: var(--text-1); font-size: 14.5px; }
.policy__points svg { width: 18px; height: 18px; color: var(--teal); flex: none; margin-top: 3px; }

/* ---------- Process (numbered — real sequence) ---------- */
.process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 50px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-mono); font-size: 15px; color: #05231F;
  background: var(--grad-flow); width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 700;
  transition: transform .3s ease, box-shadow .3s ease;
}
.step:hover::before { transform: translateY(-3px); box-shadow: 0 14px 28px -18px rgba(53,230,197,0.75); }
.step h4 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--text-1); font-size: 14px; }
.step__line { position: absolute; top: 18px; left: 46px; right: -10px; height: 1px; background: var(--line-strong); overflow: hidden; }
.step__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-flow);
  transform: scaleX(0);
  transform-origin: left;
}
.process__grid.in .step__line::after { animation: line-draw .9s ease forwards; }
.process__grid.in .step:nth-child(2) .step__line::after { animation-delay: .18s; }
.process__grid.in .step:nth-child(3) .step__line::after { animation-delay: .36s; }
.step:last-child .step__line { display: none; }
@keyframes line-draw {
  to { transform: scaleX(1); }
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; text-align: left; background: none; border: 0; color: var(--text-0); font-size: 17px; font-weight: 600; padding: 24px 40px 24px 0; position: relative; display: flex; }
.faq__q::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--teal); transition: transform .3s ease; font-weight: 400; }
.faq__item.open .faq__q::after { transform: translateY(-50%) rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s ease; color: var(--text-1); font-size: 15px; }
.faq__a p { padding-bottom: 24px; padding-right: 40px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band__inner { border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(135deg, rgba(53,230,197,0.1), rgba(91,124,250,0.08)); padding: clamp(40px, 6vw, 76px); text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.cta-band__inner::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  background: linear-gradient(120deg, transparent 10%, rgba(53,230,197,0.12) 42%, rgba(109,139,255,0.1) 56%, transparent 88%);
  opacity: .72;
  transform: translateX(-62%);
  animation: cta-sheen 8s ease-in-out infinite;
  pointer-events: none;
}
.cta-band__glow { position: absolute; inset: 0; z-index: 0; background: radial-gradient(circle at 50% 0%, rgba(53,230,197,0.2), transparent 60%); pointer-events: none; animation: cta-glow 7s ease-in-out infinite alternate; }
.cta-band h2 { font-size: clamp(28px, 4.6vw, 48px); margin-bottom: 18px; position: relative; z-index: 1; }
.cta-band p { color: var(--text-1); font-size: 17px; margin-bottom: 32px; max-width: 46ch; margin-inline: auto; position: relative; z-index: 1; }
.cta-band__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
@keyframes cta-sheen {
  0%, 48% { transform: translateX(-62%); opacity: 0; }
  62% { opacity: .75; }
  100% { transform: translateX(62%); opacity: 0; }
}
@keyframes cta-glow {
  0% { opacity: .65; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.08); }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-0); padding-block: clamp(48px, 6vw, 72px) 32px; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer__brand p { color: var(--text-2); font-size: 14px; margin-top: 16px; max-width: 34ch; }
.footer__col h5 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); margin-bottom: 16px; }
.footer__col a { display: block; color: var(--text-1); font-size: 14.5px; padding: 6px 0; transition: color .2s ease; }
.footer__col a:hover { color: var(--teal); }
.footer__bottom { border-top: 1px solid var(--line); padding-top: 26px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
.footer__legal { color: var(--text-2); font-size: 13px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.footer__legal a { color: var(--text-2); }
.footer__legal a:hover { color: var(--text-1); }
.footer__beian { font-family: var(--font-mono); font-size: 12px; color: var(--text-2); }
.footer__disclaimer { color: var(--text-2); font-size: 12.5px; margin-top: 16px; line-height: 1.7; }

/* ---------- Legal pages ---------- */
.legal-hero { padding-block: clamp(48px, 7vw, 90px) 0; }
.legal-hero h1 { font-size: clamp(30px, 5vw, 50px); margin-bottom: 14px; }
.legal-hero p { color: var(--text-2); font-family: var(--font-mono); font-size: 13px; }
.legal-body { max-width: 820px; }
.legal-body h2 { font-size: 24px; margin: 48px 0 14px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal-body h2:first-child { border-top: 0; padding-top: 0; }
.legal-body h3 { font-family: var(--font-body); font-size: 17px; margin: 26px 0 8px; }
.legal-body p, .legal-body li { color: var(--text-1); font-size: 15px; margin-bottom: 12px; line-height: 1.8; }
.legal-body ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.legal-body li { margin-bottom: 8px; }
.legal-body strong { color: var(--text-0); }
.legal-toc { position: sticky; top: 90px; display: grid; gap: 6px; align-content: start; }
.legal-toc a { color: var(--text-2); font-size: 14px; padding: 6px 12px; border-left: 2px solid var(--line); transition: all .2s ease; }
.legal-toc a:hover { color: var(--text-0); border-color: var(--teal); }
.legal-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.legal-note { background: rgba(255,193,120,0.06); border: 1px solid rgba(255,193,120,0.25); border-radius: var(--radius-sm); padding: 16px 18px; color: var(--text-1); font-size: 14px; margin: 20px 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav.open .nav__links { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--bg-2); padding: 20px var(--gutter); gap: 4px; border-bottom: 1px solid var(--line); }
  .nav.open .nav__links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .grid--3, .grid--4 { grid-template-columns: 1fr 1fr; }
  .flagship__layout, .problem__grid, .policy__card { grid-template-columns: 1fr; }
  .process__grid { grid-template-columns: 1fr 1fr; }
  .step__line { display: none; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; flex-direction: row; flex-wrap: wrap; display: flex; margin-bottom: 24px; }
}
@media (max-width: 720px) {
  /* 导航太挤：隐藏顶栏 CTA，保留语言切换与菜单 */
  .nav__right > .btn { display: none; }
  /* 流水线转竖排 */
  .flow { flex-direction: column; align-items: stretch; gap: 0; }
  .flow__stage { flex-direction: row; text-align: left; gap: 16px; padding: 6px 0; }
  .flow__ai { position: static; transform: none; margin-left: auto; align-self: center; }
  .flow__connector { width: 2px; min-width: 2px; height: 22px; flex: none; margin: 0 0 0 28px; align-self: flex-start; }
  .flow__connector::after { left: 0; top: -40%; width: 100%; height: 40%; animation: flowmove-v 2.6s linear infinite; }
  @keyframes flowmove-v { 0%{top:-45%} 100%{top:105%} }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .process__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__brand { grid-column: 1 / -1; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1; justify-content: center; }
}
@media (max-width: 460px) {
  .footer__top { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero h1 .grad-text { background-position: 0 50%; }
  .pipeline::before,
  .flow__node::before,
  .flow__node::after,
  .code-panel::after,
  .cta-band__inner::before { display: none; }
  .flow__stage.is-active .flow__node,
  .feature:hover,
  .card:hover,
  .tier:hover,
  .step:hover::before { transform: none; }
  .flow__connector::after { left: 0; top: 0; width: 100%; height: 100%; opacity: .5; }
  .code-panel__body .ln { opacity: 1; transform: none; transition: none; }
  .code-panel__body .ln.is-lit { transform: none; background: transparent; box-shadow: none; }
  .step__line::after { transform: scaleX(1); opacity: .45; }
}

/* ---------- Focus visibility ---------- */
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* ============================================================
   浅色模式 Light theme
   —— 令牌翻转为主，辅以少量硬编码深色值的针对性覆盖
   —— 代码演示面板刻意保持深色（浅底"终端"观感，语法高亮更清晰）
   ============================================================ */

/* 主题切换按钮（放在 nav__right） */
.theme-toggle {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; flex: none;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text-1);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.theme-toggle:hover { color: var(--text-0); border-color: var(--teal); background: rgba(53,230,197,0.06); }
.theme-toggle__i { width: 18px; height: 18px; }
.theme-toggle__moon { display: none; }

/* 平滑切换：JS 在切换瞬间临时挂上 .theme-anim（reduced-motion 下不挂） */
html.theme-anim,
html.theme-anim *,
html.theme-anim *::before,
html.theme-anim *::after {
  transition: background-color .38s ease, border-color .38s ease, color .38s ease,
              box-shadow .38s ease, fill .38s ease, stroke .38s ease !important;
}

/* ---------- 令牌覆盖 ---------- */
:root[data-theme="light"] {
  color-scheme: light;

  --bg-0: #E9EEF7;          /* 交替区块底（略深于主底） */
  --bg-1: #F7F9FC;          /* 主背景 */
  --bg-2: #FFFFFF;          /* 抬升区块 */
  --surface: #FFFFFF;       /* 卡片 */
  --surface-2: #F1F5FB;     /* 卡片 hover */
  --line: rgba(20, 45, 95, 0.10);
  --line-strong: rgba(20, 45, 95, 0.18);

  --text-0: #0E1A2E;        /* 主文字（深墨） */
  --text-1: #47566F;        /* 次要文字 */
  --text-2: #6B7A94;        /* 弱文字 */

  --teal: #0E9E86;          /* 前景强调用的深碧青（文字/图标/描边） */
  --teal-deep: #0B7E6C;
  --indigo: #4A63E7;        /* 深靛 */
  --indigo-deep: #3346C9;
  --amber: #B7710F;         /* 深琥珀（浅底可读） */

  /* 渐变填充（按钮/徽标）保持明亮，配深色文字在白底上依然醒目——不覆盖 --grad-flow */
  /* 仅加深"渐变文字"，保证白底可读 */
  --grad-text: linear-gradient(92deg, #0A9E86 0%, #4A63E7 58%, #7A5BF0 100%);

  --shadow-glow: 0 0 0 1px rgba(14,158,134,0.22), 0 20px 50px -26px rgba(40,90,180,0.26);
  --shadow-card: 0 18px 48px -30px rgba(20,45,95,0.26);
}

/* 选中态：白底上用深文字 */
:root[data-theme="light"] ::selection { background: rgba(14,158,134,0.20); color: #0E1A2E; }

/* 导航栏毛玻璃底 */
:root[data-theme="light"] .nav { background: rgba(247,249,252,0.75); }
:root[data-theme="light"] .nav.scrolled { background: rgba(247,249,252,0.92); border-bottom-color: var(--line); box-shadow: 0 12px 32px -26px rgba(20,45,95,0.30); }

/* 幽灵按钮：透明白在白底不可见 → 换成墨色微染 */
:root[data-theme="light"] .btn--ghost { background: rgba(20,45,95,0.03); border-color: var(--line-strong); color: var(--text-0); }
:root[data-theme="light"] .btn--ghost:hover { background: rgba(14,158,134,0.08); border-color: var(--teal); }

/* 主题切换按钮 hover 底色 */
:root[data-theme="light"] .theme-toggle:hover { background: rgba(14,158,134,0.08); }
:root[data-theme="light"] .theme-toggle__sun { display: none; }
:root[data-theme="light"] .theme-toggle__moon { display: block; }

/* 各处半透明白底 → 墨色微染 */
:root[data-theme="light"] .hero__tag,
:root[data-theme="light"] .chip { background: rgba(20,45,95,0.03); }
:root[data-theme="light"] .feature:hover { background: rgba(20,45,95,0.03); box-shadow: 0 16px 36px -30px rgba(20,45,95,0.30); }

/* Hero 氛围：浅底上光晕/网格被洗掉 → 补底部染色 + 提高存在感 */
:root[data-theme="light"] .hero__bg {
  background:
    radial-gradient(ellipse 70% 55% at 78% 4%, rgba(18,196,168,0.16), transparent 62%),
    radial-gradient(ellipse 60% 50% at 4% 94%, rgba(74,99,231,0.12), transparent 60%);
}
:root[data-theme="light"] .hero__glow { opacity: 0.55; }
:root[data-theme="light"] .hero__grid { opacity: 0.55; }

/* 流水线面板：深色渐变 → 浅色 */
:root[data-theme="light"] .pipeline { background: linear-gradient(180deg, #FFFFFF, #F1F5FB); }
:root[data-theme="light"] .pipeline::before {
  background: linear-gradient(115deg, transparent 0%, rgba(14,158,134,0.06) 38%, rgba(74,99,231,0.08) 50%, transparent 64%);
}
:root[data-theme="light"] .pipeline::after {
  background:
    radial-gradient(circle at 18% 0%, rgba(14,158,134,0.06), transparent 32%),
    radial-gradient(circle at 85% 100%, rgba(74,99,231,0.06), transparent 34%);
}
:root[data-theme="light"] .flow__node::before { border-color: rgba(14,158,134,0.28); }
:root[data-theme="light"] .flow__node::after { background: radial-gradient(circle, rgba(14,158,134,0.11), transparent 64%); }
:root[data-theme="light"] .flow__stage.is-active .flow__node { box-shadow: var(--shadow-glow); }
/* AI 徽标保持明亮碧青底 + 深字（深碧青会压低对比度） */
:root[data-theme="light"] .flow__ai { background: #12C4A8; color: #05231F; }
/* 连接线流光：荧光青辉光换成深碧青 */
:root[data-theme="light"] .flow__connector::after { box-shadow: 0 0 10px rgba(14,158,134,0.35); }
/* 窗口红黄绿灯：暗色低透明度在白底几乎不可见 */
:root[data-theme="light"] .pipeline__dots i:nth-child(1){ background:#E05563AA; }
:root[data-theme="light"] .pipeline__dots i:nth-child(2){ background:#D18A1FAA; }
:root[data-theme="light"] .pipeline__dots i:nth-child(3){ background:#0E9E86AA; }

/* 统计卡 / 扩展能力卡：深色渐变 → 白底 + 浅靛微染 */
:root[data-theme="light"] .stat,
:root[data-theme="light"] .cap { background: linear-gradient(120deg, #FFFFFF 30%, rgba(74,99,231,0.05)); }
:root[data-theme="light"] .card::before {
  background:
    radial-gradient(circle at 18% 0%, rgba(14,158,134,0.08), transparent 32%),
    linear-gradient(120deg, transparent, rgba(74,99,231,0.06), transparent);
}
:root[data-theme="light"] .card__icon { background: rgba(14,158,134,0.10); }

/* 浅色下白卡与浅灰底明度接近：补常驻投影建立层次（暗色靠明度差，不需要） */
:root[data-theme="light"] .card,
:root[data-theme="light"] .tier,
:root[data-theme="light"] .cap,
:root[data-theme="light"] .stat {
  box-shadow: 0 1px 2px rgba(20,45,95,0.05), 0 14px 36px -26px rgba(20,45,95,0.20);
}
/* hover 阴影：暗色的荧光青辉光在白底不成立 → 换墨蓝投影 */
:root[data-theme="light"] .card:hover { box-shadow: 0 2px 4px rgba(20,45,95,0.06), 0 24px 48px -28px rgba(20,45,95,0.30); }
:root[data-theme="light"] .tier:hover { box-shadow: 0 2px 4px rgba(20,45,95,0.06), 0 26px 54px -30px rgba(20,45,95,0.32); }
:root[data-theme="light"] .card:hover .card__icon { box-shadow: 0 14px 28px -18px rgba(11,126,108,0.55); }
:root[data-theme="light"] .step:hover::before { box-shadow: 0 14px 28px -18px rgba(11,126,108,0.5); }

/* 精选套餐卡：深色第二色标 → 白；显式保住描边辉光（上方常驻投影规则会盖掉它） */
:root[data-theme="light"] .tier--featured { background: linear-gradient(180deg, rgba(14,158,134,0.10), #FFFFFF); box-shadow: var(--shadow-glow), 0 14px 36px -26px rgba(20,45,95,0.20); }
:root[data-theme="light"] .tier--featured:hover { box-shadow: var(--shadow-glow), 0 26px 54px -30px rgba(20,45,95,0.32); }
:root[data-theme="light"] .tier::after {
  background: linear-gradient(120deg, transparent 0%, rgba(14,158,134,0.06) 42%, rgba(74,99,231,0.06) 58%, transparent 100%);
}

/* 法务提示框：白底上加强琥珀可见度 */
:root[data-theme="light"] .legal-note { background: rgba(183,113,15,0.09); border-color: rgba(183,113,15,0.34); color: var(--text-1); }

/* 深渐变填充上的文字翻白（浅色下 --grad-flow 随 --teal/--indigo 令牌自动变深） */
:root[data-theme="light"] .btn--primary { color: #FFFFFF; box-shadow: 0 12px 26px -14px rgba(11,126,108,0.5); }
:root[data-theme="light"] .btn--primary:hover { box-shadow: 0 18px 36px -14px rgba(11,126,108,0.6); }
:root[data-theme="light"] .tier__badge,
:root[data-theme="light"] .step::before { color: #FFFFFF; }

/* 政策卡 / CTA 带：白底会洗掉低透明度染液 → 加浓一档并带上青色描边 */
:root[data-theme="light"] .policy__card { background: linear-gradient(135deg, rgba(14,158,134,0.12), rgba(74,99,231,0.09)); border-color: rgba(14,158,134,0.20); }
:root[data-theme="light"] .cta-band__inner { background: linear-gradient(135deg, rgba(14,158,134,0.14), rgba(74,99,231,0.11)); border-color: rgba(14,158,134,0.22); box-shadow: 0 24px 60px -36px rgba(11,126,108,0.35); }
:root[data-theme="light"] .cta-band__glow { background: radial-gradient(circle at 50% 0%, rgba(14,158,134,0.20), transparent 60%); }
:root[data-theme="light"] .cta-band__inner::before {
  background: linear-gradient(120deg, transparent 10%, rgba(14,158,134,0.10) 42%, rgba(74,99,231,0.10) 56%, transparent 88%);
}
:root[data-theme="light"] .hero__glow--1 { background: radial-gradient(circle, rgba(18,196,168,0.42), transparent 70%); }
:root[data-theme="light"] .hero__glow--2 { background: radial-gradient(circle, rgba(74,99,231,0.34), transparent 70%); }

/* 品牌 Logo 渐变随主题加深（CSS 可覆盖 SVG stop 表现属性） */
:root[data-theme="light"] .brand__mark stop:first-child { stop-color: #0E9E86; }
:root[data-theme="light"] .brand__mark stop:last-child { stop-color: #4A63E7; }

/* 小号青色文字：白底上用更深一档保证可读 */
:root[data-theme="light"] .eyebrow,
:root[data-theme="light"] .tier__name,
:root[data-theme="light"] .feature__no { color: var(--teal-deep); }
:root[data-theme="light"] .legal-hero a[style] { color: var(--teal-deep) !important; }
:root[data-theme="light"] .card h3 span[style] { color: var(--teal-deep) !important; }

/* ---------- 代码演示面板：浅色模式下仍保持深色终端 ---------- */
:root[data-theme="light"] .code-panel { background: #0B1020; border-color: rgba(150,170,210,0.16); box-shadow: var(--shadow-card); }
:root[data-theme="light"] .code-panel__bar { background: #111829; border-bottom-color: rgba(150,170,210,0.16); }
:root[data-theme="light"] .code-panel__file { color: #6B7793; }
:root[data-theme="light"] .code-panel__body { color: #EAF0FF; }
:root[data-theme="light"] .code-panel .c-com { color: #6B7793; }
:root[data-theme="light"] .code-panel .c-key { color: #6D8BFF; }
:root[data-theme="light"] .code-panel .c-fn  { color: #35E6C5; }
:root[data-theme="light"] .code-panel .c-str { color: #FFC178; }
:root[data-theme="light"] .code-panel .c-ai  { color: #35E6C5; background: rgba(53,230,197,0.12); }

/* ---------- 超窄屏：加入主题按钮后的导航防挤压 ---------- */
@media (max-width: 560px) {
  .brand__zh { display: none; }
  .nav__inner { gap: 12px; }
  .nav__right { gap: 10px; }
  .lang-switch a { padding: 6px 9px; }
  .theme-toggle { width: 34px; height: 34px; }
}
