/* ============================================================================
 * 知言输入法 Zhiyan · 官网样式
 * ----------------------------------------------------------------------------
 * 色值全部沿用产品 src/styles/tokens.css，不新造颜色。
 * 三条纪律（与产品设计规范同源）：
 *   · 红跟动作走，不跟文字走 —— 红色只出现在按钮、选中条、状态点、2px 热力线
 *   · 深不过线 —— 深色只在页面外壳（页头 / 匣底 / 页脚），中间必须是纸
 *   · 页面即一次开匣 —— 匣盖 → 纸面 → 匣底
 * 断点：1080 / 820 / 520
 * ==========================================================================*/

/* ---------- 1. 令牌 ---------- */
/* ---- 四级红映射表（品牌红映射，2026-11-25 D2 青山拍板：自有「匣/纸/墨/热」体系保留，红与官网四级红同源） ----
   --red   #C81E2A ↔ 官网 base.css --brand-1
   --red-6 #E11D2E ↔ 官网 --brand-2
   --red-5 #FF3B47 ↔ 官网 --brand-3
   （官网 --brand-4 #FF6B72、--grad 终点 #FF4D57 本站未定义；深底红字提亮用 --red-5） ---- */
:root {
  /* 匣（外壳，与产品侧栏同色，不随主题切换） */
  --rail: #0f172a;
  --rail-lift: #16203a;
  --rail-deep: #0b1220;
  --rail-fg1: #f2f5fa;
  --rail-fg2: #93a0b8;
  --rail-fg3: #63718c;
  --rail-line: rgb(255 255 255 / 0.075);
  --rail-line-2: rgb(255 255 255 / 0.14);

  /* 纸（内容面） */
  --paper: #fcfcfd;
  --paper-2: #f3f4f7;
  --sunken: #e9ecf2;
  --line: #e2e6ed;
  --line-soft: #edeff3;

  /* 墨（文字） */
  --ink: #171a21;
  --ink-2: #5a6272;
  --ink-3: #69707f;

  /* 热（品牌红，只做动作） */
  --red: #c81e2a;
  --red-6: #e11d2e;
  --red-5: #ff3b47;
  --tint: #fdecee;
  --heat: linear-gradient(103deg, #c81e2a 0%, #e11d2e 58%, #ff3b47 100%);
  --heat-line: linear-gradient(90deg, #e11d2e 0%, #ff3b47 58%, rgb(255 59 71 / 0) 100%);

  /* 字 */
  --sans: "Inter", "InterVariable", "PingFang SC", "Microsoft YaHei UI",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", "Cascadia Mono", Consolas, "Courier New", ui-monospace, monospace;

  /* 间距（8pt 网格） */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;

  --radius: 12px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- 2. 重置与排版 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

code, kbd, .mono {
  font-family: var(--mono);
  font-variant-ligatures: none;
}

::selection {
  background: var(--tint);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--red-5);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--rail);
  color: var(--rail-fg1);
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}

.skip:focus {
  left: 0;
}

/* ---------- 3. 导航 ---------- */
/* 导航就是匣盖：比匣内深一档，底边留一道没盖严的暖缝 */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: #0b1220;
  transition: box-shadow 0.32s var(--ease);
}

.nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgb(255 59 71 / 0) 0%,
    rgb(255 59 71 / 0.14) 15%,
    rgb(255 59 71 / 0.62) 44%,
    rgb(255 59 71 / 0.74) 52%,
    rgb(255 59 71 / 0.14) 85%,
    rgb(255 59 71 / 0) 100%
  );
  opacity: 0.7;
  transform: scaleX(0);
  transform-origin: 50% 50%;
  animation: seam-in 1.2s var(--ease) 0.15s forwards;
  transition: opacity 0.4s var(--ease), box-shadow 0.4s var(--ease);
  pointer-events: none;
}

/* 缝下面透出一点光，才像「没盖严」而不是一条装饰线 */
.nav::before {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: -10px;
  height: 12px;
  background: radial-gradient(60% 100% at 50% 0%, rgb(255 59 71 / 0.16), transparent 72%);
  opacity: 0.8;
  pointer-events: none;
}

/* 键盘焦点进到导航里时，盖缝亮一档 */
.nav:focus-within::after {
  opacity: 1;
  box-shadow: 0 0 14px 1px rgb(255 59 71 / 0.4);
}

/* 匣盖没盖严的那道缝：加载时从中间往两边亮开 */
@keyframes seam-in {
  to {
    transform: scaleX(1);
  }
}

.nav.is-solid {
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.05), 0 14px 34px rgb(0 0 0 / 0.34);
}

.nav.is-solid::after {
  opacity: 1;
}

