/* ==========================================================================
   GEEKHONER · 全站设计系统
   明亮科技风 / 冷灰白底 / 蓝紫青渐变 / 卡片微阴影
   （🔴 2026-10-09 由「深色科技风」整体改造为明亮风；
    代码块与终端窗口有意保留深色，见 §2b 深色隔离区）
   零依赖：纯手写 CSS，不依赖任何 CDN，离线双击即可正常显示
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd, dt, table, th, td {
  margin: 0;
  padding: 0;
}
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 2. Design Tokens ---------- */
:root {
  /* 🔴 2026-10-09 明亮主题改造：以下取值为「冷灰白底 + 深墨字」体系。
     原有的浅紫系（#a9bcff / #b6c5ff）与浅绿系（#7ee7bd）是给深底设计的，
     放在白底上对比度不足会发灰，故统一压深；品牌渐变主色保持不变。 */
  --bg-0: #f4f6fb;
  --bg-1: #ffffff;
  --bg-2: #eef1f8;
  --surface: #ffffff;
  --surface-2: #f4f6fb;
  --surface-3: #eaeef7;
  --line: #e4e8f0;
  --line-2: #d3d9e6;

  --txt: #0e1422;
  --txt-2: #4a5468;
  /* 弱化文字：原 #7b879c 在亮底上仅 3.36:1（未达 WCAG AA 4.5:1），
     调深至 #667183 → 页底 4.56 / 卡片 4.94 / 表头 4.68，全部达标。 */
  --txt-3: #667183;

  --brand: #4f6bff;
  --brand-2: #7c3aed;
  --accent: #0891b2;
  --ok: #059669;
  --warn: #b45309;
  --danger: #dc2626;

  --grad: linear-gradient(118deg, #4f6bff 0%, #7c3aed 52%, #06b6d4 100%);
  --grad-soft: linear-gradient(140deg, rgba(79, 107, 255, 0.12), rgba(124, 58, 237, 0.08) 55%, rgba(6, 182, 212, 0.08));
  --grad-text: linear-gradient(100deg, #4f46e5 0%, #7c3aed 48%, #0891b2 100%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px -4px rgba(16, 24, 40, 0.12);
  --shadow: 0 14px 34px -16px rgba(16, 24, 40, 0.20);
  --shadow-brand: 0 14px 32px -14px rgba(79, 107, 255, 0.45);

  --maxw: 1200px;
  --nav-h: 68px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "HarmonyOS Sans SC",
          "Microsoft YaHei", "Hiragino Sans GB", Inter, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---------- 2b. 深色隔离区：代码块 / 终端窗口 ----------
   全站改亮色后，代码块与终端窗口【有意保留深色】——
   深底语法高亮是开发者更熟悉、也更易读的呈现方式（也是品牌视觉资产）。
   做法：在这两类组件的子树内把设计令牌重新钉回深色值，
   这样组件内部沿用 var(--line) / var(--txt-3) 等写法即可自动维持原外观，
   无需逐个改组件样式。.tk-* 语法高亮色本来就是固定色值，不受令牌影响。 */
.terminal,
.code-block {
  --bg-0: #05070e;
  --bg-1: #070b16;
  --bg-2: #0b1020;
  --surface: rgba(255, 255, 255, 0.032);
  --surface-2: rgba(255, 255, 255, 0.055);
  --surface-3: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --txt: #e9edf7;
  --txt-2: #a8b4c9;
  /* 深色隔离区内同步提亮弱化文字（原 #64708a 在深底上 4.06:1，偏低） */
  --txt-3: #97a3b8;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --shadow: 0 24px 60px -26px rgba(16, 24, 40, 0.45);
}

/* ---------- 3. Base ---------- */
body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--txt);
  line-height: 1.65;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 全站背景光晕层 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(79, 107, 255, 0.14), transparent 62%),
    radial-gradient(760px 480px at 88% 4%, rgba(124, 58, 237, 0.11), transparent 60%),
    radial-gradient(900px 700px at 50% 108%, rgba(6, 182, 212, 0.10), transparent 64%),
    var(--bg-0);
  pointer-events: none;
}

