/* ============================================================
   KIP Agent — 站点样式表
   设计语言沿用 qore 模板的暗色技术风（深底 / 细线 / 蓝图网格 / 等宽标签）
   全部手写，不依赖 Webflow 运行时
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@100..900&family=Geist+Mono:wght@100..900&family=Noto+Sans+SC:wght@300..900&display=swap');

:root {
  /* 底色 */
  --bg: #000000;
  --bg-1: #070708;
  --bg-2: #0d0d0f;
  --panel: #101012;
  --panel-2: #16161a;
  --panel-3: #1c1c21;
  --glass: rgba(244, 247, 245, .025);

  /* 线 */
  --line: rgba(244, 247, 245, .09);
  --line-2: rgba(244, 247, 245, .16);
  --line-3: rgba(244, 247, 245, .28);

  /* 文字 */
  --txt: #f4f7f5;
  --txt-2: rgba(244, 247, 245, .66);
  --txt-3: rgba(244, 247, 245, .42);
  --txt-4: rgba(244, 247, 245, .26);

  /* 品牌 */
  --brand: #1b4ef5;
  --brand-2: #5997ff;
  --brand-3: #a9c3ff;
  --brand-glow: rgba(27, 78, 245, .34);
  --brand-tint: rgba(27, 78, 245, .12);

  /* 语义 */
  --ok: #4ade80;
  --warn: #fbbf24;

  /* 尺寸 */
  --r-xs: 8px;
  --r-s: 12px;
  --r-m: 16px;
  --r-l: 24px;
  --r-xl: 32px;
  --r-full: 999px;
  --gut: 24px;
  --maxw: 1240px;
  --nav-h: 72px;
  /* 两级内容栅格：宽档放卡片网格/截图，窄档放居中文字。
     展示面只有这两个宽度，避免出现「一块缩在中间」的参差感。 */
  --w-wide: 1192px;
  --w-narrow: 880px;

  --fast: .18s cubic-bezier(.4, 0, .2, 1);
  --mid: .35s cubic-bezier(.22, .68, .28, 1);
  --slow: .8s cubic-bezier(.16, .84, .24, 1);

  --font: 'Geist', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', 'Cascadia Code', Consolas, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
/* 关键：带 width/height 属性的图片在只设 CSS width 时，高度会沿用属性值 → 必须显式 auto */
img { height: auto; }

