/* ═══════════ esproxy/www/introduction/index.css ═══════════
   入门口专用样式 (依赖 css/theme.css 的 :root 变量 + html.light 覆盖)
   PPT / 书风格: hero → 章节 → 卡片 → 表格 → 终端块
   仅新增结构/排版类, 颜色/字体一律复用主题变量
*/

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

.intro-body {
  background: var(--c0);
  color: var(--fg);
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Hero ── */
.intro-hero {
  position: relative;
  padding: 96px 24px 72px;
  text-align: center;
  background:
    radial-gradient(ellipse 640px 420px at 25% 22%, rgba(125, 207, 255, 0.10), transparent 60%),
    radial-gradient(ellipse 640px 420px at 75% 78%, rgba(158, 206, 106, 0.08), transparent 60%),
    linear-gradient(rgba(125, 207, 255, 0.045) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(125, 207, 255, 0.045) 1px, transparent 1px) 0 0 / 32px 32px;
}
.intro-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, transparent 0%, var(--c0) 100%);
  pointer-events: none;
}
.intro-hero > * { position: relative; z-index: 1; }

.intro-hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 11px;
  color: var(--cyn);
  border: 1px solid var(--c3);
  border-radius: 12px;
  background: var(--c1);
}
.intro-hero .badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grn);
  box-shadow: var(--glow-g);
  animation: introPulse 2s ease-in-out infinite;
}
@keyframes introPulse {
  50% { opacity: 0.5; transform: scale(0.85); }
}
.intro-hero h1 {
  margin-top: 16px;
  font-size: 56px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--grn), var(--cyn));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -1px;
  line-height: 1.1;
}
.intro-hero .tagline {
  margin-top: 16px;
  font-size: 18px;
  color: var(--fg);
  letter-spacing: 0.5px;
}
.intro-hero .tagline a {
  color: var(--cyn);
  text-decoration: none;
  border-bottom: 1px dashed var(--c3);
}
.intro-hero .tagline a:hover {
  color: var(--grn);
  border-bottom-color: var(--grn);
}
.intro-hero .promise {
  margin-top: 12px;
  font-size: 14px;
  color: var(--dim);
}
.intro-hero .promise .pill {
  display: inline-block;
  padding: 2px 8px;
  margin: 0 4px;
  color: var(--grn);
  background: rgba(158, 206, 106, 0.10);
  border-radius: 10px;
  font-weight: 700;
}
.intro-hero .ctas {
  margin-top: 32px;
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.intro-hero .cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s;
}
.intro-hero .cta.primary {
  color: var(--c0);
  background: var(--grn);
  border: 1px solid var(--grn);
}
.intro-hero .cta.primary:hover {
  box-shadow: var(--glow-g);
  transform: translateY(-1px);
}
.intro-hero .cta.secondary {
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--c3);
}
.intro-hero .cta.secondary:hover {
  border-color: var(--cyn);
  color: var(--cyn);
}
/* 首屏次级入口: 已安装用户的证书配置 (弱化为文字链, 不与主/次按钮抢视觉) */
.intro-hero .cta-note {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.15s;
}
.intro-hero .cta-note:hover { color: var(--grn); }

/* ── 文档封面 (guide / ai-tools 共用): 左对齐扉页, 与首页居中的品牌 hero 区分 ── */
.intro-hero.doc-hero {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 72px 24px 40px;
  text-align: left;
  background: transparent;
}
.intro-hero.doc-hero::after { content: none; }
.intro-hero.doc-hero .eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grn);
}
.intro-hero.doc-hero h1 {
  margin-top: 14px;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.5px;
  background: none;
  color: var(--wht);
  -webkit-text-fill-color: var(--wht);
}
.intro-hero.doc-hero h1::before {
  content: '❯';
  margin-right: 12px;
  color: var(--grn);
  font-weight: 700;
}
.intro-hero.doc-hero .tagline {
  margin-top: 12px;
  max-width: 720px;
  font-size: 15px;
  color: var(--dim);
  line-height: 1.7;
}
.doc-toc {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.doc-toc a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--fg);
  text-decoration: none;
  background: var(--c1);
  border: 1px solid var(--c3);
  border-radius: 6px;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.doc-toc a b {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--grn);
}
.doc-toc a:hover {
  color: var(--wht);
  border-color: var(--grn);
  background: var(--c2);
}
@media (max-width: 768px) {
  .intro-hero.doc-hero { padding: 56px 16px 32px; }
  .intro-hero.doc-hero h1 { font-size: 26px; }
  .intro-hero.doc-hero .tagline { font-size: 13px; }
  .doc-toc a { padding: 7px 12px; }
}
/* Hero 数据块 (通用): 大数字 + 小标签 (课程页等沿用) */
.intro-hero .stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  gap: 16px;
}
.intro-hero .stat {
  padding: 16px 20px;
  background: var(--c1);
  border: 1px solid var(--c3);
  border-radius: 6px;
  text-align: left;
}
.intro-hero .stat .n {
  font-size: 28px;
  font-weight: 700;
  color: var(--grn);
  letter-spacing: -0.5px;
}
.intro-hero .stat .l {
  margin-top: 4px;
  font-size: 11px;
  color: var(--dim);
  line-height: 1.5;
}

