/* ==========================================================
   LCSC 硬件资产管理 — 官网样式
   设计 Token 与产品 UI 保持一致：主色 #2563EB / Noto Sans SC

   主题：默认深色，另有亮色一套。
   切换由 <html data-theme="light"> 控制（见 assets/js/boot.js）——
   变量全在这一处定义，亮色只覆盖变量，不另写一套规则。
   ========================================================== */

:root {
  /* 主色（取自产品 ui/themes/common.css） */
  --blue: #2563eb;
  --blue-light: #60a5fa;
  --blue-dark: #1d4ed8;

  /* 中性色 */
  --bg: #070b14;
  --bg-2: #0b1120;
  --bg-3: #0f172a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-2: rgba(255, 255, 255, 0.16);

  --text: #e8edf7;
  --text-2: #a9b6cd;
  --text-3: #6b7a94;

  /* 语义色 */
  --ok: #34d399;
  --warn: #fbbf24;
  --err: #f87171;

  /* 前景强调色（图标 / 链接 / 徽标）——
     深色下用浅蓝，亮色下用深蓝（浅蓝在白底上对比度不足） */
  --accent: #60a5fa;
  --accent-2: #93c5fd;

  /* 行内代码 */
  --code-fg: #a5d8ff;
  --code-bg: rgba(255, 255, 255, 0.08);

  /* 面板底纹（半透明叠在页面底色上）*/
  --ov-1: rgba(255, 255, 255, 0.028);  /* 卡片 / 块底 */
  --ov-2: rgba(255, 255, 255, 0.045);  /* 悬停底 */
  --ov-3: rgba(255, 255, 255, 0.022);  /* 淡底 */
  --ov-4: rgba(255, 255, 255, 0.04);   /* 图标方块底 */
  --ov-5: rgba(255, 255, 255, 0.03);   /* 空态框底 */
  --ov-6: rgba(255, 255, 255, 0.06);   /* 装饰文字 */

  /* 深色块（页脚 / 输入框 / 代码块底）*/
  --deep-1: rgba(0, 0, 0, 0.22);
  --deep-2: rgba(0, 0, 0, 0.3);
  --deep-3: rgba(0, 0, 0, 0.38);
  --deep-4: rgba(0, 0, 0, 0.44);

  /* 渐变底 */
  --grad-card: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
  --grad-card-h: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028));
  --grad-ed: linear-gradient(140deg, rgba(37, 99, 235, 0.09), rgba(255, 255, 255, 0.02));
  --grad-shot: linear-gradient(150deg, rgba(37, 99, 235, 0.07), rgba(255, 255, 255, 0.015));
  --grad-sp: linear-gradient(140deg, rgba(37, 99, 235, 0.09), rgba(255, 255, 255, 0.02));
  --grad-section: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.022) 12%, rgba(255, 255, 255, 0.022) 88%, transparent);
  --grad-title: linear-gradient(120deg, #60a5fa 0%, #818cf8 45%, #38bdf8 100%);

  /* 固定层 */
  --nav-bg: rgba(7, 11, 20, 0.82);
  --nav-drop-bg: rgba(7, 11, 20, 0.97);
  --top-bg: rgba(15, 23, 42, 0.82);

  /* 背景装饰 */
  --grid-line: rgba(255, 255, 255, 0.028);
  --glow-op: 0.5;
  --scroll-thumb: rgba(255, 255, 255, 0.14);
  --scroll-thumb-h: rgba(255, 255, 255, 0.24);

  /* 标签 / 提示条 */
  --tag-bg: rgba(37, 99, 235, 0.13);
  --tag-border: rgba(96, 165, 250, 0.24);
  --ok-bg: rgba(52, 211, 153, 0.1);
  --ok-border: rgba(52, 211, 153, 0.3);
  --ok-fg: #6ee7b7;
  --err-bg: rgba(248, 113, 113, 0.1);
  --err-border: rgba(248, 113, 113, 0.3);
  --err-fg: #fca5a5;

  /* 圆角与阴影 */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.36);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.48);

  /* 布局 */
  --maxw: 1160px;
  --nav-h: 66px;

  /* 图标规格：全站图标统一走这套 token，线宽、端点、尺寸只有这一处定义 */
  --ico-stroke: 1.7;
  --ico-size: 20px;
  --ico-size-sm: 16px;
  --ico-size-lg: 24px;
  --ico-size-xl: 30px;

  --font: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

/* ---------- 亮色主题 ----------
   只覆盖变量：所有规则共用一份，颜色在这里换掉。
   深色下的「白色半透明叠层」在亮色下改成「深色半透明叠层」。 */
