/* ==========================================================================
   ao3rk.com — 全站样式
   设计基调：暖奶油底、朱红主色、黄/绿/紫点缀，大字号标题与克制的层次。
   参考设计系统：Nittoh Tea 100th Anniversary（色板、8px 圆角、0.3s 缓动）。
   纯 CSS，无外部字体与图片依赖；移动优先，断点 1180 / 960 / 760 / 540。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 设计令牌
   -------------------------------------------------------------------------- */
:root {
  /* 品牌色 */
  --red: #e60012;
  --red-deep: #b8000e;
  --red-soft: #fbe3e1;
  --cream: #f3e7d7;
  --cream-2: #faf3e8;
  --paper: #fffdf8;
  --ink: #333333;
  --ink-2: #413a3a;
  --ink-3: #663637;
  --muted: #6f6258;

  /* 点缀色 */
  --green: #88811a;
  --yellow: #f5cd20;
  --orange: #f08230;
  --purple: #584862;
  --blue: #6bb8d0;
  --forest: #345947;

  /* 线条与阴影 */
  --line: rgba(65, 58, 58, 0.16);
  --line-strong: rgba(65, 58, 58, 0.34);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-lift: 0 16px 34px rgba(90, 40, 20, 0.12);

  /* 字体 */
  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC",
    "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --font-serif: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;

  /* 尺寸与动效 */
  --container: 1200px;
  --radius: 8px;
  --radius-lg: 12px;
  --pill: 100px;
  --dur: 0.3s;
  --ease: cubic-bezier(0.4, 0.4, 0, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 4% 2%, rgba(245, 205, 32, 0.16), transparent 28rem),
    radial-gradient(circle at 98% 12%, rgba(107, 184, 208, 0.12), transparent 26rem);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--ink);
}

p {
  margin: 0 0 1em;
}

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

a {
  color: var(--red-deep);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease);
}

a:hover {
  color: var(--red);
  text-decoration: underline;
}

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

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.35em;
}

li {
  margin: 0.35em 0;
}

strong,
b {
  font-weight: 800;
}

code,
kbd,
samp {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(65, 58, 58, 0.07);
  border-radius: 4px;
  padding: 0.12em 0.4em;
}

mark {
  background: linear-gradient(transparent 55%, rgba(245, 205, 32, 0.72) 55%);
  color: inherit;
  padding: 0 0.12em;
}

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