/* 首页规格条 (.stats-spec): 4 列 key/value, 统一容器 + 竖向虚线分隔
 * 与正文卡片区分; 层级反转 —— .n 是分类标签, .l 是主值 */
.intro-hero .stats-spec {
  gap: 0;
  padding: 4px;
  background: linear-gradient(180deg, var(--c1), var(--c0));
  border: 1px solid var(--c3);
  border-radius: 8px;
}
.intro-hero .stats-spec .stat {
  position: relative;
  padding: 18px 20px 20px;
  background: transparent;
  border: 0;
  border-radius: 4px;
  transition: background-color 0.18s;
}
.intro-hero .stats-spec .stat + .stat { border-left: 1px dashed var(--c3); }
.intro-hero .stats-spec .stat:hover { background: var(--c2); }
/* 行首色点: 四列轮换, 给规格条一点识别度 */
.intro-hero .stats-spec .stat::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 24px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grn);
  box-shadow: 0 0 8px rgba(61, 236, 85, 0.5);
}
.intro-hero .stats-spec .stat:nth-child(2)::before {
  background: var(--cyn);
  box-shadow: 0 0 8px rgba(61, 224, 224, 0.5);
}
.intro-hero .stats-spec .stat:nth-child(3)::before {
  background: var(--yel);
  box-shadow: 0 0 8px rgba(236, 180, 61, 0.5);
}
.intro-hero .stats-spec .stat:nth-child(4)::before {
  background: var(--mag);
  box-shadow: 0 0 8px rgba(194, 61, 236, 0.5);
}
.intro-hero .stats-spec .stat .n {
  padding-left: 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--soft);
}
.intro-hero .stats-spec .stat .l {
  margin-top: 8px;
  padding-left: 14px;
  font-size: 13px;
  color: var(--wht);
  line-height: 1.55;
}
@media (max-width: 1000px) {
  .intro-hero .stats-spec { grid-template-columns: repeat(2, 1fr); }
  .intro-hero .stats-spec .stat:nth-child(3) { border-left: 0; border-top: 1px dashed var(--c3); }
  .intro-hero .stats-spec .stat:nth-child(4) { border-top: 1px dashed var(--c3); }
}

/* ── 章节骨架 ── */
.intro-section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 80px 24px 40px;
  scroll-margin-top: 60px;
}
.intro-section .eyebrow {
  font-size: 11px;
  color: var(--grn);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
}
.intro-section h2 {
  margin-top: 8px;
  font-size: 32px;
  font-weight: 700;
  color: var(--wht);
  letter-spacing: -0.5px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.intro-section h2::before {
  content: '❯';
  color: var(--grn);
  font-weight: 700;
}
.intro-section .subtitle {
  margin-top: 8px;
  font-size: 14px;
  color: var(--dim);
  max-width: 720px;
}
.intro-section .body {
  margin-top: 32px;
}

/* ── 快速开始 (4 步卡片) ── */
.intro-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
/* 3 步的区块用 3 等分填满整行 (默认 4 列会空出第 4 格) */
.intro-steps.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.intro-step {
  position: relative;
  padding: 20px;
  background: var(--c1);
  border: 1px solid var(--c3);
  border-radius: 6px;
}
.intro-step .num {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--grn);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.intro-step h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--wht);
}
.intro-step p {
  margin-top: 6px;
  font-size: 12px;
  color: var(--dim);
  line-height: 1.5;
}
.intro-step pre {
  margin-top: 10px;
  padding: 8px 10px;
  background: var(--c0);
  border: 1px solid var(--c3);
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.5;
  overflow-x: auto;
  color: var(--fg);
  font-family: inherit;
  white-space: pre-wrap;
  word-break: break-word;
}
.intro-step pre .prompt { color: var(--grn); }

