/* =============================================================================
   QuickDock 官网 — 设计系统
   底色取自应用图标（深墨蓝），强调色取自图标里的金色 Q，全站只有这一个彩色。
   字体 IBM Plex Sans / Mono：工程文档气质，避开 Inter 这类默认选择。
   所有尺寸走 8px 基准，圆角跟信息层级走（窗口 > 面板 > 按钮）。
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* 墨蓝底色，越高层越亮 */
  --ink-950: #060910;
  --ink-900: #080c15;
  --ink-850: #0b1019;
  --ink-800: #0f1521;
  --ink-750: #131a27;
  --ink-700: #18202f;

  /* 文本 */
  --t1: #eef2f8;
  --t2: #a5aec0;
  --t3: #6d7789;
  --t4: #4c5566;

  /* 品牌金，只用于强调与交互 */
  --gold: #d9b45f;
  --gold-lift: #ecd08a;
  --gold-deep: #9d7f3a;
  --gold-wash: rgba(217, 180, 95, 0.12);
  --on-gold: #14100a;

  /* 线 */
  --line: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.11);
  --line-3: rgba(255, 255, 255, 0.18);

  /* 面 */
  --surf-1: rgba(255, 255, 255, 0.022);
  --surf-2: rgba(255, 255, 255, 0.04);
  --surf-3: rgba(255, 255, 255, 0.065);

  /* 功能色（仅用于状态，不参与装饰） */
  --ok: #4bb07a;
  --warn: #d9a13f;

  /* 字体 */
  --sans: 'IBM Plex Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
    'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* 圆角 */
  --r-xs: 3px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;

  /* 间距 */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 72px;
  --s9: 112px;

  --wrap: 1160px;
  --nav: 64px;

  /* 阴影：暗色下靠亮度分层，阴影只用来把窗口从背景里拔出来 */
  --sh-window: 0 24px 80px -24px rgba(0, 0, 0, 0.85),
    0 2px 8px rgba(0, 0, 0, 0.4);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 浅色：底色用暖白（金调），线与文字全部反向 */
:root[data-theme='light'] {
  --ink-950: #fbfaf7;
  --ink-900: #f6f4ef;
  --ink-850: #f1eee7;
  --ink-800: #ece8df;
  --ink-750: #e5e0d5;
  --ink-700: #dcd6c8;

  --t1: #14161c;
  --t2: #454b58;
  --t3: #6f7583;
  --t4: #9aa0ac;

  --gold: #8a6b22;
  --gold-lift: #6d5316;
  --gold-deep: #b9974a;
  --gold-wash: rgba(138, 107, 34, 0.1);
  --on-gold: #fdfbf6;

  --line: rgba(20, 22, 28, 0.09);
  --line-2: rgba(20, 22, 28, 0.14);
  --line-3: rgba(20, 22, 28, 0.22);

  --surf-1: rgba(20, 22, 28, 0.025);
  --surf-2: rgba(20, 22, 28, 0.045);
  --surf-3: rgba(20, 22, 28, 0.07);

  --ok: #2c7d54;
  --warn: #96660f;

  --sh-window: 0 24px 70px -30px rgba(40, 34, 20, 0.4),
    0 2px 8px rgba(40, 34, 20, 0.08);
}

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

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

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--t2);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--t1);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

code,
kbd,
pre {
  font-family: var(--mono);
  font-size: 0.92em;
}

::selection {
  background: var(--gold-wash);
  color: var(--t1);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* ---------- 3. 版心 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--s5);
}

section {
  position: relative;
  padding-block: var(--s9);
}

/* 章节头：编号 + 标题 + 说明，编号用等宽字体，替代千篇一律的 eyebrow */
.sec-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: var(--s4);
  align-items: start;
  margin-bottom: var(--s7);
}

.sec-num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--gold);
  padding-top: 10px;
  letter-spacing: 0.06em;
  border-top: 1px solid var(--line-2);
}

.sec-head h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  max-width: 26ch;
}

.sec-head .sec-sub {
  margin-top: var(--s3);
  max-width: 62ch;
  font-size: 16px;
  color: var(--t3);
}

.sec-head.no-num {
  grid-template-columns: minmax(0, 1fr);
}

