/* =========================================================
   ao3链接入口 · ao3lianjierukou.net
   全站样式 · 参考 Meisei 设计系统
   （深红 #7f3033 / 白底 / 浅粉卡片 / 柔和阴影 / 0.3s ease-out）
   ========================================================= */

/* ---------- 1. 设计变量 ---------- */
:root {
  --c-primary: #7f3033;
  --c-primary-hover: #6a282b;
  --c-bg: #ffffff;
  --c-text: #222222;
  --c-muted: #666666;
  --c-inverse: #ffffff;
  --c-surface: #f9f3f3;
  --c-border: #e2e2e2;
  --c-blue: #00add3;
  --c-orange: #ef7a00;
  --c-peri: #b0b6dc;
  --c-pink: #ee84b2;
  --c-rose: #b04f61;
  --c-visited: #ae6d90;

  --shadow-card: rgba(69, 27, 27, 0.08) 0 0 28.83px 0;
  --shadow-hover: rgba(69, 27, 27, 0.08) 0 0 48.05px 0;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 19px;
  --r-xl: 50px;
  --r-full: 9999px;

  --f-display: 'Zen Kaku Gothic Antique', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --f-body: 'Inter', 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --f-mono: 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;

  --t: 0.3s ease-out;
}

/* ---------- 2. 基础与排版 ---------- */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.25;
  color: var(--c-text);
  margin: 0 0 16px;
}

h1 { font-size: clamp(24px, 5vw, 32px); color: var(--c-primary); }
h2 { font-size: clamp(24px, 4vw, 32px); }
h3 { font-size: clamp(19px, 2.5vw, 22px); }

p { margin: 0 0 16px; }

a { color: var(--c-primary); }
a:hover { opacity: 0.6; }

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

:focus-visible {
  outline: 2px solid rgba(127, 48, 51, 0.4);
  outline-offset: 2px;
}

::selection { background: rgba(127, 48, 51, 0.12); }

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

.skip-link {
  position: absolute;
  left: 8px; top: -48px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--c-primary);
  color: var(--c-inverse);
  border-radius: var(--r-sm);
  text-decoration: none;
}
.skip-link:focus { top: 8px; color: var(--c-inverse); }

/* ---------- 3. 布局 ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 64px 0; }
.section-alt { background: var(--c-surface); }

.section-head { max-width: 760px; margin-bottom: 32px; }
.section-head h2 { margin-bottom: 12px; }
.section-lead { color: var(--c-muted); margin-bottom: 0; }

/* ---------- 4. 通用组件 ---------- */

/* 按钮（主） */
.btn {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.4;
  padding: 12px 24px;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--t), color var(--t), border-color var(--t),
    box-shadow var(--t), transform var(--t);
}

.btn-primary {
  background: var(--c-primary);
  color: var(--c-inverse);
}
.btn-primary:hover {
  background: var(--c-primary-hover);
  color: var(--c-inverse);
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.btn-primary:active { transform: translateY(0); box-shadow: none; }

.btn-secondary {
  background: var(--c-bg);
  color: var(--c-primary);
  border: 1px solid var(--c-primary);
}
.btn-secondary:hover {
  background: var(--c-primary);
  color: var(--c-inverse);
  border-color: var(--c-primary);
  opacity: 1;
}
.btn-secondary:active { background: var(--c-primary-hover); }

.btn-sm { padding: 8px 18px; font-size: 14px; }

/* 卡片 */
.card {
  background: var(--c-bg);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  padding: 24px;
  transition: box-shadow var(--t);
}
.card:hover { box-shadow: var(--shadow-hover); }

.card-feature {
  background: var(--c-surface);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  padding: 24px;
  transition: border-color var(--t);
}
.card-feature:hover { border-color: var(--c-primary); }

/* 正文链接 */
.link-standard { color: var(--c-primary); text-decoration: underline; }
.link-standard:visited { color: var(--c-visited); }

/* 提示块 */
.callout {
  background: var(--c-surface);
  border-left: 4px solid var(--c-primary);
  border-radius: var(--r-sm);
  padding: 16px 20px;
}
.callout p:last-child { margin-bottom: 0; }

/* 面包屑 */
.breadcrumb {
  padding: 0;
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--c-muted);
  list-style: none;
}
.breadcrumb li { display: inline-block; }
.breadcrumb li + li::before { content: '›'; margin: 0 8px; color: var(--c-border); }

/* 广告位：未配置代码时不占空间 */
.ad-slot { display: none; margin: 32px auto; text-align: center; }
.ad-slot--on { display: block; }