/* ── 快速开始 step 01: 平台下载列表 (双行: 系统/架构 + 版本胶囊) ── */
.intro-step .intro-dl {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.intro-step .dl-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  background: var(--c0);
  border: 1px solid var(--c3);
  border-radius: 4px;
  font-size: 11px;
  color: var(--fg);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.intro-step .dl-item:hover {
  border-color: var(--grn);
  background: var(--c2);
}
.intro-step .dl-item .dl-ico {
  flex-shrink: 0;
  color: var(--cyn);
}
.intro-step .dl-item .dl-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.intro-step .dl-item .dl-name {
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.intro-step .dl-item .dl-sub {
  font-size: 9.5px;
  line-height: 1.2;
  color: var(--dim);
  letter-spacing: 0.2px;
}
.intro-step .dl-item .dl-ver {
  flex: none;
  margin-left: 4px;
  padding: 1px 5px;
  border: 1px solid var(--c3);
  border-radius: 3px;
  background: var(--c0);
  color: var(--dim);
  font-size: 9.5px;
  line-height: 1.5;
}
.intro-step .dl-item .dl-go {
  flex: none;
  color: var(--dim);
  opacity: 0.65;
  transition: color 0.15s, transform 0.15s;
}
.intro-step .dl-item:hover .dl-go {
  color: var(--grn);
  opacity: 1;
  transform: translateY(1px);
}
/* 该平台还没有发布包: 版本位去掉胶囊边框, 整项弱化 */
.intro-step .dl-item.is-empty { cursor: default; }
.intro-step .dl-item.is-empty:hover { border-color: var(--c3); background: var(--c0); }
.intro-step .dl-item.is-empty .dl-ver {
  padding-left: 0;
  padding-right: 0;
  border-color: transparent;
  background: transparent;
}
.intro-step .dl-item.is-empty .dl-go { opacity: 0.25; }
.intro-step .step-link,
.intro-step .dl-history {
  display: block;
  width: fit-content;
  margin: 8px 0 0 auto;   /* 右对齐 */
  font-size: 10.5px;
  color: var(--dim);
  text-decoration: none;
}
.intro-step .step-link:hover,
.intro-step .dl-history:hover { color: var(--grn); }
/* 快速开始四步: 底部文字链接统一贴底右对齐 */
#start .intro-step .step-link,
#start .intro-step .dl-history { margin-top: auto; }

/* ── releases.html 历史版本 ── */
.rel-list { display: flex; flex-direction: column; gap: 14px; }
.rel-card {
  border: 1px solid var(--c3);
  border-radius: 6px;
  background: var(--c1);
  overflow: hidden;
}
.rel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--c3);
}
.rel-head h3 {
  font-size: 15px;
  color: var(--wht);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}
.rel-badge {
  font-size: 9.5px;
  line-height: 1.6;
  padding: 0 6px;
  border: 1px solid rgba(158, 206, 106, 0.35);
  border-radius: 3px;
  background: rgba(158, 206, 106, 0.10);
  color: var(--grn);
}
.rel-date { margin-left: auto; font-size: 11px; color: var(--dim); }
.rel-notes { padding: 0 14px 10px; font-size: 11px; line-height: 1.5; color: var(--dim); }
.rel-table { display: flex; flex-direction: column; }
.rel-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-top: 1px dashed var(--c3);
}
.rel-row:first-child { border-top: 0; }
.rel-os {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rel-dl {
  flex: none;
  font-size: 11px;
  color: var(--grn);
  text-decoration: none;
  border: 1px solid rgba(158, 206, 106, 0.35);
  border-radius: 3px;
  padding: 2px 8px;
  transition: background-color 0.15s;
}
.rel-dl:hover { background: rgba(158, 206, 106, 0.10); }
.rel-sha {
  flex: none;
  max-width: 42%;
  font-family: inherit;
  font-size: 10px;
  color: var(--dim);
  background: var(--c0);
  border: 1px solid var(--c3);
  border-radius: 3px;
  padding: 2px 6px;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rel-sha:hover:not([disabled]) { color: var(--fg); border-color: var(--dim); }
.rel-sha[disabled] { cursor: default; opacity: 0.55; }
.rel-empty {
  padding: 18px;
  text-align: center;
  color: var(--dim);
  font-size: 12px;
  border: 1px dashed var(--c3);
  border-radius: 6px;
}
.rel-back { margin-top: 18px; font-size: 12px; }
.rel-back a { color: var(--dim); text-decoration: none; }
.rel-back a:hover { color: var(--grn); }
@media (max-width: 768px) {
  .rel-row { flex-wrap: wrap; }
  .rel-os { flex-basis: 100%; }
  .rel-sha { max-width: 55%; }
}

.intro-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dim);
  font-size: 16px;
  z-index: 2;
}