/* 网格/弹性子项默认 min-width:auto，含长代码块的项会把轨道撑破 → 统一归零 */
.grid-2 > *, .grid-3 > *, .grid-4 > *, .tab-stage > *, .pipe-wrap > *,
.feat-row > *, .price-grid > *, .flow > *, .core-wrap > *, .quote { min-width: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, p { margin: 0; }

::selection { background: var(--brand); color: #fff; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #24242a; border-radius: 10px; border: 2px solid #000; }
::-webkit-scrollbar-thumb:hover { background: #34343c; }

/* ============================================================
   布局
   ============================================================ */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.container-narrow { max-width: 880px; }

/* 背景层：蓝图网格 + 噪点 */
.bg-layer { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(244, 247, 245, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 247, 245, .045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 10%, transparent 75%);
}
.bg-noise {
  position: absolute; inset: 0; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

main { position: relative; z-index: 1; }

/* ============================================================
   权限管线（核心区块）
   ============================================================ */
.pipe-wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: start; margin-top: 56px; }
.pipe { position: relative; }
.pipe-step {
  position: relative; display: grid; grid-template-columns: 52px 1fr;
  gap: 18px; padding-bottom: 26px;
}
.pipe-step:last-child { padding-bottom: 0; }
.pipe-step .rail { position: relative; display: flex; justify-content: center; }
.pipe-step .rail::after {
  content: ''; position: absolute; top: 40px; bottom: -26px; left: 50%;
  width: 1px; background: linear-gradient(180deg, var(--line-2), var(--line));
}
.pipe-step:last-child .rail::after { display: none; }
.pipe-step .no {
  position: relative; z-index: 1;
  width: 40px; height: 40px; border-radius: 13px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  font-family: var(--mono); font-size: 12px; color: var(--txt-2);
  transition: all var(--mid);
}
.pipe-step.deny .no { border-color: rgba(248, 113, 113, .45); background: rgba(248, 113, 113, .09); color: #f87171; }
.pipe-step.ok .no { border-color: rgba(89, 151, 255, .5); background: var(--brand-tint); color: var(--brand-3); }
.pipe-step:hover .no { border-color: var(--line-3); transform: translateY(-2px); }
.pipe-body { padding-top: 6px; }
.pipe-body b { font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.pipe-body .tagline { margin-left: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: var(--txt-4); text-transform: uppercase; }
.pipe-body p { margin-top: 7px; font-size: 14px; line-height: 1.65; color: var(--txt-2); }
.pipe-body .verdict {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  padding: 3px 9px; border-radius: var(--r-full);
  border: 1px solid var(--line); background: rgba(244, 247, 245, .04);
  font-family: var(--mono); font-size: 10.5px; color: var(--txt-3);
}
.pipe-body .verdict.d { border-color: rgba(248, 113, 113, .34); color: #f0a3a3; }

/* 三层安全模式 */
.modes { display: grid; gap: 12px; }
.mode {
  padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-l);
  background: linear-gradient(180deg, rgba(244, 247, 245, .035), rgba(244, 247, 245, .01));
  transition: border-color var(--mid), transform var(--mid);
}
.mode:hover { border-color: var(--line-2); transform: translateX(4px); }
.mode.a { border-color: rgba(74, 222, 128, .3); }
.mode.b { border-color: rgba(251, 191, 36, .3); }
.mode.c { border-color: rgba(248, 113, 113, .3); }
.mode .h { display: flex; align-items: center; gap: 10px; }
.mode .h code { font-family: var(--mono); font-size: 13px; color: var(--txt); }
.mode .h span { margin-left: auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: var(--txt-4); text-transform: uppercase; }
.mode p { margin-top: 9px; font-size: 13.5px; line-height: 1.65; color: var(--txt-2); }
.mode .lamp { width: 8px; height: 8px; border-radius: 50%; }
.mode.a .lamp { background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .14); }
.mode.b .lamp { background: #fbbf24; box-shadow: 0 0 0 3px rgba(251, 191, 36, .14); }
.mode.c .lamp { background: #f87171; box-shadow: 0 0 0 3px rgba(248, 113, 113, .14); }

/* 终端/配置块 */
.term {
  border: 1px solid var(--line-2); border-radius: var(--r-m);
  background: #070709; overflow: hidden;
}
.term .bar { display: flex; align-items: center; gap: 6px; padding: 11px 15px; border-bottom: 1px solid var(--line); }
.term .bar i { width: 8px; height: 8px; border-radius: 50%; background: #232329; }
.term .bar span { margin-left: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--txt-4); }
.term pre {
  margin: 0; padding: 16px 18px; overflow-x: auto;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.9; color: var(--txt-2);
  tab-size: 2;
}
.term .k { color: var(--brand-3); }
.term .s { color: #8fd694; }
.term .n { color: #e5c07b; }
.term .c { color: var(--txt-4); }
.term .x { color: #f0a3a3; }

/* ============================================================
   文章页（长文阅读）
   展示面只放一句话，细节全部收在这里。
   ============================================================ */
.article-hero { padding: calc(var(--nav-h) + 72px) 0 44px; }
.article-hero .inner { max-width: 760px; margin: 0 auto; text-align: center; }
.article-hero h1 {
  margin-top: 18px;
  font-size: clamp(30px, 4.4vw, 48px); font-weight: 500;
  letter-spacing: -.035em; line-height: 1.12;
}
.article-hero .lede { margin-top: 18px; font-size: 17px; line-height: 1.7; color: var(--txt-2); }
.article-meta {
  margin-top: 22px; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--txt-4);
}
.article-meta .sep { opacity: .5; }

.prose { max-width: 720px; margin: 0 auto; padding-bottom: 24px; }
.prose > * + * { margin-top: 20px; }
.prose h2 {
  margin-top: 60px; padding-top: 30px;
  border-top: 1px solid var(--line);
  font-size: clamp(21px, 2.4vw, 26px); font-weight: 500;
  letter-spacing: -.025em; line-height: 1.25;
}
.prose h3 { margin-top: 38px; font-size: 17.5px; font-weight: 550; letter-spacing: -.015em; }
.prose p { font-size: 16px; line-height: 1.85; color: var(--txt-2); }
.prose strong { color: var(--txt); font-weight: 550; }
.prose a { color: var(--brand-2); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--brand-2) 40%, transparent); }
.prose a:hover { border-bottom-color: var(--brand-2); }
.prose ul, .prose ol { padding-left: 0; display: grid; gap: 12px; }
.prose li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.8; color: var(--txt-2); }
.prose li::before {
  content: ''; position: absolute; left: 4px; top: 13px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--brand-2);
}
.prose ol { counter-reset: n; }
.prose ol li { counter-increment: n; }
.prose ol li::before {
  content: counter(n); left: 0; top: 0; width: auto; height: auto; border-radius: 0;
  background: none; font-family: var(--mono); font-size: 12px; color: var(--txt-4);
}
.prose code {
  font-family: var(--mono); font-size: 13.5px; padding: 2px 6px;
  border-radius: 6px; background: rgba(244, 247, 245, .07); border: 1px solid var(--line);
  color: var(--txt);
}
:root[data-theme='light'] .prose code { background: var(--panel-3); }
.prose blockquote {
  margin: 26px 0; padding: 18px 22px;
  border-left: 2px solid var(--brand-2);
  background: var(--glass); border-radius: 0 var(--r-m) var(--r-m) 0;
}
.prose blockquote p { font-size: 15.5px; }
.prose table { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: 15px; }
.prose th, .prose td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--txt-4); font-weight: 400; }
.prose td:first-child { color: var(--txt); }
.prose td { color: var(--txt-2); line-height: 1.7; }
.prose .callout {
  margin: 30px 0; padding: 20px 24px;
  border: 1px solid var(--line-2); border-radius: var(--r-m); background: var(--glass);
}
.prose .callout .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-3); }
.prose .callout p { margin-top: 8px; font-size: 15px; line-height: 1.75; }
.prose hr { margin: 44px 0; border: 0; border-top: 1px solid var(--line); }

/* 文章列表 */
.article-list { max-width: 780px; margin: 0 auto; display: grid; gap: 2px; }
.article-item {
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: start;
  padding: 26px 4px; border-bottom: 1px solid var(--line);
  transition: padding-left var(--fast);
}
.article-item:hover { padding-left: 10px; }
.article-item h3 { font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.article-item p { margin-top: 8px; font-size: 14.5px; line-height: 1.7; color: var(--txt-3); max-width: 560px; }
.article-item .go { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--txt-4); padding-top: 6px; white-space: nowrap; transition: color var(--fast); }
.article-item:hover .go { color: var(--brand-2); }

@media (max-width: 640px) {
  .article-item { grid-template-columns: 1fr; gap: 10px; }
  .article-item .go { padding-top: 0; }
  .prose h2 { margin-top: 44px; }
}

/* ============================================================
   展示面：只放重点，细节去文章
   ============================================================ */
/* 横向流程条（权限六道关） */
.pipe-strip {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 8px; margin-top: 34px;
}
.pipe-strip .node {
  padding: 9px 15px; white-space: nowrap;
  border: 1px solid var(--line-2); border-radius: var(--r-full);
  background: var(--glass);
  font-size: 14px; color: var(--txt-2);
  transition: all var(--fast);
}
.pipe-strip .node:hover { border-color: var(--line-3); color: var(--txt); }
.pipe-strip .node.last { border-color: rgba(89, 151, 255, .4); color: var(--brand-3); background: var(--brand-tint); }
.pipe-strip .arrow { color: var(--txt-4); font-family: var(--mono); font-size: 12px; }

/* 对照块（无数据 vs 真 0%） */
.versus {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 20px; align-items: stretch;
  margin: 34px 0 0;
}
.versus .cell {
  padding: 32px 24px; text-align: center; display: flex; flex-direction: column; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--r-l);
  background: var(--glass);
}
.versus .cell .big { font-family: var(--mono); font-size: 30px; letter-spacing: -.02em; }
.versus .cell.a .big { color: var(--txt-4); }
.versus .cell.b .big { color: var(--brand-3); }
.versus .cell .cap { margin-top: 8px; font-size: 13.5px; color: var(--txt-3); line-height: 1.55; }
.versus .cell .code {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; color: var(--txt-4); word-break: break-all;
}
.versus .vs { font-family: var(--mono); font-size: 11px; color: var(--txt-4); }

