/* ============================================================
   澳门王牌网 · 共享站点样式 /assets/site.css
   夜间索引台：深墨蓝底 + 蓝图网格 + 粗边框硬阴影 + 霓虹状态色
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
  background-color: #0A1424;
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, dl, dt, dd, figure, blockquote, address {
  margin: 0;
}

ul, ol { padding: 0; list-style: none; }

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

button { font: inherit; color: inherit; }

a { color: #00E5D0; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 变量 ---------- */
:root {
  /* 色彩体系 */
  --ink: #0A1424;
  --ink-2: #101F35;
  --cy: #00E5D0;
  --gold: #F5C86B;
  --mag: #FF3D7F;
  --steel: #8FA3BF;
  --paper: #F2E9DA;
  --white: #E8EDF5;
  --mute: #8496AD;
  --line: #1E3A5F;
  --ink-on-paper: #0A1424;

  /* 字体 */
  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", sans-serif;
  --font-sans: var(--font-display);
  --font-serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", SimSun, serif;
  --font-narrow: "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  /* 字号阶梯 92 / 64 / 40 / 26 / 19 / 16 / 13 / 11 */
  --fs-92: clamp(40px, 7vw, 92px);
  --fs-64: clamp(34px, 5vw, 64px);
  --fs-40: clamp(26px, 3.6vw, 40px);
  --fs-26: clamp(21px, 2.4vw, 26px);
  --fs-19: 19px;
  --fs-16: 16px;
  --fs-13: 13px;
  --fs-11: 11px;

  /* 留白三档 */
  --sp-1: 24px;
  --sp-2: 48px;
  --sp-3: 96px;
  --gutter: clamp(16px, 3vw, 40px);

  /* 结构 */
  --header-h: 64px;
  --header-h-sm: 52px;
  --maxw: 1440px;

  /* 硬阴影（永不模糊） */
  --shadow-ink: 6px 6px 0 0 var(--line);
  --shadow-cy: 6px 6px 0 0 var(--cy);
  --shadow-gold: 6px 6px 0 0 var(--gold);
  --shadow-mag: 6px 6px 0 0 var(--mag);
}

/* ---------- 基础排版 ---------- */
body {
  min-height: 100vh;
  position: relative;
  background-color: var(--ink);
  background-image:
    linear-gradient(to right, rgba(30, 58, 95, 0.5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 58, 95, 0.5) 1px, transparent 1px);
  background-size: 24px 24px;
  background-attachment: fixed;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  line-height: 1.7;
  letter-spacing: 0.01em;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

h1 { font-size: var(--fs-92); }
h2 { font-size: var(--fs-40); }
h3 { font-size: var(--fs-26); }
h4 { font-size: var(--fs-19); }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-13);
  letter-spacing: 0.06em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-narrow);
  font-size: var(--fs-11);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  line-height: 1.4;
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--cy);
  flex: none;
}

/* ---------- 容器与栅格 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.wrap--narrow { max-width: 960px; }

.grid {
  display: grid;
  gap: var(--sp-1);
}
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

main { display: block; min-height: 50vh; }

/* ---------- 焦点 ---------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: 8px;
  top: -80px;
  z-index: 120;
  padding: 10px 16px;
  background: var(--cy);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  border: 2px solid var(--ink);
  transition: top 160ms ease;
}
.skip-link:focus {
  top: 8px;
  text-decoration: none;
}

/* ============================================================
   头部
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  background: var(--ink);
  border-bottom: 2px solid var(--line);
}

.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-1);
  transition: min-height 160ms ease;
}

.site-header.is-compact .site-header__inner { min-height: var(--header-h-sm); }

/* 品牌 */
.brand {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  min-width: 0;
}
.brand:hover { text-decoration: none; }

.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.2;
}

.brand__latin {
  font-family: var(--font-narrow);
  font-size: var(--fs-11);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  line-height: 1;
}

.brand__tag {
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  color: var(--cy);
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: 2px 6px;
  line-height: 1.4;
}

/* 导航（桌面横排） */
.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.7vw, 26px);
}

