/* ==========================================================================
   SilverFox Guard · site.css
   2026-10-20 重设计 —— 方向「拦截场」
   --------------------------------------------------------------------------
   设计决定：
     · 底色：深墨 #08090b，中性色带冷灰蓝相；浅色模式单独设计成微暖纸白 #f5f3ef
     · 主色只一个：品牌蓝 --brand / --brand-ink。绿只做「已拦截」状态，红只出现在威胁内容里。
       没有第二个渐变，没有蓝紫，没有光晕。
     · 字体三档：得意黑 900（标题）/ 系统黑体 400（正文）/ 等宽 500（数据与标签）
       层级靠 900 对 400 的极端字重与 3 倍字号跳档，不靠边框和投影。
     · 每个分区换一种编排：横贯读数带 / 竖时间轴 / 横向流程 / 左签右板 /
       真正的数据表 / 通栏大图 / 窄带 / 水印步骤 / 不对称两栏 / 双列 FAQ。
   ========================================================================== */

@font-face {
  font-family: "SmileySans";
  src: url("../fonts/SmileySans-Oblique.woff2") format("woff2");
  font-weight: 500 900;
  font-style: normal;
  font-display: swap;
}

/* ============================ 1. 令牌 ============================ */
:root {
  color-scheme: dark;
  --disp: "SmileySans", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --body: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Mono", "SF Mono", "JetBrains Mono", Consolas, "Courier New", monospace;

  /* 底色是深墨蓝黑，不是纯黑 —— 纯黑在 OLED 上会显得廉价，带一点蓝相才有纵深 */
  --bg: #06080e;
  --bg-2: #090d15;
  --panel: #0c1018;
  --panel-2: #101620;
  --fg: #eef2f8;
  --fg-mid: #a8b3c4;
  /* 提亮到 4.5:1 以上：所有小字标签都用它 */
  --fg-dim: #838fa3;

  --line: rgba(255, 255, 255, .065);
  --line-2: rgba(255, 255, 255, .14);

  /* 品牌蓝：两档 —— brand 用来画（图标/描边/粒子），brand-ink 才当文字 */
  --brand: #3d7ef0;
  --brand-ink: #7fb0ff;
  --brand-soft: rgba(61, 126, 240, .13);
  --brand-line: rgba(61, 126, 240, .38);

  /* 绿只做「已拦截 / 正常」这一种语义，不当品牌色 */
  --ok: #35d08a;
  --ok-ink: #6ee7b0;
  --ok-soft: rgba(53, 208, 138, .1);

  /* 威胁红降饱和，避免和品牌蓝抢 */
  --threat: #e0563f;
  --threat-ink: #f08e7c;
  --threat-soft: rgba(224, 86, 63, .11);
  --warn: #d9a13f;

  --dot: rgba(150, 180, 225, .5);
  --wit: rgba(110, 160, 240, .38);

  --r: 8px;
  --r-lg: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --pad: clamp(20px, 4.2vw, 56px);
}

:root[data-theme="light"] {
  color-scheme: light;
  /* 浅色用微暖纸白，不用纯白：纯白 + 蓝是默认 AI 配色 */
  --bg: #f4f3f0;
  --bg-2: #eceae5;
  --panel: #fdfcfa;
  --panel-2: #f7f5f1;
  --fg: #0f141c;
  --fg-mid: #454d5a;
  --fg-dim: #626b7a;

  --line: rgba(20, 30, 50, .1);
  --line-2: rgba(20, 30, 50, .2);

  --brand: #1f5ed6;
  --brand-ink: #1a52bd;
  --brand-soft: rgba(31, 94, 214, .08);
  --brand-line: rgba(31, 94, 214, .3);

  --ok: #0a7a52;
  --ok-ink: #076343;
  --ok-soft: rgba(10, 122, 82, .08);

  --threat: #b8331f;
  --threat-ink: #9c2917;
  --threat-soft: rgba(184, 51, 31, .08);
  --warn: #8a5a00;

  --dot: rgba(35, 55, 85, .35);
  --wit: rgba(31, 94, 214, .3);
}

/* ============================ 2. 基础 ============================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.72;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-ink); text-decoration: none; transition: color .16s var(--ease); }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

code {
  font-family: var(--mono);
  font-size: .88em;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--brand-ink);
}

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: var(--pad);
}

.mono {
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.skip {
  position: absolute;
  left: 12px;
  top: -70px;
  z-index: 300;
  padding: 11px 18px;
  border-radius: 8px;
  background: var(--brand);
  color: #04140f;
  font-weight: 700;
  font-size: .9rem;
  transition: top .18s var(--ease);
}
:root[data-theme="light"] .skip { color: #fff; }
.skip:focus-visible, .skip:focus { top: 12px; text-decoration: none; }

/* ============================ 3. 粒子场 ============================ */
#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(120% 76% at 50% 6%, #000 0%, #000 34%, rgba(0,0,0,.5) 64%, transparent 90%);
  mask-image: radial-gradient(120% 76% at 50% 6%, #000 0%, #000 34%, rgba(0,0,0,.5) 64%, transparent 90%);
  opacity: .85;
}
:root[data-theme="light"] #field { opacity: .65; }

.site-header, main, .site-footer { position: relative; z-index: 1; }

/* ============================ 4. 顶栏 ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.hd { display: flex; align-items: center; gap: 20px; height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); flex: none; }
.brand:hover { text-decoration: none; color: var(--fg); }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.brand .bt { display: block; line-height: 1; }
.brand .bt b {
  font-family: var(--disp);
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1;
}
.brand .bt span {
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .22em;
  color: var(--fg-dim);
  display: block;
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  padding: 7px 11px;
  border-radius: 7px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--fg-mid);
  white-space: nowrap;
  transition: color .15s var(--ease), background .15s var(--ease);
}
.nav a:hover { color: var(--fg); background: var(--panel); text-decoration: none; }

.ver {
  flex: none;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--brand-ink);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 3px 10px;
}

.tgl {
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: transparent;
  color: var(--fg-mid);
  cursor: pointer;
  transition: color .15s var(--ease), border-color .15s var(--ease), background .15s var(--ease);
}
.tgl:hover { color: var(--fg); border-color: var(--fg-dim); background: var(--panel); }
.tgl:active { transform: scale(.94); }
.tgl svg { width: 16px; height: 16px; }
.tgl .i-sun, .tgl .i-moon, .tgl .i-auto { display: none; }
:root[data-theme="dark"] .tgl .i-moon { display: block; }
:root[data-theme="light"] .tgl .i-sun { display: block; }
:root[data-mode="system"] .tgl .i-sun,
:root[data-mode="system"] .tgl .i-moon { display: none; }
:root[data-mode="system"] .tgl .i-auto { display: block; }

/* ============================ 5. 首屏 ============================ */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 76px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, .72fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--fg-mid);
  text-transform: uppercase;
  padding: 5px 11px 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 60%, transparent);
  margin: 0 0 26px;
}
.pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
  animation: pulse 2.6s var(--ease) infinite;
  flex: none;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.8); }
}

h1 {
  font-family: var(--disp);
  font-size: clamp(2.9rem, 7.4vw, 6rem);
  font-weight: 900;
  line-height: .96;
  letter-spacing: .015em;
  margin: 0;
  text-wrap: balance;
}
h1 em {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-size: clamp(.62rem, 1.1vw, .8rem);
  font-weight: 500;
  letter-spacing: .4em;
  color: var(--fg-dim);
  margin-top: 18px;
  text-transform: uppercase;
}

.lede {
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.86;
  color: var(--fg-mid);
  max-width: 34em;
  margin: 24px 0 0;
}
.lede b { color: var(--fg); font-weight: 600; }

.facts {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  max-width: 40em;
}
.facts li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 4px 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
  line-height: 1.66;
  color: var(--fg-mid);
}
.facts .n {
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--brand-ink);
  padding-top: .42em;
  grid-row: span 2;
}
.facts b { color: var(--fg); font-weight: 600; font-size: .95rem; display: block; }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-family: var(--body);
  font-size: .93rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s var(--ease), border-color .16s var(--ease),
              color .16s var(--ease), transform .12s var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:active { transform: translateY(1px); }

.btn-solid {
  background: var(--brand);
  color: #04140f;
  border-color: var(--brand);
  font-weight: 700;
}
.btn-solid:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: #04140f; text-decoration: none; }
:root[data-theme="light"] .btn-solid,
:root[data-theme="light"] .btn-solid:hover { color: #ffffff; }

.btn-line { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--fg-dim); background: var(--panel); color: var(--fg); text-decoration: none; }

.btn-ghost {
  background: transparent;
  color: var(--fg-mid);
  border-color: transparent;
  padding-inline: 4px;
  font-weight: 500;
  font-size: .875rem;
}
.btn-ghost:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

.hero-meta {
  margin: 22px 0 0;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--fg-dim);
}
.hero-warn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 14px 0 0;
  padding-left: 10px;
  border-left: 2px solid var(--warn);
  font-size: .8rem;
  color: var(--fg-mid);
}
.hero-warn svg { width: 13px; height: 13px; color: var(--warn); flex: none; }

/* ---- 右侧终端面板 ---- */
.term {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  margin-top: 14px;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .12em;
  color: var(--fg-dim);
  text-transform: uppercase;
}
.term-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); flex: none; }
.term-bar i.on { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.term-bar span { margin-left: auto; }

.term-rows { padding: 12px 15px 14px; margin: 0; font-family: var(--mono); font-size: .73rem; line-height: 1.5; }
.term-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  opacity: 0;
  animation: rowIn .5s var(--ease) forwards;
}
.term-row:last-child { border-bottom: 0; }
.term-row dt { color: var(--fg-dim); letter-spacing: .08em; font-size: .64rem; text-transform: uppercase; padding-top: 2px; }
.term-row dd { margin: 0; color: var(--fg); overflow-wrap: anywhere; }
.term-row dd .g { color: var(--ok-ink); }
.term-row dd .r { color: var(--threat-ink); }
.term-row:nth-child(1) { animation-delay: .10s; }
.term-row:nth-child(2) { animation-delay: .18s; }
.term-row:nth-child(3) { animation-delay: .26s; }
.term-row:nth-child(4) { animation-delay: .34s; }
.term-row:nth-child(5) { animation-delay: .42s; }
.term-row:nth-child(6) { animation-delay: .50s; }
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.term-foot {
  padding: 11px 15px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .06em;
  color: var(--fg-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}
.caret { width: 6px; height: 11px; background: var(--brand); animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ============================ 6. 读数带 ============================ */
.reads {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 70%, transparent);
}
.reads-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.read { padding: 26px 22px 24px; border-left: 1px solid var(--line); }
.read:first-child { border-left: 0; padding-left: 0; }
.read span {
  display: block;
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--fg-dim);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.read b {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--disp);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .01em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.read b small {
  font-family: var(--mono);
  font-size: .3em;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--fg-dim);
}
.read.is-hi b { color: var(--brand-ink); }

/* ============================ 7. 分区标题 ============================ */
.sec { padding: clamp(56px, 7.6vw, 104px) 0; }
.sec-tight { padding: clamp(40px, 5vw, 64px) 0; }

.sec-hd {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 12px 48px;
  align-items: end;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(28px, 3.4vw, 46px);
}
.sec-hd .idx {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .26em;
  color: var(--brand-ink);
  text-transform: uppercase;
}
.sec-hd h2 {
  font-family: var(--disp);
  font-size: clamp(1.75rem, 3.1vw, 2.9rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: .015em;
  margin: 0;
  text-wrap: balance;
}
.sec-hd p { margin: 0; color: var(--fg-mid); font-size: .94rem; line-height: 1.78; max-width: 46em; }

/* ============================ 8. 威胁时间轴 ============================ */
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before {
  content: "";
  position: absolute;
  left: 11px; top: 11px; bottom: 11px;
  width: 1px;
  background: linear-gradient(var(--threat) 0%, var(--threat) 8%, var(--line) 46%, var(--line) 100%);
}
.tl li {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 0 26px;
  padding: 0 0 34px;
}
.tl li:last-child { padding-bottom: 0; }
.tl .dot {
  position: relative;
  z-index: 1;
  width: 9px; height: 9px;
  margin: 7px 0 0 7px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--threat);
}
.tl li:first-child .dot { background: var(--threat); box-shadow: 0 0 0 4px var(--threat-soft); }
.tl .n {
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--threat-ink);
  display: block;
  margin-bottom: 5px;
}
.tl h3 { font-size: 1.16rem; font-weight: 700; margin: 0 0 7px; letter-spacing: .01em; }
.tl p { margin: 0; color: var(--fg-mid); font-size: .92rem; line-height: 1.8; max-width: 62em; }

/* ============================ 9. 横向流程 ============================ */
.flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding-top: 10px;
}
.flow::before {
  content: "";
  position: absolute;
  left: 5%; right: 5%; top: 30px;
  height: 1px;
  background-image: linear-gradient(90deg, var(--line-2) 0 50%, transparent 50% 100%);
  background-size: 9px 1px;
  animation: march 1.5s linear infinite;
}
@keyframes march { to { background-position: 9px 0; } }

.flow-step { position: relative; padding-right: 20px; }
.flow-step .node {
  position: relative;
  z-index: 1;
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--bg);
  border: 1px solid var(--line-2);
  color: var(--fg-mid);
  margin-bottom: 18px;
}
.flow-step .node svg { width: 18px; height: 18px; }
.flow-step .tag {
  display: block;
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--fg-dim);
  margin-bottom: 5px;
}
.flow-step h3 { margin: 0 0 6px; font-size: .98rem; font-weight: 700; }
.flow-step p { margin: 0; font-size: .84rem; line-height: 1.7; color: var(--fg-mid); }
.flow-step.is-final .node { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-soft); }
.flow-step.is-final .tag { color: var(--brand-ink); }

/* ============================ 10. 左签右板 ============================ */
/* ============================ 11. 数据表 ============================ */
.mx { display: flex; flex-direction: column; gap: 28px; }
.mx-grp {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: color-mix(in srgb, var(--panel) 72%, transparent);
  overflow: hidden;
}
.mx-cap {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}
.mx-cap .k {
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--brand-ink);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 2px 7px;
}
.mx-cap h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.mx-cap .c { margin-left: auto; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; color: var(--fg-dim); }

.mx table { width: 100%; border-collapse: collapse; }
.mx thead th {
  text-align: left;
  font-family: var(--mono);
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding: 9px 18px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 55%, transparent);
}
.mx thead th:first-child { width: 78px; }
.mx tbody tr { border-bottom: 1px solid var(--line); transition: background .14s var(--ease); }
.mx tbody tr:last-child { border-bottom: 0; }
.mx tbody tr:hover { background: var(--panel-2); }
.mx tbody td { padding: 11px 18px 13px; font-size: .87rem; vertical-align: top; line-height: 1.6; }

.mx td.w {
  position: relative;
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
  white-space: nowrap;
}
.mx td.w::before {
  content: "";
  position: absolute;
  left: 14px;
  bottom: 8px;
  width: calc((100% - 40px) * var(--w, 0));
  height: 2px;
  border-radius: 1px;
  background: var(--fg-dim);
  opacity: .45;
}
.mx tr[data-lv="high"] td.w { color: var(--threat-ink); }
.mx tr[data-lv="high"] td.w::before { background: var(--threat); opacity: .8; }
.mx tr[data-lv="mid"] td.w { color: var(--warn); }
.mx tr[data-lv="mid"] td.w::before { background: var(--warn); opacity: .72; }
.mx td.name { font-weight: 600; color: var(--fg); }
.mx td.desc { color: var(--fg-mid); font-size: .83rem; }

.mx-note {
  margin: 18px 0 0;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--fg-dim);
  line-height: 1.7;
}

/* ============================ 12. 主防：大图 + 四栏 ============================ */
.shot { margin: 0 0 34px; }
.shot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: #05070a;
  box-shadow: none;
}
.shot figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .08em;
  color: var(--fg-dim);
}