[data-theme="light"] {
  --bg: #f4f6fb;
  --bg-2: #ffffff;
  --bg-3: #ffffff;
  --surface: rgba(15, 23, 42, 0.04);
  --surface-2: rgba(15, 23, 42, 0.07);
  --border: rgba(15, 23, 42, 0.13);
  --border-2: rgba(15, 23, 42, 0.22);

  --text: #131c2b;
  --text-2: #44516a;
  --text-3: #6b7a94;

  --ok: #059669;
  --warn: #b45309;
  --err: #dc2626;

  --accent: #2563eb;
  --accent-2: #1d4ed8;

  --code-fg: #a21caf;
  --code-bg: rgba(15, 23, 42, 0.06);

  --ov-1: rgba(15, 23, 42, 0.03);
  --ov-2: rgba(15, 23, 42, 0.055);
  --ov-3: rgba(15, 23, 42, 0.025);
  --ov-4: rgba(15, 23, 42, 0.05);
  --ov-5: rgba(15, 23, 42, 0.03);
  --ov-6: rgba(15, 23, 42, 0.08);

  --deep-1: rgba(15, 23, 42, 0.03);
  --deep-2: #ffffff;
  --deep-3: rgba(15, 23, 42, 0.04);
  --deep-4: #ffffff;

  --grad-card: linear-gradient(160deg, #ffffff, #f7f9fd);
  --grad-card-h: linear-gradient(160deg, #ffffff, #eef2fa);
  --grad-ed: linear-gradient(140deg, rgba(37, 99, 235, 0.07), rgba(255, 255, 255, 0.6));
  --grad-shot: linear-gradient(150deg, rgba(37, 99, 235, 0.05), rgba(255, 255, 255, 0.7));
  --grad-sp: linear-gradient(140deg, rgba(37, 99, 235, 0.07), rgba(255, 255, 255, 0.7));
  --grad-section: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.02) 12%, rgba(15, 23, 42, 0.02) 88%, transparent);
  --grad-title: linear-gradient(120deg, #2563eb 0%, #4f46e5 45%, #0891b2 100%);

  --nav-bg: rgba(255, 255, 255, 0.86);
  --nav-drop-bg: rgba(255, 255, 255, 0.97);
  --top-bg: rgba(255, 255, 255, 0.92);

  --grid-line: rgba(15, 23, 42, 0.05);
  --glow-op: 0.28;
  --scroll-thumb: rgba(15, 23, 42, 0.2);
  --scroll-thumb-h: rgba(15, 23, 42, 0.34);

  --tag-bg: rgba(37, 99, 235, 0.08);
  --tag-border: rgba(37, 99, 235, 0.22);
  --ok-bg: rgba(5, 150, 105, 0.09);
  --ok-border: rgba(5, 150, 105, 0.28);
  --ok-fg: #047857;
  --err-bg: rgba(220, 38, 38, 0.08);
  --err-border: rgba(220, 38, 38, 0.26);
  --err-fg: #b91c1c;

  --shadow: 0 8px 32px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.16);
}

/* ---------- 图标基础 ---------- */
/* 全站图标统一为 24×24 线性描边：
   - 每个图标 <svg> 必须带 .ico 类（描边规格由这里统一定义）
   - 尺寸由所在容器覆写，颜色由容器设 color 决定（描边色继承 currentColor） */
.ico {
  fill: none;
  stroke: currentColor;
  stroke-width: var(--ico-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
  width: var(--ico-size-sm);
  height: var(--ico-size-sm);
  flex-shrink: 0;
}
.ico-sm { width: var(--ico-size-sm); height: var(--ico-size-sm); }
.ico-md { width: var(--ico-size); height: var(--ico-size); }
.ico-lg { width: var(--ico-size-lg); height: var(--ico-size-lg); }
.ico-xl { width: var(--ico-size-xl); height: var(--ico-size-xl); }

/* 内联图标 sprite：定义后由 <use href="#i-xxx"> 引用 */
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

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

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

::selection { background: var(--blue); color: #fff; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: 6px;
  border: 2px solid var(--bg-2);
}
::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-h); }

/* ---------- 跳过导航（键盘可达性） ---------- */
/* 平时移出视口外但仍可聚焦；获得焦点时滑入 */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ---------- 背景装饰 ---------- */
.bg-deco {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--ov-1) 1px, transparent 1px),
    linear-gradient(90deg, var(--ov-1) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
}
.glow-a {
  width: 620px; height: 620px;
  top: -280px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(37, 99, 235, 0.55), transparent 70%);
  animation: float 18s ease-in-out infinite;
}
.glow-b {
  width: 480px; height: 480px;
  top: 34%; right: -220px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.32), transparent 70%);
  animation: float 22s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(34px); }
}
.glow-b { animation-name: float2; }
@keyframes float2 {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-30px); }
}

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

.section {
  padding: 110px 0;
  position: relative;
}
.section-alt {
  background: var(--grad-section);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* 紧凑段：用于独立页顶部的引子块（不撑出整屏留白） */
.section-tight { padding: 30px 0 0; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; display: block; }
.brand-mark img { width: 100%; height: 100%; display: block; border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.brand-text small { font-size: 10.5px; color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > a:not(.btn) {
  position: relative;
  padding: 7px 13px;
  font-size: 14px;
  color: var(--text-2);
  border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-links > a:not(.btn):hover { color: var(--text); background: var(--surface); }
/* 滚动高亮：当前所在区块 */
.nav-links > a:not(.btn).is-active {
  color: var(--text);
  background: var(--surface-2);
}
.nav-links > a:not(.btn).is-active::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-light), var(--blue));
}
.nav-links .btn { margin-left: 8px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: var(--r-sm);
}

/* 主题切换（深色 / 亮色） */
.theme-btn {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  color: var(--text-2);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.theme-btn:hover { color: var(--text); background: var(--surface-2); border-color: var(--border-2); }
.theme-btn svg { width: 17px; height: 17px; }

/* 亮色下显示月亮（去亮色），深色下显示太阳（去深色） */
.theme-btn .i-moon { display: none; }
[data-theme="light"] .theme-btn .i-sun { display: none; }
[data-theme="light"] .theme-btn .i-moon { display: block; }
.nav-toggle span {
  display: block;
  width: 19px; height: 1.8px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.28s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.18s, background 0.22s, border-color 0.22s, box-shadow 0.22s, opacity 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-light), var(--blue));
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.36);
}
.btn-primary:hover {
  box-shadow: 0 8px 26px rgba(37, 99, 235, 0.5);
  filter: brightness(1.07);
}