.nav-in {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand svg {
  width: 30px;
  height: 30px;
  flex: none;
}

.brand-txt {
  color: var(--rail-fg1);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.brand-sub {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--rail-fg3);
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.nav-links a {
  position: relative;
  padding: 5px 0;
  font-size: 14px;
  color: var(--rail-fg2);
  transition: color 0.18s var(--ease);
}

.nav-links a:hover {
  color: var(--rail-fg1);
}

.nav-links a[aria-current="page"] {
  color: var(--rail-fg1);
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--heat);
}

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 23px;
  border: 0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.18s var(--ease), filter 0.18s var(--ease),
    background 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.btn:active {
  transform: translateY(0) scale(0.985);
}

.btn-heat {
  background: var(--heat);
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.2), 0 8px 22px -8px rgb(200 30 42 / 0.65);
}

.btn-heat:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgb(255 255 255 / 0.04);
  border: 1px solid var(--rail-line-2);
  color: var(--rail-fg1);
}

.btn-ghost:hover {
  background: rgb(255 255 255 / 0.09);
  border-color: rgb(255 255 255 / 0.3);
}

.btn-line {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-line:hover {
  border-color: #cfd6e1;
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -12px rgb(15 23 42 / 0.35);
}

.btn-sm {
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 13.5px;
}

.btn .ar {
  font-family: var(--mono);
  font-size: 13px;
  opacity: 0.85;
  transition: transform 0.2s var(--ease);
}

.btn:hover .ar {
  transform: translateX(2px);
}

/* ---------- 5. 页头（深色匣盖） ---------- */
.hero,
.page-head {
  position: relative;
  background: var(--rail);
  color: var(--rail-fg1);
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero::before,
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(760px 520px at 76% 18%, rgb(200 30 42 / 0.15), transparent 70%);
  pointer-events: none;
}

/* 热力母题（2026-11-25 D2 拍板：产品站热力语汇，红色与官网四级红同源） */
.hero::after,
.page-head::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red-5) 18%, var(--red) 50%, var(--red-5) 82%, transparent);
  background-size: 200% 100%;
  animation: heatRun 5.4s linear infinite;
  pointer-events: none;
}

@keyframes heatRun {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::after,
  .page-head::after { animation: none; }
}

.hero-head {
  position: relative;
  padding-top: 62px;
}

.hero-title {
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.hero-title .ln {
  display: block;
  overflow: hidden;
}

.hero-title .ln > span {
  display: block;
  white-space: nowrap;
  transform: translateY(104%);
  animation: rise 0.95s var(--ease) forwards;
}

.hero-title .ln:nth-child(2) > span {
  animation-delay: 0.11s;
}

@keyframes rise {
  0% {
    opacity: 0;
  }
  55% {
    opacity: 1;
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-lead {
  margin-top: 26px;
  max-width: 33em;
  font-size: 16.5px;
  line-height: 1.95;
  color: var(--rail-fg2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 0 34px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--rail-line);
  max-width: 460px;
}

.hero-facts dt {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--rail-fg2);
}

.hero-facts dd {
  margin: 3px 0 0;
  font-size: 13.5px;
  color: var(--rail-fg2);
}

.hero-facts dd.mono {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0;
}

/* 首屏产品窗口 */
.hero-shot {
  position: relative;
  padding-top: 46px;
  padding-bottom: 52px;
}

.shot {
  position: relative;
  margin: 0;
  opacity: 0;
  transform: translateY(18px);
  animation: shot-in 1.1s var(--ease) 0.18s forwards;
}

@keyframes shot-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.shot svg {
  width: 100%;
  height: auto;
  border-radius: 11px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1), 0 40px 90px -30px rgb(0 0 0 / 0.72);
  transition: box-shadow 0.4s var(--ease);
}

@media (hover: hover) and (min-width: 1081px) {
  .shot:hover svg {
    box-shadow: 0 0 0 1px rgb(255 255 255 / 0.17), 0 54px 104px -30px rgb(0 0 0 / 0.88);
  }
}

/* 界面里那一条会呼吸的光标 —— 全站唯一持续运动的东西 */
.shot svg .caret {
  animation: caret-blink 1.15s steps(1, end) infinite;
}

@keyframes caret-blink {
  0%,
  46% {
    opacity: 1;
  }
  47%,
  100% {
    opacity: 0;
  }
}

/* 屏幕外框：一圈 7px 的暗色边框 + 一道内高光，让它像设备而不是一张图 */
.shot-tilt {
  border-radius: 18px;
  box-shadow:
    0 0 0 7px rgb(255 255 255 / 0.024),
    0 0 0 8px rgb(255 255 255 / 0.055);
}

.shot-cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid var(--rail-line);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--rail-fg3);
}