.av4 { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.av4 article { padding: 24px 22px 4px; border-left: 1px solid var(--line); }
.av4 article:first-child { border-left: 0; padding-left: 0; }
.av4 h3 {
  font-size: .98rem;
  font-weight: 700;
  margin: 0 0 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}
.av4 h3 span {
  font-family: var(--mono);
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--fg-dim);
}
.av4 p { margin: 0; font-size: .85rem; line-height: 1.78; color: var(--fg-mid); }

.clean {
  margin-top: clamp(36px, 4vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: color-mix(in srgb, var(--panel) 64%, transparent);
}
.clean-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--brand-soft);
  font-size: .9rem;
  font-weight: 700;
}
.clean-hd .k {
  font-family: var(--mono);
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--brand-ink);
  border: 1px solid var(--brand);
  border-radius: 4px;
  padding: 2px 7px;
}
.clean-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.clean-grid article { padding: 20px 18px 22px; border-left: 1px solid var(--line); }
.clean-grid article:first-child { border-left: 0; }
.clean-grid .ph {
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--brand-ink);
  display: block;
  margin-bottom: 7px;
}
.clean-grid h4 { margin: 0 0 7px; font-size: .95rem; font-weight: 700; }
.clean-grid p { margin: 0; font-size: .82rem; line-height: 1.74; color: var(--fg-mid); }
.clean-foot {
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  font-size: .82rem;
  line-height: 1.72;
  color: var(--fg-mid);
  background: color-mix(in srgb, var(--bg-2) 60%, transparent);
}

/* 配置要求 */
.req {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: color-mix(in srgb, var(--panel) 64%, transparent);
  overflow: hidden;
}
.req summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--fg);
}
.req summary::-webkit-details-marker { display: none; }
.req summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--fg-dim);
  transition: transform .18s var(--ease);
}
.req[open] summary::after { transform: rotate(45deg); }
.req-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  padding: 20px 18px 22px;
  border-top: 1px solid var(--line);
}
.req-body h4 {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.req table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.req th {
  text-align: left;
  font-weight: 500;
  color: var(--fg-dim);
  width: 66px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  white-space: nowrap;
}
.req td { padding: 7px 0 7px 12px; border-bottom: 1px solid var(--line); line-height: 1.62; color: var(--fg-mid); }
.req tr:last-child th, .req tr:last-child td { border-bottom: 0; }

/* ============================ 13. 窄带 ============================ */
.promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  position: relative;
  overflow: hidden;
}
.promo::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: .45;
}
.promo h2 {
  font-family: var(--disp);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 900;
  line-height: 1.14;
  margin: 0 0 10px;
  letter-spacing: .015em;
}
.promo p { margin: 0 0 20px; color: var(--fg-mid); font-size: .93rem; line-height: 1.8; max-width: 52em; }
.swatches { display: flex; gap: 8px; flex: none; }
.swatch { width: 46px; height: 88px; border-radius: 8px; border: 1px solid var(--line); }

/* ============================ 14. 安装：水印步骤 ============================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.step {
  position: relative;
  padding: 10px 30px 0;
  border-left: 1px solid var(--line);
}
.step:first-child { border-left: 0; padding-left: 0; }
.step .big {
  font-family: var(--disp);
  font-size: clamp(3.2rem, 5.6vw, 5rem);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.02em;
  color: var(--fg);
  opacity: .1;
  display: block;
  margin-bottom: -8px;
  user-select: none;
}
.step h3 { margin: 0 0 8px; font-size: 1.02rem; font-weight: 700; position: relative; }
.step p { margin: 0; color: var(--fg-mid); font-size: .89rem; line-height: 1.78; }
.step p code { font-size: .84em; }
.step .lnk {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--brand-ink);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tip {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 34px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--brand);
  border-radius: 0 10px 10px 0;
  background: color-mix(in srgb, var(--panel) 55%, transparent);
  color: var(--fg-mid);
  font-size: .88rem;
}
.tip svg { width: 16px; height: 16px; color: var(--brand-ink); flex: none; margin-top: 3px; }
.tip p { margin: 0; }

/* ============================ 15. 隐私：不对称两栏 ============================ */
.priv { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); }

.pledge { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pledge li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: .93rem;
  color: var(--fg);
  align-items: start;
}
.pledge .tick { color: var(--ok); display: grid; place-items: center; padding-top: 1px; }
.pledge .tick svg { width: 15px; height: 15px; }
.pledge small { display: block; color: var(--fg-dim); font-size: .8rem; margin-top: 2px; }

/* ============================ 16. FAQ ============================ */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 17px 0;
  font-size: .95rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.55;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q {
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--fg-dim);
  padding-top: .35em;
  flex: none;
}
.faq summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--mono);
  font-size: 1.05rem;
  color: var(--fg-dim);
  transition: transform .18s var(--ease);
  flex: none;
  line-height: 1.2;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 22px 18px 34px; color: var(--fg-mid); font-size: .89rem; line-height: 1.82; }
.faq .a b { color: var(--fg); font-weight: 600; }

/* ============================ 17. 收尾 ============================ */
.end {
  border-top: 1px solid var(--line);
  padding: clamp(56px, 8vw, 104px) 0;
  text-align: center;
  position: relative;
}
.end::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 100% at 50% 100%, var(--brand-soft), transparent 70%);
  pointer-events: none;
}
.end > * { position: relative; }
.end h2 {
  font-family: var(--disp);
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: .01em;
  margin: 0 0 14px;
  text-wrap: balance;
}
.end p { margin: 0 0 30px; color: var(--fg-mid); font-size: .95rem; }
.end .cta { justify-content: center; margin-top: 0; }

.site-footer { border-top: 1px solid var(--line); padding: 26px 0; }
.ft {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: .82rem;
  color: var(--fg-dim);
}
.ft a { color: var(--fg-dim); }
.ft a:hover { color: var(--fg); }
.ft .sep { opacity: .4; margin: 0 7px; }

/* ============================ 18. 下载验证弹窗 ============================ */
.dlm {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.dlm[hidden] { display: none; }
.dlm-bd { position: absolute; inset: 0; background: rgba(4, 6, 9, .72); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.dlm-card {
  position: relative;
  width: min(430px, 100%);
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 28px 26px 24px;
  text-align: center;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9);
  animation: dlmIn .2s var(--ease);
}
@keyframes dlmIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.dlm-x {
  position: absolute;
  top: 10px; right: 12px;
  border: 0;
  background: transparent;
  color: var(--fg-dim);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}
.dlm-x:hover { color: var(--fg); }
.dlm-card h3 {
  margin: 0 0 7px;
  font-family: var(--disp);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: .02em;
}
.dlm-sub { margin: 0 0 18px; color: var(--fg-mid); font-size: .87rem; line-height: 1.6; }
.dlm-box { display: flex; justify-content: center; align-items: center; min-height: 70px; }
.dlm-status { margin: 14px 0 0; min-height: 1.2em; font-family: var(--mono); font-size: .76rem; color: var(--brand-ink); }
.dlm-status.is-err { color: var(--threat-ink); }

/* ============================ 19. 响应式 ============================ */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .term { max-width: 520px; }
  .av4 { grid-template-columns: 1fr 1fr; }
  .av4 article:nth-child(3) { border-left: 0; padding-left: 0; }
  .av4 article:nth-child(n+3) { border-top: 1px solid var(--line); }
  .clean-grid { grid-template-columns: 1fr 1fr; }
  .clean-grid article:nth-child(3) { border-left: 0; }
  .clean-grid article:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 940px) {
  .nav { display: none; }
  .hd .ver { margin-left: auto; }
  .sec-hd { grid-template-columns: 1fr; align-items: start; gap: 10px; }
  .priv { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .faq details:not(:first-child) { border-top: 0; }
  .promo { grid-template-columns: 1fr; }
  .swatches { order: -1; }
  .swatch { width: auto; height: 14px; flex: 1; }
}

@media (max-width: 760px) {
  :root { --pad: 18px; }
  .hd { height: 56px; gap: 12px; }
  .brand b { font-size: 1.05rem; }
  .brand .bt span { display: none; }
  .brand img { width: 24px; height: 24px; }
  .ver { font-size: .62rem; padding: 2px 8px; }
  .tgl { width: 30px; height: 30px; }

  .hero { padding: 34px 0 44px; }
  h1 { font-size: clamp(2.4rem, 12vw, 3.4rem); }
  h1 em { letter-spacing: .3em; margin-top: 12px; }
  .lede { font-size: .97rem; line-height: 1.8; margin-top: 18px; }
  .facts { margin-top: 24px; }
  .facts li { grid-template-columns: 28px 1fr; gap: 3px 10px; padding: 13px 0; font-size: .89rem; }
  .cta { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .cta .btn-solid, .cta .btn-line { grid-column: 1 / -1; }
  .cta .btn-ghost { justify-self: start; }

  .reads-row { grid-template-columns: 1fr 1fr; }
  .read:nth-child(3) { border-left: 0; padding-left: 0; }
  .read:nth-child(n+3) { border-top: 1px solid var(--line); }
  .read { padding: 20px 16px; }
  .read b { font-size: 2rem; }

  .sec { padding: 46px 0; }
  .sec-hd { margin-bottom: 26px; padding-bottom: 16px; }
  .sec-hd h2 { font-size: clamp(1.45rem, 6.4vw, 1.9rem); }
  .sec-hd p { font-size: .89rem; }

  .tl li { grid-template-columns: 20px minmax(0, 1fr); gap: 0 18px; padding-bottom: 26px; }
  .tl::before { left: 9px; }
  .tl .dot { margin-left: 5px; }
  .tl h3 { font-size: 1.04rem; }
  .tl p { font-size: .88rem; }

  .flow { grid-template-columns: 1fr; padding-left: 0; }
  .flow::before { left: 19px; right: auto; top: 12px; bottom: 12px; width: 1px; height: auto;
    background-image: linear-gradient(180deg, var(--line-2) 0 50%, transparent 50% 100%);
    background-size: 1px 9px; animation: marchY 1.5s linear infinite; }
  .flow-step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 16px; padding: 0 0 22px; }
  .flow-step .node { margin-bottom: 0; grid-row: span 4; }
  .flow-step .tag, .flow-step h3, .flow-step p { grid-column: 2; }

  .mx thead th:nth-child(3) { display: none; }
  .mx tbody td.desc { display: none; }
  .mx tbody td { padding: 10px 14px; }
  .mx-cap { padding: 12px 14px; }
  .mx-cap .c { margin-left: 0; }

  .av4, .clean-grid { grid-template-columns: 1fr; }
  .av4 article, .clean-grid article { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--line); }
  .av4 article:first-child, .clean-grid article:first-child { border-top: 0; }

  .steps { grid-template-columns: 1fr; }
  .step { border-left: 0; padding: 0 0 22px; border-top: 1px solid var(--line); padding-top: 16px; }
  .step:first-child { border-top: 0; padding-top: 0; }
  .step .big { font-size: 3.2rem; margin-bottom: 2px; }

  .req-body { grid-template-columns: 1fr; gap: 18px; }
  .faq .a { padding-left: 0; }
  .end { padding: 48px 0; }
  .ft { flex-direction: column; align-items: flex-start; }
  .ft .sep { display: none; }
}

@keyframes marchY { to { background-position: 0 9px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .term-row { opacity: 1 !important; }
  #field { display: none; }
}

@media print {
  #field, .site-header, .tgl, .dlm { display: none !important; }
  body { background: #fff; color: #000; }
  .sec { padding: 20px 0; }
}

/* ============================ 20. 入场（一次编排好的 stagger） ============================ */
.rv {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  transition-delay: var(--rv-d, 0ms);
  will-change: opacity, transform;
}
.rv-in { opacity: 1; transform: none; will-change: auto; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
}


/* ==========================================================================
   21. 攻击链 × 对策（页面主体）
   --------------------------------------------------------------------------
   这一层是这次重写的核心：页面骨架从「我们的功能」换成「攻击者的动作」。
   四个阶段（引流 / 诱导安装 / 持久化 / 窃密）是目录，对策挂在它下面 ——
   功能不再是并列的八张卡片，而是「敌人这样干，所以这里这样挡」。
   左列是攻击（威胁红、压暗），右列是拦截（信号绿、提亮），中间一条对抗轴。
   ========================================================================== */

.atk { display: flex; flex-direction: column; gap: 0; }

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1.12fr);
  border-top: 1px solid var(--line);
  padding: clamp(26px, 3.4vw, 44px) 0;
}
.stage:last-child { border-bottom: 1px solid var(--line); }

/* 阶段头：横跨两列 */
.stage-hd {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 22px;
}
.stage-hd .ph {
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .22em;
  color: var(--threat-ink);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 2px 8px;
  flex: none;
}
.stage-hd h3 {
  font-family: var(--disp);
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: .015em;
  margin: 0;
}
.stage-hd .verdict {
  margin-left: auto;
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--brand-ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.stage-hd .verdict::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

/* 左：攻击者 */
.side-atk > .lab,
.side-grd > .lab {
  display: block;
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.side-atk > .lab { color: var(--fg-dim); }
.side-grd > .lab { color: var(--brand-ink); }

.side-atk p {
  margin: 0 0 12px;
  font-size: .9rem;
  line-height: 1.8;
  color: var(--fg-mid);
  max-width: 40em;
}
.side-atk p:last-child { margin-bottom: 0; }
.side-atk code {
  font-size: .82em;
  color: var(--threat-ink);
  background: var(--threat-soft);
  border-color: transparent;
}

/* 中：对抗轴 */
.axis {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.axis::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(var(--threat), var(--line) 40%, var(--brand));
  opacity: .5;
}
.axis .vs {
  position: relative;
  font-family: var(--mono);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--fg-dim);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
}

/* 右：拦截点 */
.edge {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  align-items: start;
}
.edge:last-child { border-bottom: 0; padding-bottom: 0; }
.edge:first-of-type { padding-top: 0; }

.edge .w {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--brand-ink);
  background: var(--brand-soft);
  border-radius: 4px;
  padding: 2px 7px;
  min-width: 34px;
  text-align: center;
  line-height: 1.5;
  margin-top: 1px;
}
.edge .w.fixed {
  color: var(--fg-dim);
  background: transparent;
  border: 1px solid var(--line-2);
}
.edge b {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.5;
  margin-bottom: 2px;
}
.edge span {
  display: block;
  font-size: .82rem;
  line-height: 1.65;
  color: var(--fg-mid);
}
.edge .dims {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .1em;
  color: var(--fg-dim);
  margin-top: 3px;
}

@media (max-width: 900px) {
  .stage { grid-template-columns: 1fr; gap: 18px; padding: 26px 0; }
  .axis { display: none; }
  .stage-hd { margin-bottom: 16px; }
  .stage-hd .verdict { margin-left: 0; width: 100%; }
  .side-atk { padding-bottom: 4px; }
}

/* ==========================================================================
   22. 规格表：像硬件说明书一样写安装与开销
   ========================================================================== */
.spec {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--line-2);
}
.spec caption {
  text-align: left;
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding-bottom: 10px;
}
.spec th, .spec td {
  text-align: left;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: .88rem;
  vertical-align: top;
  line-height: 1.65;
}
.spec th {
  width: 168px;
  font-weight: 500;
  color: var(--fg-dim);
  white-space: nowrap;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .06em;
  padding-top: 14px;
}
.spec td { color: var(--fg-mid); }
.spec td b { color: var(--fg); font-weight: 600; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(28px, 5vw, 72px);
}
.spec-grid .spec { border-top: 0; }
@media (max-width: 900px) {
  .spec-grid { grid-template-columns: 1fr; }
  .spec th { width: 120px; }
}

/* ==========================================================================
   23. 事件日志：主防「看到了什么」
   ========================================================================== */