.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-2); }

.btn-outline { border-color: var(--border-2); color: var(--text); }
.btn-outline:hover { background: var(--surface); border-color: var(--blue); color: #fff; }

.btn-lg { padding: 14px 30px; font-size: 15.5px; border-radius: 12px; }
.btn-sm { padding: 8px 16px; font-size: 13.5px; border-radius: 9px; }

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--nav-h) + 92px) 0 96px;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 15px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-2);
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
}
.badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.16);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.16); }
  50%      { opacity: 0.65; box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.04); }
}
.badge .sep { color: var(--text-3); }

.hero-title {
  font-size: clamp(32px, 5.6vw, 62px);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.028em;
  margin-bottom: 26px;
}

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

.hero-desc {
  max-width: 660px;
  margin: 0 auto 40px;
  font-size: clamp(15px, 1.6vw, 17.5px);
  color: var(--text-2);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 76px;
}

/* Hero 底部的简短要点，不做数字统计，避免抬高预期 */
.hero-facts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  list-style: none;
  margin-top: 44px;
}
.hero-facts li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  color: var(--text-3);
  letter-spacing: 0.01em;
}
.hero-facts li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 6px rgba(96, 165, 250, 0.55);
}

/* ---------- 首屏大图 + 轮播（预留，默认关闭） ----------
   main.js 未开启时 #heroBanner 带 hidden，不占位、不缺席下方文字首屏。
   开启后固定高度、首图直接露出，导航悬浮其上；多图时自动淡入轮播。 */
.hero-banner {
  position: relative;
  height: clamp(320px, 48vw, 600px);
  overflow: hidden;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.hero-banner[hidden] { display: none; }

.hb-track { position: absolute; inset: 0; }

.hb-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.hb-slide.is-on { opacity: 1; }
.hb-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 底部渐隐，与下方内容自然衔接 */
.hero-banner::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hb-dots {
  position: absolute;
  left: 0; right: 0; bottom: 22px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 9px;
}
.hb-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: background 0.25s, transform 0.25s, border-color 0.25s;
}
.hb-dot:hover { background: rgba(255, 255, 255, 0.55); }
.hb-dot.is-on {
  background: var(--blue-light);
  border-color: var(--accent);
  transform: scale(1.18);
}

/* ---------- 区块标题 ---------- */
.sec-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 64px;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.sec-head h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.024em;
  line-height: 1.28;
  margin-bottom: 16px;
}
.sec-head p { color: var(--text-2); font-size: 15.5px; line-height: 1.8; }

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

.card {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
  background: var(--grad-card-h);
}

.card-ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37,99,235,0.22), rgba(56,189,248,0.1));
  border: 1px solid var(--tag-border);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--accent);
}
.card-ico svg { width: 22px; height: 22px; }

.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; }
.card p { color: var(--text-2); font-size: 14.5px; line-height: 1.82; }

/* ---------- 功能一览（分组卡片） ---------- */
.feat-groups { align-items: stretch; }

.feat-group {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  border-radius: var(--r-lg);
  background: var(--grad-card);
  border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.feat-group:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
  background: var(--grad-card-h);
}

.feat-group-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.feat-group-head h3 {
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.feat-group-ico {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(37,99,235,0.22), rgba(56,189,248,0.1));
  border: 1px solid var(--tag-border);
  display: grid;
  place-items: center;
  color: var(--accent);
}
.feat-group-ico svg {
  width: 19px;
  height: 19px;
}

.feat-group-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.feat-group-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}
.feat-ico {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  color: var(--text-3);
  transition: color 0.25s;
}
.feat-ico svg { width: 15px; height: 15px; }
.feat-group-list li:hover .feat-ico { color: var(--accent); }
.feat-group-list b {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
  margin-bottom: 4px;
}
.feat-group-list p {
  font-size: 13.2px;
  color: var(--text-2);
  line-height: 1.72;
}

/* 功能条目里的补充链接（指向独立页） */
.feat-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
  font-size: 12.5px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.feat-link .ico { text-decoration: none; }
.feat-link:hover { color: var(--accent-2); }

/* ---------- 工作流程（三步） ---------- */
.flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: flow;
}
.flow-step {
  position: relative;
  padding: 28px 26px;
  border-radius: var(--r-lg);
  background: var(--ov-1);
  border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.flow-step:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
  background: var(--ov-2);
}
.flow-no {
  position: absolute;
  top: 22px;
  right: 24px;
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--ov-6);
  letter-spacing: -0.03em;
  user-select: none;
}
.flow-ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37,99,235,0.22), rgba(56,189,248,0.1));
  border: 1px solid var(--tag-border);
  color: var(--accent);
  margin-bottom: 18px;
}
.flow-ico svg { width: 21px; height: 21px; }
.flow-step h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 9px;
  letter-spacing: -0.01em;
}
.flow-step p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.8;
}

