/* 由 scripts/generate-web-tokens.mjs 从 src/kit/kit.css 生成（设计规范第 10 节），不手改。 */
:root {
  color-scheme: light dark;
  --font-default: ui-sans-serif, -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Apple SD Gothic Neo", "Malgun Gothic", Roboto, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --font-monospace-default: ui-monospace, SFMono-Regular, "Cascadia Mono", "Roboto Mono", Menlo, Monaco, Consolas, monospace;
  --font-text-size: 16px;
  --font-ui-tiny: 11px;
  --font-ui-smaller: 12px;
  --font-ui-small: 13px;
  --font-ui-medium: 15px;
  --font-ui-large: 20px;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --line-height-tight: 1.3;
  --line-height-list: 1.4;
  --line-height-normal: 1.5;
  --size-2-1: 2px;
  --size-2-2: 4px;
  --size-2-3: 6px;
  --size-4-2: 8px;
  --size-4-3: 12px;
  --size-4-4: 16px;
  --size-4-5: 20px;
  --size-4-6: 24px;
  --size-4-8: 32px;
  --size-4-10: 40px;
  --size-4-12: 48px;
  --radius-s: 4px;
  --radius-m: 8px;
  --radius-l: 12px;
  --input-radius: 5px;
  --border-width: 1px;
  --icon-xs: 14px;
  --icon-s: 16px;
  --dialog-width: 520px;
  --dialog-width-s: 400px;
  --dialog-padding: 20px;
  --underline-offset: 3px;
  --kit-motion-fast: 150ms;
  --kit-motion-base: 200ms;
  --kit-ease-out: cubic-bezier(0.2, 0, 0, 1);
  --kit-ease-in: cubic-bezier(0.4, 0, 1, 1);
  --kit-disabled-opacity: 0.5;
  --background-primary: #ffffff;
  --background-secondary: #f6f6f6;
  --background-modifier-border: #e4e4e4;
  --background-modifier-border-hover: #dadada;
  --background-modifier-message: color-mix(in oklch, black 88%, transparent);
  --background-modifier-cover: rgba(220, 220, 220, 0.4);
  --background-modifier-form-field: #ffffff;
  --text-normal: #222222;
  --text-muted: #4d4d4d;
  --text-faint: #626262;
  --text-on-accent: white;
  --text-error: #ce162c;
  --text-warning: #a55200;
  --text-success: #068136;
  --text-accent: #2b54b8;
  --text-accent-hover: color-mix(in srgb, #2b54b8 82%, black);
  --text-selection: color-mix(in srgb, #2b54b8 20%, transparent);
  --interactive-accent: #2b54b8;
  --interactive-accent-hover: color-mix(in srgb, #2b54b8 86%, black);
  --interactive-accent-solid: #2b54b8;
  --interactive-accent-solid-hover: color-mix(in srgb, #2b54b8 86%, black);
  --interactive-error-solid: #e61931;
  --interactive-error-solid-hover: color-mix(in srgb, #e61931 86%, black);
  --shadow-s: 0px 1px 2px rgba(0, 0, 0, 0.028), 0px 3.4px 6.7px rgba(0, 0, 0, 0.042), 0px 15px 30px rgba(0, 0, 0, 0.07);
  --shadow-l: 0px 1.8px 7.3px rgba(0, 0, 0, 0.071), 0px 6.3px 24.7px rgba(0, 0, 0, 0.112), 0px 15px 30px rgba(0, 0, 0, 0.1);
  --modal-border-color: #dadada;
  --dropdown-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234d4d4d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3C/svg%3E");
  --kit-accent-hover: color-mix(in srgb, var(--interactive-accent) 6%, transparent);
  --kit-accent-wash: color-mix(in srgb, var(--interactive-accent) 12%, transparent);
  --kit-accent-selected: color-mix(in srgb, var(--interactive-accent) 15%, transparent);
  --kit-border-soft: color-mix(in srgb, var(--background-modifier-border) 55%, transparent);
  --kit-error-bg: color-mix(in srgb, var(--text-error) 8%, transparent);
  --kit-error-border: color-mix(in srgb, var(--text-error) 28%, transparent);
  --kit-error-spine: color-mix(in srgb, var(--text-error) 55%, transparent);
  --kit-warning-bg: color-mix(in srgb, var(--text-warning) 8%, transparent);
  --kit-warning-border: color-mix(in srgb, var(--text-warning) 28%, transparent);
  --kit-warning-spine: color-mix(in srgb, var(--text-warning) 55%, transparent);
  --kit-focus-ring-width: 2px;
  --kit-focus-ring-offset: 2px;
  --kit-focus-ring: var(--kit-focus-ring-width) solid var(--interactive-accent);
  --kit-transition: var(--kit-motion-fast) var(--kit-ease-out);
  --web-font-title: 24px;
  --web-control-height: 36px;
  --web-control-height-compact: 28px;
  --web-header-height: 56px;
  --web-nav-width: 208px;
  --web-content-max: 1120px;
  --web-reading-max: 70ch;
  --web-gutter: 32px;
  --web-success-bg: color-mix(in srgb, var(--text-success) 8%, transparent);
  --web-success-border: color-mix(in srgb, var(--text-success) 28%, transparent);
  --web-success-spine: color-mix(in srgb, var(--text-success) 55%, transparent);
}
@media (prefers-color-scheme: dark) {
  :root {
    --background-primary: #1c1c1c;
    --background-secondary: #262626;
    --background-modifier-border: #333333;
    --background-modifier-border-hover: #3f3f3f;
    --background-modifier-message: color-mix(in oklch, black 88%, transparent);
    --background-modifier-cover: rgba(10, 10, 10, 0.4);
    --background-modifier-form-field: #1c1c1c;
    --text-normal: #dadada;
    --text-muted: #bdbdbd;
    --text-faint: #a3a3a3;
    --text-on-accent: white;
    --text-error: #fc5f64;
    --text-warning: #e9973f;
    --text-success: #44cf6e;
    --text-accent: #86a6ef;
    --text-accent-hover: color-mix(in srgb, #86a6ef 78%, white);
    --text-selection: color-mix(in srgb, #86a6ef 33%, transparent);
    --interactive-accent: #86a6ef;
    --interactive-accent-hover: color-mix(in srgb, #86a6ef 86%, white);
    --interactive-accent-solid: #4169cc;
    --interactive-accent-solid-hover: #466ed0;
    --interactive-error-solid: #e6050c;
    --interactive-error-solid-hover: #eb050d;
    --shadow-s: 0px 1px 2px rgba(0, 0, 0, 0.121), 0px 3.4px 6.7px rgba(0, 0, 0, 0.179), 0px 15px 30px rgba(0, 0, 0, 0.3);
    --shadow-l: 0px 1.8px 7.3px rgba(0, 0, 0, 0.071), 0px 6.3px 24.7px rgba(0, 0, 0, 0.112), 0px 30px 90px rgba(0, 0, 0, 0.2);
    --modal-border-color: #3f3f3f;
    --dropdown-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23bdbdbd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3C/svg%3E");
  }
}
@media (max-width: 580px) {
  :root {
    --web-gutter: 16px;
    --web-control-height: 44px;
    --web-control-height-compact: 44px;
    --web-header-height: 52px;
  }
}
/* 官网的样式。长相的依据是设计规范第 10 节（src/host/design/README.md）：颜色、字号、间距、圆角一律取网页令牌
   （构建时由 scripts/generate-web-tokens.mjs 的 renderWebTokensCss 现算，接在本文件前面一起写进站点样式表），
   这里不写死颜色与数值，例外只有 1px 边框、0、规范 10.1 第 1 条列出的结构尺寸（3px 左脊、徽标行高 16px、字标高 28px、
   页面最小宽 280px）、2px 的焦点偏移与下划线粗细、两个媒体查询断点（800px、580px）。scripts/check.mjs 核对这一点。
   Zotero 无对应物：Zotero 网站没有公开源码，结构按规范 10.10 自己定。 */
* {
  box-sizing: border-box;
}
html {
  min-width: 280px;
  font-family: var(--font-default);
  font-size: var(--font-ui-medium);
  line-height: var(--line-height-normal);
  font-synthesis: none;
  background: var(--background-primary);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text-normal);
  background: var(--background-primary);
  overflow-x: hidden;
}
::selection {
  background: var(--text-selection);
}
button {
  font: inherit;
  color: inherit;
}
a {
  color: var(--text-accent);
  text-underline-offset: var(--underline-offset);
}
a:hover {
  color: var(--text-accent-hover);
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: var(--kit-focus-ring);
  outline-offset: 2px;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl {
  margin-block: 0;
}
h1 {
  font-size: var(--web-font-title);
  line-height: var(--line-height-tight);
  font-weight: var(--font-semibold);
}
h2 {
  font-size: var(--font-text-size);
  line-height: var(--line-height-list);
  font-weight: var(--font-semibold);
}
h3 {
  font-size: var(--font-ui-medium);
  line-height: var(--line-height-list);
  font-weight: var(--font-semibold);
}
h1,
h2,
h3,
p,
li,
dd,
dt,
td,
th,
.notice {
  overflow-wrap: anywhere;
}
[hidden] {
  display: none !important;
}

/* 按钮（规范 10.6）：普通与主要两种，链接形的按钮与按钮同一长相。 */
button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--size-2-3);
  min-height: var(--web-control-height);
  padding: 0 var(--size-4-4);
  border: var(--border-width) solid var(--background-modifier-border);
  border-radius: var(--input-radius);
  background: transparent;
  color: var(--text-normal);
  font-size: var(--font-ui-medium);
  line-height: var(--line-height-tight);
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition:
    color var(--kit-transition),
    border-color var(--kit-transition),
    background-color var(--kit-transition);
}
button:hover,
.button-link:hover {
  border-color: var(--interactive-accent);
  color: var(--text-accent);
  text-decoration: none;
}
button:active,
.button-link:active {
  background: var(--kit-accent-wash);
}
button:disabled {
  opacity: var(--kit-disabled-opacity);
  cursor: default;
}
.button-link.button-primary {
  background: var(--interactive-accent-solid);
  border-color: var(--interactive-accent-solid);
  color: var(--text-on-accent);
}
.button-link.button-primary:hover,
.button-link.button-primary:active {
  background: var(--interactive-accent-solid-hover);
  border-color: var(--interactive-accent-solid-hover);
  color: var(--text-on-accent);
}

/* 页头与页脚（规范 10.5、10.10）：页头与页脚横向铺满，内容与正文区共用同一条内容边。 */
.skip-link {
  position: fixed;
  top: -100px;
  left: var(--size-4-2);
  z-index: 20;
  background: var(--background-primary);
  padding: var(--size-4-2) var(--size-4-3);
  border: var(--border-width) solid var(--background-modifier-border);
  border-radius: var(--input-radius);
}
.skip-link:focus {
  top: var(--size-4-2);
}
.site-header,
.site-footer {
  --layout-edge: calc((100% - min(100%, var(--web-content-max))) / 2);
  padding-inline: calc(var(--layout-edge) + var(--web-gutter));
}
.site-header {
  min-height: var(--web-header-height);
  padding-block: var(--size-4-2);
  display: flex;
  align-items: center;
  gap: var(--size-4-6);
  border-bottom: var(--border-width) solid var(--background-modifier-border);
  background: var(--background-primary);
}
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: var(--radius-s);
}
.brand-logo {
  display: block;
  height: 28px;
  width: auto;
}
.top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--size-2-2) var(--size-4-2);
  min-width: 0;
}
.top-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--web-control-height-compact);
  padding: 0 var(--size-4-2);
  border-radius: var(--radius-s);
  color: var(--text-normal);
  font-size: var(--font-ui-small);
  line-height: var(--line-height-tight);
  text-decoration: none;
  transition: background-color var(--kit-transition);
}
.top-nav a:hover {
  background: var(--kit-accent-hover);
  color: var(--text-normal);
}
.top-nav a[aria-current="page"] {
  background: var(--kit-accent-selected);
}
.header-controls {
  display: flex;
  align-items: center;
  margin-left: auto;
  min-width: 0;
}
.language-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.language-picker {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  max-width: 100%;
  color: var(--text-muted);
}
/* 原生 select 保留菜单与键盘行为；CSS 箭头明确留出右侧内距，不依赖浏览器 caret 或 data URL。 */
.language-caret {
  position: absolute;
  inset-inline-end: var(--size-4-3);
  top: 50%;
  width: 0;
  height: 0;
  border-inline: var(--size-2-2) solid transparent;
  border-top: var(--size-2-2) solid currentColor;
  transform: translateY(-50%);
  pointer-events: none;
}
.language-select {
  -webkit-appearance: none;
  appearance: none;
  min-height: var(--web-control-height-compact);
  max-width: 100%;
  padding: 0 var(--size-4-8) 0 var(--size-4-2);
  border: var(--border-width) solid var(--background-modifier-border);
  border-radius: var(--input-radius);
  background: var(--background-modifier-form-field);
  color: var(--text-normal);
  font-family: inherit;
  font-size: var(--font-ui-smaller);
  line-height: var(--line-height-tight);
  cursor: pointer;
}
.language-select:hover {
  border-color: var(--background-modifier-border-hover);
}
.language-select:focus {
  outline: none;
  border-color: var(--interactive-accent);
  box-shadow: inset 0 0 0 1px var(--interactive-accent);
}
.site-footer {
  margin-top: auto;
  padding-block: var(--size-4-6);
  border-top: var(--border-width) solid var(--background-modifier-border);
  font-size: var(--font-ui-smaller);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--size-4-3) var(--size-4-6);
}
.footer-brand {
  font-weight: var(--font-semibold);
  margin-right: auto;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--size-2-2) var(--size-4-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--web-control-height-compact);
}
.site-footer p {
  max-width: var(--web-reading-max);
}