.log {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: .76rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: color-mix(in srgb, var(--panel) 70%, transparent);
}
.log li {
  display: grid;
  grid-template-columns: 92px 74px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  line-height: 1.55;
}
.log li:last-child { border-bottom: 0; }
.log li:hover { background: var(--panel-2); }
.log .t { color: var(--fg-dim); }
.log .src { color: var(--fg-dim); letter-spacing: .08em; text-transform: uppercase; font-size: .66rem; }
.log .ev { color: var(--fg); overflow-wrap: anywhere; }
.log .st {
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 3px;
  padding: 1px 7px;
  white-space: nowrap;
}
.log .st.blk { color: var(--ok-ink); background: var(--ok-soft); }
.log .st.ign { color: var(--fg-dim); border: 1px solid var(--line-2); }
.log .st.thr { color: var(--threat-ink); background: var(--threat-soft); }

.log-cap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.log-cap i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse 2.6s var(--ease) infinite;
}

@media (max-width: 760px) {
  .log li { grid-template-columns: 1fr auto; gap: 3px 10px; padding: 10px 13px; }
  .log .t { grid-column: 1; font-size: .68rem; }
  .log .src { grid-column: 1; }
  .log .ev { grid-column: 1 / -1; }
  .log .st { grid-row: 1; grid-column: 2; }
}

/* ==========================================================================
   24. 目录式导航（顶部锚点是攻击阶段，不是功能名）
   ========================================================================== */
.toc {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: clamp(28px, 3.6vw, 46px);
}
.toc a {
  display: block;
  padding: 16px 18px;
  background: var(--bg);
  color: var(--fg-mid);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.toc a:hover { background: var(--panel); color: var(--fg); text-decoration: none; }
.toc a .n {
  display: block;
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .18em;
  color: var(--threat-ink);
  margin-bottom: 6px;
}
.toc a b { display: block; font-size: .92rem; font-weight: 600; color: var(--fg); margin-bottom: 3px; }
.toc a small { font-size: .76rem; line-height: 1.5; color: var(--fg-dim); display: block; }
@media (max-width: 760px) { .toc { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .toc { grid-template-columns: 1fr; } }


/* ==========================================================================
   25. 质感层（2026-10-20 二次精修）
   --------------------------------------------------------------------------
   「高级感」不是形容词，是几条能验证的纪律：
     ① 大字必须收紧字距 —— 正字距只属于小字号标签，大标题用负字距才沉稳
     ② 少用框，多用线 —— 四边描边的盒子是「卡片」，只剩顶线才是「版面」
     ③ 阴影换成描边 —— 深色下的投影只会糊，描边才有精度
     ④ 一屏只给一个视觉重心 —— 强调色出现两次以上就失效
     ⑤ 密度降下来 —— 粒子、连线、装饰线全部退到「几乎察觉不到」
   ========================================================================== */

/* ① 字距 ------------------------------------------------------------------ */
h1 { letter-spacing: -.024em; }
h1 em { letter-spacing: .28em; }
.sec-hd h2,
.promo h2,
.end h2,
.stage-hd h3,
.faq summary { letter-spacing: -.005em; }
/* 小字标签反过来要宽，这是等宽字的美感来源 */
.sec-hd .idx,
.mono,
.stage-hd .ph,
.edge .dims,
.toc a .n { letter-spacing: .2em; }

/* ② 少用框，多用线 -------------------------------------------------------- */
/* 检测维度表：从「卡片」变回「表格」—— 去掉四边框与底色，只留分组顶线 */
.mx-grp {
  border: 0;
  border-top: 1px solid var(--line-2);
  border-radius: 0;
  background: transparent;
}
.mx-cap {
  background: transparent;
  border-bottom: 1px solid var(--line);
  padding: 14px 0 12px;
}
.mx-cap .k {
  border: 0;
  border-left: 2px solid var(--brand);
  border-radius: 0;
  padding: 1px 0 1px 8px;
}
.mx thead th {
  background: transparent;
  padding-left: 0;
  padding-right: 14px;
}
.mx thead th:first-child { width: 64px; }
.mx tbody td { padding-left: 0; padding-right: 14px; }
.mx td.w::before { left: 0; width: calc((100% - 20px) * var(--w, 0)); bottom: 6px; }
.mx thead th:last-child, .mx tbody td:last-child { padding-right: 0; }

/* 高级清除 / 配置 / 事件流：同样去框 */
.clean,
.req,
.log {
  border: 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  background: transparent;
}
.clean-hd {
  background: transparent;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.clean-foot { padding-left: 0; padding-right: 0; background: transparent; }
.req summary { padding-left: 0; padding-right: 0; }
.req-body { padding-left: 0; padding-right: 0; }
.log li { padding-left: 0; padding-right: 0; }

/* 主题编辑器：从「一个盒子」变成「一条通栏」 */
.promo {
  border: 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  background: transparent;
  padding-left: 0;
  padding-right: 0;
}
.promo::after { display: none; }

/* ③ 阴影 → 描边 ----------------------------------------------------------- */
.shot img {
  border: 1px solid var(--line-2);
  box-shadow: none;
  border-radius: var(--r);
}
.dlm-card {
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .9);
  border-color: var(--line-2);
}

/* ④ 一屏一个重心：把 verdict 的绿点收成一条短线，不再抢 h3 的眼睛 -------- */
.stage-hd .verdict { color: var(--fg-dim); }
.stage-hd .verdict::before {
  width: 14px; height: 1px;
  border-radius: 0;
  background: currentColor;
  box-shadow: none;
  opacity: .7;
}

/* ⑤ 留白再放大一档 -------------------------------------------------------- */
@media (min-width: 861px) {
  .sec { padding: clamp(72px, 8.4vw, 128px) 0; }
  .sec-tight { padding: clamp(52px, 6vw, 84px) 0; }
  .sec-hd { padding-bottom: 26px; margin-bottom: clamp(34px, 4vw, 56px); }
  .stage { padding: clamp(32px, 4vw, 52px) 0; }
}

/* 顶栏：一条渐隐的底线，只在滚动后出现，像图纸的基准线 */
.site-header.is-stuck::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 18%, var(--brand-line) 50%, var(--line-2) 82%, transparent);
  opacity: .8;
}
.hd { height: 68px; }

/* 导航：把 GitHub 和工具类入口推到右侧次级区，让核心锚点更清楚 */
.nav a { font-size: .855rem; letter-spacing: -.003em; }
.nav a:last-child { margin-left: 6px; }

/* 读数带：数字下面加一条极短的蓝线，代替分隔线的视觉重量 */
.read { position: relative; }
.read.is-hi::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 28px; height: 2px;
  background: var(--brand);
}

/* 首屏 h1 与正文之间收紧，让标题真正成为一块 */
.hero h1 { margin-bottom: 2px; }
.lede { max-width: 32em; }

/* 攻击链：左侧「它必须做」压暗一档，右侧拦截点提亮 —— 层级靠明度不靠颜色 */
.side-atk p { color: color-mix(in srgb, var(--fg-mid) 82%, transparent); }
.side-grd .edge b { font-size: .92rem; }
.side-grd .edge span { color: var(--fg-mid); }

/* 阶段标题：编号改成竖排细线标记，不再是与标题争重的方块 */
.stage-hd { align-items: center; margin-bottom: 26px; }
.stage-hd .ph {
  border: 0;
  border-radius: 0;
  padding: 0 0 0 10px;
  border-left: 2px solid var(--threat);
  color: var(--threat-ink);
  font-size: .62rem;
  line-height: 1.3;
}

/* 目录卡：只在 hover 时给一点蓝色底面，平时是纯粹的排版 */
.toc { border: 0; background: var(--line); border-radius: 0; }
.toc { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.toc a { background: transparent; padding: 18px 18px 18px 0; }
.toc a:first-child { padding-left: 0; }
.toc a:hover { background: transparent; }
.toc a:hover b { color: var(--brand-ink); }
.toc a b { transition: color .15s var(--ease); }

/* 规格表：标签列用蓝灰，值列正文近似色，形成稳定的两栏阅读轴 */
.spec th { color: var(--fg-dim); }
.spec td { color: var(--fg-mid); }
.spec { border-top: 1px solid var(--line-2); }

/* 收尾：去掉那层绿色径向光，换成一条居中细线 + 更紧的字距 */
.end::before { display: none; }
.end { border-top: 0; position: relative; }
.end::after {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(120px, 30%);
  height: 1px;
  background: var(--brand);
  opacity: .55;
}
.end h2 { letter-spacing: -.022em; }

/* 深色模式：面板底色略微抬亮，让「面板」和「纸面」有极轻的层次差 */
[data-theme="dark"] { --panel: #0d121b; --panel-2: #111823; }
[data-theme="dark"] .term {
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  border-color: var(--line-2);
}

/* 浅色模式：线更淡、面板更接近纸，避免「白卡片堆」的模板感 */
[data-theme="light"] .mx-grp,
[data-theme="light"] .clean,
[data-theme="light"] .log { border-top-color: var(--line-2); }


/* ==========================================================================
   26. 紧凑层（2026-10-20）
   --------------------------------------------------------------------------
   问题：整页 11374px，攻击链 3329px + 矩阵 2261px 占了一半，滚动成本过高。
   做法（只压结构，不删信息）：
     ① 攻击链 4 段从「竖排四屏」→ 2×2 网格，横向利用起来，高度直接砍到 1/3
     ② 29 维矩阵、技术规格 → 默认收起（<details>），想深挖的人点开
     ③ 每条拦截点从「三行」压成「两行」：权重与名称同行，依据一句话
     ④ 全局间距按比例收回，但不回到拥挤
   ========================================================================== */

/* ① 攻击链：2×2 ----------------------------------------------------------- */
.atk {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(28px, 4vw, 64px);
  border-top: 1px solid var(--line-2);
}
.stage {
  display: block;
  grid-template-columns: none;
  border-top: 0;
  border-bottom: 1px solid var(--line);
  padding: 26px 0 24px;
}
.stage:nth-child(1), .stage:nth-child(2) { border-top: 0; }
.stage:last-child { border-bottom: 1px solid var(--line); }
/* 只留每列的分隔感，不再画满四边 */
.stage:nth-child(2n) { padding-left: clamp(28px, 4vw, 64px); border-left: 1px solid var(--line); }
.stage:nth-child(2n-1) { padding-right: clamp(28px, 4vw, 64px); }

.stage-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.stage-hd .ph { font-size: .58rem; padding-left: 8px; }
.stage-hd h3 { font-size: clamp(1.06rem, 1.5vw, 1.3rem); }
.stage-hd .verdict {
  margin-left: auto;
  font-size: .58rem;
  letter-spacing: .1em;
}

/* 中轴不再需要 */
.axis { display: none; }

/* 左侧攻击描述：压成两句，行高收紧 */
.side-atk { margin-bottom: 16px; }
.side-atk > .lab,
.side-grd > .lab {
  font-size: .58rem;
  margin-bottom: 8px;
  letter-spacing: .16em;
}
.side-atk p {
  font-size: .845rem;
  line-height: 1.72;
  margin: 0 0 8px;
}
.side-atk p:last-child { margin-bottom: 0; }

/* ② 每条拦截点：权重 + 名称同行，依据一句话单行 --------------- */
.side-grd > .lab { margin-bottom: 6px; }
.edge {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.edge:last-child { border-bottom: 0; padding-bottom: 0; }
.edge:first-of-type { padding-top: 2px; }
.edge .w {
  font-size: .66rem;
  min-width: 30px;
  padding: 1px 6px;
  margin-top: 0;
}
/* 名称与依据进同一个单元格，名称行内，依据降为下一行小字 */
.edge > div { display: block; }
.edge b {
  display: inline;
  font-size: .845rem;
  font-weight: 600;
  margin-bottom: 0;
  margin-right: 6px;
}
.edge span {
  display: inline;
  font-size: .79rem;
  line-height: 1.6;
  color: var(--fg-dim);
}
.edge .dims { display: none; }   /* 维度代号已在名称里，重复信息去掉 */

@media (max-width: 900px) {
  .atk { grid-template-columns: 1fr; }
  .stage,
  .stage:nth-child(2n),
  .stage:nth-child(2n-1) { padding: 22px 0; border-left: 0; padding-left: 0; padding-right: 0; }
  .stage:nth-child(2) { border-top: 0; }
}

/* ③ 附录默认收起 --------------------------------------------------------- */
.fold {
  border-top: 1px solid var(--line-2);
}
.fold > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: color .15s var(--ease);
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary .k {
  font-family: var(--mono);
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--brand-ink);
  border-left: 2px solid var(--brand);
  padding-left: 8px;
  flex: none;
}
.fold > summary .t {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -.008em;
}
.fold > summary .m {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .06em;
  color: var(--fg-dim);
}
.fold > summary .m b { color: var(--brand-ink); font-weight: 600; }
.fold > summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--mono);
  font-size: 1.05rem;
  color: var(--fg-dim);
  line-height: 1;
  transition: transform .18s var(--ease);
}
.fold[open] > summary::after { transform: rotate(45deg); }
.fold[open] > summary { border-bottom-color: var(--line-2); }
.fold > summary:hover .t { color: var(--brand-ink); }
.fold-body { padding: 20px 0 6px; }

/* 矩阵在折叠体内：进一步压行高 */
.fold-body .mx { gap: 0; }
.fold-body .mx-grp { border-top: 1px solid var(--line); }
.fold-body .mx-grp:first-child { border-top: 0; }
.fold-body .mx-cap { padding: 12px 0 10px; border-bottom: 0; }
.fold-body .mx thead { display: none; }      /* 表头在折叠体内是噪音，省 34px */
.fold-body .mx tbody td { padding-top: 7px; padding-bottom: 7px; font-size: .84rem; }
.fold-body .mx td.desc { font-size: .8rem; }
.fold-body .mx-items-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(20px, 3vw, 48px); }
.fold-body .mx table { display: block; }
.fold-body .mx tbody { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(20px, 3vw, 48px); }
.fold-body .mx tbody tr { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 0 8px; border-bottom: 1px solid var(--line); padding: 0; }
.fold-body .mx tbody td { border: 0; padding-left: 0; padding-right: 0; }
.fold-body .mx td.name { font-size: .845rem; }
.fold-body .mx td.desc { grid-column: 2; padding-top: 0; padding-bottom: 8px; }
.fold-body .mx td.w { padding-bottom: 2px; }
.fold-body .mx td.w::before { display: none; }

@media (max-width: 900px) {
  .fold-body .mx tbody { grid-template-columns: 1fr; }
}

/* ④ 规格表在折叠体内：两列紧凑 ------------------------------------------- */
.fold-body .spec-grid { gap: 0 clamp(24px, 3vw, 48px); }
.fold-body .spec th,
.fold-body .spec td { padding-top: 9px; padding-bottom: 9px; font-size: .84rem; }
.fold-body .spec th { width: 96px; font-size: .7rem; padding-top: 10px; }
.fold-body .spec caption { padding-bottom: 8px; }

/* ⑤ 全局间距回收 --------------------------------------------------------- */
@media (min-width: 861px) {
  .sec { padding: clamp(52px, 6vw, 84px) 0; }
  .sec-tight { padding: clamp(40px, 4.6vw, 60px) 0; }
  .sec-hd { margin-bottom: clamp(26px, 3vw, 40px); padding-bottom: 20px; }
}
.sec-hd h2 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.toc { margin-bottom: 0; }
.toc a { padding: 15px 16px 15px 0; }
.toc a small { display: none; }        /* 目录只留阶段名，副标题是冗余 */
.toc a b { margin-bottom: 0; }

/* 主防区压缩：事件流行高收紧，截图限高 */
.log li { padding-top: 8px; padding-bottom: 8px; }
.shot { margin-bottom: 24px; }
.av4 article { padding-top: 18px; }
.av4 p { font-size: .83rem; line-height: 1.72; }

/* 首屏：把两行说明并成更紧的一段 */
.hero { padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(30px, 4vw, 52px); }
.lede { font-size: 1rem; line-height: 1.8; margin-top: 18px; max-width: 30em; }
.hero-meta { margin-top: 16px; }

/* FAQ：两列本来就紧凑，略收 */
.faq summary { padding: 14px 0; }
.faq .a { padding-bottom: 14px; }