/* ---------- 按钮内图标 ---------- */
/* 尺寸与描边规格统一由「图标基础」段定义，此处只保留按钮内的对齐微调 */
.btn .ico { vertical-align: -2px; }

/* 下载按钮组 */
.dl-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.dl-btns .btn { flex: 1; min-width: 116px; }

/* ---------- 补充说明块 ---------- */
.plain-note {
  margin-top: 40px;
  padding: 24px 28px;
  border-radius: var(--r);
  background: var(--ov-3);
  border: 1px solid var(--border);
}
.plain-note p {
  font-size: 14.2px;
  color: var(--text-2);
  line-height: 1.85;
}
.plain-note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.plain-note a:hover { color: var(--accent-2); }

/* ---------- 版本对比 ---------- */
.editions { align-items: stretch; }
.ed {
  position: relative;
  padding: 34px 32px;
  border-radius: var(--r-lg);
  background: var(--ov-1);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, border-color 0.3s;
}
.ed:hover { transform: translateY(-4px); border-color: var(--border-2); }

.ed-pro {
  background: linear-gradient(160deg, rgba(37,99,235,0.13), rgba(56,189,248,0.035));
  border-color: rgba(96, 165, 250, 0.3);
}
.ed-flag {
  position: absolute;
  top: 20px; right: 20px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--blue-light), var(--blue));
  color: #fff;
  letter-spacing: 0.04em;
}

.ed-head { margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.ed-ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37,99,235,0.2), rgba(56,189,248,0.08));
  border: 1px solid rgba(96, 165, 250, 0.22);
  color: var(--accent);
  margin-bottom: 16px;
}
.ed-ico svg { width: 21px; height: 21px; }
.ed-head h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.ed-head p { font-size: 13.8px; color: var(--text-2); line-height: 1.7; }

.ed-list { list-style: none; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.ed-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14.2px;
  color: var(--text-2);
  line-height: 1.65;
}
.ed-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: var(--ok);
  font-size: 13px;
  font-weight: 700;
}

.ed-foot {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-3);
}

/* ---------- 截图展示 ---------- */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
}
.shot {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-3);
  transition: transform 0.3s, border-color 0.3s;
}
.shot:hover { transform: translateY(-4px); border-color: var(--border-2); }

.shot-media {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background: var(--grad-shot);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.shot-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* 占位框 */
.shot-ph {
  text-align: center;
  padding: 24px;
  color: var(--text-3);
}
.shot-ph-ico {
  width: 46px; height: 46px;
  margin: 0 auto 14px;
  border-radius: 12px;
  border: 1.5px dashed var(--border-2);
  display: grid;
  place-items: center;
  color: var(--text-3);
}
.shot-ph-ico svg { width: 20px; height: 20px; }
.shot-ph b { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 5px; font-weight: 500; }
.shot-ph span { font-size: 12px; font-family: var(--mono); opacity: 0.75; }

.shot-body { padding: 18px 22px 20px; }
.shot-body h3 { font-size: 15.5px; font-weight: 600; margin-bottom: 5px; }
.shot-body p { font-size: 13.5px; color: var(--text-3); line-height: 1.7; }

/* ---------- 快速开始 ---------- */
.steps { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.step {
  display: flex;
  gap: 22px;
  padding: 26px 28px;
  border-radius: var(--r);
  background: var(--ov-1);
  border: 1px solid var(--border);
  transition: border-color 0.3s, background 0.3s;
}
.step:hover { border-color: var(--border-2); background: var(--ov-2); }

.step-no {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(37,99,235,0.26), rgba(56,189,248,0.12));
  border: 1px solid rgba(96, 165, 250, 0.3);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}
.step-ico {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--ov-4);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-2);
}
.step-ico svg { width: 19px; height: 19px; }
/* ---------- 三步部署（单行三栏） ---------- */
/* 必须写在 .steps 之后：同为单类选择器，后写者才生效，
   否则 .steps 的 display:flex 会覆盖掉这里的 grid */