/* ---------- 4. 顶栏 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav);
  background: color-mix(in srgb, var(--ink-900) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.top.scrolled {
  border-bottom-color: var(--line);
}

.top-inner {
  display: flex;
  align-items: center;
  gap: var(--s5);
  height: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--s5);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.brand b {
  font-size: 15px;
  font-weight: 600;
  color: var(--t1);
  letter-spacing: -0.01em;
}

.brand span {
  font-size: 13px;
  color: var(--t3);
  font-family: var(--mono);
}

.top nav {
  display: flex;
  align-items: center;
  gap: var(--s5);
  margin-left: var(--s5);
}

.top nav a {
  font-size: 14px;
  color: var(--t3);
  transition: color 0.15s var(--ease);
}

.top nav a:hover {
  color: var(--t1);
}

.top-right {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-left: auto;
}

/* 语言切换：两个并排的小标签，当前语言是 span，另一种是链接 */
.lang {
  display: flex;
  padding: 2px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
}

.lang > * {
  padding: 3px 8px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
  color: var(--t3);
  border-radius: var(--r-xs);
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}

.lang a:hover {
  color: var(--t1);
}

.lang .on {
  color: var(--t1);
  background: var(--surf-2);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 28px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--t3);
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.icon-btn:hover {
  color: var(--t1);
  border-color: var(--line-3);
}

.icon-btn svg {
  width: 15px;
  height: 15px;
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding-inline: 20px;
  border-radius: var(--r-md);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform 0.15s var(--ease), background 0.18s var(--ease),
    border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-solid {
  background: var(--gold);
  color: var(--on-gold);
}

.btn-solid:hover {
  background: var(--gold-lift);
  transform: translateY(-1px);
}

.btn-solid:active {
  transform: translateY(0);
}

.btn-line {
  border: 1px solid var(--line-2);
  color: var(--t1);
}

.btn-line:hover {
  border-color: var(--line-3);
  background: var(--surf-1);
}

.btn-sm {
  height: 32px;
  padding-inline: 14px;
  font-size: 13px;
  border-radius: var(--r-sm);
}

.btn-lg {
  height: 50px;
  padding-inline: 26px;
  font-size: 15.5px;
}

/* ---------- 6. Hero ---------- */
.hero {
  padding-top: calc(var(--s9) - 24px);
  padding-bottom: 0;
  overflow: hidden;
}

/* 顶部一层极淡的网格，只在 hero 出现一次，给"画布"的感觉 */
.hero::before {
  content: '';
  position: absolute;
  inset: -64px 0 auto;
  height: 560px;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, #000 20%, transparent 72%);
  opacity: 0.55;
  pointer-events: none;
}

/* 金色光源：唯一一处光晕，压在标题背后 */
.hero::after {
  content: '';
  position: absolute;
  top: -220px;
  left: 12%;
  width: 760px;
  height: 560px;
  background: radial-gradient(
    ellipse at center,
    rgba(217, 180, 95, 0.11),
    transparent 68%
  );
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--t3);
  letter-spacing: 0.02em;
}

.kicker i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-wash);
}

.hero h1 {
  margin-top: var(--s5);
  font-size: clamp(38px, 6.2vw, 76px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
  max-width: 17ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.lede {
  margin-top: var(--s5);
  max-width: 56ch;
  font-size: clamp(15px, 1.6vw, 17.5px);
  line-height: 1.7;
  color: var(--t2);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s6);
}

/* 指标行：等宽数字 + 细线分隔，比四个带图标的卡片克制 */
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s5);
  margin-top: var(--s7);
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
}

.facts li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  color: var(--t3);
}

.facts b {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--t1);
  letter-spacing: -0.01em;
}

/* ---------- 7. 窗口截图 ---------- */
.shot {
  margin: var(--s7) 0 0;
  position: relative;
}

.shot-inner {
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--ink-850);
  box-shadow: var(--sh-window);
  overflow: hidden;
}

.shot img {
  width: 100%;
  display: block;
}

/* 截图底边压一层渐隐，让画面沉进页面而不是被裁断 */
.shot::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 90px;
  background: linear-gradient(to bottom, transparent, var(--ink-900));
  pointer-events: none;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}