::selection { background: rgba(79, 107, 255, 0.22); color: #0e1422; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #eef1f8; }
::-webkit-scrollbar-thumb {
  background: #c9d2e2;
  border-radius: 20px;
  border: 2px solid #eef1f8;
}
::-webkit-scrollbar-thumb:hover { background: #aeb9cd; }

h1, h2, h3, h4 { line-height: 1.22; letter-spacing: -0.02em; font-weight: 650; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { color: var(--txt-2); }

code, pre, .mono { font-family: var(--mono); font-variant-ligatures: none; }

/* ---------- 4. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 880px; }

.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-tight { padding: clamp(44px, 6vw, 76px) 0; }
.section-divider { border-top: 1px solid var(--line); }

.stack-sm > * + * { margin-top: 10px; }
.stack > * + * { margin-top: 18px; }
.stack-lg > * + * { margin-top: 32px; }

.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* 通用网格 */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-auto-sm { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-6 { gap: 6px; }
.gap-10 { gap: 10px; }
.gap-14 { gap: 14px; }
.gap-20 { gap: 20px; }
.gap-32 { gap: 32px; }

/* ---------- 5. Typography Helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4f46e5;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--grad);
}

.lead { font-size: clamp(1rem, 1.6vw, 1.14rem); color: var(--txt-2); line-height: 1.8; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.78rem; }
.text-muted { color: var(--txt-3); }
.text-2 { color: var(--txt-2); }
.text-center { text-align: center; }
.text-brand { color: #3b5bdb; }
.text-ok { color: var(--ok); }
.text-warn { color: var(--warn); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

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

/* ---------- 6. Badge / Chip ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--txt-2);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.badge-brand {
  border-color: rgba(79, 107, 255, 0.34);
  background: rgba(79, 107, 255, 0.10);
  color: #3b5bdb;
}
.badge-ok {
  border-color: rgba(5, 150, 105, 0.34);
  background: rgba(5, 150, 105, 0.10);
  color: #047857;
}
.badge-warn {
  border-color: rgba(180, 83, 9, 0.32);
  background: rgba(217, 119, 6, 0.10);
  color: #b45309;
}
.badge-violet {
  border-color: rgba(109, 40, 217, 0.32);
  background: rgba(124, 58, 237, 0.10);
  color: #6d28d9;
}

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.20);
  flex: none;
}
.dot-pulse { animation: dotPulse 2s ease-in-out infinite; }
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.20); }
  50% { box-shadow: 0 0 0 7px rgba(5, 150, 105, 0.06); }
}

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.24s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn:active { transform: translateY(1px) scale(0.985); }

.btn-primary {
  background: var(--grad);
  /* 亮色主题下主按钮仍是渐变底，深色文字会显脏 → 改白字 */
  color: #ffffff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 42px -18px rgba(79, 107, 255, 0.7); }

.btn-ghost {
  border-color: var(--line-2);
  background: #ffffff;
  color: var(--txt);
}
.btn-ghost:hover { background: #f4f6fb; border-color: #b9c3d6; transform: translateY(-2px); }

.btn-quiet { color: var(--txt-2); padding: 11px 16px; }
.btn-quiet:hover { color: var(--txt); }

.btn-sm { padding: 8px 16px; font-size: 0.82rem; }
.btn-lg { padding: 14px 30px; font-size: 0.97rem; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.center { justify-content: center; }

/* ---------- 8. Card / Glass ---------- */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 26px;
  /* 亮色主题：深色版靠玻璃拟态的半透明底区分层级，白底上改用极淡阴影 */
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 10px 26px -16px rgba(16, 24, 40, 0.14);
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
  overflow: hidden;
}
.card-lift:hover {
  transform: translateY(-5px);
  border-color: rgba(79, 107, 255, 0.36);
  background: var(--surface-2);
  box-shadow: var(--shadow);
}
.card-pad-lg { padding: 34px; }
.card-flat { background: transparent; }
.card-grad {
  background: var(--grad-soft);
  border-color: #dfe5f1;
}
.card-solid { background: var(--bg-2); }

/* 顶部渐变高光条 */
.card-edge::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 107, 255, 0.7) 32%, rgba(6, 182, 212, 0.6) 68%, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card-edge:hover::before { opacity: 1; }

/* 图标容器 */
.icon-box {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  border: 1px solid #dfe5f1;
  color: #3b5bdb;
  flex: none;
}
.icon-box svg { width: 22px; height: 22px; }
.icon-box-sm { width: 36px; height: 36px; border-radius: 10px; }
.icon-box-sm svg { width: 18px; height: 18px; }

/* ---------- 8b. 控制台入口卡（console.html 双站点并列入口） ----------
   两张严格等宽的卡片并列：左 = 人民币站（中国站 CNY），右 = 美金站（全球站 USD）。
   ⚠️ 网格子项必须 min-width:0，否则窄屏整页横向滚动（见项目铁律 5）。
   ⚠️ 卡内用 flex 纵向撑满 + .portal-actions 上的 margin-top:auto 收尾，
      使左右两卡在文案/条目长度不同时，按钮行依然上下严格对齐。 */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}
.portal-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px;
}
.portal-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.portal-head .icon-box { flex: none; }
.portal-head-txt { flex: 1 1 132px; min-width: 0; }
.portal-name { font-size: 1.13rem; font-weight: 700; letter-spacing: -0.01em; }
.portal-sub { font-size: 0.78rem; color: var(--txt-3); margin-top: 3px; }

/* 结算币种徽标 */
.portal-cur {
  margin-left: auto;
  flex: none;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--txt-2);
  white-space: nowrap;
}
.portal-cur.is-cny {
  color: #b45309;
  border-color: rgba(180, 83, 9, 0.36);
  background: rgba(217, 119, 6, 0.10);
}
.portal-cur.is-usd {
  color: #047857;
  border-color: rgba(5, 150, 105, 0.36);
  background: rgba(5, 150, 105, 0.10);
}

.portal-desc {
  font-size: 0.9rem;
  color: var(--txt-2);
  line-height: 1.78;
  margin-top: 18px;
}

/* 规格行：区域 / 结算 / 端点 */
.portal-specs {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #f8fafc;
}
.portal-spec {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
}
.portal-spec:first-child { border-top: 0; }
.portal-spec dt { color: var(--txt-3); }
.portal-spec dd { margin: 0; color: var(--txt); min-width: 0; }
.portal-spec dd code {
  font-family: var(--mono);
  font-size: 0.79rem;
  color: #3b5bdb;
  word-break: break-all;
}

.portal-feats { display: grid; gap: 10px; margin-top: 20px; }
.portal-feats .check-item { font-size: 0.86rem; }

/* 按钮组沉到卡片底部 —— 保证两卡按钮行严格对齐。
   两卡结构完全一致（3 规格 + 3 特性 + 2 按钮），故删除徽标后按钮行自然齐平。 */
.portal-actions {
  margin-top: auto;
  padding-top: 24px;
  display: grid;
  gap: 10px;
}
.portal-note { font-size: 0.78rem; color: var(--txt-3); margin-top: 14px; }

/* 「查看完整控制台界面」横条：桌面左右排布，窄屏上下堆叠 */
.portal-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.portal-more .btn { flex: none; }
.portal-more-txt { min-width: 0; }

@media (max-width: 1080px) {
  .portal-card { padding: 24px; }
}
@media (max-width: 860px) {
  .portal-grid { grid-template-columns: 1fr; }
  .portal-spec { grid-template-columns: 76px minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .portal-card { padding: 22px; }
  /* 窄屏规格行改为上下排布，长端点不挤 */
  .portal-spec { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .portal-spec dt { font-size: 0.76rem; }
  .portal-cur { margin-left: 0; }
  .portal-actions { padding-top: 20px; }
}

/* ---------- 9. Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.is-stuck {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--line);
}
.nav-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--grad);
  box-shadow: 0 8px 22px -8px rgba(79, 107, 255, 0.85);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: -0.03em;
  flex: none;
}
/* 图片 logo：透明 PNG 直接铺满方块，去掉渐变底与阴影 */
.brand-mark:has(img) {
  background: none;
  box-shadow: none;
  border-radius: 0;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
/* 加载失败回退为文字角标时恢复渐变底 */
.brand-mark.is-fallback { background: var(--grad); box-shadow: 0 8px 22px -8px rgba(79, 107, 255, 0.85); }
.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-name { font-weight: 700; font-size: 1.02rem; letter-spacing: -0.02em; line-height: 1.15; }
.brand-sub {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--txt-3);
  text-transform: uppercase;
  line-height: 1;
}

.nav-links { display: flex; align-items: center; gap: 3px; margin-left: 6px; }
.nav-link {
  padding: 8px 11px;
  border-radius: 9px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--txt-2);
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav-link:hover { color: var(--txt); background: var(--surface-2); }
.nav-link.is-active { color: var(--txt); background: var(--surface-3); }
/* 外链导航项（画布 / 视频工作台）：小箭头提示「新窗口打开站外应用」 */
.nav-ext { display: inline-flex; vertical-align: -1px; margin-left: 3px; opacity: 0.55; }
.nav-link:hover .nav-ext { opacity: 0.85; }

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* ---------- 9b. 语言切换器 ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--txt-2);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.lang-switch:hover { color: var(--txt); background: var(--surface-2); }
.lang-switch svg { flex: none; opacity: 0.8; }
.lang-switch-text { min-width: 1.5em; text-align: center; }
.nav-actions .lang-switch { margin-right: 2px; }

/* 移动端抽屉内的整行版本 */
.lang-switch-block {
  width: 100%;
  justify-content: center;
  margin-top: 16px;
  padding: 13px 16px;
  font-size: 0.94rem;
}

/* 语言门控：非站内书写语言时，短暂隐藏首屏，避免中英文案闪烁。
   超时兜底在 i18n-boot.js 里（1.2s），不会白屏。 */
html.i18n-pending { background: #f4f6fb; }
html.i18n-pending body { visibility: hidden; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  place-items: center;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 17px; height: 1.6px;
  background: var(--txt);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* 移动端抽屉 */
.nav-drawer {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 14px 24px 26px;
  display: none;
  flex-direction: column;
  gap: 2px;
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.nav-drawer.is-open { display: flex; }
.nav-drawer a {
  padding: 13px 12px;
  border-radius: 11px;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--txt-2);
  border-bottom: 1px solid #eef1f8;
}
.nav-drawer a:hover, .nav-drawer a.is-active { color: var(--txt); background: var(--surface-2); }
.nav-drawer .btn { margin-top: 14px; }

/* ---------- 10. Hero ---------- */
.hero {
  position: relative;
  padding: clamp(64px, 9vw, 122px) 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 78% 62% at 50% 34%, #000 12%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 34%, #000 12%, transparent 76%);
  pointer-events: none;
}
.hero-halo {
  position: absolute;
  width: 620px; height: 620px;
  left: 50%; top: -260px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(79, 107, 255, 0.20), rgba(124, 58, 237, 0.10) 45%, transparent 70%);
  filter: blur(28px);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 56px;
  align-items: center;
}
.hero-title { max-width: 15em; }
.hero-title-lg { max-width: 17em; }
.hero-lead { max-width: 44em; margin-top: 22px; }
.hero-actions { margin-top: 34px; }

.hero-meta {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  align-items: center;
}

/* 动态终端窗口 */
.terminal {
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(5, 8, 16, 0.86);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.028);
}
.terminal-bar i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: block;
}
.terminal-bar i:nth-child(1) { background: rgba(248, 113, 113, 0.72); }
.terminal-bar i:nth-child(2) { background: rgba(251, 191, 36, 0.72); }
.terminal-bar i:nth-child(3) { background: rgba(52, 211, 153, 0.72); }
.terminal-title {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--txt-3);
}
.terminal-body {
  padding: 20px;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.95;
  overflow-x: auto;
}
.tk-key { color: #a9bcff; }
.tk-str { color: #7ee7bd; }
.tk-num { color: #f6d488; }
.tk-com { color: var(--txt-3); font-style: italic; }
.tk-fn { color: #cbb6ff; }
.caret {
  display: inline-block;
  width: 7px; height: 15px;
  background: var(--accent);
  vertical-align: -2px;
  animation: caret 1.05s steps(2) infinite;
}
@keyframes caret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ---------- 11. Stats ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: #ffffff;
  padding: 26px 22px;
  text-align: center;
}
.stat-num {
  font-size: clamp(1.55rem, 3.1vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 0.82rem; color: var(--txt-3); margin-top: 6px; }

/* ---------- 12. Section header ---------- */
.sec-head { max-width: 46em; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head h2 { margin-top: 16px; }
.sec-head p { margin-top: 16px; }
.sec-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

/* ---------- 13. Feature list ---------- */
.feat-title { font-size: 1.06rem; font-weight: 650; margin-top: 18px; }
.feat-desc { font-size: 0.9rem; color: var(--txt-2); margin-top: 9px; line-height: 1.75; }

.check-list { display: grid; gap: 12px; }
.check-item { display: flex; gap: 11px; align-items: flex-start; font-size: 0.92rem; color: var(--txt-2); }
.check-item svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--ok); }
.check-item b { color: var(--txt); font-weight: 600; }

/* ---------- 14. Marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee-track { display: flex; gap: 52px; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item {
  font-size: 1rem;
  font-weight: 600;
  color: var(--txt-3);
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}
.marquee-item:hover { color: #4f46e5; }

/* ---------- 15. Tabs ---------- */
.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 8px 15px;
  border-radius: 9px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--txt-2);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.tab:hover { color: var(--txt); }
.tab.is-active { background: var(--surface-3); color: var(--txt); box-shadow: var(--shadow-sm); }

.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeUp 0.4s ease both; }

/* 隐藏的 tab-panel 内元素（display:none）不会被 IntersectionObserver 观测到，
   其中的 .reveal 会永久停在 opacity:0，用户切换到该标签后看到空白。
   这里统一让面板内的 .reveal 直接可见，入场动效交给上面的 fadeUp 承担。
   （docs.html 的「常见 AI 工具接入」卡片采用此结构） */
.tab-panel .reveal { opacity: 1; transform: none; }

.seg {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.seg button {
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--txt-2);
  transition: all 0.2s ease;
}
.seg button.is-active { background: var(--grad); color: #ffffff; }

/* ---------- 16. Table ---------- */
.table-wrap {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.table-scroll { overflow-x: auto; }
.table { font-size: 0.88rem; min-width: 640px; }
.table thead th {
  padding: 15px 18px;
  text-align: left;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--txt-3);
  background: #f7f9fd;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table tbody td {
  padding: 15px 18px;
  border-bottom: 1px solid #eef1f8;
  color: var(--txt-2);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background 0.18s ease; }
.table tbody tr:hover { background: rgba(79, 107, 255, 0.05); }
.table .t-name { color: var(--txt); font-weight: 600; }
.table .num { color: var(--txt); font-variant-numeric: tabular-nums; }
.table .col-r { text-align: right; }
.table-half { min-width: 460px; }

.model-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 0.74rem;
  background: #eef1f8;
  border: 1px solid var(--line);
  color: #3b5bdb;
}
.vendor-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
  flex: none;
}