/* ── Tabs (平台切换) ── */
.intro-tabs {
  position: relative;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 0;
}
.intro-tab {
  padding: 8px 16px;
  font-family: inherit;
  font-size: 12px;
  color: var(--dim);
  background: var(--c1);
  border: 1px solid var(--c3);
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.intro-tab:hover {
  color: var(--fg);
  border-color: var(--dim);
}
.intro-tab.on {
  color: var(--grn);
  border-color: var(--grn);
  background: rgba(158, 206, 106, 0.06);
}
.intro-panel { display: none; }
.intro-panel.on { display: block; }

/* panel 内容 */
.intro-panel ol.steps {
  margin: 0;
  padding-left: 22px;
}
.intro-panel ol.steps li {
  margin: 8px 0;
  font-size: 13px;
  color: var(--fg);
  line-height: 1.7;
}
.intro-panel ol.steps li code,
.intro-panel ol.steps li b {
  color: var(--cyn);
  font-weight: 600;
}

/* 代码块 (终端风 + 文件 tab + 角标复制) */
.cmd-block {
  margin: 12px 0;
  padding: 0;
  background: var(--c0);
  border: 1px solid var(--c3);
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.7;
  overflow: hidden;
}
.cmd-block .cmd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  background: var(--c2);
  border-bottom: 1px solid var(--c3);
}
.cmd-block .cmd-head .fname {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--dim);
  font-family: 'JetBrains Mono', monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cmd-block .cmd-head .fname::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grn);
  opacity: 0.6;
  flex-shrink: 0;
}
.cmd-block .cmd-head .copy-mini {
  font-family: inherit;
  font-size: 11px;
  padding: 2px 8px;
  color: var(--dim);
  background: transparent;
  border: 1px solid var(--c3);
  border-radius: 3px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  flex-shrink: 0;
  margin-left: 12px;
}
.cmd-block .cmd-head .copy-mini:hover {
  color: var(--grn);
  border-color: var(--grn);
}
.cmd-block pre {
  padding: 12px 16px;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.7;
}
.cmd-block pre .prompt { color: var(--grn); }
.cmd-block pre .comment { color: var(--dim); font-size: 11px; }

/* ── Callouts ── */
.intro-callout {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--cyn);
  background: rgba(125, 207, 255, 0.04);
  border-radius: 0 4px 4px 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--fg);
}
.intro-callout.warn {
  border-left-color: var(--yel);
  background: rgba(224, 175, 104, 0.04);
}
.intro-callout.tip {
  border-left-color: var(--grn);
  background: rgba(158, 206, 106, 0.04);
}
.intro-callout .title {
  font-weight: 700;
  color: var(--cyn);
  margin-bottom: 4px;
}
.intro-callout.warn .title { color: var(--yel); }
.intro-callout.tip .title { color: var(--grn); }
.intro-callout code {
  background: var(--c0);
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid var(--c3);
  font-size: 11px;
}

/* ── 魔法域名卡片 ── */
.intro-magic {
  margin: 16px 0;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(125, 207, 255, 0.08), rgba(158, 206, 106, 0.06));
  border: 1px solid var(--c3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.intro-magic .url-wrap { flex: 1; min-width: 200px; }
.intro-magic .url-label {
  font-size: 11px;
  color: var(--dim);
  margin-bottom: 4px;
}
.intro-magic .url {
  font-size: 16px;
  font-weight: 700;
  color: var(--cyn);
  font-family: 'JetBrains Mono', monospace;
}
.intro-magic .copy-btn,
.intro-magic .open-btn {
  font-family: inherit;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid var(--c3);
  color: var(--dim);
  background: var(--c1);
  transition: all 0.15s;
}
.intro-magic .copy-btn:hover { color: var(--grn); border-color: var(--grn); }
.intro-magic .open-btn {
  color: var(--grn);
  border-color: var(--grn);
  background: rgba(158, 206, 106, 0.06);
}
.intro-magic .open-btn:hover { background: rgba(158, 206, 106, 0.12); }

/* ── 功能网格 ── */
.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
/* 指南 hub: 卡片标签 / 底部说明 */
.gh-tags {
  margin-top: 8px;
  font-size: 11px;
  color: var(--soft);
  letter-spacing: 0.02em;
}
.gh-note {
  margin-top: 24px;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.7;
}
.gh-note a {
  color: var(--cyn);
  text-decoration: none;
  border-bottom: 1px dashed var(--c3);
}
.gh-note a:hover {
  color: var(--grn);
  border-bottom-color: var(--grn);
}
.intro-feature {
  padding: 20px;
  background: var(--c1);
  border: 1px solid var(--c3);
  border-radius: 6px;
  transition: border-color 0.18s, background-color 0.18s;
}
.intro-feature:hover {
  border-color: var(--grn);
  background-color: var(--c2);
}
.intro-feature .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(158, 206, 106, 0.10);
  color: var(--grn);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  font-family: 'JetBrains Mono', monospace;
}
/* 图标 + 功能名标签同一行: 场景标题回答"为什么", 标签回答"是什么功能" */
.intro-feature .feat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.intro-feature .feat-head .icon { margin-bottom: 0; }
.intro-feature .ftag {
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--soft);
  background: var(--c0);
  border: 1px solid var(--c3);
  border-radius: 3px;
  line-height: 1.4;
  white-space: nowrap;
}
.intro-feature h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--wht);
}
.intro-feature p {
  margin-top: 6px;
  font-size: 12px;
  color: var(--dim);
  line-height: 1.6;
}
.intro-feature .keys {
  margin-top: 10px;
  font-size: 11px;
  color: var(--soft);
}
.intro-feature .keys b { color: var(--cyn); font-weight: 600; }
.intro-feature.wide { grid-column: span 3; }
.intro-feature.half { grid-column: span 2; }

