/* 隐页官网样式。规范见 DESIGN.md：暖白纸感底色、衬线标题、细线、大留白、动效少而轻。 */

@font-face {
  font-family: "YinyeDisplay";
  src: url("../../fonts/dist/YinyeDisplay.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f6f1;
  --card: #ffffff;
  --surface: #efeee8;
  --text: #1f3330;
  --text-2: #3f524a;
  --text-3: #5f6f67;
  --line: #e3e4dc;
  --line-strong: #c9cdc3;
  --brand: #177965;
  --brand-hover: #126a57;
  --link: #0f5f4f;
  --brand-soft: #e6f1ec;
  --btn-bg: #1f3330;
  --btn-bg-hover: #2c4440;
  --btn-text: #ffffff;
  --note-text: #7d5716;
  --note-bg: #fff6e5;
  --note-line: #ecd6aa;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04);

  --font-display: "YinyeDisplay", "Songti SC", "STSong", "SimSun", serif;
  --font-body: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;

  --max: 1120px;
  --prose: 680px;
  --gutter: 20px;
  --section: 72px;
  --radius: 20px;

  color-scheme: light dark;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section: 112px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141a18;
    --card: #1b2320;
    --surface: #212b27;
    --text: #eef2ee;
    --text-2: #cbd5cf;
    --text-3: #a3b0a9;
    --line: #2a3531;
    --line-strong: #3b4843;
    --brand: #4fb59a;
    --brand-hover: #67c4ab;
    --link: #6cc7ae;
    --brand-soft: #1d332c;
    --btn-bg: #eef2ee;
    --btn-bg-hover: #d9e1dc;
    --btn-text: #141a18;
    --note-text: #f1cd8c;
    --note-bg: #33291a;
    --note-line: #5c4a2a;
    --shadow: none;
  }
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
@media (min-width: 768px) { body { font-size: 17px; } }

img, svg { display: block; max-width: 100%; }

a { color: var(--link); text-decoration: none; text-underline-offset: .2em; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 文字 ---------- */

h1, h2, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  margin: 0;
  color: var(--text);
}
h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; line-height: 1.4; font-weight: 600; margin: 0; }
@media (min-width: 768px) {
  h1 { font-size: 56px; }
  h2 { font-size: 36px; }
  h3 { font-size: 22px; }
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.small, small { font-size: 14px; }
.muted { color: var(--text-3); }
.lead { font-size: 18px; color: var(--text-2); }
@media (min-width: 768px) { .lead { font-size: 20px; } }

code, .mono {
  font-family: var(--font-mono);
  font-size: .9em;
}
code {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .1em .4em;
  overflow-wrap: anywhere;
}
pre {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 1em;
  overflow-x: auto;
  white-space: pre;
}
pre code { background: none; border: 0; padding: 0; font-size: inherit; }

/* ---------- 布局 ---------- */

.wrap {
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.prose-wrap {
  max-width: calc(var(--prose) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: var(--section) 0; }
.section + .section { padding-top: 0; }
.section-head { max-width: var(--prose); margin: 0 0 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 12px; color: var(--text-2); }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px;
  border-radius: 999px;
  font: inherit; font-size: 16px; font-weight: 500; line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-primary:hover { background: var(--btn-bg-hover); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--text-3); }
/* 文字按钮必须显式透明，否则浏览器套上系统按钮的灰底（深色模式下尤其看不清） */
.btn-text { background: transparent; color: var(--brand); padding: 0 4px; height: auto; }
.btn-text:hover { color: var(--brand-hover); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.center { justify-content: center; }

/* ---------- 导航 ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; height: 64px; gap: 24px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 28px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.nav-links a:not(.btn) {
  display: block; padding: 8px 12px; border-radius: 999px;
  color: var(--text-2); font-size: 15px;
}
.nav-links a:not(.btn):hover { color: var(--text); background: var(--surface); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav-links .btn { height: 38px; padding: 0 18px; font-size: 15px; margin-left: 8px; }
.menu-btn {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--text);
  align-items: center; justify-content: center; cursor: pointer;
}
.menu-btn svg { width: 20px; height: 20px; }
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 767px) {
  .menu-btn { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-links .btn { margin: 16px 0 0; height: 44px; }
  /* 无脚本时直接展开菜单 */
  html:not(.js) .nav { flex-wrap: wrap; height: auto; padding: 12px 0; }
  html:not(.js) .nav-links { display: flex; position: static; flex-direction: row; flex-wrap: wrap; padding: 0; border: 0; }
  html:not(.js) .nav-links a:not(.btn) { border: 0; padding: 6px 8px; }
  html:not(.js) .menu-btn { display: none; }
}

/* ---------- 首屏 ---------- */

.hero { padding: 64px 0 var(--section); text-align: center; }
@media (min-width: 768px) { .hero { padding-top: 112px; } }
.hero h1 { margin: 0 auto; }
.hero .lead { max-width: 560px; margin: 20px auto 32px; }
.hero-qualifier { max-width: 560px; margin: -20px auto 32px; font-size: 15px; color: var(--text-3); text-wrap: balance; }
.hero .btn-row { justify-content: center; }
.hero .hero-note { margin-top: 16px; }

/* 软件窗口示意图（HTML/CSS 画的简化界面，数据全部虚构） */
.mock {
  margin: 56px auto 0; max-width: 920px; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.mock-bar {
  display: flex; align-items: center; gap: 12px;
  height: 40px; padding: 0 16px; border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--text-3);
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.mock-tabs { display: flex; gap: 4px; margin-left: 8px; }
.mock-tabs span { padding: 3px 10px; border-radius: 999px; }
.mock-tabs .on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.mock-body { display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) { .mock-body { grid-template-columns: 1fr 1fr; } }
.mock-pane { padding: 20px; font-size: 14px; line-height: 2; min-width: 0; }
.mock-pane + .mock-pane { border-top: 1px solid var(--line); background: var(--surface); }
@media (min-width: 768px) { .mock-pane + .mock-pane { border-top: 0; border-left: 1px solid var(--line); } }
.mock-label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-3); margin-bottom: 8px; letter-spacing: .02em;
}
.mock mark {
  background: var(--note-bg); color: var(--note-text);
  border-bottom: 1px dashed currentColor; padding: 0 2px; border-radius: 3px;
}
.mock .code {
  background: var(--brand-soft); color: var(--brand); font-weight: 600;
  padding: 0 4px; border-radius: 4px;
}
.mock-foot {
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3);
}
.mock-foot .chip { background: var(--note-bg); color: var(--note-text); }