/* 模型概览卡片（token.html#models）—— 只展示能力，不展示价格 */
.model-cards { align-items: stretch; }
.model-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 0;
}
.model-card-name { min-width: 0; }
.model-card-name > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.model-card-hot { padding: 1px 8px; font-size: 0.66rem; flex: none; }
.model-card-vendor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--txt-3);
  min-width: 0;
}
.model-card-vendor .mc-v {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.model-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.model-card-ctx { padding: 2px 9px; font-size: 0.68rem; flex: none; }
.model-card-caps { margin-top: auto; padding-top: 14px; }
.model-card-cap {
  padding: 2px 9px;
  font-size: 0.68rem;
  font-weight: 500;
}
.model-cards-empty {
  padding: 34px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--txt-3);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* ---------- 17. Code block ---------- */
.code-block {
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(4, 7, 14, 0.9);
  overflow: hidden;
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.028);
}
.code-lang {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--txt-3);
  letter-spacing: 0.04em;
}
.code-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--txt-2);
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  transition: all 0.2s ease;
}
.code-copy:hover { color: var(--txt); background: var(--surface-2); border-color: var(--line-2); }
.code-copy.is-done { color: var(--ok); border-color: rgba(5, 150, 105, 0.40); }
.code-block pre {
  padding: 18px;
  overflow-x: auto;
  font-size: 0.79rem;
  line-height: 1.85;
  color: #cfd7ea;
}