/* 段落末尾的「读全文」 */
.read-more {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 22px;
  font-size: 14.5px; color: var(--brand-2);
  transition: gap var(--fast);
}
.read-more:hover { gap: 12px; }
.read-more svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sect-title.center .read-more { margin-top: 26px; }

/* 只有一句话的段落：标题就是全部 */
.sect-h.quiet { font-size: clamp(26px, 3.2vw, 38px); }

@media (max-width: 640px) {
  .versus { grid-template-columns: 1fr; gap: 12px; }
  .versus .vs { text-align: center; }
  .pipe-strip { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
  .pipe-strip::-webkit-scrollbar { display: none; }
}


/* 安全模式小条（与流程条同一栅格） */
.mode-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.mode-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-m);
  background: var(--glass); font-size: 14px; color: var(--txt-2);
}
.mode-chip .lamp { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.mode-chip.a { border-color: rgba(74, 222, 128, .28); } .mode-chip.a .lamp { background: #4ade80; }
.mode-chip.b { border-color: rgba(251, 191, 36, .28); } .mode-chip.b .lamp { background: #fbbf24; }
.mode-chip.c { border-color: rgba(248, 113, 113, .28); } .mode-chip.c .lamp { background: #f87171; }
.mode-chip b { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--txt-3); }

/* 卡片里的一行补充（比正文小、比标签大） */
.card-note {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; letter-spacing: .02em; color: var(--txt-4);
}
@media (max-width: 720px) { .mode-chips { grid-template-columns: 1fr; } }

/* ============================================================
   通用元件
   ============================================================ */
.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tag {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: var(--r-full);
  background: var(--glass);
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--txt-2);
  backdrop-filter: blur(12px);
}
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(74, 222, 128, .16); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px;
  border-radius: var(--r-full);
  font-size: 15px; font-weight: 500; letter-spacing: -.01em;
  transition: transform var(--fast), background var(--fast), border-color var(--fast), box-shadow var(--fast), color var(--fast);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 12px 40px -12px var(--brand-glow);
}
.btn-primary:hover { background: #2a5cff; transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .14) inset, 0 18px 50px -14px var(--brand-glow); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--txt); background: var(--glass); }
.btn-ghost:hover { border-color: var(--line-3); background: rgba(244, 247, 245, .06); transform: translateY(-2px); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }

/* 章节标题 */
.sect-head { padding: 0 0 8px; }
.sect-number {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 0;
  color: var(--txt-3);
}
.sect-number .line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.sect-band {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 10px 0 0;
  color: var(--txt-2);
}
.sect-band .bar { width: 56px; height: 1px; background: var(--line-2); }
.sect-band .bar.c { width: 22px; background: var(--line-3); }

.sect-title { max-width: var(--w-narrow); }
.sect-title.center { margin: 0 auto; text-align: center; }
h2.sect-h { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.08; font-weight: 500; letter-spacing: -.03em; }
p.sect-sub { margin-top: 18px; font-size: 17px; line-height: 1.65; color: var(--txt-2); max-width: 600px; }
.sect-title.center p.sect-sub { margin-left: auto; margin-right: auto; }

.section { padding: 96px 0; position: relative; }

/* 装饰十字 */
.deco-plus { position: absolute; width: 11px; height: 6px; opacity: .5; }

/* 出场动画 */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--slow), transform .9s var(--slow); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ============================================================
   导航
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  transition: background var(--mid), border-color var(--mid), backdrop-filter var(--mid);
  border-bottom: 1px solid transparent;
}
.nav.solid { background: rgba(6, 6, 7, .72); backdrop-filter: blur(18px) saturate(160%); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 100%; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 4px 16px rgba(120, 110, 220, .28); }
.brand-name { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.brand-name span { color: var(--txt-3); font-weight: 400; }

.nav-menu { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 14px; border-radius: var(--r-full);
  font-size: 14.5px; color: var(--txt-2);
  transition: color var(--fast), background var(--fast);
}
.nav-link:hover, .nav-link.active { color: var(--txt); background: rgba(244, 247, 245, .06); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: var(--r-s); align-items: center; justify-content: center; }
.nav-burger span { position: relative; width: 16px; height: 1.5px; background: var(--txt); display: block; }
.nav-burger span::before, .nav-burger span::after { content: ''; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--txt); }
.nav-burger span::before { top: -5px; }
.nav-burger span::after { top: 5px; }

.nav-drawer {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99;
  display: none; flex-direction: column; gap: 2px;
  padding: 16px var(--gut) 24px;
  background: rgba(6, 6, 7, .97); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-drawer.open { display: flex; }
.nav-drawer a { padding: 14px 4px; font-size: 17px; color: var(--txt-2); border-bottom: 1px solid var(--line); }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding: calc(var(--nav-h) + 92px) 0 0; text-align: center; overflow: hidden; }
.hero-bg { position: absolute; inset: -80px 0 auto 0; height: 900px; z-index: 0; pointer-events: none; }
.hero-bg video, .hero-bg .poster {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 1500px; max-width: none; height: 900px; object-fit: cover;
  opacity: .5;
  mask-image: radial-gradient(ellipse 60% 52% at 50% 34%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 60% 52% at 50% 34%, #000 0%, transparent 72%);
}
.hero-glow {
  position: absolute; left: 50%; top: 120px; transform: translateX(-50%);
  width: 900px; height: 520px;
  background: radial-gradient(ellipse at center, var(--brand-glow) 0%, transparent 66%);
  filter: blur(30px); opacity: .75;
}
.hero-inner { position: relative; z-index: 2; }
.hero h1 {
  margin: 26px auto 0; max-width: var(--w-wide);
  font-size: clamp(38px, 6.4vw, 76px); line-height: 1.06; font-weight: 500; letter-spacing: -.04em;
}
.hero h1 .grad {
  background: linear-gradient(96deg, #fff 18%, var(--brand-3) 52%, var(--brand-2) 88%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  margin: 26px auto 0; max-width: var(--w-narrow);
  font-size: clamp(16px, 1.5vw, 18px); line-height: 1.7; color: var(--txt-2);
}
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--txt-3); }

