/* =========================================================
   18新利赛场 · 共享样式 /assets/site.css
   夜间赛场转播间：刊头刻度轨道 + 展览画册节奏
   ========================================================= */

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

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

body, h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
main { display: block; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 2. Tokens ---------- */
:root {
  /* 色彩 */
  --ink: #0A1512;
  --ink-2: #13211D;
  --ink-3: #1E332C;
  --paper: #F2EDE3;
  --paper-dim: #C9C2B4;
  --paper-ink: #12201C;
  --cyan: #3DF2C4;
  --teal: #0E6B58;
  --gold: #E7AE4C;
  --mist: #8FB3A7;
  --seal: #C4553F;
  --white: #FFFFFF;

  /* 线 */
  --line-dark: rgba(143, 179, 167, 0.22);
  --line-soft: rgba(143, 179, 167, 0.12);
  --line-cyan: rgba(61, 242, 196, 0.38);
  --line-gold: rgba(231, 174, 76, 0.42);
  --line-paper: rgba(18, 32, 28, 0.16);

  /* 字体 */
  --ff-display: 'Barlow Condensed', 'Oswald', 'HarmonyOS Sans SC', 'Source Han Sans SC', sans-serif;
  --ff-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --ff-mono: 'JetBrains Mono', 'IBM Plex Mono', 'SFMono-Regular', 'Menlo', monospace;

  /* 尺度 */
  --shell: clamp(20px, 6vw, 96px);
  --radius: 4px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --max: 1560px;
}

/* ---------- 3. 基底与中文排版 ---------- */
body {
  font-family: var(--ff-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(143, 179, 167, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 179, 167, 0.035) 1px, transparent 1px);
  background-size: 72px 72px, 72px 72px;
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--cyan); color: #08120F; }

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--white); }

:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

#main-content {
  display: block;
  scroll-margin-top: 140px;
}

/* ---------- 4. 工具类 ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.shell {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--shell);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #08120F;
  background: var(--cyan);
  border-radius: 2px;
  transform: translateY(-180%);
  transition: transform 180ms var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); color: #08120F; }

/* ---------- 5. 页头：居中刊头 + 刻度轨道 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(8, 18, 16, 0.97);
  border-bottom: 1px solid var(--line-dark);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.masthead__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: 18px var(--shell) 16px;
  transition: padding 240ms var(--ease);
}

.site-header[data-compact] .masthead__inner { padding-block: 8px; }

.masthead__edition {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mist);
  white-space: nowrap;
}
.masthead__edition::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(61, 242, 196, 0.15);
}

.brand {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--paper);
}
.brand__name {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.6vw, 1.95rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--white);
  transition: color 200ms var(--ease);
}
.brand:hover .brand__name { color: var(--cyan); }
.brand__sub {
  font-family: var(--ff-mono);
  font-size: 9.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--mist);
  transition: opacity 200ms var(--ease);
}
.site-header[data-compact] .brand__sub,
.site-header[data-compact] .masthead__edition { opacity: 0; pointer-events: none; }

.masthead__tools {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.quick-entry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  border: 1px solid var(--line-cyan);
  border-radius: 2px;
  white-space: nowrap;
  transition: background 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}
.quick-entry:hover {
  color: #08120F;
  background: var(--cyan);
  border-color: var(--cyan);
}
.quick-entry__short { display: none; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 180ms var(--ease), color 180ms var(--ease);
}
.nav-toggle:hover { border-color: var(--line-cyan); color: var(--cyan); }
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: background 180ms var(--ease);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform 200ms var(--ease);
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

/* 导航轨道 */
.site-nav {
  position: relative;
  border-top: 1px solid var(--line-soft);
}
.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 2.6vw, 38px);
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px var(--shell) 14px;
  transition: padding 240ms var(--ease);
}
.site-header[data-compact] .site-nav__list { padding-block: 8px 10px; }

.site-nav__item { position: relative; }
.site-nav__item a {
  position: relative;
  display: inline-block;
  padding: 4px 2px;
  font-size: 15px;
  color: var(--paper-dim);
  transition: color 180ms var(--ease);
}
.site-nav__item a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 240ms var(--ease);
}
.site-nav__item a:hover { color: var(--white); }
.site-nav__item a:hover::after { transform: scaleX(1); }
.site-nav__item a[aria-current="page"] {
  color: var(--white);
  font-weight: 600;
}
.site-nav__item a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav__item a[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(61, 242, 196, 0.14);
  transform: translateX(-50%);
}

.site-nav__track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  pointer-events: none;
  border-top: 1px solid var(--line-soft);
  background-image: repeating-linear-gradient(
    90deg,
    rgba(143, 179, 167, 0.26) 0 1px,
    transparent 1px 16px
  );
  background-repeat: repeat-x;
  background-size: 16px 4px;
  background-position: 0 0;
}
.track-progress {
  position: absolute;
  left: 0;
  top: -1px;
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  box-shadow: 0 0 10px rgba(61, 242, 196, 0.45);
  transform: scaleX(0);
  transform-origin: left center;
}

