@charset "utf-8";
/* ==========================================================================
   Subtitle Edit 中文站 — 样式表
   配色依据项目 Logo：#CE2222（红）+ #F9F9F9（近白）
   纯静态、无外部依赖、无 Web 字体请求
   ========================================================================== */

/* 1. 设计变量 ------------------------------------------------------------ */
:root {
  color-scheme: light;

  --brand: #ce2222;
  --brand-600: #b41c1c;
  --brand-700: #911616;
  --brand-soft: #fcefef;
  --brand-soft-2: #f3d7d7;

  --ink: #12161c;
  --ink-2: #39424d;
  --muted: #626c78;
  --muted-2: #6e7681;

  --line: #e4e8ec;
  --line-2: #d3d9df;

  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-soft-2: #f1f3f6;
  --ink-bg: #12161c;

  --ok: #1c6b47;
  --ok-bg: #eef7f2;
  --warn: #8a5300;
  --warn-bg: #fff8e8;

  --r-s: 8px;
  --r: 12px;
  --r-l: 18px;

  --shadow-1: 0 1px 2px rgba(18, 22, 28, .06);
  --shadow-2: 0 24px 48px -24px rgba(18, 22, 28, .32);

  --container: 1160px;
  --header-h: 68px;

  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC",
    Roboto, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas,
    "Liberation Mono", Menlo, monospace;

  --ease: cubic-bezier(.2, .6, .3, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img { height: auto; }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 1.3rem + 2.7vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.1rem); }
h3 { font-size: 1.14rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1em; }

a {
  color: var(--brand-600);
  text-decoration-color: color-mix(in srgb, var(--brand) 40%, transparent);
  text-underline-offset: 2px;
}

a:hover { color: var(--brand-700); text-decoration-color: currentColor; }

ul, ol { margin: 0 0 1em; padding-left: 1.35em; }
li + li { margin-top: .35em; }

strong, b { font-weight: 600; color: var(--ink); }

code, kbd, samp {
  font-family: var(--mono);
  font-size: .88em;
}