.page-head .grid-bg {
  -webkit-mask-image: radial-gradient(86% 150% at 84% -28%, #000 0%, rgb(0 0 0 / 0.4) 52%, transparent 82%);
  mask-image: radial-gradient(86% 150% at 84% -28%, #000 0%, rgb(0 0 0 / 0.4) 52%, transparent 82%);
}

.shot-cap .mono {
  font-size: 11px;
  letter-spacing: 0;
  color: var(--rail-fg3);
  white-space: nowrap;
}

/* ---------- 6. 纸面区块 ---------- */
.sec {
  padding: 96px 0;
}

.sec-tight {
  padding: 72px 0;
}

.sec-title {
  font-size: clamp(26px, 3.1vw, 38px);
  line-height: 1.32;
}

.sec-lead {
  margin-top: 18px;
  max-width: 34em;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-2);
}

/* 6.1 事实块 */
.fact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 72px;
}

.fact-list {
  display: flex;
  flex-direction: column;
}

.fact {
  position: relative;
  padding: 26px 0 26px 24px;
  border-top: 1px solid var(--line);
}

.fact:first-child {
  border-top: 0;
  padding-top: 2px;
}

.fact-k {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}

.fact-k::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 10px;
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: var(--red-6);
}

.fact p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-2);
  max-width: 38em;
}

.fact .path {
  display: inline-block;
  margin: 12px 0 0;
  padding: 7px 12px;
  border-radius: 7px;
  background: var(--sunken);
  color: #253044;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

/* 6.2 能力 */
.caps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 80px;
  margin-top: 56px;
}

.cap {
  padding: 22px 0 26px;
  border-top: 1px solid var(--line);
}

.cap h3 {
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.5;
}

.cap p {
  margin-top: 7px;
  font-size: 14.5px;
  line-height: 1.82;
  color: var(--ink-2);
  max-width: 30em;
}

.cap .mono {
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: 0;
}

/* ---------- 7. 匣底（深色） ---------- */
.band {
  background: var(--rail);
  color: var(--rail-fg1);
  position: relative;
  overflow: hidden;
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(680px 480px at 12% 8%, rgb(200 30 42 / 0.13), transparent 68%);
  pointer-events: none;
}

.band > .wrap {
  position: relative;
}

.band .sec-title {
  color: var(--rail-fg1);
}

.band .sec-lead {
  color: var(--rail-fg2);
}

.limits {
  list-style: none;
  counter-reset: lim;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 80px;
}

.limits li {
  counter-increment: lim;
  position: relative;
  padding: 24px 0 26px 40px;
  border-top: 1px solid var(--rail-line);
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--rail-fg2);
}

.limits li::before {
  content: counter(lim);
  position: absolute;
  left: 0;
  top: 25px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--rail-fg2);
}

.limits b {
  display: block;
  margin-bottom: 3px;
  font-weight: 600;
  color: var(--rail-fg1);
  font-size: 15px;
}

/* ---------- 8. 规格表 ---------- */
.spec {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
  font-size: 14.5px;
}

.spec th,
.spec td {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.spec th {
  width: 164px;
  font-weight: 500;
  color: var(--ink-3);
  font-size: 13.5px;
}

.spec td {
  color: var(--ink);
}

.spec td.mono {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

/* ---------- 9. 收束 ---------- */
.end {
  padding: 104px 0;
  border-top: 1px solid var(--line);
}

.end-grid {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.end-line {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.015em;
  max-width: 22em;
}

.end-line small {
  display: block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink-2);
}

.end-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- 10. 页脚 ---------- */
.foot {
  background: var(--rail-deep);
  color: var(--rail-fg3);
  padding: 56px 0 40px;
  font-size: 13px;
}

.foot-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rail-line);
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.foot-brand .brand-txt {
  font-size: 14px;
}

.foot-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.foot-links a {
  color: var(--rail-fg2);
  transition: color 0.18s var(--ease);
}

.foot-links a:hover {
  color: var(--rail-fg1);
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 12px;
  color: var(--rail-fg3);
}

.foot-bottom .mono {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0;
}

/* ==========================================================================
 * 11. 内页（下载 / 源码）专用
 * ========================================================================*/
.page-head-in {
  position: relative;
  padding-top: 68px;
  padding-bottom: 72px;
}

.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--rail-fg3);
}

.crumb a:hover {
  color: var(--rail-fg2);
}

.crumb .sep {
  font-family: var(--mono);
  opacity: 0.6;
}

.page-title {
  margin-top: 22px;
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.25;
}

.page-lead {
  margin-top: 16px;
  max-width: 40em;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--rail-fg2);
}

/* 11.1 下载卡 */
.dl-top {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: start;
}