/* ---------- 6. 页脚 ---------- */
.site-footer {
  margin-top: clamp(40px, 7vw, 96px);
  background: #081210;
  border-top: 1px solid var(--line-dark);
  color: var(--mist);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) var(--shell) clamp(26px, 4vw, 44px);
}

.footer-brand__name {
  display: inline-block;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--white);
  transition: color 200ms var(--ease);
}
.footer-brand__name:hover { color: var(--cyan); }
.footer-brand__line {
  margin-top: 12px;
  max-width: 32ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mist);
}

.footer-nav__title,
.footer-meta__title {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(143, 179, 167, 0.72);
  margin-bottom: 14px;
}

.footer-nav__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 18px;
}
.footer-nav__list a {
  display: inline-block;
  padding: 3px 0;
  font-size: 14.5px;
  color: var(--paper-dim);
  border-bottom: 1px solid transparent;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}
.footer-nav__list a:hover {
  color: var(--cyan);
  border-bottom-color: var(--line-cyan);
}

.footer-meta__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 16px;
}
.footer-meta__links a {
  font-size: 14px;
  color: var(--paper-dim);
  border-bottom: 1px solid var(--line-soft);
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}
.footer-meta__links a:hover { color: var(--cyan); border-bottom-color: var(--line-cyan); }

.footer-meta__contact {
  font-family: var(--ff-mono);
  font-size: 12.5px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--mist);
}
.footer-meta__icp {
  margin-top: 12px;
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: rgba(143, 179, 167, 0.6);
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: 16px var(--shell) 22px;
  border-top: 1px solid var(--line-soft);
}
.footer-copy {
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: rgba(143, 179, 167, 0.66);
}
.footer-feedback {
  display: inline-flex;
  align-items: center;
  font-family: var(--ff-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--gold);
  border-bottom: 1px solid var(--line-gold);
  padding-bottom: 2px;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}
.footer-feedback:hover { color: var(--cyan); border-bottom-color: var(--line-cyan); }

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 14px 22px;
  font-family: var(--ff-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--line-cyan);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 200ms var(--ease), border-color 200ms var(--ease),
    color 200ms var(--ease), background 200ms var(--ease);
}
.btn:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  transform: translateY(-2px);
}
.btn--solid {
  color: #08120F;
  font-weight: 700;
  background: var(--cyan);
  border-color: var(--cyan);
}
.btn--solid:hover { color: #08120F; background: #6FF8D6; border-color: #6FF8D6; }
.btn--gold {
  color: var(--gold);
  border-color: var(--line-gold);
}
.btn--gold:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- 8. 标签 / 眉标 / 数字 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 4px 9px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: var(--mist);
  border: 1px solid var(--line-dark);
  border-radius: 2px;
}
.tag--cyan { color: var(--cyan); border-color: var(--line-cyan); }
.tag--gold { color: var(--gold); border-color: var(--line-gold); }
.tag--seal { color: var(--seal); border-color: rgba(196, 85, 63, 0.45); }

.num {
  font-family: var(--ff-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

/* ---------- 9. 面包屑 ---------- */
.breadcrumbs {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
}
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.5em;
  color: rgba(143, 179, 167, 0.45);
}
.breadcrumbs a {
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}
.breadcrumbs a:hover { color: var(--cyan); border-bottom-color: var(--line-cyan); }
.breadcrumbs [aria-current="page"] { color: var(--paper); }

/* ---------- 10. 标题层级 ---------- */
.display-title {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--white);
}
.h-section {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--white);
}
.lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.8;
  color: var(--mist);
}

/* ---------- 11. 正文容器 ---------- */
.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.75;
  color: var(--mist);
}
.prose > * + * { margin-top: 1.05em; }
.prose h2,
.prose h3 {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-top: 1.8em;
}
.prose h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.prose h3 { font-size: clamp(1.15rem, 1.7vw, 1.35rem); }
.prose strong { color: var(--paper); font-weight: 600; }
.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose ul,
.prose ol { padding-left: 1.15em; }
.prose ul li { list-style: none; position: relative; padding-left: 0.9em; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 5px;
  height: 1px;
  background: var(--cyan);
}
.prose ol { list-style: decimal; }
.prose ol li::marker { font-family: var(--ff-mono); color: var(--cyan); }

.section--paper .prose { color: rgba(18, 32, 28, 0.82); }
.section--paper .prose h2,
.section--paper .prose h3,
.section--paper .prose strong { color: var(--paper-ink); }
.section--paper .prose a { color: var(--teal); }
.section--paper .prose ul li::before { background: var(--teal); }
.section--paper .prose ol li::marker { color: var(--teal); }

/* ---------- 12. 网格与分节 ---------- */
.grid {
  display: grid;
  gap: clamp(18px, 3vw, 36px);
}
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