/* ---------- 卡片与网格 ---------- */

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-2); }
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* .icon 用在 <span> 上：必须设成块级，否则宽高不生效，里面的 SVG 会按卡片宽度撑满 */
.icon { display: block; width: 32px; height: 32px; color: var(--brand); margin-bottom: 20px; }
.icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.step-num {
  display: inline-block; font-family: var(--font-mono); font-size: 13px; color: var(--text-3); margin-bottom: 4px;
}
.step-where { font-size: 14px; color: var(--text-3); margin-top: 12px; }

/* 第二步发生在隐页之外：虚线框，和软件里的画法一致 */
.card.outside { background: transparent; border: 1.5px dashed var(--line-strong); box-shadow: none; }

/* ---------- 标签 ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px; font-size: 15px;
  background: var(--card); border: 1px solid var(--line); color: var(--text);
}
.chips .chip.brand { background: var(--brand-soft); border-color: transparent; color: var(--brand); }

.note {
  background: var(--note-bg); color: var(--note-text);
  border-radius: 12px; padding: 12px 16px; font-size: 15px;
}
.note strong { font-weight: 600; }
.callout {
  border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 16px 20px; font-size: 15px; color: var(--text-2);
}

/* 格式列表 */
.formats { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.formats li {
  display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.formats li span:last-child { color: var(--text-3); font-size: 15px; }

/* ---------- 价格 ---------- */

.segmented {
  display: inline-flex; padding: 4px; gap: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.segmented button {
  font: inherit; font-size: 15px; height: 36px; padding: 0 16px; border-radius: 999px;
  border: 0; background: transparent; color: var(--text-2); cursor: pointer; white-space: nowrap;
}
.segmented button[aria-pressed="true"] { background: var(--card); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
/* 切换和隐藏只在 site.js 真正运行后生效（site-js 由 site.js 自己加上）；脚本没加载时三张卡都显示 */
html:not(.site-js) .segmented { display: none; }

.plans { margin-top: 32px; }
.plan { display: flex; flex-direction: column; transition: border-color .2s; }
.plan.is-active { border-color: var(--brand); }
.plan-name { font-size: 15px; color: var(--text-3); margin-bottom: 8px; }
.price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.price .num {
  font-family: var(--font-display); font-weight: 600; font-size: 48px; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.price .cur { font-family: var(--font-display); font-weight: 600; font-size: 24px; }
.price .per { color: var(--text-3); font-size: 15px; }
.plan { position: relative; }
.plan .badge {
  position: absolute; top: 28px; right: 28px; margin: 0;
  font-size: 13px; color: var(--brand); background: var(--brand-soft);
  padding: 2px 10px; border-radius: 999px;
}
/* 选中的卡片按钮用主按钮样式（没有脚本时年付卡本来就带 is-active） */
.plan.is-active .btn { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }
.plan ul, .steps p { text-wrap: pretty; }
@media (min-width: 768px) and (max-width: 1023px) { .plan.card { padding: 24px 20px; } .plan .badge { top: 24px; right: 20px; } }
.plans-note { margin: 16px 0 0; }
.plan ul { padding-left: 1.2em; margin: 16px 0 24px; color: var(--text-2); font-size: 15px; }
.plan .btn { margin-top: auto; }
@media (max-width: 767px) {
  html.site-js .plan:not(.is-active) { display: none; }
}

/* 步骤条 */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: s; }
.steps > li {
  position: relative; padding: 0 0 28px 52px; counter-increment: s;
}
.steps > li::before {
  content: counter(s);
  position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 14px;
  background: var(--card); border: 1px solid var(--line-strong); color: var(--text);
}
.steps > li::after {
  content: ""; position: absolute; left: 16px; top: 36px; bottom: 4px; width: 1px; background: var(--line);
}
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps h3 { font-size: 18px; margin: 3px 0 4px; }
.steps p { color: var(--text-2); margin: 0; }
@media (min-width: 1024px) {
  .steps.horizontal { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .steps.horizontal > li { padding: 48px 0 0; }
  .steps.horizontal > li::after { left: 40px; right: -8px; top: 16px; bottom: auto; width: auto; height: 1px; }
}

/* 联系卡（微信二维码等，均为占位） */
.contact { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.contact dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 15px; }
.contact dt { color: var(--text-3); }
.contact dd { margin: 0; }

/* ---------- 下载 ---------- */

.dl-card { display: grid; gap: 24px; }
@media (min-width: 768px) { .dl-card { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.meta { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: 15px; }
.meta dt { color: var(--text-3); white-space: nowrap; }
.meta dd { margin: 0; min-width: 0; }
.hash { font-family: var(--font-mono); font-size: 13px; overflow-wrap: anywhere; word-break: break-all; }

/* ---------- 问答 ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq .answer { padding: 0 0 20px; color: var(--text-2); max-width: var(--prose); }

/* ---------- 正文页（教程、政策） ---------- */

.page-head { padding: 64px 0 40px; }
@media (min-width: 768px) { .page-head { padding: 96px 0 48px; } }
.page-head .lead { margin-top: 16px; }
.crumbs { font-size: 14px; color: var(--text-3); margin-bottom: 16px; }
.crumbs a { color: var(--text-3); }

.prose { padding-bottom: var(--section); }
.prose h2 { font-size: 26px; margin: 56px 0 16px; }
@media (min-width: 768px) { .prose h2 { font-size: 30px; } }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 32px 0 10px; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin: .3em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text-3); font-weight: 500; }
.table-scroll { overflow-x: auto; }
.prose .note, .prose .callout { margin: 0 0 1.2em; }
.draft-banner {
  background: var(--note-bg); color: var(--note-text); text-align: center;
  padding: 10px var(--gutter); font-size: 15px; font-weight: 600;
}
.ui { /* 软件里的按钮或页面名称 */
  font-weight: 600; color: var(--text); white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 0 .35em;
}
.tbd { color: var(--note-text); background: var(--note-bg); border-radius: 4px; padding: 0 .15em; }

/* 截图、视频占位：由本机截图、录屏后替换 */
figure.shot, figure.video {
  margin: 20px 0 28px;
  border: 1.5px dashed var(--line-strong); border-radius: 14px;
  background: var(--surface);
  aspect-ratio: 16 / 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 20px; text-align: center; color: var(--text-3); font-size: 14px;
}
figure.video { aspect-ratio: 16 / 9; }
figure.shot::before, figure.video::before {
  font-size: 12px; letter-spacing: .08em; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line-strong);
}
figure.shot::before { content: "截图占位"; }
figure.video::before { content: "视频占位"; }
figure.shot figcaption, figure.video figcaption { max-width: 420px; }

/* 教程目录 */
.toc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 768px) { .toc-list { grid-template-columns: repeat(2, 1fr); } }
.toc-list a { display: block; height: 100%; color: inherit; text-decoration: none !important; }
.toc-list a:hover .card { border-color: var(--line-strong); }
.toc-list .card { height: 100%; transition: border-color .2s; }
.toc-list .meta-line { font-size: 14px; color: var(--text-3); margin-top: 12px; }

.pager {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 24px; margin-top: 56px; font-size: 15px;
}
.pager a { display: flex; flex-direction: column; }
.pager a.next { text-align: right; margin-left: auto; }
.pager small { color: var(--text-3); }

/* ---------- 行动区与页脚 ---------- */

.cta {
  text-align: center; padding: 64px 24px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.cta p { color: var(--text-2); margin: 16px auto 28px; max-width: 520px; }

.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 14px; color: var(--text-3); }
.footer-top { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) { .footer-top { grid-template-columns: 1.3fr 1fr 1.4fr 1fr; } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 768px) { .footer-brand { grid-column: auto; } }
.footer-brand img { height: 24px; width: auto; margin-bottom: 12px; }
.footer-brand p { text-wrap: balance; }
.footer-top h4 { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--text); }
.footer-top ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-top a { color: var(--text-3); }
.footer-top a:hover { color: var(--text); }
.footer-legal {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center;
}
.footer-legal a { color: var(--text-3); display: inline-flex; align-items: center; gap: 6px; }
.footer-legal [hidden] { display: none; }
.footer-legal img { width: 16px; height: 16px; }

/* ---------- 动效：只用淡入加上移 8px，200ms ---------- */

/* 隐藏态只在 site.js 运行后才加（site-js 由 site.js 自己加上），脚本加载失败时内容照常可见 */
html.site-js .reveal { opacity: 0; transform: translateY(8px); transition: opacity .2s ease-out, transform .2s ease-out; }
html.site-js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.site-js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* 「复制校验值」等按钮依赖 site.js，脚本没运行时不显示 */
html:not(.site-js) [data-copy] { display: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* 截图审稿修正（TASKS/参考/2026-10-13-官网截图审稿.md） */
.nowrap { white-space: nowrap; }
h2, .prose h2 { text-wrap: balance; }
.prose p, .prose li { text-wrap: pretty; }
.prose .nowrap-first td:first-child { white-space: nowrap; }
@media (prefers-color-scheme: dark) { .segmented button[aria-pressed="true"] { background: var(--line-strong); } }