.steps-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.steps-3 .step {
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.steps-3 .step > div { flex: 1; }

.step-top { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.step h3 { font-size: 16px; font-weight: 600; margin-bottom: 7px; }
.step p { font-size: 14.3px; color: var(--text-2); line-height: 1.78; }

code {
  font-family: var(--mono);
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--code-bg);
  color: var(--code-fg);
}

.reqs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.req-tag {
  padding: 5px 12px;
  border-radius: 7px;
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  font-size: 12.5px;
  font-family: var(--mono);
  color: var(--accent-2);
}

/* ---------- 反馈表单 ---------- */
.fb-form {
  background: var(--ov-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.fb-row { display: flex; flex-direction: column; gap: 20px; }
.fb-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.field { position: relative; display: flex; flex-direction: column; gap: 9px; }
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.01em;
}
.field .req { color: var(--err); margin-left: 2px; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 15px;
  background: var(--deep-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14.5px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 118px; line-height: 1.75; font-family: inherit; }
.field select { cursor: pointer; appearance: none; }
.field select option { background: var(--bg-3); color: var(--text); }

.field input::placeholder,
.field textarea::placeholder { color: var(--text-3); opacity: 0.72; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--deep-4);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.field.is-err input,
.field.is-err textarea { border-color: var(--err); }
.field.is-err input:focus,
.field.is-err textarea:focus { box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15); }

.counter {
  position: absolute;
  right: 2px; bottom: -17px;
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--mono);
}

/* 分段选择器 */
.seg {
  display: inline-flex;
  padding: 4px;
  gap: 3px;
  background: var(--deep-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  width: fit-content;
}
.seg-btn {
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--text-2);
  transition: background 0.2s, color 0.2s;
}
.seg-btn:hover { color: var(--text); }
.seg-btn.is-on {
  background: linear-gradient(135deg, var(--blue-light), var(--blue));
  color: #fff;
  font-weight: 500;
}

/* 蜜罐 */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.fb-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.fb-hint { font-size: 12.5px; color: var(--text-3); flex: 1; min-width: 220px; }

.btn.is-loading { pointer-events: none; opacity: 0.72; }
.btn.is-loading::after {
  content: "";
  width: 14px; height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.fb-msg {
  display: none;
  padding: 13px 17px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.7;
}
.fb-msg.is-show { display: block; }
.fb-msg.ok { background: var(--ok-bg); border: 1px solid var(--ok-border); color: var(--ok-fg); }
.fb-msg.err { background: var(--err-bg); border: 1px solid var(--err-border); color: var(--err-fg); }

/* ---------- 赞助 ---------- */
.sp-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  padding: 36px 38px;
  border-radius: var(--r-lg);
  background: var(--grad-sp);
  border: 1px solid var(--border);
  align-items: center;
}
.sp-left h3 { font-size: 16px; font-weight: 600; margin-bottom: 18px; }
.sp-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.sp-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.3px;
  color: var(--text-2);
}
.sp-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--blue-light);
}
.sp-right { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.qr-box {
  width: 178px; height: 178px;
  border-radius: var(--r);
  background: var(--ov-5);
  border: 1px dashed var(--border-2);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
/* 微信赞赏码是「码 + 文案」的整张图，方框太小码扫不出来 → 放大 */
.qr-box.is-lg {
  width: 268px; height: 268px;
  border-style: solid;
  border-color: var(--border);
}
.qr-box img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.is-hidden { display: none !important; }

/* 未加载时的遮罩 */
.qr-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--bg-3);
  gap: 10px;
  transition: opacity 0.4s;
  cursor: pointer;
}
.qr-cover:hover { background: var(--bg-2); }
.qr-cover.is-gone { opacity: 0; pointer-events: none; }
.qr-cover-ico {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1.5px dashed var(--border-2);
  display: grid;
  place-items: center;
  color: var(--text-2);
}
.qr-cover-ico svg { width: 18px; height: 18px; }
.qr-cover span { font-size: 12px; color: var(--text-2); }

.qr-tip { font-size: 12.3px; color: var(--text-3); text-align: center; }

.qr-ph { text-align: center; padding: 12px; font-size: 11.5px; color: var(--text-3); font-family: var(--mono); line-height: 1.9; }

.sp-list-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.8px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.sp-list-link .ico { text-decoration: none; }
.sp-list-link:hover { color: var(--accent-2); }

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 52px 0 30px;
  margin-top: 20px;
  background: var(--deep-1);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}
.f-brand .brand { margin-bottom: 12px; }
.f-desc { font-size: 13px; color: var(--text-3); }

.f-col { display: flex; flex-direction: column; gap: 10px; }
.f-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}
.f-col a {
  font-size: 13.5px;
  color: var(--text-2);
  transition: color 0.2s;
}
.f-col a:hover { color: var(--accent); }