/* ---------- 18. Accordion ---------- */
.acc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.acc + .acc { margin-top: 12px; }
.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 22px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--txt);
  transition: background 0.2s ease;
}
.acc-trigger:hover { background: var(--surface-2); }
.acc-sign {
  width: 22px; height: 22px;
  flex: none;
  position: relative;
}
.acc-sign::before, .acc-sign::after {
  content: "";
  position: absolute;
  background: #4f46e5;
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.24s ease;
}
.acc-sign::before { left: 0; top: 10px; width: 22px; height: 1.7px; }
.acc-sign::after { left: 10px; top: 0; width: 1.7px; height: 22px; }
.acc.is-open .acc-sign::after { transform: rotate(90deg); opacity: 0; }
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.34s cubic-bezier(0.4, 0, 0.2, 1);
}
.acc-body-inner {
  padding: 0 22px 21px;
  font-size: 0.92rem;
  color: var(--txt-2);
  line-height: 1.82;
}

/* ---------- 18b. 首页采购常见问题分组（两栏，复用 .acc 手风琴） ---------- */
.faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
/* 两栏顶部对齐，行高不同也不会互相顶开 */
.faq-group > .acc:first-child { margin-top: 0; }
.faq-group-title { font-size: 1.02rem; font-weight: 600; color: var(--txt); }
.faq-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 14px 18px; margin-top: 44px;
}
.faq-foot .text-2 { margin-right: 2px; }