.ver {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.ver-num {
  font-family: var(--mono);
  font-size: clamp(44px, 5.6vw, 66px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 5px;
  border: 1px solid #f0c4c8;
  background: var(--tint);
  color: var(--red);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag-plain {
  border-color: var(--line);
  background: transparent;
  color: var(--ink-3);
}

.ver-date {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink-3);
}

.dl-btn {
  margin-top: 28px;
  height: 52px;
  padding: 0 26px;
  font-size: 15px;
  width: 100%;
  max-width: 340px;
}

.dl-note {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-3);
  max-width: 34em;
}

.files {
  border-top: 1px solid var(--line);
}

.file {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.file-name {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--ink);
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.file-meta {
  font-size: 12.5px;
  color: var(--ink-3);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.hash {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.9;
  color: var(--ink-3);
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hash b {
  color: var(--ink-2);
  font-weight: 500;
}

/* 11.2 步骤 */
.steps {
  counter-reset: st;
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 40px;
}

.steps li {
  counter-increment: st;
  position: relative;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-2);
}

.steps li::before {
  content: "0" counter(st);
  position: absolute;
  top: 12px;
  left: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
}

.steps b {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 15px;
}

/* 11.3 代码块 */
.code {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 10px;
  background: var(--rail);
  color: #d7deea;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.95;
  letter-spacing: 0;
  overflow-x: auto;
  tab-size: 2;
}

.code .c {
  color: #8a92a3;
}

.code .k {
  color: #ff8a90;
}

/* ---------- 12. 源码页 ---------- */
.repo {
  margin-top: 34px;
  padding: 22px 24px;
  border-radius: 12px;
  border: 1px solid var(--rail-line-2);
  background: rgb(255 255 255 / 0.035);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.repo-url {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--rail-fg1);
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.repo-url .dim {
  color: var(--rail-fg3);
}

.repo-btn {
  flex: none;
}

.copy-state {
  font-family: var(--sans);
  font-size: 13px;
}

.notice {
  position: relative;
  display: flex;
  gap: 16px;
  margin-top: 32px;
  padding: 16px 20px;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid var(--rail-line-2);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--rail-fg2);
  max-width: 880px;
}

.notice::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 2px;
  border-radius: 2px;
  background: var(--heat);
}

.notice b {
  color: var(--rail-fg1);
  flex: none;
  font-weight: 600;
}

.notice .mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0;
}

.vers {
  width: 100%;
  border-collapse: collapse;
  margin-top: 36px;
  font-size: 14px;
}

.vers th {
  padding: 0 0 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
}

.vers td {
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-2);
  vertical-align: baseline;
}

.vers td:first-child {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0;
  color: var(--ink);
  width: 124px;
}

.vers td:nth-child(2) {
  width: 152px;
  font-size: 13px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.vers .cur {
  display: inline-block;
  margin-left: 8px;
  vertical-align: 1px;
  font-family: var(--sans);
  letter-spacing: 0.02em;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 80px;
}

.plain {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink-2);
}

.plain li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
}

.plain li:last-child {
  border-bottom: 0;
}

.plain b {
  color: var(--ink);
  font-weight: 500;
}

.link-red {
  color: var(--ink);
  border-bottom: 1px solid #c6cdd9;
  padding-bottom: 1px;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.link-red:hover {
  color: var(--red);
  border-color: var(--red);
}

/* 12.6 竞品对比：按类型比，不按品牌打靶 */
.compare {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cmp-wrap {
  margin-top: 38px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cmp {
  width: 100%;
  min-width: 840px;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 13.5px;
  line-height: 1.62;
}

.cmp thead th {
  padding: 14px 16px 15px;
  text-align: left;
  vertical-align: bottom;
  border-bottom: 1px solid var(--line);
}

.cmp thead th.cmp-dim {
  padding-left: 0;
}

.cmp-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.cmp-sub {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ink-3);
}

.cmp tbody th {
  width: 136px;
  padding: 15px 16px 15px 0;
  text-align: left;
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-3);
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}

.cmp tbody td {
  padding: 15px 16px;
  vertical-align: top;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-soft);
}

.cmp tbody tr:last-child th,
.cmp tbody tr:last-child td {
  border-bottom: 0;
}

/* 自己那一列：只靠底色，不加边框 */
.cmp .cmp-self {
  background: var(--paper-2);
}

.cmp thead .cmp-self {
  border-radius: 10px 10px 0 0;
}

.cmp tbody tr:last-child .cmp-self {
  border-radius: 0 0 10px 10px;
}

.cmp .yes {
  color: var(--ink);
  font-weight: 500;
}

.cmp .no {
  color: var(--ink-3);
}

.cmp .no::before {
  content: "— ";
  color: #c2c9d4;
}