/* ---------- 8. 场景排版：说明在上、截图满宽在下 ---------- */
.rows {
  display: grid;
  gap: var(--s8);
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s5);
}

/* 文字区两栏：左边标题与段落，右边要点。段落不铺满整行，读起来更顺 */
.row-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--s7);
  align-items: start;
}

.row-copy h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.025em;
}

.row-tag {
  display: inline-block;
  margin-bottom: var(--s3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.row-copy p {
  margin-top: var(--s3);
  max-width: 46ch;
  font-size: 15px;
  color: var(--t2);
}

.row-copy ul {
  display: grid;
  gap: 10px;
  padding-top: 26px;
}

.row-copy li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--t3);
  line-height: 1.6;
}

.row-copy li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 1px;
  background: var(--gold-deep);
}

.row-shot {
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-850);
  box-shadow: 0 22px 60px -32px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: border-color 0.3s var(--ease), transform 0.4s var(--ease);
}

.row-shot:hover {
  border-color: var(--line-3);
  transform: translateY(-3px);
}

.row-shot img {
  width: 100%;
}

/* ---------- 9. 工具清单 ---------- */
/* 这一区给一条略亮的横带，让长页面有呼吸，全站只有这一处用 */
#tools {
  background: var(--ink-850);
  border-block: 1px solid var(--line);
}

.tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--s7);
  border-top: 1px solid var(--line);
}

.tool {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: var(--s4);
  padding-block: var(--s4);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.2s var(--ease);
}

.tool::before {
  content: '';
  position: absolute;
  left: calc(var(--s3) * -1);
  top: var(--s4);
  bottom: var(--s4);
  width: 1px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.25s var(--ease);
}

.tool:hover::before {
  transform: scaleY(1);
}

.tool dt {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--t1);
}

.tool dt kbd {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 2px 5px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xs);
  color: var(--t3);
  white-space: nowrap;
}

.tool dd {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--t3);
}

/* ---------- 10. 运行时表 ---------- */
.rt {
  border-top: 1px solid var(--line-2);
}

.rt-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: var(--s4);
  align-items: baseline;
  padding-block: var(--s3);
  border-bottom: 1px solid var(--line);
}

.rt-row > span {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--t3);
  text-transform: uppercase;
}

.rt-row > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rt-row b {
  font-weight: 450;
  font-size: 14px;
  color: var(--t2);
  padding: 3px 9px;
  background: var(--surf-1);
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.rt-row b:hover {
  color: var(--t1);
  border-color: var(--line-3);
}

.rt-row b.accent {
  color: var(--gold);
  border-color: rgba(217, 180, 95, 0.28);
  background: var(--gold-wash);
}

.rt-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s5);
  margin-top: var(--s6);
}

.rt-note h4 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.rt-note p {
  font-size: 13.5px;
  color: var(--t3);
  line-height: 1.6;
}

/* ---------- 11. 双栏 ---------- */
.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s6);
}

.card {
  padding: var(--s6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surf-1);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.card:hover {
  border-color: var(--line-2);
  background: var(--surf-2);
}

.card h3 {
  font-size: 19px;
  letter-spacing: -0.015em;
}

.card .card-sub {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--t3);
}

.card ul {
  margin-top: var(--s4);
  display: grid;
  /* 显式 minmax(0,1fr)：否则 grid item 的 min-width:auto 会把含 nowrap 代码的整行顶出卡片 */
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
}

/* 用绝对定位的圆点而不是 flex：flex 会把行内 code 变成独立项，命令会在空格处被压断 */
.card li {
  position: relative;
  padding-left: 14px;
  font-size: 13.5px;
  color: var(--t2);
  line-height: 1.55;
}

.card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-deep);
}

.card code {
  padding: 1px 5px;
  background: var(--surf-3);
  border-radius: var(--r-xs);
  color: var(--t1);
  white-space: nowrap;
}

/* ---------- 12. 更新日志 ---------- */
.logs {
  border-top: 1px solid var(--line-2);
}

.log {
  border-bottom: 1px solid var(--line);
}