:not(pre) > code {
  background: var(--bg-soft-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .1em .4em;
  color: var(--ink-2);
}

pre {
  margin: 0 0 1.2em;
  padding: 16px 18px;
  background: var(--ink-bg);
  color: #e8ebef;
  border-radius: var(--r);
  overflow-x: auto;
  font-size: .85rem;
  line-height: 1.7;
}

pre code { color: inherit; font-size: 1em; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

::selection { background: var(--brand-soft-2); color: var(--brand-700); }

:focus-visible {
  outline: 3px solid rgba(206, 34, 34, .5);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 3. 布局工具 ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.container--narrow { max-width: 860px; }

.section { padding: clamp(52px, 5.4vw, 88px) 0; }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section--tight { padding-block: clamp(40px, 4vw, 60px); }
.section--ink { background: var(--ink-bg); color: #d6dbe2; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink a { color: #ffb3b3; }

.section__head { max-width: 760px; margin-bottom: clamp(28px, 3vw, 44px); }
.section__head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.section--ink .eyebrow { color: #ff8f8f; }

.lead {
  font-size: clamp(1.02rem, .98rem + .25vw, 1.16rem);
  color: var(--ink-2);
  line-height: 1.85;
}

.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; }

.grid {
  display: grid;
  gap: 20px;
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--brand);
  color: #fff;
  border-radius: 0 0 var(--r-s) var(--r-s);
  font-weight: 600;
  text-decoration: none;
  transition: top .18s var(--ease);
}

.skip-link:focus { top: 0; color: #fff; }

/* 4. 顶部公告条 ---------------------------------------------------------- */
.topbar {
  background: var(--ink-bg);
  color: #c3cad3;
  font-size: .82rem;
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  flex-wrap: wrap;
}

.topbar p { margin: 0; }
.topbar strong { color: #fff; font-weight: 600; }

.topbar__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  flex: none;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, .18);
}

.topbar a {
  margin-left: auto;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
  white-space: nowrap;
}

.topbar a:hover { color: #fff; border-bottom-color: #fff; }

/* 5. 站点页头 ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s var(--ease);
}

.site-header.is-stuck { box-shadow: 0 6px 20px -14px rgba(18, 22, 28, .45); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}

.brand:hover { color: var(--ink); }

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex: none;
  display: block;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__text strong {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.brand__text span {
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .08em;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__list li { margin: 0; }

.nav__list a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: .93rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s var(--ease), color .15s var(--ease);
}

.nav__list a:hover { background: var(--bg-soft-2); color: var(--ink); }

.nav__list a[aria-current="page"] {
  color: var(--brand-600);
  background: var(--brand-soft);
  font-weight: 600;
}

.nav__cta { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle__bars {
  display: block;
  width: 18px;
  height: 12px;
  position: relative;
}

.nav-toggle__bars i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease), top .2s var(--ease);
}

.nav-toggle__bars i:nth-child(1) { top: 0; }
.nav-toggle__bars i:nth-child(2) { top: 5px; }
.nav-toggle__bars i:nth-child(3) { top: 10px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { top: 5px; transform: rotate(-45deg); }

/* 6. 按钮 ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s var(--ease), border-color .16s var(--ease),
    color .16s var(--ease), transform .16s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset;
}

.btn-primary:hover { background: var(--brand-600); color: #fff; }

.btn-ghost {
  background: #fff;
  border-color: var(--line-2);
  color: var(--ink);
}

.btn-ghost:hover { border-color: var(--brand); color: var(--brand-600); background: #fff; }

.btn-quiet {
  background: var(--bg-soft-2);
  color: var(--ink-2);
}

.btn-quiet:hover { background: var(--brand-soft); color: var(--brand-700); }

.btn-sm { padding: 9px 16px; font-size: .88rem; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn .icon { width: 18px; height: 18px; flex: none; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* 7. 首页 Hero ----------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(40px, 5vw, 76px) 0 clamp(44px, 5vw, 76px);
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(206, 34, 34, .08), transparent 62%),
    radial-gradient(700px 380px at -10% 110%, rgba(206, 34, 34, .05), transparent 60%),
    #fff;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(30px, 4vw, 56px);
  align-items: center;
}

.hero h1 { margin-bottom: 18px; }

.hero h1 .accent { color: var(--brand); }

.hero__lead { max-width: 34em; margin-bottom: 22px; }

.hero__points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.hero__points li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: .92rem;
  color: var(--ink-2);
}

.hero__points .icon {
  width: 16px;
  height: 16px;
  margin-top: 5px;
  flex: none;
  color: var(--brand);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  color: var(--muted);
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero__meta span + span::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-2);
  margin-right: 4px;
}

/* 8. 界面截图 ------------------------------------------------------------ */
.hero__figure { margin: 0; }

.shot {
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--r-l);
  box-shadow: 0 34px 60px -34px rgba(18, 22, 28, .4), 0 2px 6px rgba(18, 22, 28, .05);
}

.shot picture { display: block; }

.shot__img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.shot__note {
  margin: 12px 0 0;
  font-size: .76rem;
  line-height: 1.7;
  color: var(--muted-2);
  text-align: center;
}

.shot__note a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.shot__note a:hover { color: var(--brand-600); }
/* 9. 卡片与特性 ---------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease),
    transform .18s var(--ease);
}

.card:hover {
  border-color: var(--brand-soft-2);
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}

.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card p { font-size: .93rem; color: var(--ink-2); }

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
}

.card__icon .icon { width: 22px; height: 22px; }

.card__note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: .8rem;
  color: var(--muted);
}

/* 数据条 */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.stats li {
  margin: 0;
  padding: 20px 22px;
  background: #fff;
}

.stats__num {
  display: block;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--brand);
  line-height: 1.2;
}

.stats__label {
  display: block;
  margin-top: 4px;
  font-size: .82rem;
  color: var(--muted);
}

/* 场景卡 */
.scene {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
}

.scene__num {
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}

.scene h3 { margin-bottom: 6px; font-size: 1.05rem; }
.scene p { margin-bottom: 8px; font-size: .91rem; color: var(--ink-2); }
.scene p:last-child { margin-bottom: 0; }

.scene__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.scene__tags li {
  margin: 0;
  font-size: .74rem;
  color: var(--muted);
  background: var(--bg-soft-2);
  border-radius: 999px;
  padding: 3px 10px;
}

/* 10. 表格 --------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  min-width: 520px;
}

caption {
  caption-side: bottom;
  padding: 12px 16px;
  text-align: left;
  font-size: .78rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

th, td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--bg-soft);
  font-weight: 600;
  font-size: .84rem;
  color: var(--ink-2);
  white-space: nowrap;
}

tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfcfd; }

td code, th code { white-space: nowrap; }

.check {
  color: var(--ok);
  font-weight: 600;
}

.cross { color: var(--muted-2); }

/* 11. 徽标 / 提示块 ------------------------------------------------------ */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.badges li {
  margin: 0;
  font-size: .78rem;
  font-weight: 500;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
}

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

.badges li:hover {
  border-color: var(--brand-soft-2);
  color: var(--brand-700);
}

kbd {
  display: inline-block;
  padding: 1px 6px;
  font-family: var(--mono);
  font-size: .78em;
  line-height: 1.55;
  color: var(--ink-2);
  background: var(--bg-soft-2);
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 5px;
  white-space: nowrap;
}

.lead { max-width: 56em; }

.notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--r);
  background: #fff;
}