.nav__item { position: relative; }

.nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 2px;
  font-size: var(--fs-13);
  letter-spacing: 0.06em;
  color: var(--steel);
  text-decoration: none;
  transition: color 160ms ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--cy);
  transition: width 160ms ease;
}
.nav__link:hover {
  color: var(--white);
  text-decoration: none;
}
.nav__link:hover::after { width: 100%; }

.nav__link[aria-current="page"] {
  color: var(--white);
}
.nav__link[aria-current="page"]::after {
  width: 100%;
  background: var(--cy);
}

.nav__foot { display: none; }
.nav__foot-text {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  letter-spacing: 0.08em;
  color: var(--mute);
  word-break: break-all;
}

/* 移动端开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--ink-2);
  border: 2px solid var(--line);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease;
}
.nav-toggle:hover { border-color: var(--cy); color: var(--cy); }

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 16px;
  flex: none;
}
.nav-toggle__bars i {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--cy);
  transition: transform 200ms ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:first-child {
  transform: translateY(3px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.nav-toggle__label { line-height: 1; }

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  margin-top: var(--sp-3);
  background: var(--ink-2);
  border-top: 2px solid var(--line);
  color: var(--white);
}

.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--sp-2) var(--gutter) var(--sp-1);
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 0.9fr 1.2fr;
  gap: var(--sp-2) var(--sp-1);
  align-items: start;
}

.footer__lede { min-width: 0; }

.footer__brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-26);
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.1;
}

.footer__claim {
  margin-top: 12px;
  max-width: 34ch;
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.85;
  color: var(--steel);
}

.footer__facts {
  margin-top: var(--sp-1);
  display: grid;
  gap: 10px;
}

.footer__fact {
  display: grid;
  grid-template-columns: 5.5em minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 8px;
}
.footer__fact dt {
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  letter-spacing: 0.12em;
  color: var(--mute);
}
.footer__fact dd {
  margin: 0;
  font-size: 14px;
  color: var(--white);
  word-break: break-all;
}

.footer__col { min-width: 0; }

.footer__title {
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.footer__links {
  display: grid;
  gap: 10px;
}
.footer__links a {
  position: relative;
  display: inline-block;
  padding-left: 14px;
  font-size: 14px;
  color: var(--steel);
  text-decoration: none;
  transition: color 160ms ease;
}
.footer__links a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0;
  height: 2px;
  background: var(--cy);
  transition: width 160ms ease;
}
.footer__links a:hover { color: var(--cy); text-decoration: none; }
.footer__links a:hover::before { width: 8px; }

.footer__address {
  font-style: normal;
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.8;
  color: var(--steel);
}

.footer__note {
  margin-top: 12px;
  font-size: var(--fs-13);
  line-height: 1.7;
  color: var(--mute);
}

.footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 9px 16px;
  border: 2px solid var(--cy);
  color: var(--cy);
  font-size: var(--fs-13);
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.footer__cta:hover,
.footer__cta:focus-visible {
  background: var(--cy);
  color: var(--ink);
  box-shadow: 4px 4px 0 0 var(--gold);
  text-decoration: none;
}

.footer__bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--gutter);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  letter-spacing: 0.08em;
  color: var(--mute);
}
.footer__icp { font-variant-numeric: tabular-nums; }
.footer__copy { font-variant-numeric: tabular-nums; }

/* ============================================================
   通用按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 2px solid var(--white);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease,
              background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn:hover,
.btn:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 0 var(--cy);
  text-decoration: none;
}
.btn:active { transform: translate(0, 0); box-shadow: 2px 2px 0 0 var(--line); }

.btn--primary {
  background: var(--cy);
  border-color: var(--cy);
  color: var(--ink);
  font-weight: 800;
}
.btn--primary:hover,
.btn--primary:focus-visible { box-shadow: 4px 4px 0 0 var(--gold); }

.btn--gold {
  border-color: var(--gold);
  color: var(--gold);
}
.btn--gold:hover,
.btn--gold:focus-visible { box-shadow: 4px 4px 0 0 var(--gold); }

.btn--ghost {
  border-color: var(--line);
  color: var(--steel);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--white);
  border-color: var(--steel);
  box-shadow: 4px 4px 0 0 var(--line);
}

/* ============================================================
   面包屑
   ============================================================ */
