/* ============================================================
   乐鱼赛场 — 共享样式 /assets/site.css
   赛场导视系统：印刷边框、赛道斜线、看台编号、纸张叠层
   ============================================================ */

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

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

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

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0.015em;
}

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #111a1c;
  --paper: #f6f1e8;
  --sand: #e8d6b8;
  --sand-deep: #d8c09a;
  --teal-deep: #063b45;
  --teal: #0e6e7a;
  --teal-pale: #a9dad9;
  --orange: #ff6a2a;
  --orange-deep: #a83a0b;
  --wine: #6e1f35;
  --indigo: #2e2a5c;

  --font-display: "Arial Narrow", "Helvetica Neue", -apple-system,
    BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New",
    monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 44px);
  --radius: 3px;
  --line: rgba(17, 26, 28, 0.16);
  --line-strong: rgba(17, 26, 28, 0.32);
  --dur: 180ms;
  --ease: cubic-bezier(0.32, 0.72, 0.35, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  background-color: var(--paper);
  background-image: linear-gradient(
    90deg,
    rgba(6, 59, 69, 0.045) 1px,
    transparent 1px
  );
  background-size: 84px 100%;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(15.5px, 0.42vw + 14.6px, 17px);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--teal-pale);
  color: var(--teal-deep);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 4. 通用工具 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.visually-hidden {
  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;
  left: clamp(12px, 4vw, 32px);
  top: -90px;
  z-index: 400;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top var(--dur) var(--ease);
}

.skip-link:focus {
  top: 0;
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.94rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--dur) var(--ease),
    background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.btn--orange {
  background: var(--orange);
  color: var(--teal-deep);
  box-shadow: 4px 4px 0 0 rgba(6, 59, 69, 0.18);
}

.btn--orange:hover {
  background: #ff8048;
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 0 rgba(6, 59, 69, 0.22);
}

.btn--orange:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 0 rgba(6, 59, 69, 0.2);
}

.btn--teal {
  background: var(--teal);
  color: var(--paper);
}

.btn--teal:hover {
  background: var(--teal-deep);
}

.btn--ghost {
  background: transparent;
  color: var(--teal-deep);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  color: var(--teal);
  border-color: var(--teal);
  background: rgba(169, 218, 217, 0.22);
}

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

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--teal);
  padding-bottom: 2px;
  border-bottom: 2px solid var(--teal-pale);
  transition: color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.link-arrow:hover {
  color: var(--orange-deep);
  border-bottom-color: var(--orange);
}

.link-arrow::after {
  content: "→";
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* ---------- 6. 标签 / 筛选胶囊 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--teal);
  background: rgba(169, 218, 217, 0.24);
  border: 1px solid currentColor;
  border-radius: 2px;
}

.eyebrow .mono {
  font-size: 0.7rem;
  color: var(--orange-deep);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--teal-deep);
  background: transparent;
  border: 1px solid rgba(6, 59, 69, 0.35);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
    color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.chip:hover {
  background: rgba(169, 218, 217, 0.38);
  border-color: var(--teal);
}

.chip[aria-pressed="true"],
.chip.is-active {
  background: var(--teal-deep);
  color: var(--paper);
  border-color: var(--teal-deep);
}

/* ---------- 7. 纸张叠层卡片 ---------- */
.paper-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 28px);
  box-shadow: 6px 6px 0 -1px var(--sand), 6px 6px 0 0 rgba(17, 26, 28, 0.18);
  transition: transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.paper-card:hover {
  transform: translateY(-3px);
  box-shadow: 8px 10px 0 -1px var(--sand), 8px 10px 0 0 rgba(17, 26, 28, 0.18);
}

/* ---------- 8. 章节头 ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 24px;
  padding-bottom: 14px;
  margin-bottom: clamp(20px, 3vw, 32px);
  border-bottom: 2px solid var(--ink);
}

.section-head__title {
  display: inline-block;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  letter-spacing: 0.02em;
  transform: skewX(-5deg);
}

.section-head__note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--teal);
  padding-bottom: 4px;
}

/* ---------- 9. 横向看台带 ---------- */
.shelf {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 78%);
  gap: clamp(12px, 1.8vw, 20px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 4px;
  padding-bottom: 16px;
  scrollbar-color: var(--teal) transparent;
}

.shelf > * {
  scroll-snap-align: start;
}

@media (min-width: 720px) {
  .shelf {
    grid-auto-columns: minmax(250px, 31%);
  }
}