.notice .icon {
  width: 20px;
  height: 20px;
  color: var(--brand);
  margin-top: 3px;
}

.notice h3 { font-size: 1rem; margin-bottom: 6px; }
.notice p { margin-bottom: 0; font-size: .9rem; color: var(--ink-2); }

.notice--warn {
  border-left-color: #d99100;
  background: var(--warn-bg);
}

.notice--warn .icon { color: var(--warn); }

.notice--ok {
  border-left-color: var(--ok);
  background: var(--ok-bg);
}

.notice--ok .icon { color: var(--ok); }

/* 12. 步骤 --------------------------------------------------------------- */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 0;
}

.steps > li {
  position: relative;
  margin: 0;
  padding: 0 0 26px 52px;
  border-left: 1px solid var(--line);
  margin-left: 17px;
}

.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }

.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -18px;
  top: -4px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--brand-soft-2);
  color: var(--brand);
  font-family: var(--mono);
  font-size: .85rem;
  font-weight: 700;
}

.steps h3 { margin-bottom: 6px; font-size: 1.02rem; }
.steps p { font-size: .92rem; color: var(--ink-2); margin-bottom: 8px; }
.steps p:last-child { margin-bottom: 0; }

.steps ul { font-size: .9rem; color: var(--ink-2); }

/* 13. FAQ 折叠 ----------------------------------------------------------- */
.faq-list {
  display: grid;
  gap: 10px;
}

.faq {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  padding: 0 20px;
  transition: border-color .16s var(--ease);
}

.faq[open] { border-color: var(--brand-soft-2); }

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-size: .97rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--mono);
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--brand);
  transition: transform .2s var(--ease);
}

.faq[open] summary::after { content: "\2212"; }

.faq summary:hover { color: var(--brand-600); }

.faq__body { padding: 0 0 18px; }
.faq__body > :last-child { margin-bottom: 0; }
.faq__body p, .faq__body li { font-size: .92rem; color: var(--ink-2); }

/* 14. 下载中心 ----------------------------------------------------------- */
.plat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plat__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.plat__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--bg-soft-2);
  color: var(--ink-2);
  flex: none;
}

.plat__icon .icon { width: 22px; height: 22px; }