/* 正文区。 */
.page {
  width: 100%;
  max-width: var(--web-content-max);
  margin: 0 auto;
  padding: var(--size-4-8) var(--web-gutter) var(--size-4-12);
  min-width: 0;
}
.page:focus {
  outline: none;
}
.page:focus-visible {
  outline: var(--kit-focus-ring);
  outline-offset: -4px;
}
.page-heading {
  margin-bottom: var(--size-4-6);
}
.page-heading .description {
  margin-top: var(--size-2-3);
}
.description {
  color: var(--text-muted);
  font-size: var(--font-ui-small);
  line-height: var(--line-height-normal);
  max-width: var(--web-reading-max);
}
.reading {
  max-width: var(--web-reading-max);
}

/* 首页：大标题由现有网页标题与应用大字组合；各处仍只读现有令牌，见设计规范 10.10。 */
.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--size-4-6);
  max-width: var(--web-reading-max);
  padding-block: var(--size-4-12) calc(var(--size-4-12) + var(--size-4-6));
}
.hero-mark {
  display: block;
  width: calc(var(--size-4-10) * 2);
  height: auto;
}
.hero h1 {
  font-size: calc(var(--web-font-title) + var(--font-ui-large));
  line-height: var(--line-height-tight);
  font-weight: var(--font-semibold);
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.hero-lead {
  max-width: var(--web-reading-max);
  font-size: var(--font-text-size);
  color: var(--text-muted);
  line-height: var(--line-height-normal);
  text-wrap: pretty;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--size-4-2) var(--size-4-3);
}
.hero .button-link {
  min-height: var(--web-control-height);
  padding-block: var(--size-4-3);
  padding-inline: var(--size-4-6);
}
.hero-availability {
  color: var(--text-muted);
  font-size: var(--font-ui-smaller);
  line-height: var(--line-height-normal);
  white-space: pre-line;
}
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--size-4-8);
  padding-block: var(--size-4-8) var(--size-4-12);
  border-top: var(--border-width) solid var(--background-modifier-border);
}
.feature {
  min-width: 0;
}
.feature-number {
  display: block;
  margin-bottom: var(--size-4-4);
  color: var(--text-accent);
  font-size: var(--font-ui-smaller);
  font-variant-numeric: tabular-nums;
}
.feature h2 {
  margin-bottom: var(--size-4-3);
  font-size: var(--font-ui-large);
  text-wrap: balance;
}
.feature-copy {
  display: grid;
  gap: var(--size-4-3);
  color: var(--text-muted);
  font-size: var(--font-ui-medium);
  line-height: var(--line-height-normal);
  text-wrap: pretty;
}
.guide-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--size-4-6);
  padding-block: var(--size-4-8) var(--size-4-4);
  border-top: var(--border-width) solid var(--background-modifier-border);
}
.guide-link > div {
  flex: 1 1 auto;
  min-width: 0;
}
.guide-link p {
  margin-top: var(--size-2-3);
  max-width: var(--web-reading-max);
  font-size: var(--font-ui-small);
  color: var(--text-muted);
}
.guide-link > a {
  display: inline-flex;
  align-items: center;
  gap: var(--size-2-3);
  min-height: var(--web-control-height);
  font-size: var(--font-ui-small);
  white-space: nowrap;
}
.more {
  margin-top: var(--size-4-8);
  max-width: var(--web-reading-max);
}