/* 产品截图 */
.hero-shot { position: relative; margin-top: 72px; }
.hero-shot .glow {
  position: absolute; left: 50%; top: 8%; transform: translateX(-50%);
  width: 76%; height: 70%;
  background: radial-gradient(ellipse at center, var(--brand-glow), transparent 70%);
  filter: blur(70px); opacity: .5; z-index: 0;
}
.window {
  position: relative; z-index: 1;
  border: 1px solid var(--line-2); border-radius: 18px;
  background: #f7f8fc;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 40px 120px -30px rgba(0, 0, 0, .9), 0 0 90px -30px var(--brand-glow);
  overflow: hidden;
}
.window::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}
.window img { width: 100%; }

/* 能力速览条 */
.hero-caps {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: 28px;
}
.cap-chip {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 18px;
  border: 1px solid var(--line); border-radius: var(--r-m);
  background: linear-gradient(180deg, rgba(244, 247, 245, .035), rgba(244, 247, 245, .012));
  backdrop-filter: blur(10px);
  transition: border-color var(--fast), transform var(--fast), background var(--fast);
}
.cap-chip:hover { border-color: var(--line-2); transform: translateY(-3px); background: rgba(244, 247, 245, .06); }
.cap-chip .ico { flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-2); display: grid; place-items: center; background: rgba(244, 247, 245, .04); }
.cap-chip .ico svg { width: 17px; height: 17px; stroke: var(--txt); }
.cap-chip b { display: block; font-size: 14.5px; font-weight: 500; letter-spacing: -.01em; }
.cap-chip p { margin-top: 4px; font-size: 12.5px; line-height: 1.5; color: var(--txt-3); }

/* ============================================================
   滚动徽标带
   ============================================================ */
.marquee { position: relative; overflow: hidden; padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee-head { text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--txt-3); margin-bottom: 26px; }
.marquee-track { display: flex; width: max-content; animation: slide-x 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 64px; padding-right: 64px; }
.stack-item { display: flex; align-items: center; gap: 10px; color: var(--txt-3); font-size: 16px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; filter: grayscale(1); opacity: .72; transition: opacity var(--fast), filter var(--fast); }
.stack-item:hover { opacity: 1; filter: none; color: var(--txt); }
.stack-item .badge { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; border: 1px solid var(--line-2); background: rgba(244, 247, 245, .04); }
@keyframes slide-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   卡片网格
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.card {
  position: relative; overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line); border-radius: var(--r-l);
  background: linear-gradient(180deg, rgba(244, 247, 245, .04), rgba(244, 247, 245, .012));
  transition: border-color var(--mid), transform var(--mid), background var(--mid);
}
.card:hover { border-color: var(--line-2); background: linear-gradient(180deg, rgba(244, 247, 245, .07), rgba(244, 247, 245, .02)); }
.card-h { font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.card-p { margin-top: 10px; font-size: 14.5px; line-height: 1.65; color: var(--txt-2); }
.card-idx { position: absolute; top: 24px; right: 26px; font-family: var(--mono); font-size: 11px; color: var(--txt-4); letter-spacing: .08em; }
.card-ico {
  width: 44px; height: 44px; border-radius: 13px; margin-bottom: 20px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); background: rgba(244, 247, 245, .04);
}
.card-ico svg { width: 20px; height: 20px; stroke: var(--txt); fill: none; stroke-width: 1.6; }

/* ============================================================
   标签页（能力矩阵）
   ============================================================ */
.tabs-wrap { margin-top: 56px; }
.tab-menu { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 32px; }
.tab-btn {
  height: 40px; padding: 0 18px; border-radius: var(--r-full);
  border: 1px solid var(--line); color: var(--txt-2); font-size: 14.5px;
  white-space: nowrap; flex-shrink: 0;
  transition: all var(--fast);
}
.tab-btn:hover { color: var(--txt); border-color: var(--line-2); }
.tab-btn.active { background: var(--txt); color: #08080a; border-color: var(--txt); font-weight: 500; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade-up .55s var(--slow); }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.tab-stage {
  display: grid; grid-template-columns: .88fr 1.12fr; gap: 34px; align-items: center;
  padding: 32px;
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(27, 78, 245, .10), transparent 55%),
    linear-gradient(180deg, rgba(244, 247, 245, .035), rgba(244, 247, 245, .01));
}
.tab-copy h3 { font-size: clamp(23px, 2.4vw, 30px); font-weight: 500; letter-spacing: -.03em; line-height: 1.18; }
.tab-copy p { margin-top: 14px; font-size: 15.5px; line-height: 1.7; color: var(--txt-2); }
.tab-list { margin-top: 24px; display: grid; gap: 10px; }
.tab-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--txt-2); }
.tab-list li::before { content: ''; margin-top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-2); flex-shrink: 0; }

/* ============================================================
   记忆内核（重点区块）
   ============================================================ */
.core-wrap {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center;
}
@keyframes spin { to { transform: rotate(360deg); } }
.core-node .k { font-size: 30px; font-weight: 600; letter-spacing: -.04em; }
.core-node .s { margin-top: 4px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--txt-3); text-transform: uppercase; }
.core-sat .d { width: 5px; height: 5px; border-radius: 50%; background: var(--brand-2); }
.core-stat b { display: block; font-size: 22px; font-weight: 500; letter-spacing: -.03em; }
.core-stat span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--txt-3); }

.core-feats { display: grid; gap: 18px; margin-top: 30px; }
.core-feat { display: flex; gap: 16px; }
.core-feat .n {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); background: var(--brand-tint);
  font-family: var(--mono); font-size: 11px; color: var(--brand-3);
}
.core-feat b { font-size: 15.5px; font-weight: 500; }
.core-feat p { margin-top: 5px; font-size: 14px; line-height: 1.65; color: var(--txt-2); }

/* ============================================================
   工作流
   ============================================================ */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.flow-step .idx { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--brand-3); }
.flow-step p { margin-top: 10px; font-size: 14.5px; line-height: 1.65; color: var(--txt-2); }