/* ==========================================================================
   27. 收尾修正（2026-10-20）
   --------------------------------------------------------------------------
   像素统计暴露的三处失衡：
     · end 上下 padding 208px，占了整段 54%
     · privacy 左右墨量 0.09 : 0.03，左重右轻
     · hero 右侧终端只 299px 高，下方空 169px
   逐条修。
   ========================================================================== */

/* ① 收尾：把 padding 砍掉一半，字距收紧，不再靠巨大留白撑气场 ---------------- */
.end { padding: clamp(44px, 4.6vw, 64px) 0; }
.end h2 { margin-bottom: 12px; }
.end p { margin-bottom: 24px; }

/* ② 隐私：标题通栏 + 承诺 2×2，不再左右失衡 ------------------------------- */
.priv { display: block; }
.priv-hd { max-width: 44em; margin-bottom: 28px; }
.priv-hd h2 {
  font-family: var(--disp);
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.018em;
  margin: 0 0 14px;
  text-wrap: balance;
}
.priv-hd p { margin: 0; color: var(--fg-mid); font-size: .94rem; line-height: 1.82; }

.pledge {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(28px, 4vw, 64px);
  border-top: 1px solid var(--line-2);
}
.pledge li {
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
  align-items: start;
  font-size: .92rem;
}
.pledge li:nth-child(-n+2) { border-top: 0; }
@media (max-width: 760px) {
  .pledge { grid-template-columns: 1fr; }
}

/* ③ 首屏：让右侧终端撑满左列高度，不再底部悬空 ----------------------------- */
.hero-grid { align-items: stretch; }
.hero-grid > div:first-child { display: flex; flex-direction: column; }
.term {
  height: 100%;
  display: flex;
  flex-direction: column;
  margin-top: 0;
}
.term-rows { flex: 1; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 1100px) {
  .term { height: auto; }
  .term-rows { justify-content: flex-start; }
}

/* ④ 主题编辑器：收紧，去掉顶部空档 ----------------------------------------- */
.promo { padding: clamp(20px, 2.4vw, 30px) 0; }
.promo p { margin-bottom: 16px; }
.swatches { gap: 6px; }
.swatch { width: 38px; height: 72px; }

/* ⑤ 主防区：截图限高再收一档，事件流与四条补充排紧 ------------------------- */
.av4 article { padding: 16px 18px 2px; }
.av4 article:first-child { padding-left: 0; }
.av4 h3 { margin-bottom: 6px; font-size: .94rem; }

/* ⑥ FAQ：两列压缩到等高节奏 ----------------------------------------------- */
.faq summary { padding: 13px 0; }
.faq .a { padding-bottom: 13px; font-size: .875rem; }

/* ⑦ 折叠块：收起态再紧一点，展开态保留呼吸 --------------------------------- */
.fold > summary { padding: 15px 0; }
.fold-body { padding: 16px 0 4px; }

/* ⑧ 全局：h2 与段落之间收紧半档 ------------------------------------------- */
.sec-hd h2 { margin-bottom: 0; }
.sec-hd p { margin-top: 8px; }


/* ==========================================================================
   28. 主次修正（2026-10-20）
   --------------------------------------------------------------------------
   折叠矩阵后，主防区（1444px）反而超过了攻击链（1251px）—— 一个「可选安装」
   的组件不该是页面最长的一段。这里把主防压到攻击链之下：
     · 截图从 400px 限高到 320px（它只是佐证，不是主角）
     · 事件流从 7 行减到 5 行（保留最有说服力的三条拦截 + 一条放行 + 一条清除）
     · 四条补充从竖排改成 2×2，省一半高度
     · CTA 与警告合并成一行
   ========================================================================== */

/* ① 截图：从「大图展示」降为「佐证」 -------------------------------------- */
.shot { margin-bottom: 20px; }
.shot img { max-height: none; }
.shot figcaption { margin-top: 8px; font-size: .64rem; }

/* ② 事件流：行高再压，等宽字不缩 ------------------------ */
.log-cap { margin-bottom: 8px; font-size: .6rem; }
.log li { padding-top: 7px; padding-bottom: 7px; font-size: .73rem; }

/* ③ 四条补充：2×2，不再一条占一行宽 ---------------------- */
.av4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(24px, 3vw, 56px);
  border-top: 1px solid var(--line-2);
}
.av4 article {
  border-left: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.av4 article:first-child { padding-left: 0; }
.av4 article:nth-last-child(-n+2) { border-bottom: 0; }
.av4 h3 { font-size: .9rem; margin-bottom: 5px; }
.av4 p { font-size: .82rem; line-height: 1.68; }

/* ④ CTA 行：按钮与说明同一行，省一条空白 ------------------ */
#resident .cta { margin-top: 22px; gap: 14px; }
#resident .hero-warn { margin-top: 12px; font-size: .78rem; }

/* ⑤ 隐私：正文压到 3 行以内，承诺每条一行说明 ------------- */
.priv-hd { margin-bottom: 22px; }
.priv-hd h2 { margin-bottom: 12px; }
.pledge li { padding: 13px 0; }
.pledge small { margin-top: 1px; font-size: .78rem; }

/* ⑥ 主题编辑器再收一档 ----------------------------------- */
.promo h2 { margin-bottom: 8px; }
.promo p { font-size: .89rem; line-height: 1.72; margin-bottom: 14px; }

/* ⑦ 首屏：说明文字压成一段，去掉冗余度 ------------------- */
.hero-desc, .lede { line-height: 1.78; }

@media (max-width: 760px) {
  .av4 { grid-template-columns: 1fr; }
  .av4 article:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .av4 article:last-child { border-bottom: 0; }
  .shot img { max-height: none; }
}

/* ==========================================================================
   29. 段间距终调（2026-10-20）
   --------------------------------------------------------------------------
   全站 11 个分区，每个 padding 84px 上下 = 1848px，占总高 34%。
   收到 56px（约 3.5vw），段间仍有 112px 的呼吸，但不再每屏都留一条空走廊。
   ========================================================================== */
@media (min-width: 861px) {
  .sec { padding: clamp(38px, 3.9vw, 56px) 0; }
  .sec-tight { padding: clamp(30px, 3vw, 44px) 0; }
  .sec-hd { margin-bottom: clamp(22px, 2.4vw, 32px); padding-bottom: 16px; }
}
/* 折叠附录紧跟上一段，上面不再额外留空 */
.sec[id="matrix"], .sec[id="spec"] { padding-top: 0; padding-bottom: clamp(30px, 3vw, 44px); }

/* 截图再收一档：它是佐证，320px 已足够看清界面结构 */
.shot img { max-height: none; }
.shot figcaption { font-size: .62rem; }

/* 隐私标题字号降一档，减一行换行 */
.priv-hd h2 { font-size: clamp(1.55rem, 2.4vw, 2.1rem); }

/* 收尾与页脚贴近 */
.end { padding: clamp(40px, 4.2vw, 56px) 0; }

/* 30. 末次平衡修正 */
.hero-grid { align-items: start; }
.term { height: auto; }
.term-rows { justify-content: flex-start; }
/* 隐私承诺描述提为正文，右侧不再是「一行标题 + 一行灰小字」的稀薄感 */
.pledge .pd { display: block; color: var(--fg-mid); font-size: .855rem; line-height: 1.62; margin-top: 2px; }
.pledge li { align-items: start; }

/* ==========================================================================
   31. 安装条（可见，不折叠）
   --------------------------------------------------------------------------
   7-Zip 这种「装的时候马上就要用」的东西，绝不能藏在折叠附录里 ——
   想解压的人得先知道附录里有它，这是信息架构错误。
   安装步骤同理：它是转化路径的最后一环，必须一直在视线里。
   ========================================================================== */
.inst {
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  padding: 20px 0 18px;
}
.inst-hd {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 16px;
}
.inst-hd .k {
  font-family: var(--mono);
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--brand-ink);
  border-left: 2px solid var(--brand);
  padding-left: 8px;
  flex: none;
}
.inst-hd b {
  font-size: .96rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -.006em;
}
.inst-hd .m {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .06em;
  color: var(--fg-dim);
  margin-left: auto;
}

.inst-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 clamp(20px, 3vw, 48px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.inst-steps li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 0 10px;
  align-items: start;
  padding-right: 12px;
  border-right: 1px solid var(--line);
}
.inst-steps li:last-child { border-right: 0; padding-right: 0; }
.inst-steps .n {
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--brand-ink);
  padding-top: 2px;
}
.inst-steps b {
  display: block;
  font-size: .885rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 3px;
}
.inst-steps span {
  display: block;
  font-size: .82rem;
  line-height: 1.62;
  color: var(--fg-mid);
}
.inst-steps code { font-size: .82em; }
.inst-steps .lnk {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--brand-ink);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.inst-steps .lnk:hover { color: var(--fg); }

.inst-foot {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .04em;
  color: var(--fg-dim);
}

@media (max-width: 860px) {
  .inst-steps { grid-template-columns: 1fr; gap: 14px; }
  .inst-steps li { border-right: 0; padding-right: 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .inst-steps li:last-child { border-bottom: 0; padding-bottom: 0; }
  .inst-hd .m { margin-left: 0; width: 100%; }
}


/* ==========================================================================
   32. 文档页（docs.html）
   --------------------------------------------------------------------------
   原 docs.html 带 7.6KB 内联样式、引用的是上一版变量（--muted/--text/--titlebar-bg），
   那些变量在新 site.css 里已经不存在 —— 所以它一直显示成另一套皮。
   这里用新令牌重写文档页需要的全部样式，页面只需引用 site.css。
   ========================================================================== */

/* 首屏 */
.docs-hero {
  padding: clamp(36px, 5vw, 60px) 0 clamp(20px, 2.6vw, 32px);
}
.docs-hero h1 {
  font-family: var(--disp);
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 12px;
  text-wrap: balance;
}
.docs-hero p {
  color: var(--fg-mid);
  max-width: 44em;
  line-height: 1.82;
  font-size: .95rem;
  margin: 0;
}

/* 两栏：左侧目录 + 右侧正文 */
.docs-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(28px, 3.6vw, 56px);
  align-items: start;
  padding-bottom: clamp(48px, 6vw, 84px);
}

.docs-toc {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-left: 1px solid var(--line);
  padding-left: 14px;
}
.docs-toc .toc-t {
  font-family: var(--mono);
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: 0 0 10px;
}
.docs-toc a {
  color: var(--fg-mid);
  text-decoration: none;
  font-size: .845rem;
  line-height: 1.5;
  padding: 5px 0;
  transition: color .14s var(--ease);
}
.docs-toc a:hover { color: var(--brand-ink); text-decoration: none; }
.docs-toc a.toc-sec {
  font-weight: 600;
  color: var(--fg);
  margin-top: 10px;
}
.docs-toc a.toc-sec:first-of-type { margin-top: 0; }

/* 正文 */
.doc-body { min-width: 0; }

.doc-sec {
  padding: 0 0 clamp(30px, 3.6vw, 46px);
  scroll-margin-top: 96px;
}
.doc-sec + .doc-sec { border-top: 1px solid var(--line); padding-top: clamp(26px, 3vw, 38px); }

.doc-sec h2 {
  font-family: var(--disp);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.014em;
  margin: 0 0 10px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.doc-sec h2::before {
  content: "";
  width: 3px;
  height: .82em;
  border-radius: 1px;
  background: var(--brand);
  flex: none;
  transform: translateY(.04em);
}
.doc-sec .lead {
  color: var(--fg-mid);
  line-height: 1.82;
  margin: 0 0 18px;
  max-width: 62em;
  font-size: .93rem;
}

.doc-sec h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.006em;
  color: var(--fg);
  margin: 26px 0 8px;
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.doc-sec h3::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  flex: none;
  transform: translateY(-.18em);
}

.doc-sec p {
  color: var(--fg-mid);
  line-height: 1.82;
  font-size: .905rem;
  margin: 8px 0;
  max-width: 66em;
}
.doc-sec p b, .doc-sec li b, .doc-sec h3 span { color: var(--fg); font-weight: 600; }
.doc-sec ul, .doc-sec ol {
  color: var(--fg-mid);
  line-height: 1.8;
  font-size: .905rem;
  max-width: 66em;
  padding-left: 20px;
  margin: 8px 0;
}
.doc-sec li { margin: 5px 0; }
.doc-sec code, .faq .a code {
  font-family: var(--mono);
  font-size: .84em;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--brand-ink);
}

/* 卡片：只保留描边，不填充底色（与主站一致的「少用框」） */
.doc-card {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  margin: 14px 0;
}
.doc-card .cname {
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--fg);
  margin-bottom: 6px;
}
.doc-card p { margin: 0 0 6px; font-size: .875rem; }
.doc-card p:last-child { margin-bottom: 0; }

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0 clamp(20px, 2.6vw, 36px);
}

.doc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid var(--line-2);
  color: var(--fg-mid);
  font-size: .74rem;
  font-family: var(--mono);
  margin: 2px 5px 2px 0;
}

.doc-note {
  border-left: 2px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 0 4px 4px 0;
  padding: 11px 14px;
  color: var(--fg-mid);
  line-height: 1.78;
  font-size: .87rem;
  margin: 14px 0;
}
.doc-note b { color: var(--fg); }
.doc-note.warn, .doc-note[data-t="warn"] {
  border-left-color: var(--warn);
  background: color-mix(in srgb, var(--warn) 9%, transparent);
}

/* 步骤 */
.doc-steps { counter-reset: step; }
.doc-steps .step {
  position: relative;
  padding-left: 38px;
  margin: 12px 0;
}
.doc-steps .step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--brand-ink);
  padding-top: 2px;
}
.doc-steps .step b { color: var(--fg); font-weight: 600; display: block; margin-bottom: 2px; }
.doc-steps .step p { margin: 2px 0; }

/* 代码块 */
.code-block {
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  overflow: hidden;
  margin: 16px 0;
  max-width: 820px;
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 0;
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--fg-dim);
  border-bottom: 1px solid var(--line);
}
.code-bar .cb-d {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex: none;
  opacity: .5;
  background: var(--fg-dim);
}
.code-bar .cb-d.r { background: var(--threat); opacity: .7; }
.code-bar .cb-d.y { background: var(--warn); opacity: .7; }
.code-bar .cb-d.g { background: var(--ok); opacity: .7; }
.code-bar .cb-t { margin-left: 6px; letter-spacing: .06em; }
.cb-copy {
  margin-left: auto;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .04em;
  color: var(--fg-dim);
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 2px 9px;
  cursor: pointer;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.cb-copy:hover { color: var(--fg); border-color: var(--fg-dim); }
.cb-copy.done { color: var(--ok-ink); border-color: var(--ok); }

.code-block pre {
  margin: 0;
  padding: 14px 0;
  overflow-x: auto;
  background: transparent;
  color: var(--fg);
  font-family: var(--mono);
  font-size: .78rem;
  line-height: 1.78;
  tab-size: 2;
}
.code-block pre code {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  white-space: pre;
}
.code-block .c-cm { color: var(--fg-dim); font-style: italic; }

/* 文档里的 FAQ 组 */
.faq-group { margin: 24px 0 0; }
.faq-group > h3 {
  font-family: var(--disp);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -.01em;
  margin: 22px 0 4px;
}
.faq-group .fg-sub { color: var(--fg-dim); font-size: .82rem; margin: 0 0 8px; }

/* 接口表 */
.api-wrap {
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  margin: 16px 0;
  overflow-x: auto;
}
.api-t { width: 100%; border-collapse: collapse; font-size: .845rem; }
.api-t th {
  text-align: left;
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding: 9px 14px 9px 0;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.api-t td {
  padding: 9px 14px 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg-mid);
  vertical-align: top;
  line-height: 1.6;
}
.api-t tr:last-child td { border-bottom: 0; }
.api-t code { white-space: nowrap; }

@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; gap: 24px; }
  .docs-toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    border-left: 0;
    border-top: 1px solid var(--line-2);
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
    gap: 0 16px;
  }
  .docs-toc .toc-t { width: 100%; margin-bottom: 6px; }
  .docs-toc a.toc-sec { margin-top: 0; font-size: .82rem; }
  .docs-toc a:not(.toc-sec) { display: none; }
}