.plat h3 { margin: 0; font-size: 1.05rem; }
.plat__head p { margin: 2px 0 0; font-size: .78rem; color: var(--muted); }

.plat__files {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: .84rem;
}

.plat__files li {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-2);
}

.plat__files li:last-child { border-bottom: 0; padding-bottom: 0; }
.plat__files code { font-size: .8rem; word-break: break-all; }
.plat__files span { color: var(--muted); white-space: nowrap; flex: none; }

.plat .btn { margin-top: auto; }

.hash-cell {
  font-family: var(--mono);
  font-size: .74rem;
  line-height: 1.6;
  color: var(--ink-2);
  word-break: break-all;
  max-width: 340px;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 4px 10px;
  font-family: inherit;
  font-size: .72rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg-soft-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.copy-btn:hover { color: var(--brand-600); border-color: var(--brand-soft-2); }

.copy-btn .icon { width: 13px; height: 13px; }

/* 15. 时间轴（项目历史） ------------------------------------------------- */
.timeline {
  margin: 0;
  padding: 0 0 0 22px;
  list-style: none;
  border-left: 1px solid var(--line);
}

.timeline li {
  position: relative;
  margin: 0 0 26px;
  padding-left: 4px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--brand);
}

.timeline li:last-child { margin-bottom: 0; }

.timeline time {
  display: block;
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: .02em;
}

.timeline h3 { font-size: 1rem; margin: 4px 0 4px; }
.timeline p { margin-bottom: 0; font-size: .9rem; color: var(--ink-2); }

/* 16. 参考来源 ----------------------------------------------------------- */
.refs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.refs li {
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  font-size: .88rem;
}

.refs .icon {
  width: 16px;
  height: 16px;
  color: var(--muted-2);
  margin-top: 6px;
}

.refs a { word-break: break-word; }

.refs__src { color: var(--muted); }