/* 弱项行：维度名后一个小点，方便扫读 */
.cmp-weak th::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-left: 6px;
  border-radius: 50%;
  background: #cfd6e0;
  vertical-align: 2px;
}

.cmp-note {
  margin-top: 18px;
  max-width: 48em;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--ink-3);
}

.cmp-fine {
  margin-top: 20px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-3);
}

.cmp-note .no-inline {
  color: var(--ink-2);
  font-weight: 500;
}

/* 窄屏：五列必然溢出，换成三个判断题 */
.cmp-cards {
  display: none;
}

.cmpq {
  padding: 24px 0 22px;
  border-top: 1px solid var(--line);
}

.cmpq:first-child {
  border-top: 0;
  padding-top: 6px;
}

.cmpq h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.cmpq dl {
  margin: 12px 0 0;
}

.cmpq dl > div {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  padding: 5px 0;
}

.cmpq dt {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.75;
}

.cmpq dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-2);
}

.cmpq dd.no {
  color: var(--ink-3);
}

.cmpq dd.yes {
  color: var(--ink);
}

.cmpq-verdict {
  margin-top: 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.cmpq-verdict.is-plus {
  position: relative;
  padding-left: 15px;
}

.cmpq-verdict.is-plus::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 2px;
  border-radius: 1px;
  background: var(--red-6);
}

@media (max-width: 820px) {
  .cmp-wrap,
  .cmp-note {
    display: none;
  }

  .cmp-cards {
    display: block;
    margin-top: 34px;
  }
}

/* 首屏：一句指向对比的引子 */
.hero-jump {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--rail-fg2);
  border-bottom: 1px solid rgb(255 255 255 / 0.16);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.hero-jump:hover {
  color: var(--rail-fg1);
  border-color: rgb(255 255 255 / 0.4);
}

.hero-jump span {
  font-family: var(--mono);
  font-size: 11px;
  opacity: 0.8;
}

/* 边界区收束句 */
.limits-close {
  max-width: 44em;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--rail-line);
  font-size: 15px;
  line-height: 1.9;
  color: var(--rail-fg2);
}


/* 12.5 更新日志：一条真正的序列，所以用时间轴 */
.log {
  position: relative;
  margin-top: 12px;
}

.log::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 46px;
  bottom: 40px;
  width: 1px;
  background: linear-gradient(180deg, var(--line) 0%, var(--line) 86%, transparent 100%);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform 1.1s var(--ease) 0.1s;
}

.js .log[data-reveal] {
  opacity: 1;
  transform: none;
}

.js .log.in::before {
  transform: scaleY(1);
}

.entry {
  position: relative;
  padding: 34px 0 34px 42px;
}

.entry + .entry {
  border-top: 1px solid var(--line-soft);
}

.entry::before {
  content: "";
  position: absolute;
  left: 0;
  top: 45px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c9d0db;
  box-shadow: 0 0 0 4px var(--paper);
  transition: background 0.4s var(--ease), transform 0.3s var(--ease);
}

@media (hover: hover) {
  .entry:hover::before {
    transform: scale(1.45);
    background: var(--ink-3);
  }

  .entry.is-current:hover::before {
    background: var(--red-6);
  }
}

.entry.is-current::before {
  background: var(--red-6);
}

.entry-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.entry-ver {
  font-family: var(--mono);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
}

.entry-date {
  font-size: 13px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.entry-note {
  font-size: 12.5px;
  color: var(--ink-3);
}

.entry-title {
  margin-top: 12px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
  max-width: 30em;
}

.entry ul {
  list-style: none;
  margin: 13px 0 0;
  padding: 0;
  max-width: 44em;
}

.entry li {
  position: relative;
  padding-left: 17px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-2);
}

.entry li + li {
  margin-top: 3px;
}

.entry li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 12px;
  width: 7px;
  height: 1px;
  background: #b9c1cf;
}

.entry .mono {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0;
  color: #253044;
  background: var(--sunken);
  padding: 1px 6px;
  border-radius: 4px;
}

/* 版本块逐个进场 */
.js .entry[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--d, 0s);
}

.js .entry[data-reveal].in {
  opacity: 1;
  transform: none;
}

@media (max-width: 820px) {
  .entry {
    padding-left: 30px;
  }

  .entry::before {
    top: 40px;
  }

  .log::before {
    left: 3px;
    top: 40px;
  }
}