/* 文档页里的 FAQ 位于窄栏，必须单列（主站的 .faq 是两列） */
.doc-body .faq { display: block; }
.doc-body .faq details:first-child { border-top: 1px solid var(--line); }
.doc-body .faq summary { font-size: .92rem; }
.doc-body .faq .a { padding-left: 30px; padding-right: 0; font-size: .875rem; }
.doc-body .faq .a ol, .doc-body .faq .a ul { padding-left: 18px; margin: 6px 0; }
/* 文档页正文里的链接跟随品牌色 */
.doc-body a { color: var(--brand-ink); }


/* ===== 33. 主题编辑器 ===== */

/* ==========================================================================
   33. 主题编辑器（theme-editor.html）
   --------------------------------------------------------------------------
   原页面完全自成一套：自带紫色渐变（#7db4ff → #a08cff）、16px 圆角、
   grid 底纹、独立变量命名。现在改成与全站同一套令牌：
     · 顶部换成与首页同构的 site-header
     · 两栏：左预览（粘滞）+ 右设置面板
     · 面板去掉四边框，只用顶线分隔
     · 圆角 8px、字号/字距/线宽全部跟随 --r / --line
   预览区（.pv-*）内部保持原样 —— 它模拟的是扩展界面，样式由 JS 注入。
   ========================================================================== */

/* ---------- 页面骨架 ---------- */
.te-hero {
  padding: clamp(30px, 4vw, 48px) 0 clamp(18px, 2.4vw, 28px);
}
.te-hero h1 {
  font-family: var(--disp);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 10px;
}
.te-hero p {
  margin: 0;
  max-width: 52em;
  font-size: .93rem;
  line-height: 1.78;
  color: var(--fg-mid);
}

/* ---------- 工具条 ---------- */
.te-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(20px, 2.6vw, 30px);
}
.te-bar .grow { flex: 1 1 auto; }
.te-bar .msg {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--fg-dim);
  min-height: 1.2em;
}
.te-bar .msg.ok { color: var(--ok-ink); }
.te-bar .msg.err { color: var(--threat-ink); }

/* 按钮：与主站同款 */
.tbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--fg);
  font-family: var(--body);
  font-size: .855rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s var(--ease), border-color .16s var(--ease),
              color .16s var(--ease), transform .12s var(--ease);
}
.tbtn:hover { border-color: var(--fg-dim); background: var(--panel); }
.tbtn:active { transform: translateY(1px); }
.tbtn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #061020;
}
:root[data-theme="light"] .tbtn.primary { color: #fff; }
.tbtn.primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
/* 文件选择伪装成按钮 */
label.tbtn { position: relative; overflow: hidden; }
label.tbtn input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}

/* ---------- 两栏布局 ---------- */
.te-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: clamp(22px, 3vw, 44px);
  align-items: start;
  padding-bottom: clamp(40px, 5vw, 72px);
}

/* 预览区外框：粘滞在视口里 */
.te-preview {
  position: sticky;
  top: 84px;
}
.te-preview .label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 10px;
}
.te-preview .label::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
  animation: pulse 2.6s var(--ease) infinite;
}

/* ---------- 设置面板 ---------- */
.te-editor { display: flex; flex-direction: column; gap: 0; }

.panel {
  border-top: 1px solid var(--line-2);
  padding: 20px 0 22px;
}
.panel:last-child { border-bottom: 1px solid var(--line-2); }
.panel > h3 {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brand-ink);
}

.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field > label {
  display: block;
  font-size: .8rem;
  font-weight: 500;
  color: var(--fg-mid);
  margin-bottom: 6px;
}
.field input[type="text"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--fg);
  font-family: var(--body);
  font-size: .855rem;
  line-height: 1.4;
  transition: border-color .16s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
}
.field input[type="range"] {
  width: 100%;
  accent-color: var(--brand);
}
.field .hint, .hint {
  font-size: .76rem;
  line-height: 1.6;
  color: var(--fg-dim);
  margin: 5px 0 0;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

/* 选项卡：只在选中时给品牌色描边，平时只是一条线 */
.radio-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--fg-mid);
  font-size: .82rem;
  cursor: pointer;
  transition: border-color .16s var(--ease), color .16s var(--ease), background .16s var(--ease);
}
.radio-card:hover { border-color: var(--fg-dim); color: var(--fg); }
.radio-card.active {
  border-color: var(--brand);
  color: var(--fg);
  background: var(--brand-soft);
}
.rc-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 1px solid var(--fg-dim);
  flex: none;
  transition: background .16s var(--ease), border-color .16s var(--ease);
}
.radio-card.active .rc-dot { background: var(--brand); border-color: var(--brand); }

/* 颜色行 */
.color-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.color-row:last-child { border-bottom: 0; }
.color-row label {
  flex: 1;
  font-size: .82rem;
  color: var(--fg-mid);
}
.color-row input[type="color"] {
  width: 34px; height: 26px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}
.color-row input[type="text"] {
  width: 88px;
  padding: 5px 8px;
  border-radius: 4px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--fg);
  font-family: var(--mono);
  font-size: .74rem;
}

/* 背景预览条 */
.bg-preview {
  height: 42px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  margin-top: 8px;
  background-size: cover;
  background-position: center;
}

/* 主题库 */
.library {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
}
.lib-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-size: .84rem;
  color: var(--fg-mid);
  cursor: pointer;
  transition: border-color .16s var(--ease), color .16s var(--ease);
}
.lib-item:hover { border-color: var(--line-2); color: var(--fg); }
.lib-item.active { border-color: var(--brand); color: var(--fg); }
.lib-item .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-btn {
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--fg-dim);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .04em;
  padding: 2px 8px;
  cursor: pointer;
  transition: color .14s var(--ease), border-color .14s var(--ease);
}
.lib-btn:hover { color: var(--threat-ink); border-color: var(--threat); }

/* 预览区：外框只用一条描边，内部由 .pv-* 自己负责 */
.pv-root {
  border: 1px solid var(--line-2);
  border-radius: 10px;
  overflow: hidden;
  background: #0a0d14;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .te-layout { grid-template-columns: 1fr; }
  .te-preview { position: static; order: -1; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .te-bar { gap: 8px; }
  .te-bar .tbtn { flex: 1 1 auto; }
  .te-bar .grow { display: none; }
}


/* ===== 34. 主题编辑器 · 预览区（保留原规则） ===== */
/* 保留的预览区规则 */
.pv-root { --p-bg1: #0f1429; --p-bg2: #161d3a; --p-accent: #ff7eb3; --p-accent2: #ffb86c;
    --p-text: #eaf0fa; --p-surface: rgba(255,255,255,.06); --p-border: rgba(255,255,255,.10);
    --p-radius: 16px;
    border-radius: 20px; overflow: hidden;
    color: var(--p-text); font-size: 14px;
    transition: background .3s, color .3s, border-radius .3s; }

.pv-body { min-height: 420px; padding: 22px;
    background: linear-gradient(160deg, var(--p-bg1), var(--p-bg2) 60%, var(--p-bg1)); }

.pv-body.image-bg { background: var(--p-bg-image, linear-gradient(160deg, var(--p-bg1), var(--p-bg2))); background-size: cover; background-position: center; }

.pv-light .pv-body { color: #1a1a22; }

.pv-light.pv-root { --p-text: #1a1a22; }

.pv-app { display: flex; gap: 18px; }

.pv-sidebar { width: 160px; padding: 14px; border-radius: 0;
    background: transparent; border: none; }

.pv-sidebar.floating { margin: 10px; border-radius: 16px;
    background: var(--p-surface); border: 1px solid var(--p-border);
    box-shadow: 0 16px 40px rgba(0,0,0,.35);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }

.pv-nav { padding: 9px 12px; border-radius: 10px; margin-bottom: 6px; font-size: 12px; }

.pv-nav.active { background: var(--p-accent); color: #fff; }

.pv-content { flex: 1; }

.pv-card { border-radius: 16px; padding: 16px; margin-bottom: 14px;
    background: var(--p-surface); border: 1px solid var(--p-border);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }

.pv-frosted .pv-sidebar.floating, .pv-frosted .pv-card { backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }

.pv-liquid .pv-sidebar.floating, .pv-liquid .pv-card, .pv-liquid .pv-sidebar { backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%);
    background: linear-gradient(135deg, color-mix(in srgb, var(--p-surface) 55%, #ffffff 35%), var(--p-surface));
    border: 1px solid rgba(255,255,255,.4);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 8px 28px rgba(0,0,0,.25); }

.pv-flat .pv-sidebar.floating, .pv-flat .pv-sidebar, .pv-flat .pv-card { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--p-surface-flat);
    border: 1px solid var(--p-border); box-shadow: none; }

.pv-light.pv-root { --p-text: #1a1a22; --p-surface: rgba(20,34,64,.07); --p-border: rgba(20,34,64,.16); }

.pv-light .pv-body { background: linear-gradient(160deg, #f5f8fd, #e8eef7 60%, #f5f8fd); color: #1a1a22; }

.pv-light .pv-card, .pv-light .pv-sidebar.floating { background: rgba(255,255,255,.7); border-color: rgba(20,34,64,.16); }

.pv-btn { border: none; border-radius: 10px; padding: 8px 14px; font-size: 12px;
    background: var(--p-accent); color: #fff; margin-right: 8px; cursor: default; }

.pv-btn.secondary { background: transparent; color: var(--p-text); border: 1px solid var(--p-border); }

.pv-skeuo .pv-btn { box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 4px rgba(0,0,0,.25), 0 6px 16px rgba(0,0,0,.25);
    background: linear-gradient(180deg, color-mix(in srgb, var(--p-accent) 120%, #fff), var(--p-accent)); }

.pv-switch { width: 36px; height: 20px; border-radius: 10px; background: rgba(255,255,255,.18); position: relative; }

.pv-switch::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff; top: 2px; left: 2px; }

.pv-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }

.pv-seg { display: inline-flex; background: rgba(255,255,255,.08); border-radius: 10px; padding: 3px; }

.pv-seg span { padding: 5px 10px; border-radius: 8px; font-size: 11px; }

.pv-seg span.active { background: var(--p-accent); color: #fff; }

.ai-theme-panel { border: 1px solid var(--ui-border); border-radius: 16px; background: var(--ui-surface); padding: 14px; }

.ai-theme-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }

.ai-theme-head h4 { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .5px; display: flex; align-items: center; }

.ai-theme-head .ai-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ui-accent); display: inline-block; margin-right: 8px; box-shadow: 0 0 0 3px rgba(125,180,255,.2); }

.ai-mini-btn { appearance: none; background: transparent; border: 1px solid var(--ui-border); color: var(--ui-sub); border-radius: 8px; padding: 4px 10px; font-size: 11px; cursor: pointer; transition: .2s; }

.ai-mini-btn:hover { color: var(--ui-text); border-color: var(--ui-accent); }

.ai-settings { display: grid; gap: 10px; margin-bottom: 12px; padding: 12px; border: 1px dashed var(--ui-border); border-radius: 12px; }

.ai-row { display: flex; align-items: center; gap: 10px; }

.ai-row label { width: 60px; font-size: 12px; color: var(--ui-sub); flex: none; }

.ai-row input, .ai-row select { flex: 1; width: 100%; background: rgba(0,0,0,.25); border: 1px solid var(--ui-border); border-radius: 10px;
    color: var(--ui-text); padding: 8px 12px; font-size: 12px; outline: none;
    -webkit-appearance: none; -moz-appearance: none; appearance: none; }

.ai-row select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' fill='none' stroke='%23aab2c2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; cursor: pointer; }

.ai-row input:focus, .ai-row select:focus { border-color: var(--ui-accent); }

.ai-log { max-height: 180px; overflow-y: auto; margin-bottom: 10px; padding: 10px; background: rgba(0,0,0,.22); border-radius: 12px; font-size: 12px; line-height: 1.6; }

.ai-log .msg { margin-bottom: 8px; word-break: break-word; }

.ai-log .msg.user { color: var(--ui-text); }

.ai-log .msg.assistant { color: var(--ui-accent); }

.ai-log .msg.sys { color: var(--ui-sub); font-size: 11px; }

.ai-input-row { display: flex; gap: 8px; }

.ai-input-row input { flex: 1; background: rgba(0,0,0,.25); border: 1px solid var(--ui-border); border-radius: 10px; color: var(--ui-text); padding: 9px 12px; font-size: 13px; outline: none; }

.ai-input-row input:focus { border-color: var(--ui-accent); }

.ai-input-row button { appearance: none; border: none; border-radius: 10px; padding: 9px 18px; font-size: 13px; font-weight: 700;
    background: var(--ui-accent); color: #08111f; cursor: pointer; flex: none; transition: .2s; }

.ai-input-row button:disabled { opacity: .5; cursor: default; }

.ai-hint { font-size: 11px; color: var(--ui-sub); margin-top: 8px; line-height: 1.5; }

/* ===== 35. 主题编辑器 · 版式修正 ===== */
/* 大屏三栏：预览 + 面板分两列，右侧不再拉成一根长条 */
@media (min-width: 1200px) {
  .te-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 300px) minmax(0, 300px); }
  .te-preview { grid-column: 1; }
  .te-editor { display: contents; }
  .te-editor > .panel:nth-child(n) { }
}
/* display:contents 会让 editor 的 flex 失效，用显式列分配 */
@media (min-width: 1200px) {
  .te-editor {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column: 2 / -1;
    gap: 0 clamp(20px, 2.4vw, 40px);
    align-content: start;
  }
  .te-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 660px); }
}

/* 预览区加高：420px 的模拟窗口太窄，看不清材质与侧边栏差异 */
.pv-body { min-height: 560px; }
.pv-root { border-radius: 10px; }

/* 面板标题与字段之间的节奏 */
.panel > h3 { margin-bottom: 12px; }
.field > label { font-size: .78rem; }

/* AI 面板在窄栏里不该有独立的深底 */
.ai-theme-panel { margin-top: 4px; }

@media (max-width: 1199px) and (min-width: 1081px) {
  .pv-body { min-height: 460px; }
}

/* ===== 36. 主题编辑器 · 版式终调 =====
   问题：预览 466×562，右侧双列面板 1072px，左下空 500px，且 313px 宽的面板太窄。
   改为标准编辑器版式：左预览（粘滞、加宽）+ 右面板单列。 */
@media (min-width: 1081px) {
  .te-layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(28px, 3.4vw, 52px);
  }
  .te-preview {
    position: sticky;
    top: 88px;
    align-self: start;
  }
  .te-editor {
    display: flex;
    flex-direction: column;
    grid-column: auto;
  }
}
.pv-body { min-height: 520px; }

/* 面板内的字段排成两列，把单列面板的高度收回来 */
.te-editor .panel .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.te-editor .panel .grid-2 { gap: 10px; }

/* 最后一个面板（AI 主题）没有 h3，用 h4 作标题，补上间距 */
.ai-theme-panel > .ai-theme-head { margin-top: 0; }

@media (max-width: 1080px) {
  .te-preview { position: static; }
  .te-editor { display: block; }
}

/* ===== 37. 文档首屏：正文 + 右侧元信息，不再左重右空 ===== */
.docs-hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.docs-hero-in > div > p { max-width: 40em; }

.docs-meta {
  margin: 30px 0 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--line-2);
  padding-left: clamp(18px, 2.4vw, 34px);
  min-width: 172px;
}
.docs-meta > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.docs-meta > div:last-child { border-bottom: 0; }
.docs-meta dt {
  font-family: var(--mono);
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  white-space: nowrap;
}
.docs-meta dd {
  margin: 0;
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .docs-hero-in { grid-template-columns: 1fr; }
  .docs-meta {
    margin-top: 22px;
    border-left: 0;
    border-top: 1px solid var(--line-2);
    padding: 16px 0 0;
    grid-template-columns: auto auto;
    justify-content: start;
  }
}


/* ==========================================================================
   38. 手机端（≤760px）· 重新设计，不是等比缩小
   --------------------------------------------------------------------------
   诊断出来的四个硬问题，逐条解决：
     ① 手机上**根本没有导航**（.nav 在 940px 就被 display:none），9 个入口全消失
        → 底部固定操作条（拇指可达）+ 目录抽屉
     ② 145 处字号 < 13px（最小 9.3px）→ 建立三档字号：正文 16 / 次要 15 / 标签 11
     ③ 7 处触控目标 < 44px（页脚链接高 17px）→ 全部撑到 44px
     ④ 攻击链 2676px + 主防 1973px 占一半篇幅 → 攻击链改横向滑动卡片，
        详情型内容（事件流、29 维、规格）手机端默认收起
   桌面端一概不受影响。
   ========================================================================== */

/* ---------- 39. 底部操作条 + 目录抽屉 ---------- */
.mbar { display: none; }

@media (max-width: 940px) {
  /* 给底部条留出空间，避免最后一段被遮 */
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }

  .mbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 120;
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 8px;
    padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border-top: 1px solid var(--line-2);
  }
  .mbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 50px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--line-2);
    background: transparent;
    color: var(--fg);
    font-family: var(--body);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .mbar-btn svg { width: 17px; height: 17px; flex: none; }
  .mbar-btn:active { transform: scale(.985); }
  .mbar-primary {
    background: var(--brand);
    border-color: var(--brand);
    color: #061020;
    font-weight: 700;
  }
  :root[data-theme="light"] .mbar-primary { color: #fff; }
  .mbar-primary:active { background: var(--brand-ink); border-color: var(--brand-ink); }

  /* 抽屉 */
  .mdrawer {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: flex;
    align-items: flex-end;
  }
  .mdrawer[hidden] { display: none; }
  .mdrawer-bd {
    position: absolute;
    inset: 0;
    background: rgba(3, 5, 9, .68);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: mdFade .2s var(--ease);
  }
  .mdrawer-panel {
    position: relative;
    width: 100%;
    max-height: 78vh;
    overflow-y: auto;
    border-radius: 14px 14px 0 0;
    border-top: 1px solid var(--line-2);
    background: var(--panel);
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
    animation: mdUp .26s var(--ease);
    -webkit-overflow-scrolling: touch;
  }
  @keyframes mdFade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes mdUp { from { transform: translateY(22px); opacity: .6; } to { transform: none; opacity: 1; } }
  .mdrawer-hd {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 12px;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    font-family: var(--mono);
    font-size: .62rem;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--fg-dim);
  }
  .mdrawer-x {
    border: 0;
    background: transparent;
    color: var(--fg-dim);
    font-size: 1.5rem;
    line-height: 1;
    width: 44px;
    height: 44px;
    margin: -10px -8px -10px 0;
    cursor: pointer;
  }
  .mdrawer-list { display: flex; flex-direction: column; }
  .mdrawer-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 18px;
    border-bottom: 1px solid var(--line);
    color: var(--fg);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
  }
  .mdrawer-list a:active { background: var(--panel-2); }
  .mdrawer-list .n {
    font-family: var(--mono);
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .1em;
    color: var(--brand-ink);
    flex: none;
  }
  .mdrawer-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    padding: 16px 18px 4px;
  }
  .mdrawer-foot a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--brand-ink);
    font-size: .88rem;
  }
}

