/* ============================================================
   凹3镜像 ao3jx.com · 设计系统
   参考 Airbnb Design System 气质：
   中性底 + 单一强调色 #ff385c、圆角 8/14/32/9999、
   4px 间距刻度、多层级柔和阴影、摄影留白感
   ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
  /* 颜色 */
  --primary: #ff385c;
  --primary-dark: #e00b41;
  --primary-soft: #fff0f3;
  --primary-softer: #fff7f8;
  --accent-ao3: #9e1f1f;          /* AO3 酒红点缀，仅徽标/极少量强调 */
  --bg: #ffffff;
  --surface: #f2f2f2;
  --surface-2: #fafafa;
  --text: #222222;
  --text-muted: #6a6a6a;
  --text-faint: #b0b0b0;
  --border: #dddddd;
  --border-strong: #b0b0b0;

  /* 字体 */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
          "Helvetica Neue", Helvetica, Arial, "Apple Color Emoji",
          "Segoe UI Emoji", sans-serif;

  /* 字号 */
  --fs-hero: clamp(1.75rem, 3.4vw + 1rem, 2.75rem);
  --fs-h2: clamp(1.25rem, 1.4vw + .9rem, 1.625rem);
  --fs-h3: 1rem;
  --fs-body: .875rem;    /* 14px */
  --fs-small: .75rem;    /* 12px */
  --fs-tiny: .6875rem;   /* 11px */

  /* 间距（4px 刻度） */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-7: 32px; --sp-8: 40px; --sp-9: 48px;

  /* 圆角 */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-search: 32px;
  --r-full: 9999px;

  /* 阴影（仅浮层/交互元素） */
  --sh-card: rgba(0,0,0,.04) 0 0 0 1px, rgba(0,0,0,.12) 0 2px 8px;
  --sh-bar: rgba(0,0,0,.02) 0 0 0 1px, rgba(0,0,0,.04) 0 2px 6px, rgba(0,0,0,.06) 0 6px 16px;
  --sh-pop: rgba(0,0,0,.02) 0 0 0 1px, rgba(0,0,0,.1) 0 8px 24px;
  --sh-btn: rgba(255,56,92,.25) 0 6px 18px;

  --header-h: 64px;
  --maxw: 1180px;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: inline-block; vertical-align: middle; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding-left: 1.2em; }

h1, h2, h3, h4 { line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: var(--fs-h3); }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--primary-soft); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--sp-5); }
@media (min-width: 744px){ .container { padding: 0 var(--sp-6); } }

section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- 通用块 ---------- */
.section { padding: var(--sp-9) 0; }
.section-tight { padding: var(--sp-7) 0; }
.section-alt { background: var(--surface-2); border-block: 1px solid var(--border); }

.section-head { max-width: 780px; margin-bottom: var(--sp-7); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-title { font-size: var(--fs-h2); }
.section-sub { margin-top: var(--sp-2); color: var(--text-muted); font-size: var(--fs-body); }

.kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-small); font-weight: 600; color: var(--primary);
  background: var(--primary-soft); padding: 5px 12px;
  border-radius: var(--r-full); margin-bottom: var(--sp-3);
  letter-spacing: .02em;
}
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* 面包屑 */
.crumbs { font-size: var(--fs-small); color: var(--text-muted); padding: var(--sp-4) 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--text-faint); }
.crumbs a:hover { color: var(--text); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: var(--fs-body); font-weight: 600;
  line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap;
  border: 1px solid transparent; border-radius: var(--r-full);
  padding: 13px 22px; min-height: 44px;
  transition: background-color .2s ease-out, color .2s ease-out,
              border-color .2s ease-out, box-shadow .2s ease-out,
              transform .1s ease-out;
}
.btn:active { transform: scale(.97); }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--sh-btn); }

.btn-secondary { background: var(--bg); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface); }

.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--surface); }