/* 网址防复制（镜像列表与所有展示域名/网址的区域） */
.no-copy {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* ---------- 5. 顶部提示条与页头 ---------- */
.notice-bar {
  background: var(--c-primary);
  color: var(--c-inverse);
  font-size: 12px;
  line-height: 1.5;
}
.notice-bar p { margin: 0; padding: 8px 0; }
.notice-bar strong { font-weight: 700; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--f-display);
  font-size: 20px;
  color: var(--c-primary);
  white-space: nowrap;
}
.logo:hover { opacity: 1; }
.logo-mark { flex: none; width: 28px; height: 28px; }
.logo-text b { font-weight: 700; }
.logo-text i { font-style: normal; color: var(--c-text); }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  font-size: 16px;
  color: var(--c-text);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  transition: opacity var(--t), color var(--t);
}
.main-nav a:hover { opacity: 0.6; }
.main-nav a[aria-current="page"] { color: var(--c-primary); font-weight: 700; }

/* 汉堡按钮（≤768px 显示） */
.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex: none;
  z-index: 12;
  color: var(--c-text);
  transition: background-color var(--t), color var(--t);
}
.nav-toggle:hover { background: var(--c-surface); color: var(--c-primary); }

/* 三横 / 关闭：两个独立 SVG 图标整体切换（非 CSS 拼接，绝无错位） */
.nav-ico {
  position: absolute;
  top: 50%; left: 50%;
  width: 22px; height: 22px;
  margin: -11px 0 0 -11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  transition: opacity var(--t), transform var(--t);
}
.nav-ico-menu { opacity: 1; transform: none; }
.nav-ico-close { opacity: 0; transform: rotate(-90deg); }
body.nav-open .nav-ico-menu { opacity: 0; transform: rotate(90deg); }
body.nav-open .nav-ico-close { opacity: 1; transform: none; }

/* 菜单背景渐暗层（由脚本插入，点击可关闭） */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 15;
  background: rgba(69, 27, 27, 0.16);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
}
body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }

/* 回到顶部按钮（由脚本插入，滚动超过一屏后浮现） */
.back-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 14;
  width: 48px; height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-primary);
  color: var(--c-inverse);
  border: none;
  border-radius: var(--r-full);
  cursor: pointer;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--t), transform var(--t), visibility var(--t), background-color var(--t);
}
.back-top.is-show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--c-primary-hover); }
.back-top svg {
  width: 20px; height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 6. 首屏 Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  background: linear-gradient(180deg, #ffffff 0%, var(--c-surface) 100%);
}
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: var(--r-xl);
  pointer-events: none;
}
.hero::before {
  width: 420px; height: 240px;
  background: var(--c-peri);
  opacity: 0.18;
  filter: blur(70px);
  top: -100px; right: -80px;
}
.hero::after {
  width: 360px; height: 200px;
  background: var(--c-pink);
  opacity: 0.14;
  filter: blur(70px);
  bottom: -90px; left: -70px;
}

.hero-inner { position: relative; max-width: 820px; }
.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  color: var(--c-primary);
  background: rgba(127, 48, 51, 0.08);
  border-radius: var(--r-full);
  padding: 4px 14px;
  margin-bottom: 6px;
}
.hero .lead { font-size: 14px; color: var(--c-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 40px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.hero-stats li {
  background: var(--c-bg);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  padding: 16px 20px;
  text-align: center;
}
.hero-stats strong {
  display: block;
  font-family: var(--f-display);
  font-size: 26px;
  color: var(--c-primary);
}
.hero-stats span { font-size: 12px; color: var(--c-muted); }

/* ---------- 7. 三步上手 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
}
.steps li { background: var(--c-bg); border-radius: var(--r-md); box-shadow: var(--shadow-card); padding: 24px; margin: 0; }
.steps h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.step-no {
  flex: none;
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-primary);
  color: var(--c-inverse);
  border-radius: var(--r-full);
  font-family: var(--f-body);
  font-size: 15px;
}
.steps p { margin: 0; font-size: 15px; color: var(--c-muted); }

/* ---------- 8. 镜像列表 ---------- */
.mirror-table-wrap { overflow-x: auto; border-radius: var(--r-md); box-shadow: var(--shadow-card); background: var(--c-bg); }
.mirror-table { width: 100%; border-collapse: collapse; background: var(--c-bg); }
.mirror-table th, .mirror-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--c-surface);
  font-size: 15px;
  vertical-align: top;
}
.mirror-table th {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--c-primary);
  background: var(--c-surface);
  white-space: nowrap;
}
.mirror-table tbody tr { transition: background-color var(--t); }
.mirror-table tbody tr:hover { background: #fdf9f9; }
.mirror-table tbody tr:last-child td { border-bottom: none; }

.td-index { color: var(--c-muted); font-size: 13px; white-space: nowrap; width: 44px; }
.td-url strong {
  display: block;
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.5;
  word-break: break-all;
  cursor: default;
}
.td-url strong:hover { opacity: 1; }
.td-note { margin: 6px 0 0; font-size: 13px; line-height: 1.6; color: var(--c-muted); max-width: 460px; }
.td-go { white-space: nowrap; }
.td-go .btn { min-width: 92px; text-align: center; }

.mirror-note { margin: 16px 0 0; font-size: 13px; color: var(--c-muted); }
.mirror-note b { color: var(--c-primary); }

/* ---------- 9. 场景推荐 ---------- */
.scene-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.scene-card h3 { display: flex; align-items: center; gap: 10px; }
.scene-ico {
  flex: none;
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: rgba(127, 48, 51, 0.1);
}
.scene-card p { font-size: 14px; color: var(--c-muted); margin-bottom: 12px; }
.scene-card p:last-of-type { margin-bottom: 0; }
.scene-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.scene-links a {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--c-primary);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  padding: 3px 12px;
  text-decoration: none;
  transition: border-color var(--t), color var(--t);
}
.scene-links a:hover { border-color: var(--c-primary); opacity: 1; }