/* 17. CTA 区块 ----------------------------------------------------------- */
.cta {
  background: linear-gradient(135deg, #171c23 0%, #241417 60%, #3a1414 100%);
  color: #e6eaef;
  border-radius: var(--r-l);
  padding: clamp(30px, 4vw, 52px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 26px;
  align-items: center;
}

.cta h2 { color: #fff; margin-bottom: 10px; }
.cta p { margin: 0; color: #c4ccd6; max-width: 46em; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.cta .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .32);
  color: #fff;
}

.cta .btn-ghost:hover {
  background: rgba(255, 255, 255, .08);
  border-color: #fff;
  color: #fff;
}

/* 17.1 相关阅读 ---------------------------------------------------------- */
.related__title {
  font-size: .84rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.related__grid a {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .18s var(--ease), background .18s var(--ease),
    transform .18s var(--ease);
}

.related__grid a:hover {
  border-color: var(--brand-soft-2);
  background: var(--brand-soft);
  transform: translateY(-2px);
}

.related__grid strong {
  display: block;
  font-size: .96rem;
  margin-bottom: 4px;
  color: var(--ink);
}

.related__grid span {
  display: block;
  font-size: .84rem;
  line-height: 1.65;
  color: var(--muted);
}

/* 18. 页脚 --------------------------------------------------------------- */
.site-footer {
  margin-top: clamp(48px, 6vw, 88px);
  padding: clamp(40px, 4vw, 60px) 0 24px;
  background: var(--ink-bg);
  color: #a9b2bd;
  font-size: .88rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 32px 26px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.site-footer p { color: #a9b2bd; }

.site-footer a { color: #d7dde4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #fff;
}

.footer__brand .brand__mark { width: 30px; height: 30px; }
.footer__brand strong { font-size: 1rem; color: #fff; }

.footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer__list li { margin: 0; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 22px;
  font-size: .78rem;
  color: #8b949f;
}

.footer__bottom p { margin: 0; color: #8b949f; }
.footer__legal { max-width: 62ch; }

/* 19. 弹窗 --------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 17, .58);
  backdrop-filter: blur(2px);
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  border-radius: var(--r-l);
  padding: 30px 30px 26px;
  box-shadow: var(--shadow-2);
}

.modal__panel:focus { outline: none; }

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-2);
  cursor: pointer;
}

.modal__close:hover { background: var(--brand-soft); color: var(--brand-600); }
.modal__close .icon { width: 18px; height: 18px; }

.modal__title { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); margin-bottom: 10px; }

.modal__desc {
  font-size: .9rem;
  color: var(--ink-2);
  margin-bottom: 20px;
  max-width: 58ch;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  margin-bottom: 18px;
}

.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 16px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  background: var(--bg-soft);
  text-align: center;
}

.qr-frame {
  position: relative;
  width: 100%;
  max-width: 190px;
  aspect-ratio: 1 / 1;
  flex: none;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

/* 绝对定位：图片尺寸不参与卡片高度计算，两卡等高 */
.qr-img {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-frame.has-qr .qr-img { display: block; }
.qr-frame.has-qr .qr-empty { display: none; }

.qr-empty {
  display: block;
  padding: 0 12px;
  font-size: .7rem;
  line-height: 1.6;
  letter-spacing: .06em;
  color: var(--muted-2);
}

.qr-frame:not(.has-qr)::before,
.qr-frame:not(.has-qr)::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
}

.qr-frame:not(.has-qr)::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.qr-frame:not(.has-qr)::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

.qr-cap {
  margin-top: auto;
  padding-top: 2px;
  font-size: .87rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .01em;
}

.modal__notes {
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: .8rem;
  color: var(--muted);
}

.modal__notes li { margin: 0; }
.modal__notes a { color: var(--brand-600); }

body.is-locked { overflow: hidden; }

/* 20. 图标 --------------------------------------------------------------- */
.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* 21. 响应式 ------------------------------------------------------------- */
@media (max-width: 1040px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__figure { order: 2; }
  .hero__lead { max-width: none; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -24px rgba(18, 22, 28, .5);
  }

  .nav.is-open { display: flex; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
  }

  .nav__list a { padding: 11px 12px; font-size: .98rem; }

  .nav__cta {
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }

  .nav__cta .btn { width: 100%; }
  .topbar a { margin-left: 0; }
}

@media (max-width: 720px) {
  :root { --header-h: 62px; }

  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }

  .hero__points { grid-template-columns: 1fr; }
  .qr-grid { grid-template-columns: 1fr; }
  .qr-frame { max-width: 210px; }
  .modal__panel { padding: 24px 20px 20px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats li { padding: 16px; }
  .card { padding: 20px; }
  .scene { padding: 18px; grid-template-columns: 1fr; gap: 10px; }
  .scene__num { width: 30px; height: 30px; }
  .footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .btn-row .btn { width: 100%; }
  .hero .btn-row .btn { width: auto; flex: 1 1 190px; }
  .notice { padding: 16px; grid-template-columns: 1fr; gap: 8px; }
  .notice .icon { margin-top: 0; }
  .steps > li { padding-left: 44px; }
  .related__grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .brand__text span { display: none; }
}

/* 22. 动效可关闭 --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* 23. 高对比 / 深色偏好 -------------------------------------------------- */
@media (forced-colors: active) {
  .btn, .card, .faq, .table-wrap { border: 1px solid ButtonText; }
  .btn-primary { forced-color-adjust: none; background: Highlight; color: HighlightText; }
}

/* 24. 打印 --------------------------------------------------------------- */
@media print {
  .topbar, .site-header, .nav-toggle, .modal, .cta, .skip-link { display: none !important; }
  body { color: #000; font-size: 11pt; }
  a { color: #000; }
  .section { padding: 18pt 0; }
  .card, .plat, .faq, .table-wrap { break-inside: avoid; }
  .site-footer { background: none; color: #000; }
  .site-footer a, .site-footer p { color: #000; }
}