::selection {
  background: rgba(245, 205, 32, 0.65);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid #386edc;
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   3. 通用布局与工具类
   -------------------------------------------------------------------------- */
.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.container--narrow {
  width: min(820px, calc(100% - 48px));
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 12px;
  color: var(--cream);
}

.section {
  padding: 96px 0;
}

.section--tight {
  padding: 72px 0;
}

.section--paper {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.section--forest {
  background: var(--forest);
  color: var(--cream);
}

.section--forest h2,
.section--forest h3 {
  color: var(--cream);
}

.section--forest p {
  color: rgba(243, 231, 215, 0.82);
}

.section--forest a {
  color: var(--yellow);
}

.section--forest a:hover {
  color: #ffe98a;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--red-deep);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.4;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  flex: none;
}

.section--forest .eyebrow {
  color: var(--yellow);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.section-head__main {
  max-width: 720px;
}

.section-head h2 {
  text-wrap: balance;
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--muted);
  max-width: 62ch;
  margin: 0;
}

.section-head__aside {
  flex: none;
  font-size: 13px;
  color: var(--muted);
  text-align: right;
  line-height: 1.7;
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.8;
  color: var(--ink-2);
}

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

.nowrap {
  white-space: nowrap;
}

.text-red {
  color: var(--red);
}

/* --------------------------------------------------------------------------
   4. 按钮与徽章
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--red-deep);
  border-color: var(--red-deep);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(184, 0, 14, 0.2);
}

.btn-secondary {
  background: transparent;
  border-color: var(--ink-2);
  color: var(--ink-2);
}

.btn-secondary:hover {
  background: var(--ink-2);
  border-color: var(--ink-2);
  color: var(--cream);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink-2);
  padding-inline: 12px;
}

.btn-ghost:hover {
  background: rgba(230, 0, 18, 0.07);
  color: var(--red-deep);
}

.btn-cream {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--ink);
}

.btn-cream:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--red-deep);
  transform: translateY(-2px);
}

.btn-outline-cream {
  background: transparent;
  border-color: rgba(243, 231, 215, 0.65);
  color: var(--cream);
}

.btn-outline-cream:hover {
  background: rgba(243, 231, 215, 0.12);
  border-color: var(--cream);
  color: var(--cream);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 13.5px;
}

.btn-lg {
  padding: 15px 30px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--pill);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.badge--direct {
  background: #e9efcf;
  color: #4e4b13;
}

.badge--verify {
  background: #fbe9a8;
  color: #5d4900;
}

.badge--tool {
  background: #d8eef5;
  color: #1f5566;
}

.badge--retry {
  background: #f7dad6;
  color: #8a1a12;
}

.badge--neutral {
  background: rgba(65, 58, 58, 0.08);
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   5. 页头与移动端导航
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(243, 231, 215, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

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

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

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  box-shadow: 0 2px 0 rgba(184, 0, 14, 0.22);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.brand-ao3 {
  color: var(--red);
}

.brand-sub {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  line-height: 1.2;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav a {
  position: relative;
  display: inline-block;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition:
    color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.main-nav a:not(.nav-cta):hover {
  background: rgba(230, 0, 18, 0.06);
  color: var(--red-deep);
}

.main-nav a[aria-current="page"] {
  color: var(--red-deep);
  font-weight: 800;
}

.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--red);
}

.main-nav .nav-cta {
  margin-left: 8px;
  padding: 10px 18px;
  border: 1px solid var(--red-deep);
  border-radius: var(--radius);
  background: var(--red-deep);
  color: #fff;
  font-weight: 700;
  transition:
    background-color var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.main-nav .nav-cta:hover {
  background: var(--red);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(184, 0, 14, 0.18);
}

.main-nav .nav-cta[aria-current="page"]::after {
  display: none;
}

/* 移动端菜单：使用原生 details，禁用 JS 也能打开 */
.mobile-nav {
  display: none;
  position: static;
}

.nav-toggle {
  display: grid;
  place-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.nav-toggle::-webkit-details-marker {
  display: none;
}

.nav-toggle::marker {
  content: "";
}

.nav-toggle-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}

.nav-toggle-box span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.mobile-nav[open] .nav-toggle-box span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-nav[open] .nav-toggle-box span:nth-child(2) {
  opacity: 0;
}

.mobile-nav[open] .nav-toggle-box span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - 76px);
  overflow-y: auto;
  padding: 18px 24px 28px;
  background: var(--cream);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 18px 30px rgba(60, 30, 20, 0.14);
}

.mobile-nav-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-2);
  font-size: 16px;
  text-decoration: none;
}

.mobile-nav-panel a:hover {
  color: var(--red-deep);
}

.mobile-nav-panel a[aria-current="page"] {
  color: var(--red-deep);
  font-weight: 800;
}

.mobile-nav-panel .nav-cta {
  justify-content: center;
  margin-top: 18px;
  border: 1px solid var(--red-deep);
  border-radius: var(--radius);
  background: var(--red-deep);
  color: #fff;
  font-weight: 700;
}

.mobile-nav-panel .nav-cta:hover {
  color: #fff;
}

.mobile-nav-panel .nav-cta::after {
  content: "→";
  margin-left: 8px;
}