.footer-note {
  padding-top: 22px;
  text-align: center;
}
.footer-note p { font-size: 12.2px; color: var(--text-3); line-height: 1.8; }

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--top-bg);
  border: 1px solid var(--border-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.28s, transform 0.28s, visibility 0.28s, background 0.2s, color 0.2s;
}
.to-top.is-show {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top:hover {
  background: rgba(37, 99, 235, 0.9);
  border-color: var(--blue);
  color: #fff;
}
.to-top svg { width: 19px; height: 19px; }

/* ---------- 独立页面 ---------- */
.page {
  padding: calc(var(--nav-h) + 80px) 0 90px;
  min-height: 72vh;
}
.page > .sec-head {
  margin-bottom: 48px;
}
.page .plain-note { margin-top: 36px; }

/* ---------- 赞助者名单 ---------- */
.supporter-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sup-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 24px;
  border-radius: var(--r);
  background: var(--ov-1);
  border: 1px solid var(--border);
  transition: border-color 0.25s, background 0.25s;
}
.sup-item:hover {
  border-color: var(--border-2);
  background: var(--ov-2);
}
.sup-name {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.sup-meta {
  font-size: 12.8px;
  color: var(--text-3);
  font-family: var(--mono);
}

.sup-empty {
  padding: 44px 30px;
  text-align: center;
  border-radius: var(--r-lg);
  background: var(--ov-3);
  border: 1px solid var(--border);
}
.sup-empty p { font-size: 15px; color: var(--text-2); }
.sup-empty-sub { font-size: 13.5px !important; color: var(--text-3) !important; margin-top: 10px; }
.sup-empty a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.sup-empty a:hover { color: var(--accent-2); }

/* ---------- 扫码参数配置页 ---------- */
/* 生成器的表单块：字段多、分组清晰，故用独立的一套类名（qc- 前缀） */
/* .qc-lead：页头里的安全承诺句，与上面那段说明拉开一点距离 */
.qc-lead {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  background: var(--ov-3);
  border: 1px solid var(--border);
  font-size: 13.6px;
  color: var(--text-2);
  line-height: 1.75;
  display: inline-block;
}
.qc-lead b { color: var(--text); font-weight: 600; }

.qc-form {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.qc-block {
  padding: 28px 26px;
  border-radius: var(--r-lg);
  background: var(--ov-1);
  border: 1px solid var(--border);
}

.qc-block-title {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.qc-block-no {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  flex-shrink: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(37,99,235,0.26), rgba(56,189,248,0.12));
  border: 1px solid rgba(96, 165, 250, 0.3);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}
.qc-block-desc {
  font-size: 13.5px;
  color: var(--text-3);
  margin-bottom: 18px;
}

.qc-block .field { margin-bottom: 18px; }
.qc-block .field:last-child { margin-bottom: 0; }

.qc-mono { font-family: var(--mono); font-size: 13.5px !important; }

.qc-help {
  font-size: 12.3px;
  color: var(--text-3);
  line-height: 1.7;
}
.qc-help b { color: var(--text-2); font-weight: 600; }

.qc-err {
  display: none;
  font-size: 12.3px;
  color: var(--err);
  line-height: 1.6;
}
.qc-err:not(:empty) { display: block; }

.qc-fmt {
  padding: 20px 18px;
  border-radius: var(--r);
  background: var(--deep-1);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.qc-fmt:last-child { margin-bottom: 18px; }

.qc-fmt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.qc-fmt-no {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.qc-fmt-del {
  font-size: 12.5px;
  color: var(--text-3);
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.qc-fmt-del:hover { color: var(--err); border-color: rgba(248, 113, 113, 0.4); background: rgba(248, 113, 113, 0.08); }

.qc-f-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 10px 14px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid var(--border);
}
.qc-f-row:first-of-type { border-top: none; }
.qc-f-name { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.qc-f-name code { font-size: 12.2px; }
.qc-f-hint { font-size: 11.5px; color: var(--text-3); }
.qc-f-row input { padding: 9px 12px !important; font-size: 13.5px !important; }

.qc-out-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.qc-out-label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.qc-status { font-size: 12.3px; color: var(--text-3); }
.qc-status.is-ok { color: var(--ok); }
.qc-status.is-err { color: var(--err); }

.qc-json {
  margin: 0 0 18px;
  padding: 18px;
  border-radius: var(--r);
  background: var(--deep-3);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12.2px;
  line-height: 1.75;
  color: var(--code-fg);
  max-height: 420px;
  overflow: auto;
  white-space: pre;
  tab-size: 2;
}

.qc-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.qc-hint { margin-top: 14px; font-size: 12.3px; color: var(--text-3); line-height: 1.7; }

/* 扫码步骤 */
.qc-scan-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.qc-scan-tip { margin-bottom: 20px; }
.qc-paste-field { margin-bottom: 18px; }
.qc-paste-field textarea {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  resize: vertical;
}

/* 字段说明表 */
.qc-table-wrap {
  border-radius: var(--r);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--ov-3);
}
.qc-table { width: 100%; border-collapse: collapse; }
.qc-table th,
.qc-table td {
  padding: 14px 18px;
  text-align: left;
  font-size: 13.8px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.qc-table th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--ov-3);
}
.qc-table tr:last-child td { border-bottom: none; }
.qc-table td { color: var(--text-2); line-height: 1.7; }
.qc-table td:first-child { white-space: nowrap; }

/* ---------- 核心特性（4 卡片） ---------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* ---------- 功能一览（平铺列表） ---------- */
.feat-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.feat-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 22px;
  border-radius: var(--r);
  background: var(--ov-1);
  border: 1px solid var(--border);
  transition: border-color 0.25s, background 0.25s;
}
.feat-list li:hover { border-color: var(--border-2); background: var(--ov-2); }
.feat-list-ico {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--ov-4);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--accent);
}
.feat-list-ico svg { width: 17px; height: 17px; }
.feat-list-body { min-width: 0; }
.feat-list-body b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.feat-list-body p {
  font-size: 13.8px;
  color: var(--text-2);
  line-height: 1.78;
}
.feat-list .feat-link { margin-top: 8px; }

/* ---------- 适用场景与能力边界 ---------- */
.scope {
  padding: 30px 32px;
  border-radius: var(--r-lg);
  background: var(--grad-ed);
  border: 1px solid var(--border);
}
.scope h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.scope p {
  font-size: 14.3px;
  color: var(--text-2);
  line-height: 1.85;
}
.scope-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 28px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.scope-list li {
  position: relative;
  padding-left: 20px;
  font-size: 13.6px;
  color: var(--text-2);
  line-height: 1.72;
}
.scope-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--accent);
}
.scope-list b { color: var(--text); font-weight: 600; }

/* ---------- 扫码参数配置页：左右分栏 ---------- */
.qc-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
.qc-side {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}