/* ---------- 10. 科普 / 安全须知 双栏 ---------- */
.duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.duo .card p:last-child { margin-bottom: 0; }

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.mini-grid li {
  background: var(--c-bg);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  padding: 16px 20px;
  font-size: 14px;
}
.mini-grid b { display: block; margin-bottom: 4px; color: var(--c-primary); font-weight: 700; }

.safety-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.safety-grid li {
  background: var(--c-bg);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  padding: 20px;
}
.safety-grid b {
  display: block;
  color: var(--c-primary);
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 16px;
}
.safety-grid p { margin: 0; font-size: 14px; color: var(--c-muted); }
.safety-ico { margin-bottom: 12px; }

/* ---------- 11. FAQ ---------- */
.faq details {
  background: var(--c-bg);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  padding: 0 20px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  font-family: var(--f-display);
  font-size: 14px;
  color: var(--c-text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  flex: none;
  width: 26px; height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  font-family: var(--f-body);
  font-size: 16px;
  color: var(--c-primary);
  transition: transform var(--t);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 16px; margin: 0; font-size: 15px; color: var(--c-muted); }
.faq details p a { color: var(--c-primary); }
.faq-more { margin-top: 16px; }

/* ---------- 12. 更新动态 ---------- */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  position: relative;
  margin-left: 7px;
  padding: 0 0 24px 24px;
  border-left: 2px solid var(--c-border);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: '';
  position: absolute;
  left: -6px; top: 6px;
  width: 10px; height: 10px;
  border-radius: var(--r-full);
  background: var(--c-primary);
}
.timeline time { display: block; font-size: 12px; color: var(--c-muted); margin-bottom: 2px; }
.timeline p { margin: 0; font-size: 15px; }
.timeline p:last-child { color: var(--c-muted); font-size: 14px; }

/* ---------- 13. 跳转中间页 ---------- */
.jump-main { padding: 64px 0; }
.jump-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--c-bg);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 40px 32px;
  text-align: center;
}
.jump-eyebrow {
  display: inline-block;
  font-size: 12px;
  color: var(--c-orange);
  background: rgba(239, 122, 0, 0.1);
  border-radius: var(--r-full);
  padding: 3px 12px;
  margin-bottom: 12px;
}
.jump-card h1 { font-size: 26px; margin-bottom: 8px; }
.jump-card .lead { font-size: 15px; color: var(--c-muted); margin-bottom: 24px; }
.jump-url {
  font-family: var(--f-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--c-primary);
  background: var(--c-surface);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  word-break: break-all;
  margin-bottom: 16px;
  cursor: default;
}
.jump-tips {
  display: block;
  text-align: left;
  font-size: 13px;
  color: var(--c-muted);
  margin: 0 0 24px;
  padding: 0;
}
.jump-tips li { margin-bottom: 4px; list-style: none; padding-left: 18px; position: relative; }
.jump-tips li::before { content: '·'; position: absolute; left: 6px; color: var(--c-primary); font-weight: 700; }
.jump-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.jump-alt { margin-top: 20px; font-size: 13px; color: var(--c-muted); }
.jump-error { color: var(--c-rose); }