/* ---------- 19. Timeline ---------- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, rgba(79, 107, 255, 0.7), rgba(124, 58, 237, 0.35), transparent);
}
.tl-item { position: relative; padding-bottom: 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -30px; top: 6px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 2px solid var(--brand);
  box-shadow: 0 0 0 4px rgba(79, 107, 255, 0.14);
}
.tl-step {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: #4f46e5;
  letter-spacing: 0.1em;
}
.tl-title { font-size: 1.03rem; font-weight: 650; margin-top: 5px; }
.tl-desc { font-size: 0.89rem; color: var(--txt-2); margin-top: 7px; line-height: 1.76; }

/* ---------- 20. Pricing ---------- */
.price-card { display: flex; flex-direction: column; height: 100%; }
.price-card.is-featured {
  border-color: rgba(79, 107, 255, 0.5);
  background: var(--grad-soft);
  box-shadow: var(--shadow-brand);
}
.price-flag {
  position: absolute;
  top: 18px; right: 18px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--grad);
  color: #ffffff;
}
.price-name { font-size: 1.1rem; font-weight: 650; }
.price-sub { font-size: 0.85rem; color: var(--txt-3); margin-top: 6px; }
.price-amt { margin-top: 22px; display: flex; align-items: baseline; gap: 5px; min-height: 58px; }
.price-amt .v {
  font-size: clamp(2rem, 4.2vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}
.price-amt .u { font-size: 0.86rem; color: var(--txt-3); }
.price-amt.is-quote .v { font-size: clamp(1.6rem, 3vw, 1.9rem); }
.price-note { font-size: 0.78rem; color: var(--txt-3); margin-top: 10px; min-height: 40px; }
.price-divider { height: 1px; background: var(--line); margin: 24px 0; }

/* ---------- 21. Console mock UI ---------- */
.console-shell {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-1);
  box-shadow: var(--shadow);
}
.console-side {
  border-right: 1px solid var(--line);
  padding: 18px 14px;
  background: #f7f9fd;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.console-side .cs-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt-3);
  padding: 12px 11px 7px;
}
.cs-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 0.86rem;
  color: var(--txt-2);
  transition: background 0.18s ease, color 0.18s ease;
  cursor: default;
}
.cs-item svg { width: 16px; height: 16px; opacity: 0.75; flex: none; }
.cs-item:hover { background: var(--surface-2); color: var(--txt); }
.cs-item.is-active { background: rgba(79, 107, 255, 0.16); color: var(--txt); }

.console-main { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.kpi {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px;
}
.kpi-label { font-size: 0.79rem; color: var(--txt-3); display: flex; align-items: center; justify-content: space-between; }
.kpi-val {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: 9px;
  font-variant-numeric: tabular-nums;
}
.kpi-delta { font-size: 0.76rem; margin-top: 7px; display: flex; align-items: center; gap: 5px; }

/* 迷你条形图 */
.bars { display: flex; flex-direction: column; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 132px minmax(0, 1fr) 62px; gap: 12px; align-items: center; font-size: 0.84rem; }
.bar-track {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: #eaeef7;
  overflow: hidden;
}
.bar-fill {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--grad);
  width: 0;
  transition: width 1.1s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.bar-val { text-align: right; font-variant-numeric: tabular-nums; color: var(--txt); font-weight: 600; }

.chart-svg { width: 100%; height: 210px; display: block; }
.chart-legend {
  display: flex; gap: 20px; flex-wrap: wrap;
  font-size: 0.8rem; color: var(--txt-2);
}
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.chart-legend i { width: 9px; height: 9px; border-radius: 3px; display: block; }

/* key 行 */
.key-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 96px 92px;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #eef1f8;
  font-size: 0.85rem;
}
.key-row:last-child { border-bottom: 0; }
.key-name { color: var(--txt); font-weight: 600; display: flex; align-items: center; gap: 9px; }
.key-secret {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--txt-3);
  background: #f1f4fa;
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid var(--line);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 22. Compare / Steps ---------- */
.step-num {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--grad);
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: none;
}

.quote {
  border-left: 2px solid rgba(79, 107, 255, 0.55);
  padding-left: 18px;
  font-size: 0.95rem;
  color: var(--txt-2);
  line-height: 1.85;
}
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad-soft);
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.84rem;
  color: #3b5bdb;
  flex: none;
}

/* ---------- 23. Docs ---------- */
.docs-shell {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}
.docs-nav {
  position: sticky;
  top: calc(var(--nav-h) + 22px);
  border-right: 1px solid var(--line);
  padding-right: 22px;
  max-height: calc(100vh - var(--nav-h) - 48px);
  overflow-y: auto;
}
.docs-group { padding-bottom: 18px; }
.docs-group-title {
  font-size: 0.71rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt-3);
  font-weight: 700;
  padding: 12px 10px 8px;
}
.docs-link {
  display: block;
  padding: 8px 11px;
  border-radius: 9px;
  font-size: 0.87rem;
  color: var(--txt-2);
  transition: all 0.18s ease;
  border-left: 2px solid transparent;
}
.docs-link:hover { color: var(--txt); background: var(--surface-2); }
.docs-link.is-active {
  color: #3b5bdb;
  background: rgba(79, 107, 255, 0.10);
  border-left-color: var(--brand);
}
.docs-body { min-width: 0; }
.docs-body h2 { font-size: clamp(1.4rem, 2.6vw, 1.95rem); margin-bottom: 16px; }
.docs-body h3 { font-size: 1.12rem; margin: 36px 0 12px; padding-top: 8px; }
.docs-body h4 { font-size: 0.98rem; margin: 24px 0 10px; color: var(--txt); }
.docs-body p { margin-bottom: 14px; font-size: 0.93rem; line-height: 1.85; }
.docs-body ul { margin: 0 0 16px; display: grid; gap: 8px; }
.docs-body ul li {
  position: relative;
  padding-left: 18px;
  font-size: 0.92rem;
  color: var(--txt-2);
  line-height: 1.8;
}
.docs-body ul li::before {
  content: "";
  position: absolute;
  left: 3px; top: 11px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(79, 107, 255, 0.75);
}
.docs-body code:not(pre code) {
  font-size: 0.83rem;
  padding: 2px 7px;
  border-radius: 6px;
  background: #f1f4fa;
  border: 1px solid var(--line);
  color: #3b5bdb;
  /* 行内代码可能包含无空格长串（如 os.environ["GEEKHONER_API_KEY"]），必须允许断行 */
  overflow-wrap: anywhere;
  word-break: break-word;
}
.docs-anchor { scroll-margin-top: calc(var(--nav-h) + 20px); }
/* 侧栏二级锚点（如 h3）同样需要顶部留白，避免吸顶导航遮住标题 */
.docs-body h3[id] { scroll-margin-top: calc(var(--nav-h) + 20px); }
.callout {
  border-radius: var(--radius);
  border: 1px solid rgba(79, 107, 255, 0.26);
  background: rgba(79, 107, 255, 0.07);
  padding: 16px 18px;
  font-size: 0.89rem;
  color: var(--txt-2);
  margin: 18px 0;
  line-height: 1.8;
}
.callout.warn {
  border-color: rgba(180, 83, 9, 0.24);
  background: rgba(217, 119, 6, 0.07);
}
.callout b { color: var(--txt); }