/* ---------- 10. 响应式图片容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--teal-pale);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.media-frame > img,
.media-frame > svg,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame:empty::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    rgba(6, 59, 69, 0.14) 0 12px,
    transparent 12px 24px
  );
}

.media-frame--16x9 {
  aspect-ratio: 16 / 9;
}

.media-frame--4x5 {
  aspect-ratio: 4 / 5;
}

.media-frame--1x1 {
  aspect-ratio: 1 / 1;
}

.media-frame--wide {
  aspect-ratio: 21 / 9;
}

.media-frame__tag {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--paper);
  background: var(--teal-deep);
}

/* ---------- 11. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--teal);
}

.breadcrumb a {
  border-bottom: 1px solid rgba(14, 110, 122, 0.4);
}

.breadcrumb a:hover {
  color: var(--orange-deep);
  border-bottom-color: var(--orange);
}

.breadcrumb__sep {
  color: rgba(17, 26, 28, 0.32);
}

/* ---------- 12. 正文窄栏 ---------- */
.prose {
  max-width: 38em;
}

.prose p {
  margin-bottom: 1em;
}

.prose h2,
.prose h3 {
  margin: 1.9em 0 0.6em;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
}

.prose ul,
.prose ol {
  margin: 0 0 1em;
  padding-left: 1.2em;
  list-style: square;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose strong {
  color: var(--teal-deep);
}

/* ---------- 13. Bento 信息板 ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 22px);
}

.bento__cell {
  grid-column: span 12;
  min-width: 0;
}

@media (min-width: 760px) {
  .bento__cell--4 {
    grid-column: span 4;
  }
  .bento__cell--5 {
    grid-column: span 5;
  }
  .bento__cell--6 {
    grid-column: span 6;
  }
  .bento__cell--7 {
    grid-column: span 7;
  }
  .bento__cell--8 {
    grid-column: span 8;
  }
}

/* ---------- 14. 粘性章节索引 ---------- */
.sticky-index {
  position: sticky;
  top: 168px;
  align-self: start;
}

.index-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 2px solid rgba(6, 59, 69, 0.16);
}

.index-list a {
  display: block;
  margin-left: -2px;
  padding: 8px 12px;
  font-size: 0.9rem;
  color: rgba(17, 26, 28, 0.72);
  border-left: 3px solid transparent;
  transition: color var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.index-list a:hover {
  color: var(--teal);
  background: rgba(169, 218, 217, 0.18);
}

.index-list a.is-current {
  color: var(--teal-deep);
  font-weight: 700;
  border-left-color: var(--orange);
  background: rgba(169, 218, 217, 0.3);
}

/* ---------- 15. 通用分栏 ---------- */
.grid-2,
.grid-3 {
  display: grid;
  gap: clamp(16px, 2.4vw, 32px);
}

@media (min-width: 820px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- 16. 站点页头 ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line-strong);
}

.head-rail {
  background: var(--teal-deep);
  color: var(--teal-pale);
}

.head-rail__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 6px var(--gutter);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.head-rail__note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.head-rail__note::before {
  content: "";
  flex: none;
  width: 26px;
  height: 6px;
  background: repeating-linear-gradient(
    115deg,
    var(--orange) 0 4px,
    transparent 4px 9px
  );
}

.head-rail__util {
  color: rgba(169, 218, 217, 0.86);
}

.masthead__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(12px, 2vw, 18px) var(--gutter);
}

.brand {
  display: grid;
  justify-items: center;
  gap: 5px;
  text-align: center;
}

.brand__mark {
  width: 54px;
  height: 6px;
  background: linear-gradient(
    100deg,
    var(--orange) 0 48%,
    var(--teal) 48% 100%
  );
  transform: skewX(-26deg);
  transition: transform var(--dur) var(--ease);
}

.brand:hover .brand__mark {
  transform: skewX(-26deg) scaleX(1.18);
}

.brand__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  line-height: 1;
  letter-spacing: 0.1em;
  color: var(--ink);
  transform: skewX(-7deg);
}

.brand__sub {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: var(--teal);
}

.nav-toggle {
  display: none;
  position: absolute;
  top: 50%;
  right: var(--gutter);
  transform: translateY(-50%);
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  background: var(--teal-deep);
  color: var(--paper);
  border: 1px solid var(--teal-deep);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.nav-toggle:hover {
  background: var(--teal);
  border-color: var(--teal);
}

.nav-toggle__bars {
  flex: none;
  width: 16px;
  height: 12px;
  background-image: linear-gradient(var(--orange), var(--orange)),
    linear-gradient(var(--paper), var(--paper)),
    linear-gradient(var(--paper), var(--paper));
  background-size: 100% 2px, 100% 2px, 100% 2px;
  background-position: 0 0, 0 5px, 0 10px;
  background-repeat: no-repeat;
}

.nav-toggle[aria-expanded="true"] {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--teal-deep);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background-image: linear-gradient(var(--teal-deep), var(--teal-deep)),
    linear-gradient(var(--teal-deep), var(--teal-deep)),
    linear-gradient(var(--teal-deep), var(--teal-deep));
}