/* ============================================================
   定价
   ============================================================ */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; align-items: start; }
.price-card {
  position: relative; padding: 32px;
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(244, 247, 245, .035), rgba(244, 247, 245, .01));
  transition: border-color var(--mid), transform var(--mid);
}
.price-card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.price-card.featured {
  border-color: rgba(89, 151, 255, .42);
  background:
    radial-gradient(110% 80% at 50% 0%, rgba(27, 78, 245, .18), transparent 60%),
    linear-gradient(180deg, rgba(244, 247, 245, .05), rgba(244, 247, 245, .014));
  box-shadow: 0 30px 90px -40px var(--brand-glow);
}
.price-card .plan { font-size: 15px; font-weight: 500; color: var(--txt-2); }
.price-card .amount { margin-top: 18px; display: flex; align-items: baseline; gap: 8px; }
.price-card .amount b { font-size: clamp(34px, 3.6vw, 44px); font-weight: 500; letter-spacing: -.04em; }
.price-card .amount span { font-size: 14px; color: var(--txt-3); }
.price-card .desc { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--txt-2); min-height: 44px; }
.price-card .btn { width: 100%; margin-top: 24px; }
.price-feats { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.price-feats li { display: flex; gap: 10px; font-size: 14px; color: var(--txt-2); }
.price-feats svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 4px; stroke: var(--brand-2); }
.price-badge {
  position: absolute; top: 20px; right: 20px;
  padding: 4px 10px; border-radius: var(--r-full);
  background: var(--brand); color: #fff; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
}
.price-note { margin-top: 26px; text-align: center; font-size: 13px; color: var(--txt-3); }

/* ============================================================
   评价
   ============================================================ */
.quotes { columns: 3; column-gap: 16px; margin-top: 56px; }
.quote p { font-size: 14.5px; line-height: 1.7; color: var(--txt-2); }
.quote .who img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-2); }
.quote .who b { display: block; font-size: 14px; font-weight: 500; }
.quote .who span { display: block; font-size: 12px; color: var(--txt-3); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { margin-top: 48px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: center; gap: 24px;
  padding: 26px 4px; text-align: left;
  font-size: clamp(16px, 1.7vw, 19px); font-weight: 450; letter-spacing: -.02em;
  transition: color var(--fast);
}
.faq-q:hover { color: var(--brand-3); }
.faq-q .idx { font-family: var(--mono); font-size: 11px; color: var(--txt-4); flex-shrink: 0; }
.faq-q .sign { margin-left: auto; position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq-q .sign::before, .faq-q .sign::after { content: ''; position: absolute; background: var(--txt-2); transition: transform var(--mid), opacity var(--mid); }
.faq-q .sign::before { left: 0; top: 7.5px; width: 16px; height: 1px; }
.faq-q .sign::after { top: 0; left: 7.5px; width: 1px; height: 16px; }
.faq-item.open .faq-q .sign::after { transform: scaleY(0); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height var(--mid); }
.faq-a-inner { padding: 0 4px 28px 56px; max-width: 760px; font-size: 15px; line-height: 1.75; color: var(--txt-2); }
.faq-a-inner code { font-family: var(--mono); font-size: 13px; padding: 2px 6px; border-radius: 6px; background: rgba(244, 247, 245, .07); border: 1px solid var(--line); }

/* ============================================================
   CTA
   ============================================================ */
.cta {
  position: relative; overflow: hidden;
  padding: 88px 40px; text-align: center;
  border: 1px solid var(--line-2); border-radius: var(--r-xl);
  background:
    radial-gradient(70% 120% at 50% 110%, rgba(27, 78, 245, .32), transparent 62%),
    linear-gradient(180deg, rgba(244, 247, 245, .05), rgba(244, 247, 245, .008));
}
.cta::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(244, 247, 245, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 247, 245, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 100%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 100%, #000, transparent 72%);
  pointer-events: none;
}
.cta h2 { position: relative; font-size: clamp(30px, 4.4vw, 56px); font-weight: 500; letter-spacing: -.04em; line-height: 1.08; }
.cta p { position: relative; margin: 20px auto 0; max-width: 560px; font-size: 17px; color: var(--txt-2); }
.cta-actions { position: relative; display: flex; justify-content: center; gap: 12px; margin-top: 34px; flex-wrap: wrap; }

/* ============================================================
   页脚
   ============================================================ */
.footer { position: relative; z-index: 1; margin-top: 96px; border-top: 1px solid var(--line); padding: 72px 0 40px; background: var(--bg-1); }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-brand p { margin-top: 16px; max-width: 300px; font-size: 14px; line-height: 1.7; color: var(--txt-3); }
.footer-col h5 { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--txt-4); }
.footer-col ul { margin-top: 18px; display: grid; gap: 11px; }
.footer-col a { font-size: 14.5px; color: var(--txt-2); transition: color var(--fast); }
.footer-col a:hover { color: var(--txt); }
.footer-bottom {
  margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: var(--txt-3);
}
.footer-bottom .socials { display: flex; gap: 8px; }
.footer-bottom .socials a { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: var(--r-s); transition: all var(--fast); }
.footer-bottom .socials a:hover { border-color: var(--line-2); background: rgba(244, 247, 245, .05); }
.footer-bottom .socials svg { width: 15px; height: 15px; fill: var(--txt-2); }

/* ============================================================
   子页面
   ============================================================ */
.page-hero { padding: calc(var(--nav-h) + 84px) 0 56px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; left: 50%; top: -160px; transform: translateX(-50%);
  width: 860px; height: 460px; background: radial-gradient(ellipse at center, var(--brand-glow), transparent 66%);
  filter: blur(50px); opacity: .55; pointer-events: none;
}
.page-hero .inner { position: relative; text-align: center; }
.page-hero h1 { margin: 22px auto 0; max-width: 20em; font-size: clamp(32px, 5vw, 58px); font-weight: 500; letter-spacing: -.04em; line-height: 1.1; }
.page-hero p { margin: 20px auto 0; max-width: 600px; font-size: 17px; color: var(--txt-2); }

/* 对比表 */
.cmp-table { width: 100%; border-collapse: collapse; margin-top: 40px; font-size: 14.5px; }
.cmp-table th, .cmp-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; }
.cmp-table thead th { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--txt-3); font-weight: 400; }
.cmp-table tbody tr:hover { background: rgba(244, 247, 245, .03); }
.cmp-table td:first-child { color: var(--txt); font-weight: 450; }
.cmp-table td { color: var(--txt-2); }
.cmp-table .yes { color: var(--ok); }
.cmp-table .no { color: var(--txt-4); }
.cmp-scroll { overflow-x: auto; }