.btn-ao3 { background: var(--accent-ao3); color: #fff; }
.btn-ao3:hover { background: #7d1515; }

.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn-sm { padding: 9px 16px; min-height: 36px; font-size: var(--fs-small); }
.btn-block { width: 100%; }
.btn[disabled] { background: var(--border); color: #fff; cursor: not-allowed; box-shadow: none; }

.btn .ic { width: 16px; height: 16px; }
svg.ic { width: 16px; height: 16px; flex: none; }
.backtop .ic { width: 20px; height: 20px; }

/* 文字链 */
.tlink { color: var(--text); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.tlink:hover { color: var(--text-muted); }
.accent-link { color: var(--primary); font-weight: 600; text-decoration: none; }
.accent-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 徽标/状态点 ---------- */
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot-ok { background: #0aa64e; box-shadow: 0 0 0 3px rgba(10,166,78,.15); }
.dot-warn { background: #f5a623; box-shadow: 0 0 0 3px rgba(245,166,35,.15); }
.dot-off { background: var(--text-faint); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; font-size: var(--fs-tiny); font-weight: 600;
  line-height: 1.4; border-radius: var(--r-full);
  background: var(--bg); color: var(--text);
  box-shadow: rgba(0,0,0,.06) 0 0 0 1px, rgba(0,0,0,.08) 0 1px 3px;
}
.badge-new { background: var(--primary); color: #fff; box-shadow: none; }
.badge-ao3 { background: var(--primary-soft); color: var(--primary); box-shadow: none; }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: var(--sp-6); height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--primary), #b3002d);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600; letter-spacing: -0.5px;
  box-shadow: rgba(255,56,92,.35) 0 4px 12px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 1rem; font-weight: 600; color: var(--text); }
.brand-sub { font-size: var(--fs-tiny); color: var(--text-muted); letter-spacing: .06em; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 8px 14px; font-size: var(--fs-body); font-weight: 500;
  color: var(--text-muted); text-decoration: none; border-radius: var(--r-full);
  transition: color .2s, background-color .2s;
}
.site-nav a:hover { color: var(--text); background: var(--surface); }
.site-nav a.active { color: var(--text); font-weight: 600; }
.site-nav a.active::after { content: ""; display: block; height: 2px; width: 16px; margin: 4px auto -10px; background: var(--primary); border-radius: 2px; }
.site-nav .nav-cta-btn {
  margin-left: var(--sp-2); color: #fff; background: var(--primary);
  padding: 10px 18px; font-weight: 600;
}
.site-nav .nav-cta-btn:hover { color: #fff; background: var(--primary-dark); }

.menu-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; flex: none;
  background: var(--surface); border: none; border-radius: 50%;
  cursor: pointer; align-items: center; justify-content: center; color: var(--text);
}
.menu-toggle .ic { width: 20px; height: 20px; }

/* 移动端抽屉导航 */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 90;
  background: rgba(17,17,17,.4);
}
.mobile-nav.open { display: block; }
.mobile-nav-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 360px);
  background: var(--bg); padding: var(--sp-6);
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: var(--sh-pop); overflow-y: auto;
}
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-4); }
.mobile-nav a.mlink {
  padding: 14px 12px; font-size: 1rem; font-weight: 500; text-decoration: none;
  border-radius: var(--r-md); color: var(--text);
}
.mobile-nav a.mlink:hover, .mobile-nav a.mlink.active { background: var(--surface-2); }
.mobile-nav .mlink-cta { background: var(--primary); color: #fff !important; text-align: center; font-weight: 600; margin-top: var(--sp-4); }
.mobile-nav .mlink-cta:hover { background: var(--primary-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 88% -10%, rgba(255,56,92,.09), transparent 60%),
    radial-gradient(900px 460px at -10% 110%, rgba(255,56,92,.06), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero-inner { padding: clamp(48px, 7vw, 96px) 0 clamp(44px, 6vw, 84px); position: relative; z-index: 1; }
.hero-title { font-size: var(--fs-hero); max-width: 15em; }
.hero-title .hl { color: var(--primary); }
.hero-sub { margin-top: var(--sp-5); max-width: 34em; color: var(--text-muted); font-size: 1rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-7); }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: var(--sp-7);
  margin-top: var(--sp-9); padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
}
.stat-item { display: flex; align-items: baseline; gap: 10px; }
.stat-num { font-size: 1.625rem; font-weight: 600; color: var(--text); letter-spacing: -.02em; }
.stat-num small { font-size: 1rem; color: var(--primary); }
.stat-label { font-size: var(--fs-small); color: var(--text-muted); max-width: 9em; }

/* 漂浮装饰卡片（Airbnb 式圆角图块） */
.hero-art { position: absolute; inset: 0; pointer-events: none; }
@media (min-width: 1080px){
  .hero-art .float-card { position: absolute; display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-bar); padding: 16px 18px; right: -20px; top: 12%; animation: bob 6s ease-in-out infinite; }
  .hero-art .float-card.b { top: auto; bottom: 8%; right: 90px; animation-delay: -3s; }
  .hero-art .fc-row { display: flex; align-items: center; gap: 10px; }
  .hero-art .fc-ic { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
  .hero-art .fc-line { width: 96px; height: 8px; border-radius: 4px; background: var(--surface); }
  .hero-art .fc-line.s { width: 64px; }
  .hero-art .fc-line.hot { background: linear-gradient(90deg, var(--primary), #ff8fa3); }
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- 快捷入口 tiles ---------- */
.tiles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: var(--sp-4); }
.tile {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: var(--sp-6);
  text-decoration: none; color: inherit;
  transition: box-shadow .2s ease-out, border-color .2s ease-out, transform .2s ease-out;
}
.tile:hover { border-color: var(--border-strong); box-shadow: var(--sh-card); transform: translateY(-2px); }
.tile-ic { width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; }
.tile-ic .ic { width: 22px; height: 22px; }
.tile h3 { font-size: 1rem; }
.tile p { color: var(--text-muted); font-size: var(--fs-small); flex: 1; }
.tile .tile-go { color: var(--primary); font-weight: 600; font-size: var(--fs-small); display: inline-flex; align-items: center; gap: 4px; }
.tile:hover .tile-go { text-decoration: underline; text-underline-offset: 3px; }

/* 色卡辅助类 */
.tint-rose { background: var(--primary-soft); color: var(--primary); }
.tint-cream { background: #fdf1e3; color: #a05a1a; }
.tint-lav { background: #f0eefb; color: #5b4bc4; }
.tint-mint { background: #e5f6ee; color: #147a4e; }
.tint-sky { background: #e8f3fb; color: #1c6fb0; }
.tint-ao3 { background: #f7e8e8; color: var(--accent-ao3); }

/* ---------- 镜像列表 ---------- */
.mirror-toolbar {
  display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center;
  justify-content: space-between; margin-bottom: var(--sp-6);
}
.searchbox {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-search); padding: 6px 8px 6px 18px;
  min-height: 48px; box-shadow: rgba(0,0,0,.02) 0 0 0 1px, rgba(0,0,0,.03) 0 1px 4px;
  transition: box-shadow .2s ease-in-out;
  flex: 1 1 240px; max-width: 380px;
}
.searchbox:focus-within { box-shadow: rgba(0,0,0,.05) 0 0 0 1px, rgba(0,0,0,.06) 0 4px 12px; }
.searchbox .ic { width: 16px; height: 16px; color: var(--text-faint); flex: none; }
.searchbox input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font-family: inherit; font-size: var(--fs-body); color: var(--text);
}
.searchbox input::placeholder { color: var(--text-faint); }
.searchbox .btn { flex: none; }

.legend { display: flex; flex-wrap: wrap; gap: var(--sp-4); font-size: var(--fs-small); color: var(--text-muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

.mirror-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--sp-6); }
.mirror-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: var(--sp-6); transition: box-shadow .2s, transform .2s, border-color .2s;
}
.mirror-card:hover { border-color: var(--border-strong); box-shadow: var(--sh-card); transform: translateY(-2px); }
.mc-head { display: flex; align-items: flex-start; gap: 12px; }
.mc-fav { position: absolute; top: 14px; right: 14px; }
.mc-icon {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 600; color: #fff;
  background: linear-gradient(140deg, var(--primary), #c4003a);
  box-shadow: rgba(255,56,92,.25) 0 4px 10px;
}
.mirror-card .mc-icon.alt1 { background: linear-gradient(140deg, #5b4bc4, #2f2590); box-shadow: rgba(91,75,196,.3) 0 4px 10px; }
.mirror-card .mc-icon.alt2 { background: linear-gradient(140deg, #0e9f6e, #075d41); box-shadow: rgba(14,159,110,.3) 0 4px 10px; }
.mirror-card .mc-icon.alt3 { background: linear-gradient(140deg, #c0392b, #7d1515); box-shadow: rgba(192,57,43,.3) 0 4px 10px; }
.mc-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 1rem; font-weight: 600; }
.mc-domain { display: block; font-size: var(--fs-small); color: var(--primary); font-weight: 600; word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.mc-desc { color: var(--text-muted); font-size: var(--fs-small); line-height: 1.65; flex: 1; }
.mc-meta { font-size: var(--fs-tiny); color: var(--text-faint); }
.mc-actions { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.mc-actions .btn { flex: 1 1 auto; }

/* 镜像目标网址/标题:禁止选中、禁止复制(含移动端长按菜单) */
.mc-title,
.mc-domain,
.data-table .domain-cell,
.jt-host,
.copy-lock {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  cursor: default;
}

/* 状态 */
.st-ok, .st-warn, .st-off { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-tiny); font-weight: 600; padding: 3px 10px; border-radius: var(--r-full); }
.st-ok { background: #e7f7ee; color: #0a7a3a; }
.st-warn { background: #fdf3e3; color: #9a6a10; }
.st-off { background: var(--surface); color: var(--text-muted); }

/* 表格（镜像详情页/FAQ） */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg); }
table.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); min-width: 720px; }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table thead th { background: var(--surface-2); font-weight: 600; font-size: var(--fs-tiny); color: var(--text-muted); text-transform: none; letter-spacing: .02em; position: sticky; top: 0; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: var(--primary-softer); }
.data-table td .domain-cell { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text); font-weight: 500; word-break: break-all; }

/* ---------- 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--sp-5); counter-reset: step; }
.step {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: var(--sp-6); position: relative;
}
.step-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--primary);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; margin-bottom: var(--sp-4);
}
.step h3 { margin-bottom: var(--sp-2); }
.step p { color: var(--text-muted); font-size: var(--fs-small); }

/* ---------- 富文本正文 ---------- */
.prose { font-size: var(--fs-body); line-height: 1.85; color: var(--text); }
.prose > h2 { font-size: 1.375rem; margin: var(--sp-8) 0 var(--sp-3); padding-top: var(--sp-3); }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.05rem; margin: var(--sp-6) 0 var(--sp-2); }
.prose p { margin: var(--sp-4) 0; }
.prose ul, .prose ol { margin: var(--sp-3) 0 var(--sp-4); }
.prose li { margin: 6px 0; }
.prose strong { font-weight: 600; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: var(--sp-5) 0; padding: var(--sp-4) var(--sp-5); border-left: 3px solid var(--primary); background: var(--primary-softer); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--text-muted); }
.prose code { background: var(--surface); padding: 2px 7px; border-radius: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; word-break: break-all; }
.prose .table-wrap { margin: var(--sp-5) 0; }

/* 提示框 */
.note, .warn, .tip {
  display: flex; gap: 10px; padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md); margin: var(--sp-5) 0; font-size: var(--fs-body); line-height: 1.7;
}
.note { background: #eef6ff; color: #1c5c92; }
.warn { background: #fdf3e3; color: #8a5a0a; }
.warn-red { background: var(--primary-softer); color: #a31538; }
.tip { background: #e7f7ee; color: #0a6b38; }
.note strong, .warn strong, .tip strong { font-weight: 600; }

/* ---------- FAQ ---------- */
.qa-list { display: flex; flex-direction: column; gap: var(--sp-3); }
details.qa { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg); overflow: hidden; }
details.qa summary {
  list-style: none; cursor: pointer; padding: var(--sp-4) var(--sp-5);
  font-weight: 600; display: flex; align-items: center; gap: 10px;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::before {
  content: "+"; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; transition: transform .2s;
}
details.qa[open] summary::before { content: "−"; background: var(--primary); color: #fff; }
details.qa summary:hover { background: var(--surface-2); }
details.qa .qa-body { padding: 0 var(--sp-5) var(--sp-4) calc(var(--sp-5) + 32px); color: var(--text-muted); font-size: var(--fs-body); line-height: 1.8; }
details.qa .qa-body p { margin: 8px 0; }
details.qa .qa-body ul { margin: 8px 0; }

/* ---------- 文章卡片 ---------- */
.read-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: var(--sp-5); }
.read-card { display: flex; flex-direction: column; gap: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-5); text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.read-card:hover { box-shadow: var(--sh-card); transform: translateY(-2px); }
.read-card .rc-tag { font-size: var(--fs-tiny); font-weight: 600; color: var(--primary); }
.read-card h3 { font-size: 1rem; }
.read-card p { color: var(--text-muted); font-size: var(--fs-small); flex: 1; }
.read-card time, .read-card .rc-meta { font-size: var(--fs-tiny); color: var(--text-faint); }

/* ---------- CTA 带 ---------- */
.cta-band {
  background: linear-gradient(120deg, #3d0000 0%, #7d1515 55%, var(--accent-ao3) 100%);
  color: #fff; border-radius: var(--r-lg); padding: clamp(28px, 5vw, 48px);
  display: flex; flex-wrap: wrap; gap: var(--sp-6); align-items: center; justify-content: space-between;
  margin: var(--sp-9) 0 var(--sp-8);
}
.cta-band h2 { font-size: 1.5rem; }
.cta-band p { color: rgba(255,255,255,.85); margin-top: 6px; max-width: 34em; }
.cta-band .btn-secondary { background: #fff; border-color: #fff; }
.cta-band .btn-secondary:hover { background: var(--primary-soft); }
.cta-band .btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.cta-band .btn-outline-white:hover { background: rgba(255,255,255,.12); }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--border); padding-top: var(--sp-9); font-size: var(--fs-small); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: var(--sp-7); padding-bottom: var(--sp-7); }
.f-brand p { color: var(--text-muted); margin-top: var(--sp-3); line-height: 1.8; }
.f-title { font-size: var(--fs-small); font-weight: 600; margin-bottom: var(--sp-3); color: var(--text); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer ul a { color: var(--text-muted); text-decoration: none; }
.site-footer ul a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  border-top: 1px solid var(--border); padding: var(--sp-4) 0;
  display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; justify-content: space-between;
  color: var(--text-faint); font-size: var(--fs-tiny);
}

/* ---------- 回到顶部 ---------- */
.backtop {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-card); opacity: 0; pointer-events: none;
  transform: translateY(8px); transition: opacity .25s, transform .25s, background-color .2s;
}
.backtop.show { opacity: 1; pointer-events: auto; transform: none; }
.backtop:hover { background: var(--surface); }

/* 轻提示 */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 120; transform: translate(-50%, 16px);
  background: var(--text); color: #fff; padding: 10px 18px; border-radius: var(--r-full);
  font-size: var(--fs-small); opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; box-shadow: var(--sh-pop);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 滚动显现 */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease-out, transform .5s ease-out; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; }
}

/* 正文页双栏布局 */
.layout-2col { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: var(--sp-8); align-items: start; }
.layout-2col > .main-col { min-width: 0; }
.layout-2col > .side-col { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: var(--sp-5); }
.card-soft { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-5); }
.card-soft h3 { font-size: var(--fs-small); margin-bottom: var(--sp-3); text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.card-soft ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.card-soft ul a { color: var(--text-muted); text-decoration: none; font-size: var(--fs-body); }
.card-soft ul a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.page-hero { padding: var(--sp-7) 0 var(--sp-6); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.page-hero h1 { font-size: var(--fs-h2); }
.page-hero .lead { margin-top: var(--sp-2); color: var(--text-muted); max-width: 46em; }

/* 更新日志 */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.timeline li { position: relative; padding: 0 0 var(--sp-5) 28px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 4px solid var(--primary); }
.timeline time { font-weight: 600; font-size: var(--fs-body); }
.timeline p { color: var(--text-muted); font-size: var(--fs-small); margin-top: 2px; }

/* ---------- 跳转中间页 ---------- */
.jump-body { min-height: 100vh; display: flex; flex-direction: column; background: linear-gradient(160deg, #fff 0%, var(--primary-softer) 60%, #fdeef1 100%); }
.jump-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: var(--sp-6); }
.jump-card {
  width: min(560px, 100%); background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--sh-pop); overflow: hidden;
}
.jump-head { background: linear-gradient(120deg, var(--primary), #d0003a); color: #fff; padding: var(--sp-6) var(--sp-7); display: flex; gap: 14px; align-items: center; }
.jump-head .jump-ic { width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.16); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.jump-head h1 { font-size: 1.25rem; }
.jump-head p { font-size: var(--fs-small); opacity: .9; margin-top: 2px; word-break: break-all; }
.jump-body-inner { padding: var(--sp-6) var(--sp-7) var(--sp-7); }
.jump-target {
  display: flex; align-items: center; gap: 12px;
  border: 1px dashed var(--border-strong); border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4); background: var(--surface-2); margin: var(--sp-4) 0;
}
.jump-target .jt-host { font-weight: 600; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; }
.jump-actions { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); flex-wrap: wrap; }
.jump-actions .btn { flex: 1 1 200px; }
.jump-remind { font-size: var(--fs-small); color: var(--text-muted); margin-top: var(--sp-4); line-height: 1.8; }
.jump-backlink { text-align: center; padding: var(--sp-4); font-size: var(--fs-small); }

/* 404 */
.err-body { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--sp-8) var(--sp-6); gap: var(--sp-4); }
.err-code { font-size: clamp(4rem, 14vw, 7rem); font-weight: 600; letter-spacing: -.03em; color: var(--primary); line-height: 1; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px){
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .layout-2col { grid-template-columns: 1fr; }
  .layout-2col > .side-col { position: static; }
}
@media (max-width: 950px){
  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 743px){
  .section { padding: var(--sp-7) 0; }
  .hero-stats { gap: var(--sp-5); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .jump-head { padding: var(--sp-5); }
  .jump-body-inner { padding: var(--sp-5); }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .searchbox { max-width: none; }
}