.site-nav {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.site-nav__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 20px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 clamp(2px, 1vw, 14px);
}

.nav-list a {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 13px 8px 11px;
  font-size: 0.93rem;
  font-weight: 600;
  color: rgba(17, 26, 28, 0.78);
  border-bottom: 3px solid transparent;
  transition: color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.nav-list a:hover {
  color: var(--teal);
  border-bottom-color: var(--teal-pale);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--teal);
  opacity: 0.85;
}

.nav-list a[aria-current="page"] {
  color: var(--teal-deep);
  border-bottom-color: var(--orange);
}

.nav-list a[aria-current="page"] .nav-index {
  color: var(--orange-deep);
  opacity: 1;
}

.nav-cta {
  padding-block: 8px;
}

/* ---------- 17. 站点页脚 ---------- */
.site-foot {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  background: var(--teal-deep);
  color: var(--teal-pale);
  overflow: hidden;
}

.site-foot::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 7px;
  background: repeating-linear-gradient(
    115deg,
    var(--orange) 0 16px,
    transparent 16px 32px
  );
  opacity: 0.9;
}

.site-foot::after {
  content: "";
  position: absolute;
  right: -150px;
  bottom: -190px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(169, 218, 217, 0.16),
    transparent 68%
  );
  pointer-events: none;
}

.foot-top {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(34px, 5.5vw, 60px) var(--gutter) clamp(26px, 4vw, 42px);
}

@media (min-width: 900px) {
  .foot-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    align-items: start;
  }
}

.foot-brand__line {
  max-width: 16em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.foot-brand__note {
  margin-top: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: rgba(169, 218, 217, 0.82);
}

.foot-contact {
  display: grid;
  gap: 10px;
  margin-top: clamp(18px, 3vw, 26px);
}

.foot-contact__item {
  display: grid;
  grid-template-columns: 3.6em minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(169, 218, 217, 0.22);
}

.foot-contact__key {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--orange);
}

.foot-contact__val {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--paper);
  word-break: break-word;
}

.foot-note {
  margin-top: 14px;
  max-width: 26em;
  font-size: 0.8rem;
  line-height: 1.7;
  color: rgba(169, 218, 217, 0.75);
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
}

@media (min-width: 560px) {
  .foot-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.foot-col__title {
  padding-bottom: 9px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--teal-pale);
  border-bottom: 1px solid rgba(169, 218, 217, 0.3);
}

.foot-links {
  display: grid;
  gap: 9px;
}

.foot-links a {
  display: inline-block;
  padding-bottom: 1px;
  font-size: 0.92rem;
  color: rgba(246, 241, 232, 0.88);
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.foot-links a:hover {
  color: var(--paper);
  border-bottom-color: var(--orange);
}

.foot-base {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 16px var(--gutter) 24px;
  border-top: 1px solid rgba(169, 218, 217, 0.25);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(169, 218, 217, 0.8);
}

/* ---------- 18. 阅读进度 / 返回顶部 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 130;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--teal), var(--orange));
  pointer-events: none;
}

.to-top {
  position: fixed;
  right: clamp(12px, 3vw, 28px);
  bottom: clamp(12px, 3vw, 28px);
  z-index: 110;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--paper);
  background: var(--teal-deep);
  border: 1px solid rgba(246, 241, 232, 0.28);
  border-radius: var(--radius);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease), visibility var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--teal);
}

/* ---------- 19. 响应式：平板 / 手机 ---------- */
@media (max-width: 860px) {
  html {
    scroll-padding-top: 118px;
  }

  .sticky-index {
    position: static;
    top: auto;
  }

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

  .masthead__inner {
    padding-block: 14px;
  }

  .head-rail__note::before {
    display: none;
  }

  .site-nav {
    display: none;
    max-height: calc(100vh - 128px);
    overflow-y: auto;
  }

  .site-nav[data-open] {
    display: block;
  }

  .site-nav__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 10px;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list a {
    justify-content: flex-start;
    width: 100%;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    border-left: 3px solid transparent;
  }

  .nav-list li:last-child a {
    border-bottom: none;
  }

  .nav-list a[aria-current="page"] {
    border-left-color: var(--orange);
  }

  .nav-cta {
    padding-block: 16px 12px;
  }

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

@media (max-width: 560px) {
  .head-rail__inner {
    font-size: 0.64rem;
    letter-spacing: 0.1em;
  }

  .foot-contact__item {
    grid-template-columns: 3.2em minmax(0, 1fr);
  }
}

/* ---------- 20. 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .paper-card:hover,
  .btn--orange:hover,
  .brand:hover .brand__mark {
    transform: none;
  }
}

/* ---------- 21. 打印 ---------- */
@media print {
  .site-head,
  .site-foot::after,
  .scroll-progress,
  .to-top,
  .nav-toggle {
    display: none !important;
  }

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