.breadcrumb { margin-bottom: var(--sp-1); }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

.breadcrumb__item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--line);
  display: inline-block;
}

.breadcrumb__link {
  color: var(--mute);
  text-decoration: none;
  transition: color 160ms ease;
}
.breadcrumb__link:hover { color: var(--cy); text-decoration: none; }

.breadcrumb__item[aria-current="page"] { color: var(--white); }

/* ============================================================
   正文区
   ============================================================ */
.prose {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.85;
  color: var(--white);
  max-width: 68ch;
}
.prose > p { margin: 0 0 1.2em; }
.prose > p:last-child { margin-bottom: 0; }
.prose strong { color: var(--gold); font-weight: 700; }
.prose a { color: var(--cy); text-underline-offset: 3px; }
.prose h2 {
  font-size: var(--fs-26);
  margin: 1.8em 0 0.6em;
  padding-left: 14px;
  border-left: 3px solid var(--cy);
  line-height: 1.3;
}
.prose h3 {
  font-size: var(--fs-19);
  margin: 1.4em 0 0.5em;
}
.prose ul,
.prose ol { margin: 0 0 1.2em; padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--cy); }

/* 区块标题 */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-bottom: 12px;
  margin-bottom: var(--sp-1);
  border-bottom: 2px solid var(--line);
}
.section-head__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-26);
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--white);
  margin: 0;
}
.section-head__meta {
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  letter-spacing: 0.1em;
  color: var(--mute);
}

/* ============================================================
   面板卡片
   ============================================================ */
.panel {
  position: relative;
  background: var(--ink-2);
  border: 2px solid var(--line);
  border-radius: 0;
  padding: var(--sp-1);
}
.panel--offset { box-shadow: var(--shadow-ink); }

.panel--neon {
  border-color: var(--cy);
  box-shadow: var(--shadow-cy);
}

.panel--paper {
  background: var(--paper);
  border-color: var(--ink);
  color: var(--ink-on-paper);
  box-shadow: var(--shadow-cy);
}
.panel--paper h2,
.panel--paper h3,
.panel--paper h4,
.panel--paper p,
.panel--paper li,
.panel--paper dd { color: var(--ink-on-paper); }
.panel--paper .eyebrow { color: #4A5A70; }
.panel--paper .eyebrow::before { background: var(--mag); }

/* ============================================================
   标签
   ============================================================ */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--line);
  background: rgba(143, 163, 191, 0.14);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  line-height: 1.6;
  white-space: nowrap;
}
.tag--neon {
  border-color: var(--cy);
  background: rgba(0, 229, 208, 0.12);
  color: var(--cy);
}
.tag--gold {
  border-color: var(--gold);
  background: rgba(245, 200, 107, 0.12);
  color: var(--gold);
}
.tag--mag {
  border-color: var(--mag);
  background: rgba(255, 61, 127, 0.14);
  color: var(--mag);
  font-weight: 700;
}

/* ============================================================
   图片容器（页面阶段放占位）
   ============================================================ */
.img-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink-2);
  background-image:
    repeating-linear-gradient(112deg, transparent 0 22px, rgba(0, 229, 208, 0.09) 22px 24px, transparent 24px 58px),
    linear-gradient(160deg, #14283F 0%, #0A1424 100%);
  border: 2px solid var(--line);
  box-shadow: var(--shadow-ink);
}
.img-frame--neon {
  border-color: var(--cy);
  box-shadow: var(--shadow-cy);
}
.img-frame--21x9 { aspect-ratio: 21 / 9; }
.img-frame--16x9 { aspect-ratio: 16 / 9; }
.img-frame--4x3 { aspect-ratio: 4 / 3; }
.img-frame--1x1 { aspect-ratio: 1 / 1; }