/* ---------- 13. 响应式 ---------- */
@media (max-width: 1080px) {
  .wrap,
  .nav-in {
    padding-left: 32px;
    padding-right: 32px;
  }

  .hero-head {
    padding-top: 52px;
  }

  .hero-title {
    font-size: clamp(34px, 6.4vw, 56px);
    max-width: 12em;
  }

  .hero-shot {
    padding-top: 40px;
    padding-bottom: 44px;
  }

  .shot-cap {
    text-align: left;
  }

  .fact-grid,
  .dl-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .fact-list {
    margin-top: 8px;
  }

  .sec {
    padding: 76px 0;
  }

  .limits {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .steps li {
    padding: 22px 0 22px 40px;
    border-top: 1px solid var(--line);
  }

  .steps li::before {
    top: 23px;
    left: 0;
  }

  .two {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 820px) {
  .wrap,
  .nav-in {
    padding-left: 24px;
    padding-right: 24px;
  }

  .nav-links {
    gap: 18px;
  }

  .nav-links a {
    font-size: 13.5px;
  }

  .nav .btn-sm {
    display: none;
  }

  .caps {
    grid-template-columns: 1fr;
    column-gap: 0;
    margin-top: 36px;
  }

  .sec {
    padding: 64px 0;
  }

  .page-head-in {
    padding-top: 52px;
    padding-bottom: 56px;
  }

  .spec th {
    width: 130px;
  }

  .end {
    padding: 72px 0;
  }

  .end-grid {
    align-items: flex-start;
  }

  .foot-top {
    flex-direction: column;
    gap: 28px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15.5px;
  }

  .wrap,
  .nav-in {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brand-sub {
    display: none;
  }

  .nav-links {
    gap: 13px;
  }

  .nav-links a {
    font-size: 12.5px;
  }

  .hero-head {
    padding-top: 40px;
  }

  .hero-shot {
    padding-top: 32px;
    padding-bottom: 36px;
  }

  .hero-title {
    font-size: clamp(30px, 9vw, 40px);
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-facts div {
    display: flex;
    align-items: baseline;
    gap: 10px;
  }

  .hero-facts dd {
    margin: 0;
  }

  .fact p,
  .fact .path {
    padding-left: 0;
    margin-left: 0;
  }

  .fact-k::before {
    display: none;
  }

  .spec th {
    display: block;
    width: auto;
    padding-bottom: 0;
    border-top: 0;
  }

  .spec td {
    display: block;
    padding-top: 2px;
  }

  .spec tr {
    display: block;
    padding: 12px 0;
    border-top: 1px solid var(--line);
  }

  .spec th,
  .spec td {
    border-top: 0;
  }

  .repo {
    padding: 18px;
  }

  .foot-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

/* ==========================================================================
 * 14. 质感层：栅格 / 热光 / 滚动进度 / 入场编排
 * ----------------------------------------------------------------------------
 * 原则：科技感来自「精密仪器」，不是霓虹。
 *   · 只加三样东西：栅格底纹、边缘高光、一道热力进度线
 *   · 动效只用 transform / opacity / filter，全部走合成层
 *   · 初态由 .js 前缀控制：脚本没跑起来时，内容默认完整可见
 *   · 移动端不加载鼠标跟随与透视，hover 效果一律 (hover:hover) 门控
 * ==========================================================================*/

/* 14.1 滚动进度：设备读数条 */
.scrollbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 60;
  background: var(--heat);
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}

.scrollbar.is-on {
  opacity: 1;
}

/* 14.2 栅格底纹：只在深色外壳，径向淡出 */
.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgb(255 255 255 / 0.026) 1px, transparent 1px),
    linear-gradient(0deg, rgb(255 255 255 / 0.026) 1px, transparent 1px);
  background-size: 52px 52px;
  background-position: 50% 0;
  -webkit-mask-image: radial-gradient(64% 58% at 82% -4%, #000 0%, rgb(0 0 0 / 0.4) 44%, transparent 72%);
  mask-image: radial-gradient(64% 58% at 82% -4%, #000 0%, rgb(0 0 0 / 0.4) 44%, transparent 72%);
  opacity: 0;
  animation: grid-in 1.6s var(--ease) 0.05s forwards;
}

@keyframes grid-in {
  to {
    opacity: 1;
  }
}

/* 14.3 光标热晕：仅桌面端 + 仅首屏 */
.cursor-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 620px;
  height: 620px;
  margin: -310px 0 0 -310px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 59 71 / 0.11), rgb(255 59 71 / 0) 72%);
  transform: translate3d(var(--cx, 60vw), var(--cy, 22vh), 0);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s var(--ease);
  will-change: transform;
}

.hero.is-hovering .cursor-glow {
  opacity: 1;
}

/* 14.4 外壳高光：底边一道渐隐细线，像机箱的收边 */
.hero::after,
.page-head::after {
  background: linear-gradient(90deg, rgb(255 255 255 / 0.02), rgb(255 255 255 / 0.16) 42%, rgb(255 255 255 / 0.02));
}

/* 14.5 界面图的实体感：透视跟随 + 高光边 */
.shot-tilt {
  position: relative;
  transform: perspective(1600px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  transition: transform 0.22s ease-out;
  will-change: transform;
}

.shot-tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 11px;
  background:
    radial-gradient(
      360px 360px at var(--gx, 50%) var(--gy, 0%),
      rgb(255 255 255 / 0.16),
      rgb(255 255 255 / 0.04) 42%,
      transparent 66%
    );
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

@media (hover: hover) and (min-width: 1081px) {
  .shot:hover .shot-tilt::after {
    opacity: 1;
  }
}

/* 14.6 按钮扫光：一次，不是常驻 */
.btn-heat {
  position: relative;
  overflow: hidden;
}

.btn-heat::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 54%;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / 0.42), transparent);
  transform: translateX(-180%) skewX(-12deg);
  pointer-events: none;
}