/* ═══════════ 帮助中心: 入门 30 期 (guide.html #help) ═══════════ */
.help-modules { display: flex; flex-direction: column; gap: 26px; }
.help-mod-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.help-mod-num { font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--grn); }
.help-mod-name { font-size: 15px; font-weight: 700; color: var(--wht); }
.help-mod-range { margin-left: auto; font-size: 10px; letter-spacing: 1px; color: var(--soft); }
.help-lesson-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.help-lesson {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 15px; background: var(--c1); border: 1px solid var(--c3);
  border-radius: 6px; text-decoration: none; color: inherit;
  transition: border-color 0.18s, background-color 0.18s;
}
.help-lesson:hover { border-color: var(--grn); background: var(--c2); }
.hl-n {
  flex: none; width: 26px; height: 26px; display: inline-flex;
  align-items: center; justify-content: center; border-radius: 5px;
  background: rgba(158, 206, 106, 0.10); color: var(--grn);
  font-size: 11px; font-weight: 700;
}
.hl-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hl-title { font-size: 13px; font-weight: 700; color: var(--wht); }
.hl-goal { font-size: 11px; line-height: 1.55; color: var(--dim); }
.hl-time { flex: none; padding-top: 3px; font-size: 10px; color: var(--soft); white-space: nowrap; }

/* ═══════════ 区域区分: 快速开始(流程条) vs 选择场景(场景卡) ═══════════ */

/* #start — 4 步合为一条流程条: 统一容器 + 虚线分隔 + 大号序号水印 */
#start .intro-steps {
  /* step 01 需要放下三行下载项, 比其他步骤宽 */
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 0;
  padding: 4px;
  background: linear-gradient(180deg, var(--c1), var(--c0));
  border: 1px solid var(--c3);
  border-radius: 8px;
}
#start .intro-step {
  display: flex;
  flex-direction: column;
  padding: 24px 20px 20px;
  background: transparent;
  border: none;
  border-radius: 4px;
  overflow: hidden;
  transition: background-color 0.18s;
}
#start .intro-step + .intro-step {
  border-left: 1px dashed var(--c3);
}
#start .intro-step:hover { background: var(--c2); }
#start .intro-step .num {
  position: absolute;
  top: 10px;
  right: 16px;
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--fg);
  opacity: 0.07;
  pointer-events: none;
}
/* 流程条内不用箭头, 序号 + 虚线已表达顺序 */
#start .intro-step:not(:last-child)::after { content: none; }

/* #guides — 场景卡: 左侧色条 + 描边图标 + 悬停浮起 */
#guides .intro-feature {
  position: relative;
  padding: 24px 24px 20px;
  background: linear-gradient(160deg, var(--c1), var(--c0));
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.18s ease-out, border-color 0.18s, box-shadow 0.18s;
}
#guides .intro-feature::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--grn);
  opacity: 0.55;
}
#guides .intro-feature:nth-child(2)::before { background: var(--cyn); }
#guides .intro-feature:nth-child(3)::before { background: var(--yel); }
#guides .intro-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
#guides .intro-feature .icon {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-size: 17px;
}
#guides .intro-feature:nth-child(1) .icon { color: var(--grn); }
#guides .intro-feature:nth-child(2) .icon { color: var(--cyn); }
#guides .intro-feature:nth-child(3) .icon { color: var(--yel); }
#guides .gh-tags {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--c3);
}
#guides .gh-note {
  padding: 12px 16px;
  background: var(--c1);
  border-left: 2px solid var(--grn);
  border-radius: 0 4px 4px 0;
}

@media (max-width: 768px) {
  /* 单列时流程条改为横向虚线分隔 */
  #start .intro-step + .intro-step {
    border-left: none;
    border-top: 1px dashed var(--c3);
  }
}

/* ── 价格展示 (划线原价 + 现价) ── */
.pricing-price {
  margin: 12px 0;
  display: flex;
  justify-content: center;   /* 卡片可能是 flex column, 这里显式居中, 不依赖 text-align */
  align-items: baseline;
  gap: 10px;
}
.pricing-price .orig {
  font-size: 14px;
  color: var(--dim);
  text-decoration: line-through;
}
.pricing-price .now {
  font-size: 28px;
  font-weight: 700;
  color: var(--grn);
}
.pricing-price .unit {
  font-size: 13px;
  color: var(--dim);
}
/* 个人/企业授权说明: 卡片内的内嵌信息块, 与卡片同一套配色 (颜色继承父级) */
.intro-feature .pricing-refund {
  margin-top: 14px;
  padding: 12px 14px;
  text-align: left;
  font-size: 12px;
  line-height: 1.7;
  background: var(--c0);
  border: 1px solid var(--c3);
  border-radius: 6px;
}
.intro-feature .pricing-refund b { font-weight: 600; }
/* 每条说明独立成块: 悬挂缩进, 长条目换行后不会顶到圆点左边 */
.intro-feature .pricing-refund .pr-i {
  display: block;
  padding-left: 1em;
  text-indent: -1em;
}
.intro-feature .pricing-refund .pr-i + .pr-i { margin-top: 3px; }