/* ---------- 40. 手机端字号体系：三档，不再是 9.3px ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; line-height: 1.7; }

  /* 标签 / 等宽小字：最小 11px */
  .mono,
  .sec-hd .idx,
  .stage-hd .ph,
  .stage-hd .verdict,
  .side-atk > .lab,
  .side-grd > .lab,
  .read span,
  .inst-hd .k,
  .inst-hd .m,
  .edge .dims,
  .term-bar,
  .term-row dt,
  .log .src,
  .log .st,
  .log-cap,
  .fold > summary .k,
  .mdrawer-hd,
  .hero-meta,
  .footer .sep,
  .ver,
  .toc a .n { font-size: 11px; letter-spacing: .1em; }

  /* 正文：16px */
  .lede,
  .side-atk p,
  .tl p,
  .edge b,
  .edge span,
  .av4 p,
  .inst-steps b,
  .inst-steps span,
  .priv-hd p,
  .pledge li,
  .faq summary,
  .faq .a,
  .spec td,
  .mx td.name,
  .mx td.desc,
  .doc-sec p,
  .doc-sec li,
  .rp-v,
  .rp-body { font-size: 16px; line-height: 1.72; }

  /* 次要：15px */
  .term-row dd,
  .log .ev,
  .read b small,
  .stat span,
  .inst-foot,
  .mx-note,
  .promo p,
  .end p { font-size: 15px; line-height: 1.65; }

  /* 小标题：17px，与正文拉开但不夸张 */
  .stage-hd h3,
  .av4 h3,
  .inst-steps b,
  .fold > summary .t { font-size: 17px; }
  .edge b { font-weight: 600; }

  /* 行高与段距：用「间距」而不是「字号」做层级 */
  .side-atk p + p { margin-top: 10px; }
  .edge { padding: 11px 0; }
  .edge b { display: block; margin-right: 0; }
  .edge span { display: block; margin-top: 2px; }
}

/* ---------- 41. 首屏：先给结论和按钮，终端后置 ---------- */
@media (max-width: 760px) {
  .hero { padding: 26px 0 30px; }
  .hero-grid { gap: 22px; }

  .kicker {
    font-size: 11px;
    padding: 6px 12px 6px 10px;
    letter-spacing: .1em;
    margin-bottom: 18px;
  }
  h1 { font-size: clamp(2.15rem, 10.5vw, 2.75rem); letter-spacing: -.02em; }
  h1 em { font-size: 10px; letter-spacing: .3em; margin-top: 10px; }
  .lede { margin-top: 16px; font-size: 16px; line-height: 1.78; }

  /* 按钮：主操作整行，两个源码并排为次级 */
  .cta { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  .cta > .btn-solid,
  .cta > .btn-line:first-of-type { grid-column: 1 / -1; }
  .cta > .btn { min-height: 48px; padding: 12px 14px; font-size: .92rem; }
  .cta > .btn-ghost {
    min-height: 44px;
    padding: 10px 4px;
    font-size: .85rem;
    justify-content: flex-start;
    grid-column: auto;
  }
  .cta > .btn-ghost:last-child { justify-content: flex-start; }

  .hero-meta { margin-top: 16px; font-size: 11px; line-height: 1.6; }
  .hero-warn { margin-top: 12px; font-size: 14px; }

  /* 终端面板：手机上不再是「仪表盘」，退成一块紧凑的状态卡 */
  .term { margin-top: 4px; }
  .term-bar { padding: 8px 12px; }
  .term-rows { padding: 10px 12px 12px; }
  .term-row {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 8px;
    padding: 6px 0;
  }
  .term-row dt { font-size: 11px; padding-top: 1px; }
  .term-row dd { font-size: 13px; }
  .term-foot { padding: 9px 12px; font-size: 11px; }
}

/* ---------- 42. 读数带：2×2，数字主导 ---------- */
@media (max-width: 760px) {
  .reads-row { grid-template-columns: 1fr 1fr; }
  .read { padding: 16px 14px; }
  .read:first-child { padding-left: 14px; }
  .read span { font-size: 11px; margin-bottom: 7px; line-height: 1.4; }
  .read b { font-size: 27px; }
  .read b small { font-size: 12px; }
}

/* ---------- 43. 安装条：竖排，7-Zip 高亮为可点行 ---------- */
@media (max-width: 760px) {
  .inst { padding: 16px 0 14px; }
  .inst-hd { margin-bottom: 14px; gap: 6px 10px; }
  .inst-hd b { font-size: 16px; }
  .inst-hd .m { font-size: 11px; margin-left: 0; width: 100%; }
  .inst-steps { grid-template-columns: 1fr; gap: 0; }
  .inst-steps li {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
    grid-template-columns: 30px minmax(0, 1fr);
  }
  .inst-steps li:last-child { border-bottom: 0; padding-bottom: 0; }
  .inst-steps .n { font-size: 12px; padding-top: 3px; }
  .inst-steps b { margin-bottom: 3px; }
  .inst-steps span { font-size: 15px; }
  /* 7-Zip 是这条路径上唯一的额外下载，给足点击面积 */
  .inst-steps .lnk {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: -8px 0 -8px 0;
    padding: 0 2px;
    font-size: 15px;
  }
  .inst-foot { font-size: 12px; margin-top: 12px; }
}

/* 44. （已废弃）攻击链横向滑动卡片 —— 2026-10-20 改为竖排折叠，整块移除 */

/* ---------- 45. 主防区：截图全宽、事件流紧凑、四条折叠 ---------- */
@media (max-width: 760px) {
  .shot { margin-bottom: 16px; }
  .shot figcaption { font-size: 11px; }

  .log-cap { margin-bottom: 7px; }
  .log li {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 10px;
    padding: 9px 0;
  }
  .log .t { font-size: 11px; grid-column: 1; grid-row: 1; }
  .log .src { font-size: 11px; grid-column: 1; grid-row: 2; }
  .log .ev { font-size: 14px; grid-column: 1 / -1; grid-row: 3; line-height: 1.55; }
  .log .st { grid-row: 1 / span 2; grid-column: 2; font-size: 11px; padding: 2px 8px; align-self: start; }

  .av4 { grid-template-columns: 1fr; gap: 0; }
  .av4 article {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .av4 article:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .av4 article:last-child { border-bottom: 0; }
  .av4 h3 { font-size: 16px; margin-bottom: 5px; }
  .av4 p { font-size: 15px; line-height: 1.68; }

  #resident .cta { margin-top: 18px; display: grid; grid-template-columns: 1fr; gap: 9px; }
  #resident .cta .btn { min-height: 48px; width: 100%; }
  #resident .cta .mono { font-size: 12px; text-align: center; }
  #resident .hero-warn { font-size: 14px; line-height: 1.6; }
}

/* ---------- 46. 折叠附录 / 主题编辑器 / 隐私 / FAQ ---------- */
@media (max-width: 760px) {
  .fold > summary { padding: 14px 0; min-height: 56px; align-items: center; }
  .fold > summary .t { flex: 1 1 auto; }
  .fold > summary .m { flex: 1 1 100%; margin-top: -2px; font-size: 11px; }
  .fold-body { padding: 12px 0 4px; }

  /* 29 维：手机上表头已隐藏，行改两行式 */
  .fold-body .mx tbody { grid-template-columns: 1fr; }
  .fold-body .mx tbody tr { grid-template-columns: 52px minmax(0, 1fr); padding: 8px 0; }
  .fold-body .mx td.w { font-size: 13px; }
  .fold-body .mx td.name { font-size: 15px; }
  .fold-body .mx td.desc { font-size: 13px; line-height: 1.55; padding-bottom: 2px; }

  .promo { padding: 18px 0; display: block; }
  .promo h2 { font-size: 20px; }
  .promo p { font-size: 15px; line-height: 1.7; }
  .promo .swatches { margin-bottom: 14px; }
  .promo .swatch { height: 10px; }
  .promo .btn { min-height: 48px; width: 100%; }

  /* 隐私：承诺整块可读，不再挤 2 列 */
  .priv-hd { margin-bottom: 18px; }
  .priv-hd h2 { font-size: clamp(1.55rem, 7.4vw, 1.9rem); }
  .priv-hd p { font-size: 15px; line-height: 1.75; }
  .pledge { grid-template-columns: 1fr; border-top: 1px solid var(--line-2); }
  .pledge li { padding: 13px 0; font-size: 15px; grid-template-columns: 20px minmax(0, 1fr); gap: 11px; }
  .pledge .pd { font-size: 14px; line-height: 1.6; }

  /* FAQ：整行可点 + 触控高度 */
  .faq { grid-template-columns: 1fr; }
  .faq summary { min-height: 56px; padding: 14px 0; font-size: 16px; align-items: center; }
  .faq summary .q { font-size: 11px; }
  .faq .a { padding: 0 0 14px; font-size: 15px; line-height: 1.75; }

  /* 收尾 */
  .end { padding: 40px 0 46px; }
  .end h2 { font-size: clamp(1.75rem, 8vw, 2.2rem); }
  .end p { font-size: 15px; margin-bottom: 22px; }
  .end .cta { grid-template-columns: 1fr; gap: 9px; }
  .end .cta .btn { min-height: 48px; width: 100%; }

  /* 页脚：链接做成 44px 触控行 */
  .site-footer { padding: 20px 0 calc(24px + env(safe-area-inset-bottom)); }
  .ft { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 13px; }
  .ft p { margin: 0; }
  .ft a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-right: 14px;
    font-size: 14px;
  }
  .ft .sep { display: none; }
}

/* ---------- 47. 手机端：阻止横向溢出与误触缩放 ---------- */
@media (max-width: 760px) {
  html { -webkit-text-size-adjust: 100%; }
  body { overflow-x: hidden; }
  a, button, summary, .lnk { touch-action: manipulation; -webkit-tap-highlight-color: rgba(61, 126, 240, .12); }

  /* 锚点落点：扣掉顶栏高度 */
  html { scroll-padding-top: 76px; }

  /* 分区节奏：手机上更紧，但不挤 */
  .sec { padding: 38px 0; }
  .sec-tight { padding: 26px 0; }
  .sec-hd { margin-bottom: 22px; padding-bottom: 14px; }
  .sec-hd h2 { font-size: clamp(1.5rem, 7.2vw, 1.95rem); line-height: 1.15; }
  .sec-hd p { font-size: 15px; line-height: 1.7; margin-top: 8px; }
  .sec-hd .idx { font-size: 11px; }
  .mx-note { font-size: 13px; line-height: 1.6; }
}

/* ---------- 48. 平板（761–1080）：只调两栏，不重排 ---------- */
@media (min-width: 761px) and (max-width: 1080px) {
  .atk { grid-template-columns: 1fr 1fr; gap: 0 clamp(20px, 3vw, 36px); }
  .stage:nth-child(2n) { padding-left: clamp(20px, 3vw, 36px); }
  .stage:nth-child(2n-1) { padding-right: clamp(20px, 3vw, 36px); }
  .av4 { grid-template-columns: 1fr 1fr; }
  .read span { font-size: 11px; }
}

/* ==========================================================================
   49. 手机端第二轮：压掉两块最臃肿的、补触控与最小字号
   --------------------------------------------------------------------------
   实测：hero 991px 里 term 占 372px（8 行状态列表），主防 av4 占 600px。
   手机上这两块都不该是「信息密度展示」，而是「一眼能扫过的证据」。
   ========================================================================== */

@media (max-width: 760px) {
  /* ① 终端状态：8 行竖排 → 2 列 × 4 行网格，高度砍半 */
  .term-rows {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 12px;
    padding: 8px 12px 10px;
  }
  .term-row {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 6px 0;
    border-bottom: 1px dashed var(--line);
  }
  .term-row:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 10px; }
  .term-row:nth-child(even) { padding-left: 2px; }
  .term-row:nth-last-child(-n+2) { border-bottom: 0; }
  .term-row dt { font-size: 11px; padding-top: 0; }
  .term-row dd { font-size: 13px; line-height: 1.4; margin-top: 1px; }

  /* ② 主防四条：压缩行高，每条不超过约 3 行视觉重量 */
  .av4 article { padding: 12px 0; }
  .av4 h3 { font-size: 16px; margin-bottom: 4px; gap: 6px; }
  .av4 h3 span { font-size: 11px; }
  .av4 p { font-size: 14px; line-height: 1.62; }

  /* ③ 最小字号下限：标签从 11px 提到 12px */
  .mono,
  .sec-hd .idx,
  .stage-hd .ph,
  .stage-hd .verdict,
  .side-atk > .lab,
  .side-grd > .lab,
  .read span,
  .inst-hd .k,
  .inst-hd .m,
  .edge .dims,
  .term-bar,
  .term-row dt,
  .log .src,
  .log .st,
  .log-cap,
  .fold > summary .k,
  .mdrawer-hd,
  .hero-meta,
  .ver,
  .toc a .n { font-size: 12px; }

  /* ④ 触控目标补齐：品牌 / 主题按钮 / 正文内联链接 */
  .brand { min-height: 44px; }
  .tgl { width: 44px; height: 44px; }
  .priv-hd a,
  .doc-body a,
  .faq .a a {
    display: inline-block;
    min-height: 44px;
    padding: 11px 0;
  }

  /* ⑤ 首屏按钮：两个源码并排时不需要 46px，收到 44 但整块可点 */
  .cta > .btn-ghost { min-height: 44px; }
}