/* ---------- 23b. AI 工具接入教程 ---------- */
.tp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.tp-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  /* 建立容器查询上下文：卡片变窄时把配置项改为上下堆叠，
     否则「标签 + 端点 + 复制按钮」挤在一行会把 URL 从中间断开 */
  container-type: inline-size;
}

.tp-head { display: flex; align-items: center; gap: 12px; }
.tp-head-text { min-width: 0; }
.tp-name { font-size: 1.02rem; font-weight: 700; color: var(--txt); }
.tp-sub {
  font-size: 0.75rem;
  color: var(--txt-3);
  margin-top: 3px;
  line-height: 1.5;
}
.tp-desc {
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--txt-2);
  margin-top: 14px;
}

.tp-block { margin-top: 20px; }
.tp-block-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--txt-3);
  margin-bottom: 10px;
}

/* 必填配置表 */
.tp-config {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fafbfe;
  overflow: hidden;
}
.tp-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
}
.tp-row:last-child { border-bottom: 0; }
.tp-k {
  font-size: 0.78rem;
  color: var(--txt-3);
  line-height: 1.5;
}
.tp-v {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tp-v-text {
  font-size: 0.84rem;
  color: var(--txt);
  line-height: 1.6;
}
.tp-v code {
  font-size: 0.76rem;
  padding: 3px 7px;
  border-radius: 6px;
  background: #f1f4fa;
  border: 1px solid var(--line);
  color: #3b5bdb;
  /* 端点串较长，必须允许断行，否则窄屏撑出横向滚动 */
  overflow-wrap: anywhere;
  word-break: break-word;
}
.tp-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--txt-3);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  transition: all 0.18s ease;
}
.tp-copy:hover { color: var(--txt); background: var(--surface-2); border-color: var(--line-2); }
.tp-copy.is-done { color: var(--ok); border-color: rgba(5, 150, 105, 0.40); }

/* 操作步骤 */
.tp-steps {
  counter-reset: tpstep;
  display: grid;
  gap: 9px;
}
.tp-steps li {
  counter-increment: tpstep;
  position: relative;
  padding-left: 30px;
  font-size: 0.86rem;
  line-height: 1.78;
  color: var(--txt-2);
}
.tp-steps li::before {
  content: counter(tpstep);
  position: absolute;
  left: 0; top: 2px;
  width: 19px; height: 19px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: #3b5bdb;
  background: rgba(79, 107, 255, 0.14);
  border: 1px solid rgba(79, 107, 255, 0.30);
}

/* 注意事项：贴齐卡片底部，避免同排卡片高度不一时留白错位 */
.tp-tips-wrap { margin-top: auto; }
.tp-tips {
  margin-top: 20px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(180, 83, 9, 0.24);
  background: rgba(217, 119, 6, 0.06);
}
.tp-tips-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #b45309;
  margin-bottom: 8px;
}
.tp-tips ul { display: grid; gap: 6px; }
.tp-tips li {
  position: relative;
  padding-left: 14px;
  font-size: 0.81rem;
  line-height: 1.72;
  color: var(--txt-2);
}
.tp-tips li::before {
  content: "";
  position: absolute;
  left: 2px; top: 9px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(180, 83, 9, 0.75);
}

/* 卡片本身较窄时，配置项改为上下堆叠，给端点 URL 留出整行宽度 */
@container (max-width: 470px) {
  .tp-row { grid-template-columns: 1fr; gap: 5px; }
}