/* ── 对比表 (移动端证书信任) ── */
.intro-compare {
  width: 100%;
  margin: 24px 0 0;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.6;
}
.intro-compare th,
.intro-compare td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--c3);
}
.intro-compare thead th {
  color: var(--dim);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.intro-compare tbody th {
  color: var(--wht);
  font-weight: 600;
  width: 150px;
  white-space: nowrap;
}
.intro-compare tbody td {
  color: var(--fg);
}
.intro-compare tbody tr:last-child th,
.intro-compare tbody tr:last-child td {
  border-bottom: none;
}
@media (max-width: 768px) {
  .intro-compare tbody th { width: auto; }
}

/* 对比表分组标题行: ED_TABLE 里的 { g: '抓包' } 渲染成整行 (colspan = 维度 + 档位) */
.intro-compare tbody tr.ed-group th {
  width: auto;
  padding: 16px 12px 7px;
  color: var(--cyn);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 1px solid var(--c2);
}
.intro-compare tbody tr.ed-group:first-child th { padding-top: 6px; }

/* ── UI 截图 (按主题切换, 来自 images/interface-{tokyo,paper,matrix,pure}.png) ── */
.intro-ui-diagram {
  background: var(--c0);
  border: 1px solid var(--c3);
  border-radius: 6px;
  padding: 0;
  overflow: hidden;
}
.intro-ui-diagram .ui-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  object-position: top center;
}

/* ── 场景卡片 ── */
.intro-scenarios {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.intro-scenario {
  padding: 20px;
  background: var(--c1);
  border: 1px solid var(--c3);
  border-radius: 6px;
  display: flex;
  gap: 16px;
}
.intro-scenario .num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c0);
  border: 1px solid var(--c3);
  border-radius: 6px;
  color: var(--cyn);
  font-weight: 700;
  font-size: 14px;
}
.intro-scenario h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--wht);
}
.intro-scenario p {
  margin-top: 4px;
  font-size: 12px;
  color: var(--dim);
  line-height: 1.5;
}
.intro-scenario .how {
  margin-top: 8px;
  padding: 6px 10px;
  background: var(--c0);
  border-radius: 3px;
  font-size: 11px;
  color: var(--fg);
}
.intro-scenario .how::before { content: '→ '; color: var(--grn); font-weight: 700; }

/* ── 键盘快捷键 ── */
.intro-kbd {
  display: inline-block;
  padding: 2px 7px;
  background: var(--c2);
  border: 1px solid var(--c3);
  border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--fg);
  margin: 0 2px;
  box-shadow: 0 1px 0 var(--c3);
}
.intro-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
  margin-top: 12px;
}
.intro-shortcut {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px dashed var(--c3);
  font-size: 12px;
}
.intro-shortcut .keys { display: inline-flex; gap: 4px; min-width: 110px; }
.intro-shortcut .desc { color: var(--dim); flex: 1; }

/* ── FAQ ── */
.intro-faq {
  border-top: 1px solid var(--c3);
  counter-reset: faq;
}
.intro-faq-item {
  border-bottom: 1px solid var(--c3);
  counter-increment: faq;
}
.intro-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 0;
  background: transparent;
  border: none;
  color: var(--fg);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s;
}
.intro-faq-q:hover { color: var(--grn); }
.intro-faq-q::before {
  content: counter(faq, decimal-leading-zero) '. ';
  color: var(--grn);
  font-weight: 700;
  margin-right: 10px;
  flex-shrink: 0;
}
.intro-faq-q .arrow {
  color: var(--dim);
  font-size: 12px;
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: auto;
}
.intro-faq-item.open .intro-faq-q .arrow {
  transform: rotate(90deg);
  color: var(--grn);
}
.intro-faq-a {
  display: none;
  padding: 0 0 16px;
  font-size: 13px;
  color: var(--dim);
  line-height: 1.7;
}
.intro-faq-item.open .intro-faq-a { display: block; }
.intro-faq-a p + p { margin-top: 8px; }
.intro-faq-a code {
  background: var(--c0);
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid var(--c3);
  font-size: 12px;
}
.intro-faq-a a { color: var(--cyn); text-decoration: none; }
.intro-faq-a a:hover { color: var(--grn); }