/* ⑥ 首屏在手机上的最终节奏：标题→一句话→按钮→状态卡 */
@media (max-width: 760px) {
  .hero { padding: 22px 0 26px; }
  .lede { margin-bottom: 0; }
  .cta { margin-top: 20px; }
  .hero-meta { margin-top: 14px; }
  .hero-warn { margin-top: 10px; }
  .term { margin-top: 10px; }
}

/* ==========================================================================
   50. 手机端第三轮：把「变高了」的两块拉回去，并兜住所有小字号
   --------------------------------------------------------------------------
   上一轮把 term-row 改成单列竖排，结果每行从 24px 变 50px，反而更长 ——
   真正该做的是「dt 与 dd 横排 + 压缩内边距」。
   log 每行 102px（三行式布局）也过长，改回两行式。
   ========================================================================== */

@media (max-width: 760px) {
  /* ① 终端状态：dt/dd 横排，行高压到 ~28px，2 列 */
  .term-row {
    grid-template-columns: 68px minmax(0, 1fr);
    align-items: baseline;
    gap: 6px;
    padding: 5px 0;
    min-height: 0;
  }
  .term-row dt { font-size: 12px; padding-top: 0; line-height: 1.35; }
  .term-row dd { font-size: 13px; line-height: 1.35; margin-top: 0; }
  .term-rows { padding: 6px 12px 8px; gap: 0 10px; }

  /* ② 事件流：时间与来源合成一行，事件单独一行，状态右上 */
  .log li {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "meta st" "ev ev";
    gap: 1px 10px;
    padding: 8px 0;
    align-items: start;
  }
  .log .t { grid-area: meta; font-size: 12px; display: inline; }
  .log .src {
    grid-area: meta;
    font-size: 12px;
    display: inline;
    margin-left: 7px;
  }
  .log .src::before { content: "· "; opacity: .5; }
  .log .ev { grid-area: ev; font-size: 14px; line-height: 1.5; }
  .log .st { grid-area: st; font-size: 11px; padding: 1px 7px; align-self: start; margin-top: 1px; }

  /* ③ 兜底：所有标签类最小 12px（补齐上一轮漏掉的） */
  .mx-cap .k,
  .mx-cap .c,
  .spec th,
  .spec caption,
  .shot figcaption,
  .mx td.w,
  .edge .w,
  .mx-note,
  .inst-foot,
  .clean-hd .k,
  .clean-grid .ph,
  .fold > summary .m,
  .promo .mono,
  .pledge .pd,
  .hero-fine { font-size: 12px; }

  .mx-cap h3 { font-size: 15px; }
  .clean-grid h4 { font-size: 15px; }
  .clean-grid p { font-size: 14px; line-height: 1.6; }

  /* ④ 首屏按钮：主操作用满行，两个源码各占半行，不再三行 */
  .hero .cta {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .hero .cta > .btn-solid { grid-column: 1 / -1; }
  .hero .cta > .btn-line { grid-column: 1 / -1; }
  .hero .cta > .btn-ghost { grid-column: auto; justify-content: center; }

  /* ⑤ 主防区标题块：手机上说明文字压缩行距 */
  #resident .sec-hd { margin-bottom: 18px; }
  #resident .sec-hd p { font-size: 15px; line-height: 1.65; }

  /* ⑥ 隐私承诺：每条压到约 62px */
  .pledge li { padding: 11px 0; }
  .pledge .pd { font-size: 13px; line-height: 1.55; margin-top: 1px; }

  /* ⑦ 安装条：每步压到约 88px */
  .inst-steps li { padding: 10px 0; }
  .inst-steps span { font-size: 14px; line-height: 1.55; }
}

/* ==========================================================================
   51. 手机端第四轮：真正的取舍（不是压缩）
   --------------------------------------------------------------------------
   两个决定：
     ① 首屏的 term 面板在手机上隐藏 —— 它的 dims / seeds / cloud / telemetry
        与紧接着的「读数带」四项完全重复，手机上留着只是把按钮往下推 300px。
        这是取舍：首屏优先给「一句话 + 下载按钮」。
     ② 主防「四项能力」在手机上收进 details，默认收起 —— 它是可选组件的深读内容，
        要装的人会点开，不装的人不该被它挡住。
   桌面端：term 照常显示，av-fold 强制展开（summary 隐藏）。
   ========================================================================== */

/* 桌面端：av-fold 视同不存在 */
@media (min-width: 761px) {
  .av-fold > summary { display: none; }
  .av-fold > .av4 { display: grid !important; }
  .av-fold { border: 0; }
}

@media (max-width: 760px) {
  /* ① 首屏去掉重复的状态面板 */
  .hero .term { display: none; }

  /* ② 主防四项折叠 */
  .av-fold {
    border-top: 1px solid var(--line-2);
    border-bottom: 1px solid var(--line-2);
    margin-top: 18px;
  }
  .av-fold > summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    min-height: 56px;
    padding: 12px 0;
    cursor: pointer;
    list-style: none;
  }
  .av-fold > summary::-webkit-details-marker { display: none; }
  .av-fold > summary .k {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .16em;
    color: var(--brand-ink);
    border-left: 2px solid var(--brand);
    padding-left: 8px;
    flex: none;
  }
  .av-fold > summary .t {
    font-size: 16px;
    font-weight: 700;
    color: var(--fg);
  }
  .av-fold > summary .m {
    flex: 1 1 100%;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--fg-dim);
  }
  .av-fold > summary::after {
    content: "+";
    margin-left: auto;
    font-family: var(--mono);
    font-size: 1.05rem;
    color: var(--fg-dim);
    line-height: 1;
    transition: transform .18s var(--ease);
  }
  .av-fold[open] > summary::after { transform: rotate(45deg); }
  .av-fold[open] > summary { border-bottom: 1px solid var(--line); }
  .av-fold > .av4 { padding-top: 4px; }

  /* ③ 首屏重排后的最终节奏 */
  .hero { padding: 20px 0 24px; }
  .kicker { margin-bottom: 16px; }
  h1 { font-size: clamp(2.05rem, 10vw, 2.6rem); }
  .lede { margin-top: 14px; font-size: 16px; line-height: 1.75; }
  .cta { margin-top: 18px; }
  .hero-meta { margin-top: 12px; }
  .hero-warn { margin-top: 8px; }
}

/* 52. 手机端收尾：把最后的 <12px 全部提到 12px */
@media (max-width: 760px) {
  .log .st { font-size: 12px; padding: 2px 8px; }
  h1 em { font-size: 11px; }
  .fold > summary .t { font-size: 17px; }
  .fold > summary .m { font-size: 12px; }
  .inst-steps .n { font-size: 12px; }
  .read b small { font-size: 13px; }
  .inst-steps code,
  .edge code,
  .side-atk code { font-size: 13px; }
  .mx td.desc { font-size: 13px; }
  .term-bar { font-size: 12px; }
  .mdrawer-list .n { font-size: 12px; }
  .promo .swatch + .swatch { margin-left: 6px; }
}

/* ==========================================================================
   53. 触摸设备（≤1080px）的触控目标
   --------------------------------------------------------------------------
   768–1024 是 iPad 竖屏/横屏的宽度，属于触摸设备，同样需要 44px 目标。
   上一轮只覆盖到 760px，中间这段漏了：品牌 31px、主题按钮 34px、
   7-Zip 链接 21px、页脚链接 17px。
   ========================================================================== */
@media (max-width: 1080px) {
  .brand { min-height: 44px; }
  .tgl { width: 44px; height: 44px; }

  .inst-steps .lnk,
  .priv-hd a,
  .faq .a a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 2px 0;
  }

  .ft a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-right: 16px;
  }
  .ft { flex-wrap: wrap; }
  .ft .sep { display: none; }
  .site-footer { padding-bottom: 22px; }
}

/* 54. 触摸设备上的顶部导航：每项撑到 44px（1024 是 iPad 横屏） */
@media (max-width: 1080px) {
  .nav a { min-height: 44px; display: inline-flex; align-items: center; padding-block: 0; }
}


/* ==========================================================================
   49. 手机端重排（≤760px）—— 2026-10-20 重做
   --------------------------------------------------------------------------
   之前的问题（截图实测）：
     ① 底部操作条常驻，永久吃掉 844px 屏幕里的 72px，正文被压住
     ② 事件流 .log li 的栅格在窄屏塌了，时间戳与来源叠成「14:0@RO0ESS」乱码
     ③ 攻击链是「横向滑动卡片」—— 一屏一张、文字挤在 260px 宽里，
        每行只放得下十个字，四张要横滑四次，且没有任何滑动提示
     ④ 首屏 CTA 四个动作堆成三行 156px
     ⑤ 十处字号 <12px
   做法：
     · 攻击链改竖排紧凑列表（放弃横滑），权重与名称同行、依据一行
     · 事件流改两行栅格：时间 + 来源 + 状态 / 事件
     · 底部条滚动向下时收起、向上时回弹（不永久占屏）
     · CTA 两列并排，源码链接并进 meta 行
     · 所有字号提到 12px 起
   ========================================================================== */
@media (max-width: 760px) {

  /* ---------- A. 底部条：滚动隐藏，回弹出现 ---------- */
  .mbar {
    transition: transform .24s var(--ease);
    transform: translateY(0);
  }
  .mbar.is-hidden { transform: translateY(calc(100% + 8px)); }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

  /* ---------- B. 事件流：两行栅格，杜绝重叠 ---------- */
  .log li {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    grid-template-areas: "t src st" "ev ev ev" !important;
    gap: 3px 8px !important;
    align-items: center !important;
    padding: 9px 0 !important;
    font-size: .73rem !important;
  }
  .log .t { grid-area: t !important; font-size: .7rem !important; white-space: nowrap; }
  .log .src { grid-area: src !important; font-size: .6rem !important; letter-spacing: .06em; }
  .log .ev { grid-area: ev !important; line-height: 1.5; font-size: .73rem !important; margin-top: 1px; }
  .log .st { grid-area: st !important; align-self: center; }
  .log { border-left: 0; border-right: 0; }

  /* ---------- C. 攻击链：竖排紧凑（取代横滑） ---------- */
  .atk {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    overflow-x: visible !important;
    scroll-snap-type: none !important;
    margin-inline: 0 !important;
    padding: 0 !important;
    border-top: 1px solid var(--line-2) !important;
  }
  .stage,
  .stage:nth-child(2n),
  .stage:nth-child(2n-1) {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    scroll-snap-align: none !important;
    padding: 20px 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
  }
  .stage:last-child { border-bottom: 1px solid var(--line-2) !important; }

  .stage-hd {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 9px;
    margin-bottom: 10px;
  }
  .stage-hd .ph { font-size: .56rem; padding-left: 7px; }
  .stage-hd h3 { font-size: 1.04rem; line-height: 1.28; flex: 1 1 auto; min-width: 0; }
  .stage-hd .verdict {
    margin-left: 0;
    width: 100%;
    font-size: .6rem;
    letter-spacing: .06em;
  }
  .stage-hd .verdict::before { width: 10px; }

  /* 攻击描述压成短段，不与拦截点抢空间 */
  .side-atk { margin-bottom: 12px; }
  .side-atk > .lab,
  .side-grd > .lab {
    font-size: .58rem;
    margin-bottom: 6px;
    letter-spacing: .14em;
  }
  .side-atk p {
    font-size: .84rem;
    line-height: 1.7;
    margin: 0 0 6px;
    color: var(--fg-mid);
  }
  .side-atk p:last-child { margin-bottom: 0; }
  .side-atk code { font-size: .8em; }

  /* 拦截点：权重 + 名称同行，依据一行，行高压到 1.55 */
  .side-grd > .lab { margin-bottom: 4px; }
  .edge {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0 9px;
    padding: 7px 0;
    border-bottom: 1px solid var(--line);
    align-items: baseline;
  }
  .edge:last-child { border-bottom: 0; padding-bottom: 0; }
  .edge .w { font-size: .64rem; min-width: 28px; padding: 1px 5px; }
  .edge b { font-size: .845rem; display: inline; margin-right: 5px; }
  .edge span { font-size: .79rem; line-height: 1.55; display: inline; }
  .edge .dims { display: none; }

  /* 目录回归（横滑时被隐藏了，竖排后需要它） */
  .toc {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    margin-bottom: 18px;
  }
  .toc a { padding: 12px 12px 12px 0 !important; }
  .toc a b { font-size: .875rem; }
  .toc a .n { font-size: .56rem; margin-bottom: 4px; }

  /* ---------- D. 首屏 CTA：两列并排 ---------- */
  .hero .cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 22px;
  }
  .hero .cta .btn-solid,
  .hero .cta .btn-line {
    grid-column: auto;
    min-height: 48px;
    padding: 0 10px;
    font-size: .875rem;
    border-radius: 8px;
  }
  .hero .cta .btn-solid svg,
  .hero .cta .btn-line svg { width: 15px; height: 15px; }
  /* 两个源码按钮并成一行文字链，不占按钮位 */
  .hero .cta .btn-ghost {
    grid-column: auto;
    justify-self: start;
    padding: 6px 0;
    font-size: .82rem;
    min-height: 36px;
  }

  /* ---------- E. 分段高度压缩 ---------- */
  .hero { padding: 26px 0 30px; }
  h1 { font-size: clamp(2.15rem, 11vw, 2.9rem); }
  h1 em { font-size: .58rem; letter-spacing: .26em; margin-top: 9px; }
  .kicker { margin-bottom: 18px; font-size: .58rem; padding: 4px 10px 4px 8px; }
  .lede { font-size: .95rem; line-height: 1.72; margin-top: 14px; max-width: none; }
  .hero-meta { margin-top: 12px; font-size: .68rem; }
  .hero-warn { margin-top: 10px; font-size: .76rem; }

  /* 读数带：2×2，标签一行数字一行 */
  .read { padding: 15px 14px; }
  .read span { font-size: .62rem; margin-bottom: 6px; letter-spacing: .08em; }
  .read b { font-size: 1.8rem; }

  /* 安装条 */
  .inst { padding: 16px 0 14px; }
  .inst-hd { margin-bottom: 12px; gap: 4px 10px; }
  .inst-hd b { font-size: .9rem; }
  .inst-hd .m { font-size: .62rem; }
  .inst-steps { gap: 0 !important; }
  .inst-steps li {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 0 8px;
    padding: 0 0 12px !important;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--line) !important;
  }
  .inst-steps li:last-child { border-bottom: 0 !important; margin-bottom: 0; padding-bottom: 0 !important; }
  .inst-steps b { font-size: .86rem; margin-bottom: 2px; }
  .inst-steps span { font-size: .78rem; line-height: 1.55; }
  .inst-foot { margin-top: 10px; font-size: .64rem; }

  /* 主防：截图、事件流、说明 */
  .shot { margin-bottom: 16px; }
  .shot img { border-radius: 6px; }
  .shot figcaption { font-size: .62rem; margin-top: 6px; }
  .log-cap { font-size: .58rem; margin-bottom: 7px; }
  .mx-note { font-size: .74rem; line-height: 1.6; }

  /* 隐私：4 条承诺压紧 */
  .priv-hd { margin-bottom: 16px; }
  .priv-hd h2 { font-size: clamp(1.4rem, 6.4vw, 1.75rem); margin-bottom: 9px; }
  .priv-hd p { font-size: .87rem; line-height: 1.72; }
  .pledge li { padding: 11px 0; gap: 10px; font-size: .875rem; }
  .pledge .pd { font-size: .8rem; line-height: 1.55; }

  /* FAQ */
  .faq summary { padding: 12px 0; font-size: .895rem; gap: 10px; }
  .faq .a { padding: 0 0 12px 0; font-size: .845rem; line-height: 1.72; }

  /* 收尾 */
  .end { padding: 38px 0; }
  .end h2 { font-size: clamp(1.6rem, 8vw, 2.1rem); }
  .end p { font-size: .875rem; margin-bottom: 20px; }
  .end .cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .end .cta .btn-solid { grid-column: 1 / -1; }
  .end .cta .btn-line { min-height: 44px; font-size: .82rem; }

  /* 折叠附录 */
  .fold > summary { padding: 13px 0; gap: 6px 10px; }
  .fold > summary .t { font-size: .93rem; }
  .fold > summary .m { width: 100%; font-size: .62rem; margin-left: 0; }
  .fold > summary .k { font-size: .56rem; }

  /* 主题编辑器条 */
  .promo h2 { font-size: 1.35rem; }
  .promo p { font-size: .855rem; line-height: 1.68; }

  /* ---------- F. 字号兜底：没有小于 12px 的文字 ---------- */
  .brand .bt span { font-size: .75rem !important; letter-spacing: .16em !important; }
  .av4 h3 span,
  .clean-grid .ph,
  .fd-panel .kk { font-size: .75rem !important; }
  .faq summary .q { font-size: .75rem !important; }
  .read span,
  .sec-hd .idx,
  .mono,
  .stage-hd .ph,
  .stage-hd .verdict,
  .side-atk > .lab,
  .side-grd > .lab,
  .log-cap,
  .inst-hd .m,
  .inst-foot,
  .hero-meta,
  .edge .w { font-size: .75rem !important; }
  .term-row dt { font-size: .72rem !important; }
  .toc a .n { font-size: .75rem !important; letter-spacing: .12em !important; }
  .log .src { font-size: .72rem !important; }
  .log .t { font-size: .72rem !important; }
  .log .ev { font-size: .78rem !important; }
  .log .st { font-size: .72rem !important; }
}