/* 面板、定义列表、徽标、提示条（规范 10.5、10.7）。 */
.panel {
  margin-top: var(--size-4-4);
  border: var(--border-width) solid var(--background-modifier-border);
  border-radius: var(--radius-m);
  background: var(--background-primary);
  padding: var(--size-4-6);
  min-width: 0;
}
.panel > h2 {
  margin-bottom: var(--size-4-3);
}
.panel > .actions {
  margin-top: var(--size-4-4);
}
.definitions {
  margin: 0;
}
.definition {
  display: grid;
  grid-template-columns: minmax(100px, 160px) minmax(0, 1fr);
  align-items: baseline;
  gap: var(--size-4-4);
  padding: var(--size-4-3) 0;
  border-bottom: var(--border-width) solid var(--kit-border-soft);
}
.definition:last-child {
  border-bottom: 0;
}
dt {
  color: var(--text-muted);
  font-size: var(--font-ui-small);
}
dd {
  margin: 0;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}
.checksum {
  font-family: var(--font-monospace-default);
  font-size: var(--font-ui-small);
  overflow-wrap: anywhere;
}
.badge {
  display: inline-block;
  max-width: 100%;
  border: var(--border-width) solid var(--background-modifier-border);
  border-radius: var(--radius-s);
  padding: 0 var(--size-2-3);
  font-size: var(--font-ui-tiny);
  font-weight: var(--font-medium);
  line-height: 16px;
  color: var(--text-muted);
  overflow-wrap: anywhere;
  vertical-align: middle;
}
.notice {
  padding: var(--size-4-2) var(--size-4-3);
  border: var(--border-width) solid var(--kit-border-soft);
  border-radius: var(--radius-m);
  color: var(--text-normal);
  font-size: var(--font-ui-small);
  line-height: var(--line-height-normal);
  margin-block: var(--size-4-3);
}
/* 带左脊的色调（规范 3.20 节、10.7 节）与 kit.css、用户中心是同一种画法：边框 1px、左边 3px、颜色全透明，整圈边框由同圆角的
   ::before 画成一笔，渐变在最左一个圆角半径宽处是脊色、其余是同色调的细框色，遮罩只留边框那一圈。中性提示条没有脊。 */