/* ── 展开/收起按钮 (应用内信任方案) ── */
.intro-expand-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  margin: 16px 0 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--c3);
  color: var(--fg);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s;
}
.intro-expand-btn:hover { color: var(--grn); }
.intro-expand-btn .arrow {
  margin-left: auto;
  color: var(--dim);
  font-size: 12px;
  transition: transform 0.2s, color 0.2s;
  flex-shrink: 0;
}
.intro-expand-btn[aria-expanded="true"] .arrow {
  transform: rotate(90deg);
  color: var(--grn);
}
.intro-expand-body { display: none; }
.intro-expand-body.open { display: block; }

/* ── 响应式 ── */
@media (max-width: 768px) {
  .intro-hero { padding: 56px 16px 40px; }
  .intro-hero h1 { font-size: 40px; }
  .intro-hero .stats,
  .intro-hero .stats-spec { grid-template-columns: 1fr; }
  .intro-hero .stats-spec .stat + .stat { border-left: 0; border-top: 1px dashed var(--c3); }
  .intro-section { padding: 56px 16px 24px; }
  .intro-section h2 { font-size: 24px; }
  .intro-steps,
  .intro-steps.cols-3,
  #start .intro-steps { grid-template-columns: 1fr; }
  .intro-step:not(:last-child)::after {
    content: '↓';
    right: 50%;
    top: auto;
    bottom: -14px;
    transform: translateX(50%);
  }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-feature.wide,
  .intro-feature.half { grid-column: span 1; }
  .intro-scenarios { grid-template-columns: 1fr; }
  .intro-shortcuts { grid-template-columns: 1fr; }
  .help-lesson-grid { grid-template-columns: 1fr; }
}

/* ═══════════ 升级 1. 滚动揭示 (IntersectionObserver 触发 fade-in) ═══════════ */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ═══════════ 升级 2. 顶部阅读进度条 (rAF 驱动, scrollY/maxScroll) ═══════════ */
.intro-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  z-index: 200;
  pointer-events: none;
}
.intro-progress-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--grn), var(--cyn));
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.08s linear;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .intro-progress-fill { transition: none; }
}

/* ═══════════ 升级 3. 编辑风章节号 (CSS counter, 右上角大号水印) ═══════════ */
body { counter-reset: chap; }
.intro-section {
  position: relative;
  counter-increment: chap;
}
.intro-section::before {
  content: counter(chap, decimal-leading-zero);
  position: absolute;
  top: 72px;
  right: 24px;
  font-size: 140px;
  font-weight: 900;
  line-height: 1;
  color: var(--fg);
  opacity: 0.055;
  letter-spacing: -8px;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  font-feature-settings: 'tnum';
}
.intro-section > * { position: relative; z-index: 1; }
@media (max-width: 768px) {
  .intro-section::before {
    font-size: 72px;
    top: 48px;
    right: 16px;
    letter-spacing: -4px;
  }
}

/* ═══════════ 升级 6. Tab 滑动指示器 (绿条从 active tab 下沿滑入) ═══════════ */
.tab-ink {
  position: absolute;
  bottom: -2px;
  height: 2px;
  background: var(--grn);
  border-radius: 1px;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 2;
  box-shadow: var(--glow-g);
}
@media (prefers-reduced-motion: reduce) {
  .tab-ink { transition: none; box-shadow: none; }
}

/* ═══════════ 代码高亮 (11 token 类, Tokyo Night 调色, 见 index.js::LANGS) ═══════════ */
.cmd-block pre .tk-kw,
pre[data-lang] .tk-kw      { color: var(--cyn); }
.cmd-block pre .tk-typ,
pre[data-lang] .tk-typ     { color: var(--mag); }
.cmd-block pre .tk-fn,
pre[data-lang] .tk-fn      { color: var(--blu); }
.cmd-block pre .tk-str,
pre[data-lang] .tk-str     { color: var(--yel); }
.cmd-block pre .tk-num,
pre[data-lang] .tk-num     { color: var(--orange); }
.cmd-block pre .tk-com,
pre[data-lang] .tk-com     { color: var(--dim); font-style: italic; }
.cmd-block pre .tk-tag,
pre[data-lang] .tk-tag     { color: var(--cyn); }
.cmd-block pre .tk-attr,
pre[data-lang] .tk-attr    { color: var(--blu); }
.cmd-block pre .tk-prompt,
pre[data-lang] .tk-prompt  { color: var(--grn); font-weight: 700; }
.cmd-block pre .tk-meta,
pre[data-lang] .tk-meta    { color: var(--dim); }
.cmd-block pre .tk-flag,
pre[data-lang] .tk-flag    { color: var(--yel); }