@media (hover: hover) {
  .btn-heat:hover::after {
    animation: btn-sweep 0.75s var(--ease);
  }
}

@keyframes btn-sweep {
  to {
    transform: translateX(330%) skewX(-12deg);
  }
}

/* 14.7 滚动入场：同组前 6 个按 60ms 递进 */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.68s var(--ease), transform 0.68s var(--ease);
  transition-delay: var(--d, 0s);
}

.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

/* 14.8 版本号逐个聚焦 */
.ch {
  display: inline-block;
}

.js .ver-num[data-reveal] {
  opacity: 1;
  transform: none;
}

.js .ver-num .ch {
  opacity: 0;
  transform: translateY(8px);
  filter: blur(7px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), filter 0.5s var(--ease);
  transition-delay: var(--d, 0s);
}

.js .ver-num.in .ch {
  opacity: 1;
  transform: none;
  filter: none;
}

/* 14.9 哈希行扫描一次：像校验读过去 */
.hash {
  position: relative;
  overflow: hidden;
}

.hash::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgb(255 59 71 / 0.18), transparent);
  transform: translateX(-160%);
  pointer-events: none;
}

.js .hash.in::after {
  animation: hash-scan 1.5s var(--ease) 0.25s;
}

@keyframes hash-scan {
  to {
    transform: translateX(330%);
  }
}

/* 14.10 代码块揭幕 */
.js .code[data-reveal] {
  opacity: 0;
  transform: none;
  -webkit-clip-path: inset(0 0 100% 0);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.95s var(--ease), opacity 0.4s var(--ease);
  transition-delay: var(--d, 0s);
}

.js .code[data-reveal].in {
  opacity: 1;
  -webkit-clip-path: inset(0 0 0 0);
  clip-path: inset(0 0 0 0);
}

/* 14.11 版本表逐行读出 */
.js .vers[data-reveal] {
  opacity: 1;
  transform: none;
}

.js .vers tbody tr {
  opacity: 0;
  transform: translateY(9px);
}

.js .vers.in tbody tr {
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.js .vers.in tbody tr:nth-child(1) { transition-delay: 0.04s; }
.js .vers.in tbody tr:nth-child(2) { transition-delay: 0.11s; }
.js .vers.in tbody tr:nth-child(3) { transition-delay: 0.18s; }
.js .vers.in tbody tr:nth-child(4) { transition-delay: 0.25s; }
.js .vers.in tbody tr:nth-child(5) { transition-delay: 0.32s; }

.js .vers.in tbody tr {
  opacity: 1;
  transform: none;
}

/* 14.12 复制成功：描边脉冲 */
.repo-btn.is-copied {
  animation: copy-pulse 0.9s var(--ease);
}

@keyframes copy-pulse {
  0% {
    box-shadow: 0 0 0 0 rgb(255 59 71 / 0.34);
    border-color: var(--red-5);
  }
  100% {
    box-shadow: 0 0 0 10px rgb(255 59 71 / 0);
    border-color: var(--rail-line-2);
  }
}

/* 14.13 导航链接：下划线从 0 展开 */
.nav-links a::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--heat);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover::before {
  transform: scaleX(1);
}

.nav-links a[aria-current="page"]::before {
  display: none;
}

/* 14.14 规格表：行 hover 时左侧亮一条 */
@media (hover: hover) {
  .spec tbody tr {
    transition: background-color 0.22s var(--ease);
  }

  .spec tbody tr:hover {
    background-color: var(--paper-2);
  }
}

/* 14.15 触屏与窄屏：去掉重效果，保留可读 */
@media (max-width: 1080px), (hover: none) {
  .cursor-glow {
    display: none;
  }

  .shot-tilt {
    transform: none;
  }
}