.notice-warning {
  --notice-corner: var(--radius-m);
  --notice-frame: var(--kit-warning-border);
  --notice-spine: var(--kit-warning-spine);
  position: relative;
  border-color: transparent;
  border-left-width: 3px;
  border-radius: var(--notice-corner);
  background: var(--kit-warning-bg);
}
.notice-warning::before {
  content: "";
  position: absolute;
  top: calc(var(--border-width) * -1);
  right: calc(var(--border-width) * -1);
  bottom: calc(var(--border-width) * -1);
  left: -3px;
  border: var(--border-width) solid transparent;
  border-left-width: 3px;
  border-radius: inherit;
  background: linear-gradient(
      to right,
      var(--notice-spine) var(--notice-corner),
      var(--notice-frame) var(--notice-corner)
    )
    border-box;
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0) border-box;
  mask-composite: exclude;
  pointer-events: none;
}
.empty-state {
  padding: var(--size-4-6) var(--size-4-4);
  color: var(--text-muted);
  font-size: var(--font-ui-small);
  text-align: center;
  text-wrap: balance;
}
.announcement-date {
  margin-bottom: var(--size-4-3);
  color: var(--text-muted);
  font-size: var(--font-ui-small);
}
.announcement-body {
  white-space: pre-line;
}
.button-more {
  margin-top: var(--size-4-4);
}