/* 360px 以下再收一档 */
@media (max-width: 380px) {
  h1 { font-size: 2rem; }
  .read b { font-size: 1.6rem; }
  .hero .cta { grid-template-columns: 1fr; }
  .toc { grid-template-columns: 1fr !important; }
}


/* ==========================================================================
   50. 手机端攻击链：折叠（2026-10-20）
   --------------------------------------------------------------------------
   四个阶段全展开是 2080px（每段 520px），手机上占 2.5 屏。
   改成折叠：收起时只显示 PHASE + 标题 + 卡点数（每段约 74px），点开看细节。
   第一段默认展开 —— 让人一眼看懂「左边攻击、右边拦」这个pattern。
   桌面端不受影响：.st-body 用 display:contents 继续参与 .stage 的三栏栅格。
   ========================================================================== */

/* 桌面：st-body 透明化，子元素照旧进网格 */
.st-body { display: contents; }

@media (max-width: 760px) {
  .st-body { display: block; }

  .stage { padding: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .stage-hd {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0 9px;
    margin: 0 !important;
    padding: 15px 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    position: relative;
  }
  .stage-hd h3 {
    font-size: 1rem !important;
    line-height: 1.3;
    min-width: 0;
  }
  /* verdict 收进第三列，不再独占一行 */
  .stage-hd .verdict {
    width: auto !important;
    margin: 0 !important;
    font-size: .7rem !important;
    letter-spacing: .04em;
    color: var(--fg-dim);
    white-space: nowrap;
    display: none;   /* 一行放不下三个，手机上先让位给标题 */
  }
  .stage-hd .ph { font-size: .7rem !important; padding-left: 7px; }
  /* 展开指示：加号，展开后转 45° */
  .stage-hd::after {
    content: "+";
    grid-column: 3;
    font-family: var(--mono);
    font-size: 1.05rem;
    line-height: 1;
    color: var(--fg-dim);
    transition: transform .18s var(--ease);
    flex: none;
  }
  .stage:not(.is-closed) .stage-hd::after { transform: rotate(45deg); }

  /* 收起时内容不占位 */
  .stage.is-closed .st-body { display: none; }
  .stage:not(.is-closed) .st-body { padding-bottom: 16px; }

  /* 卡点数：收起时在标题下给一行提示 */
  .stage-hd .cnt {
    grid-column: 1 / 3;
    font-family: var(--mono);
    font-size: .7rem;
    letter-spacing: .06em;
    color: var(--fg-dim);
    margin-top: 3px;
  }

  /* 折叠后不再需要「这里会撞上」的小标题重复 */
  .side-grd > .lab { margin-top: 2px; }
  .side-atk { margin-bottom: 10px; }
  .side-atk p { font-size: .82rem; line-height: 1.68; }

  /* 攻击链整体不再有上边框（首段标题自带） */
  .atk { border-top: 0 !important; }
  .stage:first-child { border-top: 1px solid var(--line-2) !important; }
  .stage:last-child { border-bottom: 1px solid var(--line-2) !important; }
}

/* ===== 51. 手机端折叠：再压一档（2026-10-20） =====
   折叠后每段标题仍占 89px（两行），且目录 147px 已冗余 ——
   阶段标题本身就是索引。压成单行 48px，目录删掉。 */
@media (max-width: 760px) {
  /* 目录在折叠列表里是重复的索引，去掉 */
  #chain .toc { display: none !important; }

  .stage-hd {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    padding: 12px 0 !important;
    gap: 0 8px !important;
  }
  .stage-hd h3 {
    font-size: .945rem !important;
    line-height: 1.35;
    /* 标题最多两行，超了省略 —— 避免长标题把行高撑开 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  /* 卡点数隐藏：+ 号已经是展开暗示，两者并存反而挤 */
  .stage-hd .cnt { display: none !important; }
  .stage-hd .ph { font-size: .68rem !important; }
  .stage-hd::after { font-size: .95rem; }

  /* 首段展开时其标题以下再加一点空隙 */
  .stage:not(.is-closed) .st-body { padding-top: 2px; }
}

/* ===== 52. 手机端：主防区与零碎项收尾（2026-10-20） ===== */
@media (max-width: 760px) {
  /* 主防标题说明压到 3 行内 */
  #resident .sec-hd { margin-bottom: 16px; }
  #resident .sec-hd p { font-size: .85rem; line-height: 1.65; }

  /* 事件流：行内边距与字号各收一档 */
  .log li { padding: 7px 0 !important; gap: 2px 7px !important; }
  .log-cap { font-size: .62rem !important; line-height: 1.5; margin-bottom: 6px; }

  /* 主防 CTA：两个按钮并排，说明文字降到按钮下方一行 */
  #resident .cta {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px !important;
    margin-top: 18px !important;
  }
  #resident .cta .btn { min-height: 46px; font-size: .84rem; padding: 0 8px; }
  #resident .cta .btn svg { width: 14px; height: 14px; }
  #resident .cta .mono {
    grid-column: 1 / -1;
    margin-top: 2px;
    font-size: .76rem !important;
    text-align: center;
  }
  #resident .hero-warn { font-size: .76rem; line-height: 1.6; }

  /* 源码链接：抬到 44px 触控高度，且并排一行 */
  .hero .cta .btn-ghost {
    min-height: 44px !important;
    display: inline-flex;
    align-items: center;
    font-size: .82rem;
  }
  .hero .cta .btn-ghost + .btn-ghost { justify-self: end; }

  /* 收尾的三个按钮 */
  .end .cta .btn { min-height: 46px; font-size: .84rem; }

  /* 隐私：标题与说明再收 */
  .priv-hd p { font-size: .845rem; }
  .pledge li { padding: 10px 0; }
}

/* ===== 53. 手机端：消灭 12px 以下的字号（2026-10-20） =====
   手机上 11px 以下的等宽小字基本读不清，统一抬到 12px 起。 */
@media (max-width: 760px) {
  .term-row dt { font-size: .75rem !important; letter-spacing: .04em !important; }
  .term-row dd { font-size: .78rem !important; }
  .fold > summary .k { font-size: .75rem !important; letter-spacing: .1em !important; }
  .fold > summary .m,
  .fold > summary .m b { font-size: .75rem !important; }
  .mx-cap .c,
  .mx-cap .k { font-size: .75rem !important; }
  .mx thead th { font-size: .75rem !important; }
  .mx td.desc { font-size: .78rem !important; line-height: 1.6 !important; }
  .mx td.w { font-size: .75rem !important; }
  .mx td.name { font-size: .82rem !important; }
  .spec th { font-size: .75rem !important; }
  .spec td { font-size: .8rem !important; line-height: 1.62 !important; }
  .spec caption { font-size: .75rem !important; }
  .swatch { height: 10px; }
  .toc a .n { font-size: .75rem !important; }
  .stage-hd .ph { font-size: .72rem !important; }
  .hero .cta .btn-ghost { font-size: .8rem !important; }
  .end .cta .btn { font-size: .82rem !important; }
  .promo .btn { min-height: 44px; }
  .inst-steps .n { font-size: .75rem !important; }
  .inst-hd .k { font-size: .72rem !important; }
  .read b small { font-size: .72rem !important; }
}

/* 剩余 11.5px 的标签统一到 12px */
@media (max-width: 760px) {
  .stage-hd .ph { font-size: .75rem !important; }
  .term-row dt { font-size: .75rem !important; }
  .inst-hd .k { font-size: .75rem !important; }
  .mx-cap .c { font-size: .75rem !important; }
}

/* 最后两口：事件流的元信息行与矩阵注脚 */
@media (max-width: 760px) {
  .log .t, .log .src, .log .st { font-size: .75rem !important; }
  .mx-note { font-size: .75rem !important; line-height: 1.58 !important; }
}

/* 折叠行：标题自带 12px padding，.stage 不必再叠 20px（每行多出 40px 空高） */
@media (max-width: 760px) {
  .stage,
  .stage:nth-child(2n),
  .stage:nth-child(2n-1) { padding: 0 !important; }
  .stage:not(.is-closed) { padding-bottom: 14px !important; }
}

/* ==========================================================================
   54. 平板区间（761–940）补齐折叠与导航（2026-10-20）
   --------------------------------------------------------------------------
   ≤940 桌面导航被隐藏，而底部操作条原先只在 ≤760 出现 —— 761–940 这一段
   完全没有导航。同时攻击链在这个区间不折叠，四段全展开 1598px。
   这里把折叠行为延伸到 940，与底部条（已改到 ≤940）对齐。
   ========================================================================== */
@media (min-width: 761px) and (max-width: 940px) {
  .st-body { display: block; }

  .stage { padding: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .stage-hd {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0 10px;
    margin: 0 !important;
    padding: 14px 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .stage-hd h3 { font-size: 1.05rem; line-height: 1.3; min-width: 0; }
  .stage-hd .verdict { width: auto !important; margin: 0 !important; display: none; }
  .stage-hd .cnt { display: none !important; }
  .stage-hd::after {
    content: "+";
    grid-column: 3;
    font-family: var(--mono);
    font-size: 1.05rem;
    line-height: 1;
    color: var(--fg-dim);
    transition: transform .18s var(--ease);
  }
  .stage:not(.is-closed) .stage-hd::after { transform: rotate(45deg); }
  .stage.is-closed .st-body { display: none; }
  .stage:not(.is-closed) .st-body { padding: 0 0 18px; }

  .atk { border-top: 0 !important; }
  .stage:first-child { border-top: 1px solid var(--line-2) !important; }
  .stage:last-child { border-bottom: 1px solid var(--line-2) !important; }

  /* 这个区间 .atk 已是一列，折叠后不再需要目录 */
  #chain .toc { display: none !important; }
}

/* ===== 55. 平板区间字号下限（761–940）：与手机同样的 12px 底线 ===== */
@media (min-width: 761px) and (max-width: 940px) {
  .brand .bt span { font-size: .75rem !important; }
  .ver { font-size: .75rem !important; padding: 3px 10px; }
  .hero-meta { font-size: .75rem !important; }
  .term-bar { font-size: .75rem !important; }
  .term-bar span { letter-spacing: .1em; }
  .term-row dt { font-size: .75rem !important; }
  .term-row dd { font-size: .78rem !important; }
  .term-foot { font-size: .75rem !important; }
  .read span { font-size: .75rem !important; }
  .read b small { font-size: .75rem !important; }
  .sec-hd .idx { font-size: .75rem !important; }
  .fold > summary .k { font-size: .75rem !important; }
  .fold > summary .m { font-size: .75rem !important; }
  .mx-note { font-size: .75rem !important; }
  .log-cap { font-size: .75rem !important; }
  .log .t, .log .src, .log .st { font-size: .75rem !important; }
  .log .ev { font-size: .78rem !important; }
  .spec caption { font-size: .75rem !important; }
  .inst-hd .m { font-size: .75rem !important; }
  .inst-foot { font-size: .75rem !important; }
  .mx-cap .k, .mx-cap .c { font-size: .75rem !important; }
  .toc a .n { font-size: .75rem !important; }
  .stage-hd .ph { font-size: .75rem !important; }
  .hero .cta .btn-ghost { font-size: .82rem !important; }
}

/* 平板区间：补齐漏掉的几处（安装条、攻击链标签、权重、图注） */
@media (min-width: 761px) and (max-width: 940px) {
  .inst-hd .k { font-size: .75rem !important; letter-spacing: .12em !important; }
  .inst-steps .n { font-size: .75rem !important; }
  .inst-steps b { font-size: .9rem !important; }
  .inst-steps span { font-size: .84rem !important; line-height: 1.6 !important; }
  .side-atk > .lab,
  .side-grd > .lab { font-size: .75rem !important; letter-spacing: .1em !important; }
  .side-atk p { font-size: .875rem !important; line-height: 1.72 !important; }
  .edge .w { font-size: .75rem !important; min-width: 32px; padding: 1px 6px; }
  .edge b { font-size: .875rem !important; }
  .edge span { font-size: .82rem !important; line-height: 1.6 !important; }
  .edge .dims { font-size: .75rem !important; }
  .shot figcaption { font-size: .75rem !important; }
  .stage-hd .verdict { font-size: .75rem !important; }
  .hero-warn { font-size: .8rem !important; }
  .toc a small { font-size: .75rem !important; }
  .promo p { font-size: .9rem !important; }
  .priv-hd p { font-size: .9rem !important; }
  .pledge small, .pledge .pd { font-size: .82rem !important; }
  .faq summary .q { font-size: .75rem !important; }
  .faq .a { font-size: .875rem !important; }
  .end p { font-size: .875rem !important; }
  .ft, .ft a { font-size: .8rem !important; }
  .av4 h3 span, .clean-grid .ph { font-size: .75rem !important; }
  .mx td.desc { font-size: .82rem !important; }
  .spec th, .spec td { font-size: .82rem !important; }
}

/* 平板区间收尾：两处 43.99px 的链接与一个 .74rem 的标签 */
@media (min-width: 761px) and (max-width: 940px) {
  .hero .cta .btn-ghost {
    min-height: 46px !important;
    display: inline-flex;
    align-items: center;
    padding: 0 2px;
  }
  .mono, .priv-hd .mono { font-size: .75rem !important; }
}

/* 761–940：.atk 必须单列。旧的「平板只调两栏」规则（761–1080）把这里
   留成两列，折叠后同一行的两段会被较高的一段拉伸（st2 被 st1 撑到 560px）。 */
@media (min-width: 761px) and (max-width: 940px) {
  .atk {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    align-items: start;
  }
  .stage:nth-child(2n) { padding-left: 0 !important; }
  .stage:nth-child(2n-1) { padding-right: 0 !important; }
}

/* ── 首屏 API 入口的「即将上线」角标（2026-11-07）────────────────
   只用站内已有的三个品牌变量，不新增颜色；深浅色都跟主题走。 */
.btn .soon{font-style:normal;font-size:11px;line-height:1;padding:4px 7px;margin-left:8px;
  border-radius:999px;background:var(--brand-soft);color:var(--brand-ink);
  border:1px solid var(--brand-line);letter-spacing:.02em;vertical-align:1px;white-space:nowrap}
:root[data-theme="light"] .btn .soon{color:var(--brand)}