.section { padding-block: clamp(48px, 7vw, 96px); }
.section--paper {
  background: var(--paper);
  color: var(--paper-ink);
}
.section--paper .h-section,
.section--paper .display-title { color: var(--paper-ink); }
.section--paper .lead { color: rgba(18, 32, 28, 0.74); }
.section--paper .eyebrow { color: var(--teal); }
.section--paper .tag {
  color: rgba(18, 32, 28, 0.72);
  border-color: var(--line-paper);
}
.section--paper .tag--cyan { color: var(--teal); border-color: rgba(14, 107, 88, 0.4); }
.section--paper .tag--gold { color: #8A6413; border-color: rgba(160, 116, 26, 0.42); }

/* ---------- 13. 细线与斜切分隔 ---------- */
.rule {
  height: 0;
  border: 0;
  border-top: 1px solid var(--line-dark);
}
.rule--cyan { border-top-color: var(--line-cyan); }
.slant-rule {
  height: 1px;
  border: 0;
  background: var(--line-cyan);
  transform: rotate(-0.7deg);
  transform-origin: left center;
}

/* ---------- 14. 图片容器基础规则 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  width: 100%;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--wide { aspect-ratio: 21 / 9; }
.media--portrait { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }

.media--placeholder {
  background-color: var(--ink-3);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(143, 179, 167, 0.1) 0 1px,
    transparent 1px 12px
  );
}

.media__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(61, 242, 196, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 242, 196, 0.16) 1px, transparent 1px);
  background-size: 100% 33.333%, 25% 100%;
}
.media__tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 8px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: rgba(10, 21, 18, 0.78);
  border: 1px solid var(--line-cyan);
  border-radius: 2px;
}
.media__caption {
  margin-top: 0.6em;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.section--paper .media { border-color: var(--line-paper); background: #E4DECD; }
.section--paper .media__caption { color: rgba(18, 32, 28, 0.6); }

/* ---------- 15. 卡片面板 ---------- */
.panel {
  position: relative;
  display: block;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  transition: transform 240ms var(--ease), border-color 240ms var(--ease),
    box-shadow 240ms var(--ease);
}
.panel:hover {
  transform: translateY(-2px);
  border-color: var(--line-cyan);
  box-shadow: 0 12px 30px -20px rgba(0, 0, 0, 0.95);
}
.section--paper .panel {
  background: #EAE4D7;
  border-color: var(--line-paper);
}

/* ---------- 16. 折叠组（原生 details） ---------- */
.disclosure {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}
.disclosure + .disclosure { margin-top: 10px; }
.disclosure summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  font-size: 16px;
  font-weight: 500;
  color: var(--paper);
  cursor: pointer;
  list-style: none;
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 200ms ease-out;
}
.disclosure[open] summary::before { transform: scaleX(1); }
.disclosure summary::after {
  content: "+";
  flex: none;
  font-family: var(--ff-mono);
  font-size: 16px;
  line-height: 1;
  color: var(--cyan);
  transition: transform 200ms ease-out;
}
.disclosure[open] summary::after { transform: rotate(45deg); }
.disclosure__body {
  padding: 0 18px 18px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--mist);
}
.disclosure__body > * + * { margin-top: 0.8em; }
.section--paper .disclosure { background: #EAE4D7; border-color: var(--line-paper); }
.section--paper .disclosure summary { color: var(--paper-ink); }
.section--paper .disclosure summary::before { background: var(--teal); }
.section--paper .disclosure summary::after { color: var(--teal); }
.section--paper .disclosure__body { color: rgba(18, 32, 28, 0.78); }

/* ---------- 17. 入场显现 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}
.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- 18. 响应式 ---------- */
@media (max-width: 1100px) {
  .masthead__edition { display: none; }
  .footer-nav__list { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    background: #08120F;
    border-top: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
    padding-bottom: 14px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 200ms var(--ease), transform 200ms var(--ease),
      visibility 200ms var(--ease);
  }
  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px var(--shell) 10px;
  }
  .site-nav__item + .site-nav__item { border-top: 1px solid var(--line-soft); }
  .site-nav__item a {
    display: block;
    padding: 14px 2px;
    font-size: 16px;
  }
  .site-nav__item a::after {
    left: 0;
    right: auto;
    bottom: 6px;
    width: 22px;
    height: 1px;
  }
  .site-nav__item a[aria-current="page"]::before {
    top: 50%;
    left: auto;
    right: 2px;
    transform: translateY(-50%);
  }
  .site-nav__track { display: none; }

  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .col-4, .col-5, .col-6, .col-7, .col-8, .col-12 { grid-column: span 6; }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  .masthead__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
  }
  .brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .brand__name { font-size: 1.12rem; }
  .brand__sub { display: none; }
  .masthead__tools { margin-left: auto; }
  .quick-entry__full { display: none; }
  .quick-entry__short { display: inline; }
  .quick-entry { padding: 8px 10px; }

  .site-nav__list { padding-inline: 16px; }

  .grid { gap: 16px; }
  .grid--12 { grid-template-columns: 1fr; }
  .col-4, .col-5, .col-6, .col-7, .col-8, .col-12 { grid-column: 1 / -1; }

  .site-footer__inner {
    grid-template-columns: 1fr;
    padding-inline: 16px;
  }
  .footer-nav__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__base {
    flex-direction: column;
    align-items: flex-start;
    padding-inline: 16px;
  }
  .footer-feedback { align-self: flex-end; }
}

/* ---------- 19. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .panel:hover { transform: none; }
  .btn:hover { transform: none; }
  .slant-rule { transform: none; }
}