/* 成段文字（隐私、条款、源码、致谢、说明正文）。 */
.prose {
  line-height: var(--line-height-normal);
}
.prose > * + * {
  margin-top: var(--size-4-3);
}
.prose h2 {
  margin-top: var(--size-4-8);
}
.prose h3 {
  margin-top: var(--size-4-6);
}
.prose h2 + *,
.prose h3 + * {
  margin-top: var(--size-4-2);
}
.prose ul,
.prose ol {
  padding-left: var(--size-4-6);
  display: grid;
  gap: var(--size-2-3);
}
.prose li > ul,
.prose li > ol {
  margin-top: var(--size-2-3);
}
.prose blockquote {
  margin-inline: 0;
  padding-left: var(--size-4-4);
  border-left: 3px solid var(--background-modifier-border);
  color: var(--text-muted);
}
.prose code {
  font-family: var(--font-monospace-default);
  font-size: var(--font-ui-small);
  overflow-wrap: anywhere;
}
.prose pre {
  margin-inline: 0;
  padding: var(--size-4-3) var(--size-4-4);
  border: var(--border-width) solid var(--background-modifier-border);
  border-radius: var(--radius-m);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: var(--font-ui-small);
}
.prose pre code {
  font-size: inherit;
}
.prose .anchor {
  margin-left: var(--size-2-3);
  color: var(--text-faint);
  text-decoration: none;
  opacity: 0;
}
.prose :is(h2, h3):hover .anchor,
.prose .anchor:focus-visible {
  opacity: 1;
}
.prose .table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-ui-small);
}
.prose th {
  text-align: start;
  color: var(--text-muted);
  font-size: var(--font-ui-smaller);
  font-weight: var(--font-medium);
  border-bottom: var(--border-width) solid var(--kit-border-soft);
  padding: var(--size-2-3) var(--size-4-3);
  vertical-align: bottom;
}
.prose .table-wrap {
  overflow-x: auto;
}
.prose th,
.prose td {
  overflow-wrap: break-word;
}
.prose td {
  padding: var(--size-4-3);
  border-bottom: var(--border-width) solid var(--kit-border-soft);
  vertical-align: top;
  min-width: 0;
}
.prose tr:last-child td {
  border-bottom: 0;
}
.prose th:first-child,
.prose td:first-child {
  padding-left: 0;
}
.prose th:last-child,
.prose td:last-child {
  padding-right: 0;
}
.notice-text {
  white-space: pre-wrap;
}
.notice-section h2 {
  margin-top: var(--size-4-8);
}
.toc {
  padding-left: var(--size-4-6);
  display: grid;
  gap: var(--size-2-2);
  font-size: var(--font-ui-small);
}