.log summary {
  display: grid;
  grid-template-columns: 92px 108px minmax(0, 1fr) 16px;
  gap: var(--s4);
  align-items: center;
  padding-block: var(--s4);
  cursor: pointer;
  list-style: none;
}

.log summary::-webkit-details-marker {
  display: none;
}

.log summary:hover .log-title {
  color: var(--t1);
}

.log-ver {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--gold);
  font-weight: 500;
}

.log-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--t4);
}

.log-title {
  font-size: 14.5px;
  color: var(--t2);
  transition: color 0.15s var(--ease);
}

.log-chev {
  width: 14px;
  height: 14px;
  color: var(--t4);
  transition: transform 0.25s var(--ease);
}

.log[open] .log-chev {
  transform: rotate(90deg);
}

.log-body {
  padding: 0 0 var(--s5) 0;
  display: grid;
  gap: 10px;
  max-width: 78ch;
}

.log-body li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  color: var(--t3);
  line-height: 1.65;
}

.log-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 1px;
  background: var(--line-3);
}

.log-more {
  margin-top: var(--s5);
  font-size: 13.5px;
}

.log-more a {
  color: var(--gold);
  border-bottom: 1px solid rgba(217, 180, 95, 0.3);
}

/* ---------- 13. 下载 ---------- */
.dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--s7);
  align-items: start;
  padding: var(--s7);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, var(--surf-2), transparent 62%);
}

.dl h2 {
  font-size: clamp(26px, 3vw, 34px);
}

.dl .dl-sub {
  margin-top: var(--s3);
  max-width: 46ch;
  color: var(--t3);
  font-size: 15px;
}

.dl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s5);
}

.dl-meta {
  margin-top: var(--s5);
  display: grid;
  gap: 6px;
  font-size: 12.5px;
  color: var(--t4);
  font-family: var(--mono);
}

.dl-side {
  padding: var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--ink-850);
}

.dl-side h4 {
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: var(--s3);
}

.dl-side dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

.dl-side div {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.dl-side dt {
  color: var(--t3);
}

.dl-side dd {
  margin: 0;
  color: var(--t1);
  font-family: var(--mono);
  font-size: 12.5px;
}

/* ---------- 14. FAQ ---------- */
.faq {
  border-top: 1px solid var(--line-2);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  align-items: center;
  padding-block: var(--s4);
  font-size: 15px;
  color: var(--t1);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-family: var(--mono);
  color: var(--t4);
  font-size: 16px;
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}

.faq details[open] summary::after {
  content: '+';
  transform: rotate(45deg);
  color: var(--gold);
}

.faq p {
  padding: 0 var(--s6) var(--s4) 0;
  font-size: 13.5px;
  color: var(--t3);
  line-height: 1.7;
  max-width: 78ch;
}

/* ---------- 15. 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: var(--s7);
  background: var(--ink-950);
}

.foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s6);
  align-items: start;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.foot-brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.foot-brand b {
  font-size: 14px;
  color: var(--t1);
  font-weight: 500;
}

.foot-note {
  margin-top: var(--s2);
  font-size: 12.5px;
  color: var(--t4);
  max-width: 44ch;
  line-height: 1.6;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s5);
  font-size: 13px;
}

.foot-links a {
  color: var(--t3);
  transition: color 0.15s var(--ease);
}

.foot-links a:hover {
  color: var(--gold);
}

/* ---------- 16. 入场动画 ---------- */
.rise {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.rise.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .rise {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1024px) {
  .shot {
    margin-right: -24px;
  }
  .row-copy {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s4);
  }
  .row-copy ul {
    padding-top: 0;
  }
  .rt-notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dl {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  :root {
    --s9: 76px;
  }
  .top nav {
    display: none;
  }
  .sec-head {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s2);
  }
  .sec-num {
    border-top: 0;
    padding-top: 0;
  }
  .tools {
    grid-template-columns: minmax(0, 1fr);
  }
  .duo {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero h1 {
    max-width: none;
  }
  .shot {
    margin-right: 0;
  }
  .log summary {
    grid-template-columns: 78px minmax(0, 1fr) 14px;
  }
  .log-date {
    display: none;
  }
  .foot {
    grid-template-columns: minmax(0, 1fr);
  }
  .rt-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}

@media (max-width: 560px) {
  .facts {
    gap: var(--s3) var(--s4);
  }
  .tool {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .rt-notes {
    grid-template-columns: minmax(0, 1fr);
  }
  .dl {
    padding: var(--s5);
  }
  .card {
    padding: var(--s5);
  }
  .brand span {
    display: none;
  }
}

/* ---------- 18. 说明页（guide.html） ---------- */
.doc {
  padding-top: var(--s8);
}

.doc-head {
  max-width: 1000px;
  margin-inline: auto;
  padding-bottom: var(--s6);
  border-bottom: 1px solid var(--line-2);
}

.doc-head h1 {
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.03em;
}

.doc-head p {
  margin-top: var(--s3);
  max-width: 60ch;
  color: var(--t3);
  font-size: 15px;
}

.doc-body {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: var(--s7);
  max-width: 1000px;
  margin-inline: auto;
  padding-top: var(--s6);
}

.doc-nav {
  position: sticky;
  top: calc(var(--nav) + 24px);
  align-self: start;
  display: grid;
  gap: 2px;
  max-height: calc(100vh - var(--nav) - 48px);
  overflow: auto;
}

.doc-nav a {
  padding: 8px 10px;
  font-size: 13px;
  color: var(--t3);
  border-left: 1px solid var(--line);
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease),
    background 0.15s var(--ease);
}

.doc-nav a:hover {
  color: var(--t1);
  background: var(--surf-1);
}

.doc-nav a.on {
  color: var(--gold);
  border-left-color: var(--gold);
}

/* 这里的 padding 要显式写成两值，否则会继承全局 section 的 112px 上下留白 */
.doc-sec {
  padding: 0 0 var(--s7);
  scroll-margin-top: calc(var(--nav) + 24px);
}

.doc-sec h2 {
  font-size: 21px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.doc-sec h2 span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold);
  font-weight: 400;
}

.doc-sec > p {
  margin-top: var(--s3);
  color: var(--t2);
  font-size: 14.5px;
  max-width: 44em;
}

.doc-sec ul {
  margin-top: var(--s4);
  display: grid;
  gap: 10px;
  max-width: 46em;
}

.doc-sec li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--t3);
  line-height: 1.7;
}