/* ---------- 14.16 打印：一律展开 ---------- */
@media print {
  .scrollbar,
  .cursor-glow,
  .grid-bg,
  .skip {
    display: none !important;
  }

  .js [data-reveal],
  .js .ver-num .ch,
  .js .vers tbody tr,
  .js .code[data-reveal],
  .js .entry[data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    -webkit-clip-path: none !important;
    clip-path: none !important;
  }

  .log::before {
    transform: none !important;
  }

  .nav {
    display: none;
  }

  body {
    background: #fff;
  }
}

/* ---------- 15. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }

  .hero-title .ln > span {
    transform: none;
  }

  .shot {
    opacity: 1;
    transform: none;
  }

  .grid-bg {
    opacity: 1;
    animation: none;
  }

  .cursor-glow,
  .shot-tilt::after {
    display: none;
  }

  .js [data-reveal],
  .js .ver-num .ch,
  .js .vers tbody tr,
  .js .code[data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    -webkit-clip-path: none !important;
    clip-path: none !important;
  }

  .hash::after,
  .scrollbar {
    display: none;
  }

  .shot svg .caret {
    animation: none;
    opacity: 1;
  }

  .log::before {
    transform: none !important;
  }
}

/* ============================================================================
 * 13. 内容补齐（2026-11-18）：场景 / 分层 / 版本记录 / 常见问题 / 相关产品
 * ----------------------------------------------------------------------------
 * 与既有区块共用一套令牌，不新造颜色；红色只出现在交互态（悬停、展开、箭头）。
 * 断点沿用 1080 / 820 / 520；prefers-reduced-motion 下取消过渡。
 * ==========================================================================*/

/* ---------- 13.1 场景小标题 ---------- */
.sec-sub {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

/* ---------- 13.2 分层 ---------- */
.layers {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.layers li {
  display: grid;
  grid-template-columns: 52px 210px 1fr;
  gap: 8px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-2);
}

.layers .ly-n {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  padding-top: 4px;
}

.layers .ly-k {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.6;
}

.layers .ly-tag {
  display: block;
  margin-top: 2px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}

/* ---------- 13.3 版本记录 / 说明条 ---------- */
.log-note {
  position: relative;
  margin: 26px 0 0;
  padding: 14px 18px;
  max-width: 900px;
  border-radius: 8px;
  background: var(--tint);
  border: 1px solid rgb(200 30 42 / 0.16);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-2);
}

.log-note b {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- 13.4 常见问题 ---------- */
.faq-list {
  margin-top: 44px;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin: 0;
  padding: 22px 0;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.faq-q .chev {
  flex: none;
  color: var(--ink-3);
  transition: transform 0.28s var(--ease), color 0.2s;
}

.faq-q:hover .chev,
.faq-q[aria-expanded="true"] .chev {
  color: var(--red);
}

.faq-q[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

.faq-q:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.34s var(--ease);
}

.faq-a > .faq-a-inner {
  overflow: hidden;
}

.faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
}

.faq-a p {
  margin: 0 0 14px;
  max-width: 860px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-2);
}

.faq-a p:last-child {
  margin-bottom: 26px;
}

.faq-a b {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- 13.5 相关产品 ---------- */
.rel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 44px;
}

.rel-card {
  display: flex;
  flex-direction: column;
  padding: 20px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.rel-card .rel-sub {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.rel-card .rel-name {
  margin-top: 6px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}

.rel-card p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
}

.rel-card .rel-go {
  margin-top: auto;
  padding-top: 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--red);
}

@media (hover: hover) {
  .rel-card:hover {
    border-color: rgb(200 30 42 / 0.36);
    box-shadow: 0 12px 28px rgb(15 23 42 / 0.07);
    transform: translateY(-2px);
  }
}

/* ---------- 13.6 断点 ---------- */
@media (max-width: 1080px) {
  .rel {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .layers li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .layers .ly-n {
    padding-top: 0;
  }

  .faq-q {
    font-size: 15.5px;
    gap: 16px;
  }
}

@media (max-width: 520px) {
  .rel {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-a,
  .faq-q .chev,
  .rel-card {
    transition: none;
  }

  .rel-card:hover {
    transform: none;
  }
}

/* ---------- 13.7 补丁：行内路径 / 窄屏版本表 ---------- */
.faq-a .path {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0;
  color: var(--ink);
}

@media (max-width: 520px) {
  .vers {
    font-size: 13px;
  }

  .vers td:first-child {
    width: 92px;
  }

  .vers td:nth-child(2) {
    width: 84px;
    font-size: 12px;
  }
}

/* ---------- 13.8 补丁：两栏清单里的小标题独占一行 ---------- */
.two .plain b {
  display: block;
  margin-bottom: 2px;
  font-weight: 600;
}

/* ---------- 13.9 补丁：场景两栏间距 ---------- */
.two {
  margin-top: 36px;
}

@media (max-width: 820px) {
  .two {
    gap: 30px 0;
  }
}