/* 功能长列表 */
.feat-row { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: center; padding: 64px 0; border-bottom: 1px solid var(--line); }
.feat-row:last-child { border-bottom: 0; }
.feat-row.flip .feat-media { order: -1; }
.feat-row h3 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 500; letter-spacing: -.03em; line-height: 1.15; }
.feat-row p { margin-top: 16px; font-size: 15.5px; line-height: 1.75; color: var(--txt-2); }
.feat-row ul { margin-top: 22px; display: grid; gap: 11px; }
.feat-row ul li { display: flex; gap: 11px; font-size: 14.5px; color: var(--txt-2); }
.feat-row ul li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 4px; stroke: var(--brand-2); }
.feat-media { border: 1px solid var(--line-2); border-radius: var(--r-l); overflow: hidden; background: #f7f8fc; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .8); }
.feat-media img { width: 100%; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1080px) {
  .nav-menu { display: none; }
  .nav-burger { display: flex; }
  .hero-caps { grid-template-columns: repeat(2, 1fr); }
  .tab-stage { grid-template-columns: 1fr; gap: 28px; }
  .core-wrap { grid-template-columns: 1fr; gap: 40px; }
  .pipe-wrap { grid-template-columns: 1fr; gap: 36px; }
  .price-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .quotes { columns: 2; }
  .feat-row { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; }
  .feat-row.flip .feat-media { order: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  :root { --gut: 20px; }
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-caps { grid-template-columns: 1fr; }
  .core-stats { grid-template-columns: 1fr; }
  .quotes { columns: 1; }
  .cta { padding: 56px 22px; }
  .window { border-radius: 12px; }
  .hero-shot { margin-top: 48px; }
  .footer-top { grid-template-columns: 1fr; }
  .core-sat { display: none; }
  .faq-a-inner { padding-left: 4px; }
  .tab-menu { width: 100%; margin: 0 0 28px; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; position: static; }
  .tab-menu::-webkit-scrollbar { display: none; }
  /* 中文标题在窄屏按字断行，适当缩小避免出现单字落行 */
  .hero h1 { font-size: clamp(30px, 8.6vw, 46px); }
  .page-hero h1 { font-size: clamp(27px, 7.6vw, 40px); }
  h2.sect-h { font-size: clamp(25px, 6.6vw, 34px); }
  .nav-right { gap: 8px; }
  .tab-stage { padding: 22px; }
}

@media (max-width: 560px) {
  .nav-right .btn-ghost { display: none; }
  .brand-name { font-size: 16px; }
}

/* ============================================================
   主题切换：深色（默认） / 浅色
   浅色不是把颜色反过来，而是重新给一套对比度：深底上的半透明白
   在白底上等于没有，所以卡片要改用「白底 + 极浅阴影」来分层。
   ============================================================ */
.theme-toggle {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 10px; border: 1px solid var(--line-2);
  display: grid; place-items: center;
  color: var(--txt-2);
  transition: color var(--fast), border-color var(--fast), background var(--fast);
}
.theme-toggle:hover { color: var(--txt); border-color: var(--line-3); background: rgba(244, 247, 245, .07); }
.theme-toggle svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-sun { display: block; }
.theme-toggle .i-moon { display: none; }
:root[data-theme='light'] .theme-toggle:hover { background: rgba(14, 17, 22, .05); }
:root[data-theme='light'] .theme-toggle .i-sun { display: none; }
:root[data-theme='light'] .theme-toggle .i-moon { display: block; }

:root[data-theme='light'] {
  --bg: #fbfbfc;
  --bg-1: #f5f6f8;
  --bg-2: #ffffff;
  --panel: #ffffff;
  --panel-2: #fafafb;
  --panel-3: #f1f2f5;
  --glass: rgba(14, 17, 22, .018);

  --line: rgba(14, 17, 22, .085);
  --line-2: rgba(14, 17, 22, .135);
  --line-3: rgba(14, 17, 22, .26);

  --txt: #0e1116;
  --txt-2: rgba(14, 17, 22, .66);
  --txt-3: rgba(14, 17, 22, .47);
  --txt-4: rgba(14, 17, 22, .3);

  --brand: #1b4ef5;
  --brand-2: #1b47d6;
  --brand-3: #2f4fbe;
  --brand-glow: rgba(27, 78, 245, .2);
  --brand-tint: rgba(27, 78, 245, .08);
}

/* —— 背景层 —— */
:root[data-theme='light'] .bg-grid {
  background-image:
    linear-gradient(to right, rgba(14, 17, 22, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 17, 22, .05) 1px, transparent 1px);
}
:root[data-theme='light'] .bg-noise { opacity: .018; }

/* —— 导航 —— */
:root[data-theme='light'] .nav.solid { background: rgba(251, 251, 252, .78); }
:root[data-theme='light'] .nav-drawer { background: rgba(251, 251, 252, .98); }
:root[data-theme='light'] .nav-link:hover,
:root[data-theme='light'] .nav-link.active { background: rgba(14, 17, 22, .055); }
:root[data-theme='light'] .brand-mark { box-shadow: 0 4px 16px rgba(120, 110, 200, .22); }

/* —— 通用元件 —— */
:root[data-theme='light'] .tag { background: rgba(255, 255, 255, .8); }
:root[data-theme='light'] .btn-ghost { background: #fff; box-shadow: 0 1px 2px rgba(14, 17, 22, .05); }
:root[data-theme='light'] .btn-ghost:hover { background: #fff; box-shadow: 0 6px 20px -8px rgba(14, 17, 22, .22); }
:root[data-theme='light'] .btn-primary { box-shadow: 0 0 0 1px rgba(14, 17, 22, .04) inset, 0 10px 30px -12px var(--brand-glow); }
:root[data-theme='light'] .hero h1 .grad {
  background: linear-gradient(96deg, #0e1116 12%, #2f4fbe 58%, #1b47d6 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* —— 卡片：浅色下改用「白底 + 极浅阴影」分层，而不是半透明白 —— */
:root[data-theme='light'] .card,
:root[data-theme='light'] .price-card,
:root[data-theme='light'] .mode,
:root[data-theme='light'] .flow-step,
:root[data-theme='light'] .cap-chip,
:root[data-theme='light'] .steprow {
  background: #fff;
  box-shadow: 0 1px 2px rgba(14, 17, 22, .04), 0 10px 28px -22px rgba(14, 17, 22, .35);
}
:root[data-theme='light'] .card:hover,
:root[data-theme='light'] .price-card:hover,
:root[data-theme='light'] .flow-step:hover { box-shadow: 0 1px 2px rgba(14, 17, 22, .05), 0 18px 40px -22px rgba(14, 17, 22, .4); }
:root[data-theme='light'] .cap-chip:hover { background: #fff; }
:root[data-theme='light'] .card-ico,
:root[data-theme='light'] .cap-chip .ico,
:root[data-theme='light'] .flow-step .shape { background: var(--panel-3); }
:root[data-theme='light'] .price-card.featured {
  background: linear-gradient(180deg, #fff 0%, #f6f8ff 100%);
  box-shadow: 0 1px 2px rgba(14, 17, 22, .05), 0 26px 60px -30px rgba(27, 78, 245, .5);
}
:root[data-theme='light'] .tab-stage,
:root[data-theme='light'] .core-visual {
  background: radial-gradient(120% 100% at 0% 0%, rgba(27, 78, 245, .07), transparent 55%), #fff;
  box-shadow: 0 1px 2px rgba(14, 17, 22, .04), 0 12px 34px -24px rgba(14, 17, 22, .35);
}

/* —— Hero：浅色下把黑洞视频压成一层极淡的中性纹理 —— */
:root[data-theme='light'] .hero-bg video,
:root[data-theme='light'] .hero-bg .poster { opacity: .07; filter: grayscale(1) contrast(1.2); mix-blend-mode: multiply; }
:root[data-theme='light'] .hero-glow { opacity: .5; }
:root[data-theme='light'] .hero-shot .glow { opacity: .3; filter: blur(60px); }

/* —— 产品截图框：浅底上要靠边框和阴影分层，不能只靠亮度差 —— */
:root[data-theme='light'] .window { background: #fff; border-color: rgba(14, 17, 22, .1); box-shadow: 0 1px 2px rgba(14, 17, 22, .06), 0 34px 70px -34px rgba(14, 17, 22, .4); }
:root[data-theme='light'] .window::after { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9); }
:root[data-theme='light'] .feat-media { border-color: rgba(14, 17, 22, .1); box-shadow: 0 1px 2px rgba(14, 17, 22, .05), 0 26px 60px -34px rgba(14, 17, 22, .4); }

/* —— 管线 —— */
:root[data-theme='light'] .pipe-step .no { background: var(--panel-2); }
:root[data-theme='light'] .pipe-step.deny .no { background: rgba(220, 38, 38, .06); }
:root[data-theme='light'] .pipe-step.ok .no { background: var(--brand-tint); }
:root[data-theme='light'] .pipe-body .verdict { background: var(--panel-3); }
:root[data-theme='light'] .pipe-step .rail::after { background: linear-gradient(180deg, var(--line-2), var(--line)); }

/* —— 代码块保持深色（浅底上的终端本来就该是深色，与 GitHub / Vercel 一致） —— */
:root[data-theme='light'] .term { border-color: rgba(14, 17, 22, .12); }
:root[data-theme='light'] .term .bar { border-bottom-color: rgba(244, 247, 245, .1); }
:root[data-theme='light'] .term .bar i { background: #2c2c33; }
:root[data-theme='light'] .term .k { color: #8fb4ff; }
:root[data-theme='light'] .term .s { color: #7fd68f; }
:root[data-theme='light'] .term .n { color: #e8c07d; }

/* —— 表格与状态 —— */
:root[data-theme='light'] .cmp-table .yes { color: #0f8a4d; }
:root[data-theme='light'] .cmp-table tbody tr:hover { background: rgba(14, 17, 22, .028); }
:root[data-theme='light'] .faq-q:hover { color: var(--brand-2); }
:root[data-theme='light'] .faq-a-inner code { background: var(--panel-3); }
:root[data-theme='light'] .core-feat .n { background: var(--brand-tint); color: var(--brand-2); }
:root[data-theme='light'] .faq-item .faq-q .sign::before,
:root[data-theme='light'] .faq-item .faq-q .sign::after { background: var(--txt-2); }

/* —— CTA 与页脚 —— */
:root[data-theme='light'] .cta {
  background: radial-gradient(70% 120% at 50% 110%, rgba(27, 78, 245, .16), transparent 62%), linear-gradient(180deg, #fff, #f7f8fc);
  box-shadow: 0 1px 2px rgba(14, 17, 22, .04), 0 30px 70px -40px rgba(14, 17, 22, .4);
}
:root[data-theme='light'] .cta::before {
  background-image:
    linear-gradient(to right, rgba(14, 17, 22, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 17, 22, .05) 1px, transparent 1px);
}
:root[data-theme='light'] .footer { background: var(--bg-1); }
:root[data-theme='light'] .footer-bottom .socials a:hover { background: rgba(14, 17, 22, .05); }
:root[data-theme='light'] .marquee { background: rgba(14, 17, 22, .012); }
:root[data-theme='light'] .stack-item { filter: grayscale(1); }

/* —— 滚动条 —— */
:root[data-theme='light'] ::-webkit-scrollbar-track { background: #f0f1f4; }
:root[data-theme='light'] ::-webkit-scrollbar-thumb { background: #d3d6de; border-color: #f0f1f4; }
:root[data-theme='light'] ::-webkit-scrollbar-thumb:hover { background: #bfc3cd; }

/* —— 页面级装饰 —— */
:root[data-theme='light'] .page-hero::before { opacity: .4; }
:root[data-theme='light'] .dl-card {
  background: radial-gradient(110% 90% at 0% 0%, rgba(27, 78, 245, .1), transparent 60%), linear-gradient(180deg, #fff, #f8f9fd);
  box-shadow: 0 1px 2px rgba(14, 17, 22, .05), 0 30px 70px -40px rgba(27, 78, 245, .45);
}
:root[data-theme='light'] .dl-fact { background: var(--panel-2); }
:root[data-theme='light'] .mode.a { border-color: rgba(15, 138, 77, .28); }
:root[data-theme='light'] .mode.b { border-color: rgba(180, 120, 10, .28); }
:root[data-theme='light'] .mode.c { border-color: rgba(200, 60, 60, .28); }

/* ============================================================
   玻璃与流光
   —— 参数来自对标站实测（Linear / Stripe / Apple / Attio / Resend / Raycast / Framer）
   规律：① blur 主流值只有 4–15px，20px+ 只用于大面积遮罩；
        ② 每个玻璃层都必须配半透明底色，纯 transparent 在深底上看不出效果；
        ③ 玻璃一定要有 1px 亮边框把边界「切」出来；
        ④ saturate() 几乎必配，否则透过彩色内容时会发灰；
        ⑤ 只用在真正「浮在内容之上」的元素——Vercel 全站 0 个 backdrop-filter。
   ============================================================ */

/* 流光描边：@property 驱动 conic-gradient 旋转，用双层遮罩挖出 1px 边 */
@property --sweep-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.sweep { position: relative; isolation: isolate; }
.sweep::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--sweep-angle),
    transparent 0deg,
    rgba(89, 151, 255, .05) 42deg,
    #5997ff 78deg,
    rgba(155, 200, 255, .95) 90deg,
    #5997ff 102deg,
    rgba(89, 151, 255, .05) 138deg,
    transparent 180deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: sweep-run 7s linear infinite;
  pointer-events: none;
  z-index: 2;
}
@keyframes sweep-run {
  to { --sweep-angle: 360deg; }
}

/* 不支持 @property 的浏览器：退化成一条静态渐变边，而不是没有边框 */
@supports not (background: conic-gradient(from 0deg, #000, #000)) {
  .sweep::before { display: none; }
  .sweep { border-color: rgba(89, 151, 255, .3) !important; }
}

/* —— 玻璃配方：深色 —— */
.glass {
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .085);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
}
/* —— 玻璃配方：浅色（浅底上要更实、更白，否则等于没有） —— */
:root[data-theme='light'] .glass {
  background: rgba(255, 255, 255, .58);
  border-color: rgba(14, 17, 22, .07);
  box-shadow: 0 8px 32px -16px rgba(14, 17, 22, .3);
}

/* 导航：滚动后从全透明玻璃过渡到更实的玻璃 */
.nav.solid {
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}

/* 二级导航（能力矩阵的胶囊组）——唯一一处会吸顶的玻璃 */
.tab-menu {
  position: sticky;
  top: calc(var(--nav-h) + 12px);
  z-index: 20;
  width: fit-content;
  margin: 0 auto 32px;
  padding: 6px;
  border-radius: var(--r-full);
  /* 上一轮只加了圆角没加底色，吸顶时按钮会压在内容上；这里补上 */
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .085);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
}
:root[data-theme='light'] .tab-menu {
  background: rgba(255, 255, 255, .62);
  border-color: rgba(14, 17, 22, .07);
  box-shadow: 0 8px 32px -16px rgba(14, 17, 22, .3);
}
/* 移动端必须放在这条规则之后：同特异度下靠后的规则会覆盖前面的 @media，
   而响应式段在文件里位置更早，不加这条会让 fit-content 赢掉 width:100%。 */
@media (max-width: 720px) {
  .tab-menu { width: 100%; margin: 0 0 28px; }
}
.tab-menu .tab-btn { position: relative; z-index: 1; }
.tab-menu .tab-btn.active {
  background: rgba(255, 255, 255, .96);
  color: #08080a;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}
:root[data-theme='light'] .tab-menu .tab-btn.active { background: #14161a; color: #fff; }
:root[data-theme='light'] .tab-btn:hover:not(.active) { background: rgba(14, 17, 22, .05); }

/* 小药丸玻璃 */
.tag,
.pipe-body .verdict {
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  backdrop-filter: blur(12px) saturate(180%);
}
.pipe-body .verdict { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .08); }
.pipe-body .verdict.d { background: rgba(248, 113, 113, .09); border-color: rgba(248, 113, 113, .26); }
:root[data-theme='light'] .pipe-body .verdict { background: rgba(14, 17, 22, .04); }
:root[data-theme='light'] .pipe-body .verdict.d { background: rgba(220, 38, 38, .06); }

/* CTA：玻璃罩 + 全站唯一一处流光描边（页面末尾收束，焦点单一） */
.cta {
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
}
/* .glass 的背景会盖掉 .cta 自己的径向渐变，这里按主题各还原一次 */
.cta.glass {
  background:
    radial-gradient(70% 120% at 50% 110%, rgba(27, 78, 245, .34), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012)),
    rgba(255, 255, 255, .035);
}
:root[data-theme='light'] .cta { border-color: rgba(14, 17, 22, .09); }
:root[data-theme='light'] .cta.glass {
  background:
    radial-gradient(70% 120% at 50% 110%, rgba(27, 78, 245, .17), transparent 62%),
    linear-gradient(180deg, #fff, #f7f8fc);
}
:root[data-theme='light'] .cta.sweep::before {
  background: conic-gradient(
    from var(--sweep-angle),
    transparent 0deg,
    rgba(27, 78, 245, .04) 42deg,
    #1b4ef5 78deg,
    rgba(91, 133, 250, .9) 90deg,
    #1b4ef5 102deg,
    rgba(27, 78, 245, .04) 138deg,
    transparent 180deg
  );
}

/* 技术栈滚动带：两侧做玻璃罩淡出，暗示「还有内容」 */
.marquee {
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

/* 动效降级：用户说「减少动态」时全部停下，但保留静态外观 */
@media (prefers-reduced-motion: reduce) {
  .sweep::before { animation: none; --sweep-angle: 90deg; }
  .marquee-track { animation: none; }
}

/* 打印始终用浅色 */
@media print {
  .nav, .nav-drawer, .bg-layer, .hero-bg, .theme-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .price-card, .mode { box-shadow: none; background: #fff; border-color: #ccc; }
}