.img-frame__el,
.img-frame > img {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    repeating-linear-gradient(58deg, transparent 0 30px, rgba(255, 61, 127, 0.1) 30px 31px, transparent 31px 92px),
    radial-gradient(120% 90% at 12% 108%, rgba(0, 229, 208, 0.18), transparent 62%);
}

.img-frame__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  display: inline-block;
  max-width: 100%;
  padding: 6px 10px;
  background: var(--ink);
  border-top: 2px solid var(--line);
  border-right: 2px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  letter-spacing: 0.1em;
  color: var(--steel);
}

/* ============================================================
   左侧章节索引
   ============================================================ */
.chapter-rail {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  padding-left: 2px;
  border-left: 2px dotted var(--line);
}

.chapter-rail__list {
  display: grid;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chapter-rail__link {
  position: relative;
  display: block;
  padding: 8px 12px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: var(--mute);
  text-decoration: none;
  background-image: linear-gradient(var(--cy), var(--cy));
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 0 100%;
  transition: color 160ms ease, background-size 160ms ease;
}
.chapter-rail__link:hover {
  color: var(--white);
  text-decoration: none;
  background-size: 100% 100%;
  background-image: linear-gradient(rgba(0, 229, 208, 0.14), rgba(0, 229, 208, 0.14));
}

.chapter-rail__link[aria-current="true"] {
  color: var(--cy);
  border-left-color: var(--cy);
  background-size: 100% 100%;
  background-image: linear-gradient(rgba(0, 229, 208, 0.14), rgba(0, 229, 208, 0.14));
}

/* ============================================================
   滚动进度条 / 返回顶部（JS 注入）
   ============================================================ */
.scroll-rail {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 90;
  pointer-events: none;
  background: transparent;
}
.scroll-rail__bar {
  width: 0;
  height: 100%;
  background: var(--cy);
}

.to-top {
  position: fixed;
  right: var(--gutter);
  bottom: var(--gutter);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--ink-2);
  border: 2px solid var(--line);
  border-radius: 0;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  letter-spacing: 0.14em;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease,
              border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.to-top.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top:hover,
.to-top:focus-visible {
  border-color: var(--cy);
  color: var(--cy);
  box-shadow: 4px 4px 0 0 var(--line);
}
.to-top__mark { font-size: 13px; line-height: 1; }
.to-top__label { line-height: 1; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1100px) {
  .site-footer__inner {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  .footer__lede { grid-column: 1 / -1; }
  .footer__claim { max-width: 52ch; }
}

@media (max-width: 900px) {
  :root { --sp-3: 64px; --sp-2: 40px; }

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

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

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 88vw);
    display: block;
    padding: calc(var(--header-h) + 24px) 20px 32px;
    background: var(--ink-2);
    border-left: 2px solid var(--line);
    overflow-y: auto;
    z-index: 59;
    transform: translateX(101%);
    transition: transform 260ms ease;
  }
  .nav[data-open] { transform: translateX(0); }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__link {
    display: block;
    padding: 14px 12px;
    font-size: 15px;
    color: var(--white);
  }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] {
    color: var(--cy);
    box-shadow: inset 2px 0 0 var(--cy);
  }

  .nav__foot {
    display: block;
    margin-top: var(--sp-1);
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }

  body.nav-open { overflow: hidden; }

  .chapter-rail {
    position: static;
    border-left: 0;
    padding-left: 0;
    margin-bottom: var(--sp-1);
  }
  .chapter-rail__list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
  }
  .chapter-rail__link {
    white-space: nowrap;
    border: 1px solid var(--line);
    border-left: 2px solid var(--line);
    padding: 6px 12px;
  }

  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .grid--12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .site-header__inner { gap: 12px; }
  .brand__latin { display: none; }
  .brand__name { font-size: 19px; }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-2);
  }
  .footer__fact { grid-template-columns: 5em minmax(0, 1fr); }
  .footer__bar { flex-direction: column; align-items: flex-start; gap: 8px; }

  .to-top { right: 12px; bottom: 12px; padding: 10px 12px; }
}

/* ============================================================
   动效偏好
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
  .nav { transition: none; }
  .to-top { transform: none; }
}