/* ---------- 14. 内页 ---------- */
.page-head {
  background: linear-gradient(180deg, var(--c-surface) 0%, #ffffff 100%);
  padding: 48px 0 40px;
  margin-bottom: 8px;
}
.page-head h1 { margin-bottom: 8px; }
.page-head .lead { color: var(--c-muted); margin-bottom: 0; max-width: 820px; }

.article { max-width: 820px; }
.article h2 { margin-top: 40px; }
.article h3 { margin-top: 24px; }
.article p, .article li { font-size: 16px; line-height: 1.8; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: 8px; }
.article .btn { margin-top: 8px; }

.toc {
  background: var(--c-surface);
  border-radius: var(--r-md);
  padding: 16px 24px;
  font-size: 14px;
  margin-bottom: 8px;
}
.toc b { color: var(--c-primary); }
.toc ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.toc a { text-decoration: none; }

/* ---------- 15. 页脚 ---------- */
.site-footer {
  background: var(--c-primary);
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 48px 0 40px;
}
.site-footer h2 {
  color: var(--c-inverse);
  font-size: 17px;
  margin-bottom: 12px;
}
.site-footer p { color: rgba(255, 255, 255, 0.75); font-size: 13px; line-height: 1.7; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: opacity var(--t);
}
.site-footer a:hover { opacity: 0.6; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 16px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}
.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.footer-bottom p { margin: 0; }

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1200px) {
  .safety-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 40px 0; }
  body { font-size: 14px; }

  .nav-toggle { display: flex; }

  /* 卡片抽屉式菜单：自页头下方滑出 */
  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--c-bg);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-deep);
    padding: 12px;
    max-height: calc(100vh - 110px);
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top center;
    z-index: 12;
    transition: opacity var(--t), transform var(--t), visibility var(--t);
  }
  body.nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  body.nav-open { overflow: hidden; }

  /* 菜单项：块状大触控 + 右侧箭头 */
  .main-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 12px 16px;
    font-size: 17px;
    border-radius: var(--r-md);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out,
      background-color var(--t), color var(--t);
  }
  .main-nav a::after {
    content: '›';
    font-size: 22px;
    line-height: 1;
    color: var(--c-border);
    transition: color var(--t), transform var(--t);
  }
  .main-nav a:hover { background: var(--c-surface); opacity: 1; }
  .main-nav a:hover::after { color: var(--c-primary); transform: translateX(3px); }
  .main-nav a[aria-current="page"] {
    background: var(--c-surface);
    color: var(--c-primary);
    font-weight: 700;
  }
  .main-nav a[aria-current="page"]::after { color: var(--c-primary); }

  /* 打开时逐项入场（关闭时立即归位） */
  body.nav-open .main-nav a { opacity: 1; transform: none; }
  body.nav-open .main-nav a:nth-child(1) { transition-delay: 0.05s; }
  body.nav-open .main-nav a:nth-child(2) { transition-delay: 0.1s; }
  body.nav-open .main-nav a:nth-child(3) { transition-delay: 0.15s; }
  body.nav-open .main-nav a:nth-child(4) { transition-delay: 0.2s; }

  /* 面板底部标语 */
  .main-nav::after {
    content: '人工核验 · 每周复检 · 全程免费';
    display: block;
    text-align: center;
    font-size: 12px;
    color: var(--c-muted);
    letter-spacing: 0.05em;
    margin-top: 8px;
    padding: 10px 0 2px;
    border-top: 1px solid var(--c-surface);
  }

  .hero { padding: 48px 0; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .steps, .duo, .scene-grid { grid-template-columns: 1fr; }
  .safety-grid, .mini-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; padding: 40px 22px; }

  /* 镜像表格 → 卡片化 */
  .mirror-table-wrap { box-shadow: none; overflow: visible; }
  .mirror-table, .mirror-table tbody, .mirror-table tr, .mirror-table td { display: block; width: 100%; }
  .mirror-table thead { display: none; }
  .mirror-table tr {
    background: var(--c-bg);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-card);
    padding: 12px 0;
    margin-bottom: 16px;
  }
  .mirror-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: none;
    padding: 6px 20px;
  }
  .mirror-table td::before {
    content: attr(data-th);
    flex: none;
    font-size: 12px;
    color: var(--c-muted);
  }
  .mirror-table .td-index { width: auto; }
  .mirror-table .td-url { display: block; padding-bottom: 10px; }
  .mirror-table .td-url::before { display: none; }
  .td-note { max-width: none; }
  .td-go { justify-content: space-between; }
  .td-go .btn { min-width: 0; }

  .jump-card { padding: 32px 20px; margin: 0 8px; }
  .jump-actions .btn { flex: 1 1 auto; }

  .back-top { right: 16px; bottom: 20px; width: 44px; height: 44px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