/* 文件上传 */
.qc-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
/* 原生 input + ::file-selector-button 定制外观：
   不隐藏 input —— 隐藏后键盘与辅助技术都拿不到它 */
.qc-file-input {
  font-family: inherit;
  font-size: 12.8px;
  color: var(--text-3);
  max-width: 260px;
}
.qc-file-input::file-selector-button {
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 16px;
  margin-right: 10px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.qc-file-input::file-selector-button:hover {
  background: var(--surface-2);
  border-color: var(--border-2);
}
.qc-file-label {
  font-size: 13.5px;
  color: var(--text-2);
}
.qc-file-name {
  font-size: 12.3px;
  color: var(--text-3);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qc-formats-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--ov-3);
  border: 1px solid var(--border);
  font-size: 12.4px;
  color: var(--text-3);
  line-height: 1.75;
}
.qc-formats-note b { color: var(--text-2); font-weight: 600; }
.qc-formats-note code {
  font-family: var(--mono);
  font-size: 11.8px;
  color: var(--code-fg);
  background: var(--code-bg);
  padding: 1px 5px;
  border-radius: 5px;
}

/* 折叠说明（details/summary） */
.qc-fold {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--ov-3);
  margin-bottom: 18px;
  overflow: hidden;
}
.qc-fold > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s, background 0.2s;
}
.qc-fold > summary::-webkit-details-marker { display: none; }
.qc-fold > summary:hover { color: var(--text); background: var(--ov-2); }
.qc-fold > summary svg { width: 16px; height: 16px; color: var(--text-3); }
.qc-fold-mark {
  margin-left: auto;
  width: 8px; height: 8px;
  border-right: 1.6px solid var(--text-3);
  border-bottom: 1.6px solid var(--text-3);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.22s;
}
.qc-fold[open] .qc-fold-mark { transform: rotate(225deg) translate(-2px, -2px); }
.qc-fold-body {
  padding: 2px 18px 18px;
  font-size: 13.4px;
  color: var(--text-3);
  line-height: 1.82;
}
.qc-fold-body ol {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.qc-fold-body li::marker { color: var(--accent); font-weight: 600; }
.qc-fold-body b { color: var(--text-2); font-weight: 600; }
.qc-fold-note { margin-top: 12px; }

/* ---------- 更新日志页 ---------- */
/* 左侧固定目录 + 右侧正文；窄屏时目录收进顶部折叠块 */
.cl-wrap {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

/* 左侧目录 */
.cl-side {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  max-height: calc(100vh - var(--nav-h) - 48px);
  overflow-y: auto;
  padding-right: 6px;
}
.cl-side-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}
.cl-toc { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.cl-toc > li > a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  border-left: 2px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.cl-toc > li > a:hover { color: var(--text); background: var(--surface); }
.cl-toc > li > a.is-active {
  color: var(--accent);
  background: var(--surface);
  border-left-color: var(--accent);
}
/* 二级（组标题） */
.cl-toc-sub { list-style: none; margin: 2px 0 8px; }
.cl-toc-sub a {
  display: block;
  padding: 5px 12px 5px 22px;
  font-size: 12.6px;
  color: var(--text-3);
  border-left: 2px solid transparent;
  transition: color 0.2s;
}
.cl-toc-sub a:hover { color: var(--text-2); }
.cl-toc-sub a.is-active { color: var(--accent); }

/* 窄屏时的目录折叠块 */
.cl-side-fold { display: none; }

/* 正文 */
.cl-release { padding-bottom: 46px; margin-bottom: 46px; border-bottom: 1px solid var(--border); }
.cl-release:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.cl-release-head { margin-bottom: 26px; }
.cl-release-head h2 {
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cl-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  color: var(--accent);
  white-space: nowrap;
}
.cl-badge.is-released {
  background: var(--ok-bg);
  border-color: var(--ok-border);
  color: var(--ok-fg);
}
.cl-date { font-size: 13px; color: var(--text-3); font-family: var(--mono); }
.cl-summary {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.82;
  max-width: 760px;
}
.cl-group { margin-top: 26px; }
.cl-group h3 {
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.cl-group ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.cl-group li {
  position: relative;
  padding-left: 20px;
  font-size: 14.2px;
  color: var(--text-2);
  line-height: 1.78;
}
.cl-group li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--border-2);
}

/* 部署形态 */
.cl-deploy { margin-top: 28px; }
.cl-deploy h3 {
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 14px;
}
.cl-deploy-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.cl-deploy-item {
  padding: 16px 18px;
  border-radius: var(--r);
  background: var(--ov-1);
  border: 1px solid var(--border);
}
.cl-deploy-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  flex-wrap: wrap;
}
.cl-deploy-head b { font-size: 14.5px; font-weight: 600; }
.cl-state {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.cl-state.is-ready { background: var(--ok-bg); border: 1px solid var(--ok-border); color: var(--ok-fg); }
.cl-state.is-planned { background: var(--ov-4); border: 1px solid var(--border); color: var(--text-3); }
.cl-deploy-item p { font-size: 13.2px; color: var(--text-3); line-height: 1.72; }

/* ---------- 赞助页：单栏居中 ---------- */
.sp-panel {
  max-width: 560px;
  margin: 0 auto;
  padding: 34px 32px;
  border-radius: var(--r-lg);
  background: var(--grad-sp);
  border: 1px solid var(--border);
  text-align: center;
}
.sp-panel h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.sp-panel > p {
  font-size: 13.8px;
  color: var(--text-2);
  line-height: 1.8;
}
.sp-panel .qr-box { margin: 22px auto 12px; }
.sp-panel .sp-list-link { justify-content: center; }
.sp-boundary {
  margin-top: 26px;
  padding: 22px 24px;
  border-radius: var(--r);
  background: var(--ov-3);
  border: 1px solid var(--border);
  text-align: left;
}
.sp-boundary h4 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 12px;
}
.sp-boundary ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.sp-boundary li {
  position: relative;
  padding-left: 20px;
  font-size: 13.4px;
  color: var(--text-3);
  line-height: 1.72;
}
.sp-boundary li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--border-2);
}