/* --------------------------------------------------------------------------
   6. 首页 Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 0;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -100px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(245, 205, 32, 0.34);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: -160px;
  bottom: 40px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 44px solid rgba(136, 129, 26, 0.12);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  align-items: center;
  gap: 64px;
}

.hero-title {
  text-wrap: balance;
  margin: 18px 0 24px;
  font-size: clamp(3.4rem, 7.4vw, 6.4rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-title .t-ao3 {
  color: var(--red);
}

.hero-title .t-cn {
  position: relative;
  display: inline-block;
  z-index: 0;
}

.hero-title .t-cn::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.02em;
  right: -0.01em;
  bottom: 0.06em;
  height: 0.14em;
  background: var(--yellow);
  transform: rotate(-1deg);
}

.hero-lead {
  max-width: 620px;
  margin: 0;
  color: var(--ink-2);
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}

.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.hero-facts li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

/* Hero 右侧：路线票 */
.route-ticket {
  position: relative;
  padding: 30px 30px 26px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 12px 12px 0 rgba(230, 0, 18, 0.1);
  transform: rotate(1.4deg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.route-ticket:hover {
  transform: rotate(0.4deg) translateY(-3px);
  box-shadow: 16px 18px 0 rgba(230, 0, 18, 0.09);
}

.route-ticket::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px dashed rgba(65, 58, 58, 0.2);
  border-radius: 4px;
  pointer-events: none;
}

.ticket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.ticket-kicker {
  color: var(--red-deep);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.ticket-year {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.ticket-big {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 18px 0 6px;
}

.ticket-big strong {
  color: var(--red);
  font-family: var(--font-display);
  font-size: 82px;
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.07em;
}

.ticket-big span {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.route-stops {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.route-stops li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  margin: 0;
  padding: 12px 0;
  border-top: 1px dashed var(--line);
}

.route-stops li:first-child {
  border-top: 0;
}

.route-stops .n {
  display: grid;
  place-content: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--red-deep);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.route-stops strong {
  display: block;
  font-size: 14px;
  line-height: 1.4;
}

.route-stops small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.ticket-stamp {
  position: absolute;
  right: -22px;
  bottom: 34px;
  display: grid;
  place-content: center;
  width: 94px;
  height: 94px;
  border: 2px solid var(--red);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.86);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-align: center;
  transform: rotate(-12deg);
}

/* 数据条 */
.hero-strip {
  position: relative;
  z-index: 1;
  margin-top: 64px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.46);
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.stat {
  padding: 22px 24px;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  border-left: 0;
}

.stat strong {
  display: block;
  color: var(--red);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.stat small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   7. 路线卡片
   -------------------------------------------------------------------------- */
.route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.route-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent, var(--red));
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.route-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}

.route-card:nth-child(1) {
  --accent: var(--green);
}

.route-card:nth-child(2) {
  --accent: var(--yellow);
}

.route-card:nth-child(3) {
  --accent: var(--purple);
}

.route-card .num {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.route-card h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.route-card p {
  color: var(--muted);
  font-size: 14.5px;
}

.route-card ul {
  margin: 4px 0 22px;
  padding-left: 1.1em;
  color: var(--ink-2);
  font-size: 14px;
}

.route-card ul li::marker {
  color: var(--accent);
}

.route-card .route-link {
  margin-top: auto;
  color: var(--red-deep);
  font-size: 14px;
  font-weight: 700;
}

.route-card .route-link::after {
  content: " →";
  transition: margin var(--dur) var(--ease);
}

.route-card .route-link:hover::after {
  margin-left: 4px;
}

/* --------------------------------------------------------------------------
   8. 镜像清单：卡片
   -------------------------------------------------------------------------- */
.mirror-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.mirror-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent, var(--line-strong));
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.mirror-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}

.mirror-card[data-status="direct"] {
  --accent: var(--green);
}

.mirror-card[data-status="verify"] {
  --accent: var(--yellow);
}

.mirror-card[data-status="tool"] {
  --accent: var(--blue);
}

.mirror-card[data-status="retry"] {
  --accent: var(--red);
}

.mirror-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.mirror-no {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.mirror-type {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.mirror-host {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.3vw, 1.65rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.035em;
  word-break: break-all;
}

.mirror-url {
  margin: 0 0 16px;
  padding: 7px 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 5px;
  background: var(--cream-2);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  word-break: break-all;
}

.mirror-desc {
  margin: 0 0 18px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.75;
}

.mirror-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 0 0 20px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.mirror-meta div {
  min-width: 0;
}

.mirror-meta dt {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.mirror-meta dd {
  margin: 2px 0 0;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.55;
}

.mirror-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.mirror-actions .manual-hint {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.list-note {
  margin: 20px 0 0;
  padding: 12px 16px;
  border-left: 3px solid var(--yellow);
  background: rgba(245, 205, 32, 0.12);
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   9. 抽测方法
   -------------------------------------------------------------------------- */
.method-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.method-intro h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.method-intro p {
  color: var(--ink-2);
}

.method-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.method-facts li {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.method-facts strong {
  display: block;
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.method-facts span {
  display: block;
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.6;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.check-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.check-list .k {
  color: var(--red-deep);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.check-list strong {
  display: block;
  margin-bottom: 3px;
  font-size: 15px;
}

.check-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.status-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.status-legend div {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream-2);
}

.status-legend strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
}

.status-legend span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.caveat {
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid rgba(230, 0, 18, 0.22);
  border-radius: var(--radius);
  background: var(--red-soft);
  color: #6d1b15;
  font-size: 13px;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   10. 深绿阅读区
   -------------------------------------------------------------------------- */
.section--forest {
  position: relative;
  overflow: hidden;
}

.section--forest::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -60px;
  width: 300px;
  height: 300px;
  border: 52px solid rgba(245, 205, 32, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.section--forest > .container {
  position: relative;
  z-index: 1;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.step {
  padding-top: 18px;
  border-top: 1px solid rgba(243, 231, 215, 0.3);
}

.step-no {
  display: block;
  margin-bottom: 10px;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.step p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.tag-chip {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(243, 231, 215, 0.34);
  border-radius: var(--pill);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.forest-note {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(243, 231, 215, 0.22);
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   11. 账号与事实卡
   -------------------------------------------------------------------------- */
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 56px;
  align-items: start;
}

.split-grid h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.fact-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 10px 10px 0 rgba(136, 129, 26, 0.14);
}

.fact-card::after {
  content: "CHECKED";
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 4px 9px;
  border: 1px solid var(--green);
  border-radius: 3px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  transform: rotate(3deg);
}

.fact-card h3 {
  margin-bottom: 18px;
  font-size: 1.2rem;
}

.fact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fact-list li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  margin: 0;
  padding: 12px 0;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  line-height: 1.7;
}

.fact-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.fact-list dt,
.fact-list .k {
  color: var(--muted);
  font-weight: 700;
}

.fact-list .v {
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   12. 安全卡片
   -------------------------------------------------------------------------- */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.safety-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition:
    transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.safety-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.safety-icon {
  display: grid;
  place-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red-deep);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
}

.safety-card h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.safety-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.safety-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--red-deep);
  color: #fff;
}

.safety-banner strong {
  flex: none;
  color: var(--yellow);
  font-size: 1.05rem;
}

.safety-banner span {
  font-size: 13.5px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   13. 对照表
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.7;
}

caption {
  padding: 14px 20px;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}

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

th {
  background: var(--cream);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: rgba(245, 205, 32, 0.07);
}

td strong {
  color: var(--red-deep);
}

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

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

.faq-item summary {
  position: relative;
  display: block;
  padding: 20px 46px 20px 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.55;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::marker {
  content: "";
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 2px;
  color: var(--red);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform var(--dur) var(--ease);
}

.faq-item[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}

.faq-item[open] summary {
  color: var(--red-deep);
}

.faq-answer {
  max-width: 78ch;
  padding: 0 36px 22px 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.8;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   15. 原则与 CTA
   -------------------------------------------------------------------------- */
.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.principle {
  padding: 22px 20px;
  border-left: 3px solid var(--red);
  background: rgba(255, 253, 248, 0.5);
}

.principle .p-no {
  display: block;
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.principle h3 {
  margin: 8px 0 6px;
  font-size: 1.05rem;
}

.principle p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.cta {
  position: relative;
  overflow: hidden;
  padding: 76px 0;
  background: var(--red-deep);
  color: #fff;
}

.cta::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -40px;
  width: 380px;
  height: 380px;
  border: 54px solid rgba(245, 205, 32, 0.2);
  border-radius: 50%;
}

.cta::after {
  content: "";
  position: absolute;
  left: -70px;
  bottom: -120px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta h2 {
  text-wrap: balance;
  margin-bottom: 10px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
}

.cta p {
  max-width: 60ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14.5px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: none;
}

/* --------------------------------------------------------------------------
   16. 页脚
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 64px 0 28px;
  background: #2a2320;
  color: #e8dccd;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
}

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

.footer-brand .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.footer-brand .brand-name {
  color: #fff;
  font-size: 20px;
}

.footer-brand .brand-ao3 {
  color: var(--yellow);
}

.footer-brand .brand-sub {
  color: #a99a8c;
}

.footer-desc {
  max-width: 42ch;
  margin: 0 0 18px;
  color: #b9aa9b;
  font-size: 13px;
  line-height: 1.8;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border: 1px solid rgba(245, 205, 32, 0.36);
  border-radius: var(--pill);
  color: var(--yellow);
  font-size: 11px;
  letter-spacing: 0.03em;
}

.footer-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
}

.site-footer h3 {
  margin: 0 0 16px;
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  display: inline-block;
  padding: 4px 0;
  color: #e8dccd;
  font-size: 13.5px;
  line-height: 1.6;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--yellow);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #a99a8c;
  font-size: 11.5px;
  line-height: 1.7;
}

.footer-bottom p {
  max-width: 74ch;
  margin: 0;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  flex: none;
}

.footer-legal-links a {
  color: #d5c7b8;
  font-size: 11.5px;
}

.footer-legal-links a:hover {
  color: var(--yellow);
}

/* --------------------------------------------------------------------------
   17. 内页：页头、文档布局、目录
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -70px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(245, 205, 32, 0.26);
  pointer-events: none;
}

.page-hero > .container {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--red-deep);
  text-decoration: underline;
}

.breadcrumb span[aria-hidden] {
  color: var(--line-strong);
}

.page-hero h1 {
  max-width: 1000px;
  text-wrap: balance;
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.05em;
}

.page-hero .lead {
  max-width: 760px;
  margin: 0;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 12px;
}

.page-meta li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.page-meta li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
}

.doc-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding: 64px 0 96px;
}

.toc {
  position: sticky;
  top: 100px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.62);
}

.toc h2 {
  margin-bottom: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  margin: 0;
  counter-increment: toc;
}

.toc a {
  position: relative;
  display: block;
  padding: 7px 0 7px 28px;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
}

.toc li:last-child a {
  border-bottom: 0;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 7px;
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.toc a:hover {
  color: var(--red-deep);
  text-decoration: underline;
}

.prose {
  max-width: 820px;
  min-width: 0;
}

.prose > h2 {
  text-wrap: balance;
  margin: 64px 0 18px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  scroll-margin-top: 100px;
}

.prose > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose h3 {
  margin: 32px 0 10px;
  font-size: 1.18rem;
  scroll-margin-top: 100px;
}

.prose h4 {
  margin: 24px 0 8px;
  font-size: 1rem;
}

.prose p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.85;
}

.prose ul,
.prose ol {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.85;
}

.prose li {
  margin: 7px 0;
}

.prose li::marker {
  color: var(--red);
  font-weight: 700;
}

.prose a {
  font-weight: 600;
}

.prose .lead {
  margin-bottom: 28px;
}

.prose table {
  margin: 20px 0;
}

.prose blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--red);
  background: var(--paper);
  color: var(--ink-2);
  font-size: 14.5px;
}

.prose blockquote p {
  margin: 0;
}

.callout {
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.8;
}

.callout strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.callout--warn {
  border-left-color: var(--red);
  background: var(--red-soft);
  color: #6d1b15;
}

.callout--warn strong {
  color: #7d1a12;
}

.callout--note {
  border-left-color: var(--blue);
  background: #eef8fb;
  color: #214f5c;
}

.callout--note strong {
  color: #1f5566;
}

.callout p:last-child {
  margin-bottom: 0;
}

.number-list {
  margin: 20px 0;
  padding: 0;
  list-style: none;
  counter-reset: num;
}

.number-list li {
  position: relative;
  margin: 0;
  padding: 16px 0 16px 52px;
  border-bottom: 1px solid var(--line);
  counter-increment: num;
}

.number-list li:last-child {
  border-bottom: 0;
}

.number-list li::before {
  content: counter(num, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 17px;
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.number-list strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 15px;
}

.number-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.mini-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.mini-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 14px;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.page-end-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   18. FAQ 页
   -------------------------------------------------------------------------- */
.faq-page {
  padding: 56px 0 96px;
}

.faq-page > p.muted a {
  display: inline-block;
  white-space: nowrap;
}

.faq-category {
  margin-top: 52px;
}

.faq-category:first-child {
  margin-top: 0;
}

.faq-category > h2 {
  text-wrap: balance;
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  scroll-margin-top: 100px;
}

.faq-category > h2 span {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.faq-category > p {
  margin: 14px 0 20px;
  color: var(--muted);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   19. 关于页
   -------------------------------------------------------------------------- */
.about-layout {
  padding: 64px 0 96px;
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 48px;
  align-items: start;
  margin-bottom: 56px;
}

.about-intro h2 {
  text-wrap: balance;
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.about-stamp {
  padding: 28px;
  border: 2px solid var(--red);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--red-deep);
  text-align: center;
  transform: rotate(-1.5deg);
}

.about-stamp strong {
  display: block;
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
}

.about-stamp span {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.about-stamp small {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.about-sections {
  max-width: 900px;
}

.about-sections h2 {
  text-wrap: balance;
  margin: 48px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  scroll-margin-top: 100px;
}

.about-sections h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.about-sections h3 {
  margin: 26px 0 8px;
  font-size: 1.12rem;
}

.about-sections p,
.about-sections li {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.85;
}

.about-sections ul,
.about-sections ol {
  padding-left: 1.25em;
}

.about-sections table {
  margin: 18px 0;
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 24px 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.contact-card strong {
  display: block;
  margin-bottom: 3px;
  font-size: 15px;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.contact-card a {
  font-family: var(--font-mono);
  font-size: 14px;
}

.ref-list {
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.ref-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13.5px;
}

.ref-list li:last-child {
  border-bottom: 0;
}

.ref-list span {
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   20. 中间确认页
   -------------------------------------------------------------------------- */
.go-main {
  min-height: 60vh;
  padding: 64px 0 96px;
}

.go-card {
  max-width: 760px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-lift);
}

.go-card[hidden] {
  display: none;
}

.go-head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 34px 36px 28px;
  border-bottom: 1px solid var(--line);
}

.go-icon {
  display: grid;
  place-content: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red-deep);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
}

.go-head h1 {
  text-wrap: balance;
  margin-bottom: 8px;
  font-size: clamp(1.7rem, 3.6vw, 2.35rem);
  line-height: 1.25;
}

.go-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.go-body {
  padding: 30px 36px 36px;
}

.target-box {
  padding: 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--cream-2);
}

.target-row {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.target-row:first-child {
  padding-top: 0;
}

.target-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.target-row dt {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.target-row dd {
  margin: 0;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.7;
  word-break: break-word;
}

.target-host {
  color: var(--red-deep) !important;
  font-family: var(--font-mono);
  font-size: clamp(1.15rem, 2.8vw, 1.45rem) !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  word-break: break-all !important;
}

.target-url {
  font-family: var(--font-mono);
  font-size: 12px !important;
  word-break: break-all !important;
}

.go-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.go-actions .btn-primary {
  flex: 1 1 240px;
}

.go-actions .btn-secondary {
  flex: 0 1 auto;
}

.go-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.go-why {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.go-why h2 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.go-why ul {
  margin: 0;
  padding-left: 1.15em;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

.go-why li {
  margin: 5px 0;
}

.go-why li::marker {
  color: var(--red);
}

.go-error .go-icon {
  background: #f7dad6;
}

.go-error .go-actions {
  margin-top: 22px;
}

.go-error h2 {
  margin-bottom: 8px;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.go-error p {
  color: var(--ink-2);
  font-size: 14px;
}

.go-error .note {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--red);
  background: var(--red-soft);
  color: #6d1b15;
  font-size: 13px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   21. 404
   -------------------------------------------------------------------------- */
.error-page {
  position: relative;
  overflow: hidden;
  padding: 96px 0 112px;
  text-align: center;
}

.error-page::before {
  content: "404";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  color: rgba(230, 0, 18, 0.09);
  font-family: var(--font-display);
  font-size: clamp(12rem, 34vw, 26rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.1em;
  transform: translate(-50%, -54%);
  pointer-events: none;
}

.error-page > .container {
  position: relative;
  z-index: 1;
}

.error-page .eyebrow {
  justify-content: center;
}

.error-page h1 {
  margin-bottom: 16px;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}

.error-page p {
  max-width: 620px;
  margin: 0 auto 28px;
  color: var(--ink-2);
  font-size: 15px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.error-links a {
  color: var(--ink-2);
}

.error-links a:hover {
  color: var(--red-deep);
}

/* --------------------------------------------------------------------------
   22. 返回顶部、Toast、防复制
   -------------------------------------------------------------------------- */
.backtop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  display: grid;
  place-content: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--ink-2);
  color: var(--cream);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity var(--dur) var(--ease),
    visibility var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.backtop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.backtop:hover {
  background: var(--red-deep);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  max-width: calc(100% - 40px);
  padding: 11px 20px;
  border-radius: var(--pill);
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 14px);
  transition:
    opacity var(--dur) var(--ease),
    visibility var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.no-copy {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  cursor: default;
}

.no-copy-flash {
  animation: no-copy-flash 0.6s var(--ease);
}

@keyframes no-copy-flash {
  0%,
  100% {
    background-color: transparent;
  }
  35% {
    background-color: rgba(245, 205, 32, 0.55);
  }
}

.ad-slot {
  margin: 32px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-align: center;
}

.ad-slot:empty {
  display: none;
}

.ad-label {
  padding: 6px 12px 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   23. 响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .container {
    width: calc(100% - 40px);
  }

  .container--narrow {
    width: min(820px, calc(100% - 40px));
  }

  .hero-grid {
    gap: 44px;
  }

  .main-nav a {
    padding-inline: 9px;
    font-size: 14px;
  }

  .main-nav .nav-cta {
    padding-inline: 14px;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 52px;
  }

  .route-ticket {
    max-width: 560px;
    transform: rotate(0.8deg);
  }

  .route-ticket:hover {
    transform: translateY(-3px);
  }

  .hero-strip {
    margin-top: 48px;
  }

  .mirror-grid {
    gap: 20px;
  }

  .method-grid,
  .split-grid,
  .about-intro {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
  }

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

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

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  .main-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .header-inner {
    min-height: 70px;
  }

  .doc-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 48px;
  }

  .toc {
    position: static;
  }

  .toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
  }

  .section {
    padding: 76px 0;
  }

  .section--tight {
    padding: 60px 0;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .section-head__aside {
    text-align: left;
  }

  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  .cta-actions {
    flex: initial;
  }
}

@media (max-width: 760px) {
  body {
    background-attachment: scroll;
  }

  .container {
    width: calc(100% - 32px);
  }

  .container--narrow {
    width: calc(100% - 32px);
  }

  .brand-name {
    font-size: 20px;
  }

  .brand-sub {
    font-size: 9px;
  }

  .hero-title {
    font-size: clamp(3rem, 13vw, 4.6rem);
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-actions .btn {
    flex: 1 1 180px;
  }

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

  .stat {
    padding: 18px 16px;
    border-top: 1px solid var(--line);
  }

  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-top: 0;
  }

  .stat:nth-child(odd) {
    border-left: 0;
  }

  .route-grid,
  .mirror-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .section--tight {
    padding: 52px 0;
  }

  .method-facts,
  .status-legend,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .step-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    align-items: start;
  }

  .step-no {
    margin: 0;
    font-size: 38px;
  }

  .safety-grid {
    grid-template-columns: 1fr;
  }

  .safety-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .page-hero {
    padding: 48px 0 38px;
  }

  .page-hero h1 {
    font-size: clamp(2.1rem, 8vw, 3rem);
  }

  .prose > h2 {
    margin-top: 48px;
  }

  .go-main {
    padding: 40px 0 64px;
  }

  .go-head {
    padding: 26px 22px 22px;
  }

  .go-body {
    padding: 24px 22px 28px;
  }

  .target-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .target-row dt {
    margin-top: 4px;
  }

  .go-actions .btn {
    flex: 1 1 100%;
  }

  .about-stamp {
    max-width: 320px;
  }
}

@media (max-width: 540px) {
  .header-inner {
    gap: 12px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 19px;
  }

  .hero {
    padding-top: 38px;
  }

  .hero-title {
    font-size: clamp(2.75rem, 15vw, 4rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    flex-basis: auto;
    width: 100%;
  }

  .hero-facts {
    gap: 6px 14px;
  }

  .route-ticket {
    padding: 24px 20px 22px;
    box-shadow: 7px 7px 0 rgba(230, 0, 18, 0.1);
  }

  .ticket-big strong {
    font-size: 68px;
  }

  .ticket-stamp {
    right: -6px;
    bottom: 18px;
    width: 78px;
    height: 78px;
    font-size: 8px;
  }

  .stat strong {
    font-size: 28px;
  }

  .mirror-card {
    padding: 20px;
  }

  .mirror-meta {
    grid-template-columns: 1fr;
  }

  .mirror-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .mirror-actions .btn {
    width: 100%;
  }

  .section-head h2 {
    font-size: 1.8rem;
  }

  .cta {
    padding: 56px 0;
  }

  .cta-actions {
    width: 100%;
    flex-direction: column;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: auto;
  }

  .toc ol {
    grid-template-columns: 1fr;
  }

  .target-host {
    font-size: 1.1rem !important;
  }

  .error-actions {
    flex-direction: column;
  }

  .error-actions .btn {
    width: 100%;
  }

  .backtop {
    right: 16px;
    bottom: 16px;
  }
}

/* --------------------------------------------------------------------------
   24. 偏好与打印
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

@media print {
  .site-header,
  .site-footer,
  .backtop,
  .toast,
  .ad-slot,
  .go-actions,
  .hero-actions,
  .page-end-actions {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .section,
  .hero,
  .page-hero {
    padding: 20px 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