.doc-sec li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 1px;
  background: var(--gold-deep);
}

.doc-sec li b,
.doc-sec p b {
  color: var(--t1);
  font-weight: 500;
}

.doc-sec kbd {
  padding: 1px 6px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: var(--r-xs);
  font-size: 11.5px;
  color: var(--t1);
  background: var(--surf-1);
  white-space: nowrap;
}

.doc-sec code {
  padding: 1px 5px;
  background: var(--surf-3);
  border-radius: var(--r-xs);
  color: var(--t1);
}

@media (max-width: 860px) {
  .doc-body {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s5);
  }
  .doc-nav {
    position: static;
    max-height: none;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    padding-bottom: var(--s2);
    border-bottom: 1px solid var(--line);
  }
  .doc-nav a {
    border-left: 0;
    border-bottom: 1px solid transparent;
    white-space: nowrap;
  }
  .doc-nav a.on {
    border-bottom-color: var(--gold);
  }
}

/* ---------- 19. 英文版（en/）----------
   中文的 1ch 约等于半个汉字宽，所以说明页正文用 em 控行宽；英文反过来，
   用 ch 才准确。两页共用同一份样式，这里只覆盖行宽与几处断行。 */
:lang(en) .hero h1 {
  max-width: 22ch;
  letter-spacing: -0.032em;
}

:lang(en) .lede {
  max-width: 64ch;
}

:lang(en) .doc-head p {
  max-width: 74ch;
}

:lang(en) .doc-sec > p {
  max-width: 70ch;
}

:lang(en) .doc-sec ul {
  max-width: 76ch;
}

/* 英文标题按词断，行数比中文多一行，收紧一点行高免得块太高 */
:lang(en) .sec-head h2 {
  line-height: 1.14;
}

/* 工具名比中文长，148px 会把 "Command palette" 折成两行 */
:lang(en) .tool {
  grid-template-columns: 176px minmax(0, 1fr);
}