/* ---------- 404 页面 ---------- */
.e404 {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 100vh;
  padding: 24px;
  text-align: center;
}
.e404-ico {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--ov-4);
  border: 1px solid var(--border);
  color: var(--text-3);
  margin-bottom: 24px;
}
.e404-ico svg { width: 26px; height: 26px; }
.e404 h1 {
  font-size: clamp(64px, 13vw, 108px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 20px;
}
.e404 p { color: var(--text-2); font-size: 15px; margin-bottom: 32px; line-height: 1.8; }
.e404-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ---------- 滚动揭示动画 ---------- */
/* 仅在 JS 确认可用时才隐藏初始状态，防止脚本失败导致整页白屏 */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr; }
  .sp-card { grid-template-columns: 1fr; text-align: center; }
  .sp-list { align-items: center; }
  .sp-list li { text-align: left; }
  .qc-split { grid-template-columns: 1fr; }
  .qc-side { position: static; }
}

@media (max-width: 760px) {
  .section { padding: 78px 0; }
  .hero { padding: calc(var(--nav-h) + 66px) 0 72px; }
  .hero-banner { height: clamp(240px, 62vw, 400px); }
  .hb-dots { bottom: 16px; }

  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 20px 20px;
    background: var(--nav-drop-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.26s, opacity 0.26s;
  }
  .nav-links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links > a:not(.btn) { padding: 12px 14px; font-size: 15px; }
  .nav-links > a:not(.btn).is-active { background: rgba(37, 99, 235, 0.16); }
  .nav-links > a:not(.btn).is-active::after { display: none; }
  .nav-links .btn { margin: 8px 0 0; justify-content: center; }
  .nav-toggle { display: flex; }

  .grid-2, .grid-3, .grid-4, .shots, .steps-3 { grid-template-columns: 1fr; }
  .fb-row-2 { grid-template-columns: 1fr; }
  .feat-list { grid-template-columns: 1fr; }
  .scope-list { grid-template-columns: 1fr; }
  .scope { padding: 24px 20px; }

  .qc-block { padding: 22px 18px; }
  .qc-f-row { grid-template-columns: 1fr; gap: 6px; }
  .qc-json { max-height: 300px; font-size: 11.6px; }
  .qc-actions .btn { flex: 1; min-width: 150px; }
  .qc-upload { flex-direction: column; align-items: flex-start; gap: 8px; }
  .qc-file-input { max-width: 100%; width: 100%; }
  .qc-file-input::file-selector-button { padding: 8px 14px; }
  .qc-formats-note { padding: 11px 12px; }
  .qc-lead { display: block; }

  .sp-panel { padding: 26px 20px; }
  .sp-boundary { padding: 18px 18px; }

  /* 更新日志：目录收进顶部折叠块 */
  .cl-wrap { grid-template-columns: 1fr; gap: 24px; }
  .cl-side { display: none; }
  .cl-side-fold {
    display: block;
    margin-bottom: 26px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    background: var(--ov-3);
    overflow: hidden;
  }
  .cl-side-fold > summary {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 13px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-2);
    cursor: pointer;
    list-style: none;
  }
  .cl-side-fold > summary::-webkit-details-marker { display: none; }
  .cl-side-fold > summary svg { width: 16px; height: 16px; color: var(--text-3); }
  .cl-side-fold .cl-toc { padding: 0 10px 12px; }
  .cl-side-fold .cl-toc-sub { display: none; }
  .cl-release { padding-bottom: 34px; margin-bottom: 34px; }

  .fb-form { padding: 24px 20px; }
  .step { padding: 22px 20px; gap: 16px; }
  .plain-note { padding: 20px 20px; }
  .ed { padding: 28px 24px; }
  .ed-flag { position: static; display: inline-block; margin-bottom: 14px; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 26px; }

  .hero-actions .btn { flex: 1; min-width: 190px; }

  .page { padding: calc(var(--nav-h) + 56px) 0 70px; }
  .to-top { right: 18px; bottom: 18px; width: 40px; height: 40px; }
}

@media (max-width: 420px) {
  .seg { width: 100%; }
  .seg-btn { flex: 1; padding: 9px 10px; font-size: 12.5px; }
  .qr-box { width: 152px; height: 152px; }
  .dl-btns .btn { min-width: 100%; }
}

/* ---------- 可访问性 / 降级 ---------- */
:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 2px;
  border-radius: 4px;
}

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

@media print {
  .bg-deco, .nav, .qr-tip { display: none; }
  body { background: #fff; color: #000; }
}