/* ═══ 版本对比 / 首页共用 (editions-ui.js + ED_TABLE) ═══ */
  /* 4 列对照表 (维度 + 3 档: 免费/个人/企业) — 窄屏横向滚动 */
  .ed-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin-top:22px}
  .ed-compare{min-width:900px;margin-top:0;table-layout:fixed}
  .ed-compare thead th{vertical-align:bottom}
  /* 维度列定宽, 其余 3 档等分 (fixed 布局下宽度取自表头第一行) */
  .ed-compare thead th:first-child{width:240px}
  .ed-compare tbody th{width:240px;white-space:normal}
  .ed-compare td{vertical-align:top}
  .ed-compare .ed-tier{color:var(--wht);font-size:12px}
  .ed-compare .ed-tier .tag{
    display:block;margin-top:3px;font-size:10px;font-weight:400;
    color:var(--soft);letter-spacing:0.02em;text-transform:none;
  }
  .ed-compare tbody tr:hover{background:rgba(61,138,236,0.06)}
  /* 分组标题行 (ED_TABLE 的 { g: '…' }) 不参与行 hover / 悬停高亮 */
  .ed-compare tbody tr.ed-group:hover{background:none}
  .ed-compare tbody tr.ed-group th{
    width:auto;          /* 覆盖 .ed-compare tbody th 的 240px 定宽 */
    white-space:nowrap;  /* 覆盖 normal, 保证分组名不换行 */
  }
  /* 只高亮版本对比表的「个人版」列；support 页的 sup-table 不受影响。
   * 列序: th=维度, td1=免费, td2=个人, td3=企业。 */
  #compare .ed-compare tbody td:nth-child(3){background:rgba(61,236,85,0.04)}
  .ed-y{color:var(--grn);font-weight:600}
  .ed-n{color:var(--red);font-weight:600}
  .ed-na{color:var(--soft)}
  .ed-note{display:block;margin-top:3px;font-size:11px;color:var(--dim)}
  .ed-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
  /* 价格卡: 说明块贴底对齐, 两卡条目数量不同也不会一高一低 */
  .ed-cards .intro-feature{display:flex;flex-direction:column}
  .ed-cards .intro-feature .ed-buy-wrap{margin-bottom:14px}
  .ed-cards .intro-feature .pricing-refund{margin-top:auto}
  @media(max-width:860px){.ed-cards{grid-template-columns:1fr}}
  .ed-cards .intro-feature p+p{margin-top:6px}
  .ed-note-list{margin-top:18px;font-size:12px;color:var(--dim);line-height:1.8}
  .ed-note-list p+p{margin-top:6px}
  .ed-note-list code{color:var(--cyn);font-size:11px}
  /* 四档表下的「一句摘要 + 折叠细则」 */
  .ed-note-summary{margin-top:18px;font-size:12px;color:var(--dim);line-height:1.7}
  .ed-note-details{margin-top:14px;border:1px solid var(--c3);border-radius:6px;background:var(--c1);padding:0 16px}
  .ed-note-details summary{
    display:flex;align-items:center;gap:8px;padding:12px 0;cursor:pointer;
    list-style:none;font-size:13px;font-weight:600;color:var(--fg);
  }
  .ed-note-details summary::-webkit-details-marker{display:none}
  .ed-note-details summary .arrow{margin-left:auto;color:var(--dim);font-size:11px;transition:transform .2s,color .2s}
  .ed-note-details[open] summary .arrow{transform:rotate(90deg);color:var(--grn)}
  .ed-note-details[open] summary{color:var(--wht)}
  .ed-note-details .ed-note-list{padding-bottom:14px;margin-top:0}
  .ed-buy{display:inline-block;margin-top:18px;padding:8px 22px;border:1px solid var(--grn);
          border-radius:6px;color:var(--grn);text-decoration:none;font-size:13px}
  .ed-buy:hover{background:rgba(61,236,85,0.1)}
  .ed-buy.alt{border-color:var(--blu);color:var(--blu)}
  .ed-buy.alt:hover{background:rgba(61,138,236,0.1)}

  /* ── 支持范围页 (support.html): 3 列表格 ── */
  .sup-legend{margin:18px 0 0;font-size:12px;color:var(--dim);letter-spacing:0.02em}
  .sup-table{min-width:0;table-layout:auto}
  .sup-table thead th:first-child,
  .sup-table tbody th{width:220px;white-space:normal}
  .sup-table td{vertical-align:top;line-height:1.7}
  .sup-table td:nth-child(2){white-space:nowrap;color:var(--dim)}
  .ed-partial{color:var(--yel);font-weight:600}
  .ed-config{color:var(--cyn);font-weight:600}
  /* 不支持 / 限制的原因: 暗色弱化, 与主描述拉开层级 */
  .sup-why{color:var(--soft)}
  @media (max-width:640px){
    .sup-table thead th:first-child,
    .sup-table tbody th{width:auto}
  }