/* ---------- 24. CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid #dfe5f1;
  background: var(--grad-soft);
  padding: clamp(38px, 6vw, 66px);
  text-align: center;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  left: 50%; bottom: -420px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18), transparent 66%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }

/* ---------- 25. Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
  padding: clamp(46px, 6vw, 72px) 0 30px;
  margin-top: clamp(50px, 7vw, 90px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px 30px;
}
/* 页脚品牌区略大，与导航区分开 */
.footer .brand-mark { width: 44px; height: 44px; }
.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--txt);
  margin-bottom: 16px;
}
.footer-links { display: grid; gap: 11px; }
.footer-links a { font-size: 0.87rem; color: var(--txt-2); transition: color 0.18s ease; }
.footer-links a:hover { color: #4f46e5; }
.footer-bottom {
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--txt-3);
}
.footer-bottom a:hover { color: #4f46e5; }

/* ---------- 26. Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.72s cubic-bezier(0.22, 0.7, 0.3, 1), transform 0.72s cubic-bezier(0.22, 0.7, 0.3, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}
.float { animation: floatY 6.5s ease-in-out infinite; }

/* ---------- 26b. Accessibility ---------- */
html { scroll-padding-top: calc(var(--nav-h) + 18px); }
[id] { scroll-margin-top: calc(var(--nav-h) + 20px); }

:focus-visible {
  outline: 2px solid rgba(79, 107, 255, 0.85);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn:focus-visible,
.tab:focus-visible,
.seg button:focus-visible,
.code-copy:focus-visible,
.tp-copy:focus-visible,
.nav-toggle:focus-visible,
.nav-link:focus-visible,
.lang-switch:focus-visible,
.to-top:focus-visible {
  outline: 2px solid #3b5bdb;
  outline-offset: 3px;
}

/* 跳到主内容 */
.skip-link {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translate(-50%, -180%);
  z-index: 200;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--grad);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: var(--shadow-brand);
  transition: transform 0.24s cubic-bezier(0.22, 0.7, 0.3, 1);
}
.skip-link:focus {
  transform: translate(-50%, 0);
  outline: 2px solid #fff;
  outline-offset: 2px;
}
main:focus { outline: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 27. Back to top ---------- */
.to-top {
  position: fixed;
  right: 22px; bottom: 24px;
  z-index: 90;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  color: var(--txt-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.28s ease;
}
.to-top.is-show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--txt); border-color: rgba(79, 107, 255, 0.55); }

/* ---------- 28. Utilities ---------- */
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-14 { margin-top: 14px; }
.mt-18 { margin-top: 18px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.rel { position: relative; }
.overflow-hidden { overflow: hidden; }
.divider { height: 1px; background: var(--line); }

.form-field { display: grid; gap: 8px; }
.form-field label { font-size: 0.83rem; font-weight: 600; color: var(--txt-2); }
.input, .textarea, .select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: #ffffff;
  color: var(--txt);
  font-size: 0.9rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: rgba(79, 107, 255, 0.70);
  background: #f5f7ff;
}
.input::placeholder, .textarea::placeholder { color: var(--txt-3); }
.textarea { min-height: 118px; resize: vertical; font-family: inherit; }
.select { appearance: none; cursor: pointer; }
.select option { background: var(--bg-2); color: var(--txt); }

/* ---------- 28a. 微信号卡片（about 联系区块） ---------- */
/* 布局目标：右卡与左列（4 张信息卡）顶部、底部都对齐。
   右卡改为纵向 flex 容器，二维码区用 flex:1 吃掉剩余高度，
   使卡片自然填满左列高度，避免底部错位。 */
.wx-card {
  display: flex;
  flex-direction: column;
  /* 父 grid 用了 items-start（子项按内容高度顶部对齐），
     这里显式 stretch 覆盖，让右卡拉到与左列等高 → 上下都对齐 */
  align-self: stretch;
}
/* 二维码 + 微信号/时效：桌面并排两栏。
   卡片被拉伸到与左列等高后，用 stretch + 内部 space-between
   让内容纵向铺满，避免中间出现大片空档。 */
.wx-body {
  display: grid;
  /* 二维码列：min 140px 保证任何情况下都可扫（<140px 手机难识别），
     常规按容器 42% 伸缩、上限 240px；剩余给右侧文字列。
     42%（而非更小的比例）是为了桌面双列时二维码也能到 200px 上下，
     同时文字列仍有余量放微信号与时效表 */
  grid-template-columns: minmax(140px, 42%) minmax(0, 1fr);
  gap: 26px;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
}
.wx-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}
.wx-qr img {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1 / 1;
  height: auto;
  display: block;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 10px 30px -14px rgba(16, 24, 40, 0.28);
}
.wx-qr-cap {
  font-size: 0.74rem;
  color: var(--txt-3);
  letter-spacing: 0.02em;
}
.wx-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}
.wx-note { margin: 0; }

.wx-box {
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: #f8fafc;
  overflow: hidden;
}
.wx-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #eff3f9;
}
.wx-id {
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #0e1422;
  overflow-wrap: anywhere;
  user-select: all;
}

/* 图标容器：微信绿 */
.icon-box-wx {
  background: linear-gradient(140deg, rgba(5, 150, 105, 0.14), rgba(6, 182, 212, 0.10));
  border-color: rgba(5, 150, 105, 0.26);
  color: #047857;
}

/* 响应时效表 */
.wx-sla {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  overflow: hidden;
}
.wx-sla-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  align-items: center;
  padding: 10px 14px;
  font-size: 0.8rem;
}
.wx-sla-row + .wx-sla-row { border-top: 1px solid var(--line); }
.wx-sla-row .wx-k { color: var(--txt-2); }
.wx-sla-row .wx-v { color: var(--txt); font-weight: 600; white-space: nowrap; }

/* 窄屏：二维码与文字上下堆叠；二维码居中放大一点更好扫 */
@media (max-width: 880px) {
  .wx-body { grid-template-columns: 1fr; gap: 22px; }
  .wx-qr img { width: 200px; height: 200px; }
}
/* 超窄屏：时效表两列堆叠，避免长值撑出横向滚动 */
@media (max-width: 420px) {
  .wx-sla-row { grid-template-columns: 1fr; gap: 4px; }
  .wx-sla-row .wx-v { white-space: normal; }
  .wx-id { font-size: 1rem; }
}

/* ---------- 28b. Touch targets & scroll affordance ---------- */
/* 修正：grid / flex 子项默认 min-width:auto，会被长代码行或宽表格反向撑开，
   导致窄屏整页出现横向滚动条。统一收敛为 0，让内部的 overflow 容器自己滚。 */
.hero-split > *,
.grid-2 > *, .grid-3 > *, .grid-4 > *,
.grid-auto > *, .grid-auto-sm > *,
.tp-grid > *, .tp-row > *,
.docs-shell > *, .console-shell > *,
.stat-row > *, .kpi-grid > *, .footer-grid > * { min-width: 0; }