/* 说明页：左侧目录加正文。 */
.help-layout {
  display: grid;
  grid-template-columns: var(--web-nav-width) minmax(0, var(--web-reading-max));
  gap: var(--size-4-10);
  align-items: start;
}
.help-nav {
  position: sticky;
  top: var(--size-4-4);
  max-height: calc(100vh - var(--size-4-8));
  overflow-y: auto;
  font-size: var(--font-ui-small);
}
.help-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.help-nav > ul > li > a {
  display: flex;
  align-items: center;
  min-height: var(--web-control-height-compact);
  padding: 0 var(--size-4-3);
  border-radius: var(--radius-s);
  color: var(--text-normal);
  text-decoration: none;
  line-height: var(--line-height-tight);
}
.help-nav > ul > li > a:hover {
  background: var(--kit-accent-hover);
  color: var(--text-normal);
}
.help-nav a[aria-current="page"] {
  background: var(--kit-accent-selected);
}
.page-toc {
  padding: var(--size-2-2) 0 var(--size-4-2) var(--size-4-6);
}
.page-toc a {
  display: block;
  padding: var(--size-2-2) var(--size-4-2);
  color: var(--text-muted);
  text-decoration: none;
}
.page-toc a:hover {
  color: var(--text-accent);
}
.help-back {
  display: none;
}
.topic-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--size-4-4);
}
.topic-list p {
  color: var(--text-muted);
  font-size: var(--font-ui-small);
  margin-top: var(--size-2-2);
}
.help-footer {
  margin-top: var(--size-4-10);
  padding-top: var(--size-4-4);
  border-top: var(--border-width) solid var(--kit-border-soft);
  color: var(--text-muted);
  font-size: var(--font-ui-small);
}
.help-footer h2 {
  font-size: var(--font-ui-medium);
  color: var(--text-normal);
}

/* 根页面与找不到页面：整个视口居中一列（规范 10.7 错误页）。 */
.centered {
  max-width: var(--dialog-width);
  margin: 12vh auto 0;
  padding-inline: var(--web-gutter);
  display: grid;
  gap: var(--size-4-4);
  justify-items: start;
}
@media (max-width: 800px) {
  .site-header {
    flex-wrap: wrap;
    gap: var(--size-4-2) var(--size-4-4);
  }
  .top-nav {
    order: 3;
    width: 100%;
  }
  .features {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--size-4-8);
  }
  .help-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--size-4-4);
  }
  .help-nav {
    display: none;
  }
  .help-back {
    display: inline-flex;
    align-items: center;
    min-height: var(--web-control-height-compact);
  }
  .definition {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: var(--size-4-3);
  }
  .prose table {
    display: block;
  }
  .prose thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .prose tbody,
  .prose tr {
    display: block;
    width: 100%;
  }
  .prose tr {
    border-top: var(--border-width) solid var(--kit-border-soft);
    padding: var(--size-4-3) 0;
  }
  .prose tr:first-child {
    border-top: 0;
  }
  .prose td {
    display: grid;
    grid-template-columns: minmax(90px, 32%) minmax(0, 1fr);
    gap: var(--size-4-2);
    padding: var(--size-2-3) 0;
    border: 0;
  }
  .prose td::before {
    content: attr(data-label);
    color: var(--text-muted);
    font-size: var(--font-ui-smaller);
  }
}
@media (max-width: 580px) {
  .page {
    padding-top: var(--size-4-6);
    padding-bottom: var(--size-4-8);
  }
  .hero {
    padding-block: var(--size-4-6) var(--size-4-10);
  }
  .hero h1 {
    font-size: calc(var(--web-font-title) + var(--size-4-2));
  }
  .language-select {
    font-size: var(--font-text-size);
  }
  .panel {
    padding: var(--size-4-4);
  }
  .definition {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: var(--size-4-2);
  }
  .actions > .button-link,
  .actions > button {
    flex: 1 1 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
  }
}