/* 联系区块两列：比全局 640px 更早收敛为单列。
   实测 1080px 及以下时，容器内容宽 ~1000px、减去 52px 列间距后每列仅 ~475px，
   再拆成「二维码列 + 文字列」时文字列只剩 ~215px，时效表长值被迫换行，
   右卡被撑得比左列（4 张等宽信息卡）高 50px 以上 → 上下都不齐。
   因此把单列收敛点提到 1080px（与第 29 节导航折叠断点对齐），
   双列只出现在每列内容足够宽的 1081px 以上区间。 */
@media (max-width: 1080px) {
  #contact .grid-2 { grid-template-columns: 1fr; }
}

/* 可滚动容器自身不得越界 */
.table-wrap, .table-scroll, .code-block, .terminal, .tabs,
.marquee, .console-shell, .bar-row, .key-row { max-width: 100%; }

/* ---------- 28c. SLA 区块左右对齐 ---------- */
/* 左列是「标题 + 说明 + callout + 3 条勾选」，高度由文字决定（桌面约 409px）；
   右列是 SLA 指标表。表格按行高自然堆叠，与左列高度不等 →
   表格下边高于左列下边，底部留下空档（4 行时约 140px），左右看起来不齐。
   这里让右列纵向撑满、表格取满整列高度，由浏览器把多余高度均分到各行，
   使表格上边与下边都与左列严格齐平。 */
#sla .grid > .reveal:last-child {
  display: flex;
  flex-direction: column;
}
#sla [data-render="sla"] {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
#sla .table-scroll {
  flex: 1 1 auto;
  min-height: 0;
}
#sla .table { height: 100%; }
/* 单列堆叠后左右不再并排，无需拉高；窄屏表格本就要横向滚动，
   强行取高只会产生纵向留白。
   断点须与全局 .grid-2 的收敛点（640px，见第 29 节）一致 ——
   1080px 处 SLA 仍是双列，表格必须继续撑满。 */
@media (max-width: 640px) {
  #sla .grid > .reveal:last-child,
  #sla [data-render="sla"] { display: block; }
  #sla .table-scroll, #sla .table { flex: none; height: auto; }
}

/* 横向可滚动的表格：窄屏右侧渐隐，提示"还能往右看" */
.table-scroll { -webkit-overflow-scrolling: touch; }
@media (max-width: 900px) {
  .table-wrap { position: relative; }
  .table-wrap::after {
    content: "";
    position: absolute;
    top: 1px; right: 1px; bottom: 1px;
    width: 46px;
    border-radius: 0 var(--radius) var(--radius) 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.94));
    pointer-events: none;
  }
}

/* 触摸设备：取消 hover 位移，避免"点一下元素跳走" */
@media (hover: none) {
  .btn-primary:hover,
  .btn-ghost:hover,
  .card-lift:hover { transform: none; }
  .marquee:hover .marquee-track { animation-play-state: running; }
}

/* ---------- 29. Responsive ---------- */
/* 导航折叠：新增「画布 / 视频工作台」后为 8 项，中文需 ~1173px、英文需 ~1196px
   才能单行排下（含 logo 与右侧按钮区）。故折叠点独立抬到 1120px，
   与下方 1080px 的通用布局断点解耦 —— 后者只管 docs/console/footer 等。 */
@media (max-width: 1120px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .nav-toggle { display: grid; }
}
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .docs-shell { grid-template-columns: 1fr; gap: 24px; }
  .docs-nav {
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 18px;
    max-height: none;
  }
  .docs-group { display: inline-block; vertical-align: top; margin-right: 26px; }
  .console-shell { grid-template-columns: 1fr; }
  .console-side {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    flex-direction: row;
    overflow-x: auto;
    padding: 12px;
  }
  .console-side .cs-label { display: none; }
  .cs-item { white-space: nowrap; }
}

@media (max-width: 1000px) {
  .hero-split { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .key-row { grid-template-columns: minmax(0, 1fr) 90px; row-gap: 8px; }
  .key-row .key-secret { display: none; }
  .bar-row { grid-template-columns: 96px minmax(0, 1fr) 54px; font-size: 0.8rem; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { padding: 0 18px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .card { padding: 22px; border-radius: var(--radius); }
  .card-pad-lg { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .stat-row { grid-template-columns: 1fr; }
  .hero-meta { gap: 12px 22px; }
  .price-flag { position: static; align-self: flex-start; margin-bottom: 12px; }
  .table { min-width: 560px; }
  .to-top { right: 14px; bottom: 16px; }
  /* 触摸热区不小于 44px */
  .btn-sm { min-height: 40px; }
  .nav-toggle { width: 44px; height: 44px; }
  .footer-links a { padding: 4px 0; }
  .nav-drawer a { padding: 15px 12px; }
  .tabs .tab { padding: 11px 16px; }
  .seg button { padding: 10px 18px; }
  .code-copy { min-height: 36px; }
  /* AI 工具接入卡：窄屏单列，配置项改为上下堆叠 */
  .tp-grid { grid-template-columns: 1fr; }
  .tp-row { grid-template-columns: 1fr; gap: 5px; padding: 10px 12px; }
  .tp-copy { min-height: 30px; }
  /* 首页采购 FAQ：窄屏两栏收敛为单列，分组间距收窄 */
  .faq-grid { grid-template-columns: 1fr; gap: 34px; }
  .faq-foot { gap: 12px; }
  /* 表格单元在窄屏收一点内边距，减少横向滑动 */
  .table thead th, .table tbody td { padding: 13px 14px; }
  .table { font-size: 0.84rem; }
  .marquee-track { gap: 34px; }
  .hero-halo { width: 440px; height: 440px; top: -200px; }
}