/* ==========================================================================
   企鹅体育 · 赛事档案室 — 共享样式 /assets/site.css
   色彩节奏：深空蓝与企鹅深蓝作大面锚点，星芒银／纸白作基底，
   冰蓝管数据，荧光青绿管实时状态，暖橙管裁判与赛程节点。
   ========================================================================== */

/* ---------- 1. Reset & 设计变量 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--masthead-h) + 20px);
}

body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
table { border-collapse: collapse; }

:root {
  /* 品牌色板 */
  --ink: #0A0C10;
  --paper: #F5F7FA;
  --space: #0B1B3A;
  --penguin: #123A6B;
  --ice: #7FD3F2;
  --silver: #D6DEE8;
  --mint: #2EF2B0;
  --orange: #FF8A3D;
  --steel: #6B7A90;
  --turf: #0F3D2E;
  --white: #FFFFFF;

  /* 字体：窄体重黑体标题 / 等宽数字 / 高可读正文 */
  --font-title: "HarmonyOS Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: var(--font-title);
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  /* 版面尺度 */
  --shell-max: 1440px;
  --gutter: clamp(16px, 3.4vw, 56px);
  --masthead-h: 76px;

  /* 粗野主义结构 */
  --bw: 2px;
  --shadow-hard: 6px 6px 0 var(--ink);
  --shadow-soft: 6px 6px 0 var(--silver);
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- 2. 基础排版与中文阅读 ---------- */
body {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.02vw, 17px);
  line-height: 1.72;
  letter-spacing: .01em;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(40px, 7vw, 96px); }
h2 { font-size: clamp(28px, 4vw, 56px); }
h3 { font-size: clamp(20px, 2.2vw, 30px); }
h4 { font-size: clamp(17px, 1.4vw, 20px); }

p { text-wrap: pretty; }

::selection { background: var(--mint); color: var(--ink); }

:where(p, li, dd) a {
  color: var(--penguin);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
:where(p, li, dd) a:hover { color: var(--orange); }

:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
}

/* ---------- 3. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  top: -110px;
  left: var(--gutter);
  z-index: 90;
  padding: 12px 18px;
  background: var(--mint);
  color: var(--ink);
  font-weight: 800;
  border: var(--bw) solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: top .18s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { top: 10px; }

/* ---------- 4. 头部：透明叠加 → 实色阅读状态 ---------- */
.masthead {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  color: var(--paper);
  background: linear-gradient(180deg, rgba(11, 27, 58, .82) 0%, rgba(11, 27, 58, .34) 62%, rgba(11, 27, 58, 0) 100%);
  border-bottom: var(--bw) solid transparent;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}

.masthead[data-scrolled="true"],
.masthead[data-open="true"] {
  background: var(--space);
  border-bottom-color: var(--ice);
}

.masthead__inner {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 12px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
}

/* 品牌 */
.brand {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding-left: 12px;
  border-left: 4px solid var(--mint);
}
.brand__mark {
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: .02em;
  color: var(--paper);
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: .08em;
  color: var(--ice);
}

/* 移动菜单按钮 */
.nav-toggle {
  order: 2;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: var(--bw) solid var(--ice);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.nav-toggle:hover { background: rgba(127, 211, 242, .16); }
.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: var(--mint);
  transition: transform .18s var(--ease), opacity .18s var(--ease);
}
.masthead[data-open="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.masthead[data-open="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.masthead[data-open="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 导航：手机竖向面板 */
.nav {
  order: 3;
  flex: 1 0 100%;
  display: none;
}
.masthead[data-open="true"] .nav {
  display: block;
  animation: navDrop .2s var(--ease);
}
@keyframes navDrop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav__list {
  display: flex;
  flex-direction: column;
  counter-reset: nav-idx;
}
.nav__item { counter-increment: nav-idx; display: flex; }
.nav__item--cta { counter-increment: none; margin-top: 16px; }

.nav__link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  padding: 14px 2px;
  font-size: 16px;
  font-weight: 700;
  color: var(--paper);
  border-bottom: 1px solid rgba(214, 222, 232, .2);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav__link::before {
  content: counter(nav-idx, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .06em;
  color: var(--ice);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .2s var(--ease);
}
.nav__link:hover { color: var(--mint); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--mint); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); height: 3px; }

.nav__link--cta {
  justify-content: center;
  padding: 12px 18px;
  background: var(--mint);
  border: var(--bw) solid var(--ink);
  color: var(--space);
  font-weight: 800;
  letter-spacing: .02em;
  transition: transform .16s var(--ease), background-color .16s var(--ease);
}
.nav__link--cta::before,
.nav__link--cta::after { content: none; }
.nav__link--cta:hover { background: var(--ice); color: var(--space); transform: translate(-2px, -2px); }

.masthead__utility {
  order: 4;
  display: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--ice);
}

/* 滚动进度刻度 */
.masthead__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: linear-gradient(90deg, var(--mint) 0%, var(--ice) 70%, var(--silver) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* 头部：桌面横排 */
@media (min-width: 1000px) {
  .masthead__inner {
    flex-wrap: nowrap;
    gap: clamp(16px, 2.4vw, 40px);
    padding: 16px var(--gutter);
  }
  .nav {
    order: 2;
    display: block;
    flex: 1 1 auto;
    margin-left: clamp(8px, 2vw, 32px);
  }
  .nav__list {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(6px, 1.5vw, 26px);
  }
  .nav__item { display: block; }
  .nav__item--cta { margin-top: 0; margin-left: clamp(4px, 1vw, 16px); }
  .nav__link {
    width: auto;
    padding: 10px 2px;
    font-size: 15px;
    font-weight: 600;
    border-bottom: 0;
  }
  .nav__link--cta {
    padding: 10px 16px;
    box-shadow: 4px 4px 0 rgba(10, 12, 16, .45);
  }
  .nav-toggle { display: none; }
  .masthead__utility { order: 3; display: block; margin-left: auto; }
}

/* ---------- 5. 页脚 ---------- */
.site-foot {
  position: relative;
  margin-top: clamp(48px, 8vw, 120px);
  background: var(--space);
  color: var(--paper);
  border-top: 6px solid var(--ink);
}
.site-foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background-image: repeating-linear-gradient(90deg, var(--ice) 0 2px, transparent 2px 48px);
  opacity: .45;
  pointer-events: none;
}

.site-foot__inner {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 76px) var(--gutter) clamp(24px, 4vw, 44px);
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 760px) {
  .site-foot__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .site-foot__inner { grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, 1.1fr); }
}

.site-foot__brand { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.site-foot__mark {
  padding-left: 14px;
  border-left: 5px solid var(--mint);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--paper);
}
.site-foot__tagline {
  max-width: 42ch;
  font-size: 15px;
  color: var(--silver);
}
.site-foot__utility {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--ice);
}

.site-foot__heading {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .16em;
  color: var(--ice);
  text-transform: uppercase;
}

.site-foot__links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
}
@media (min-width: 520px) {
  .site-foot__links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 22px; }
}
.site-foot__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 0;
  color: var(--silver);
  font-size: 15px;
  border-bottom: 1px solid rgba(214, 222, 232, .16);
  transition: color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.site-foot__link::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--steel);
  flex: 0 0 auto;
  transition: background-color .18s var(--ease);
}
.site-foot__link:hover {
  color: var(--mint);
  border-bottom-color: var(--mint);
  transform: translateX(3px);
}
.site-foot__link:hover::before { background: var(--mint); }

.site-foot__contact { min-width: 0; }
.contact-list { display: flex; flex-direction: column; gap: 12px; }
.contact-list__item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(214, 222, 232, .16);
  font-size: 15px;
}
.contact-list__key {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--steel);
  padding-top: 3px;
}
.contact-list__val { color: var(--paper); overflow-wrap: anywhere; }
.contact-list__val.u-mono { font-family: var(--font-mono); letter-spacing: .02em; }

.site-foot__note {
  margin-top: 16px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--silver);
  background: rgba(127, 211, 242, .08);
  border-left: 4px solid var(--orange);
}

.site-foot__legal {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 18px var(--gutter) 26px;
  border-top: 1px solid rgba(214, 222, 232, .2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--silver);
}
.site-foot__legal-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-foot__legal-links a {
  color: var(--ice);
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.site-foot__legal-links a:hover { color: var(--mint); border-bottom-color: var(--mint); }
.site-foot__filing { color: var(--steel); }

.to-top {
  margin-left: auto;
  padding: 9px 16px;
  border: var(--bw) solid var(--ice);
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s var(--ease), visibility .2s var(--ease), background-color .18s var(--ease), color .18s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--ice); color: var(--space); }

/* ---------- 6. 通用外壳与排版工具 ---------- */
.u-shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.u-shell--narrow { max-width: 980px; }

.u-below-masthead { padding-top: calc(var(--masthead-h) + clamp(24px, 4vw, 56px)); }

.u-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.u-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--steel);
}
.u-eyebrow::before {
  content: "";
  width: 30px;
  height: 3px;
  background: var(--mint);
  flex: 0 0 auto;
}

.u-index {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(56px, 10vw, 150px);
  line-height: .82;
  letter-spacing: -.02em;
  color: var(--silver);
  -webkit-text-stroke: 2px var(--ink);
}

.u-rule {
  height: 4px;
  border: 0;
  margin: 0;
  background: var(--ink);
}

/* ---------- 7. 组件：章节头 / 面板 / 按钮 / 标签 ---------- */
.section-head {
  display: grid;
  gap: 10px;
  padding-top: 16px;
  margin-bottom: clamp(20px, 3vw, 36px);
  border-top: 4px solid var(--ink);
}
.section-head__title { font-size: clamp(26px, 3.6vw, 48px); }
.section-head__meta {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--steel);
}
.section-head--dark { border-top-color: var(--ice); color: var(--paper); }
.section-head--dark .section-head__meta { color: var(--ice); }

.panel {
  padding: clamp(18px, 3vw, 30px);
  background: var(--white);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-soft);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.panel:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }

.panel--dark {
  background: var(--space);
  color: var(--paper);
  border-color: var(--space);
  box-shadow: 6px 6px 0 var(--ice);
}
.panel--dark:hover { box-shadow: 9px 9px 0 var(--mint); }

.panel--rail {
  background: rgba(214, 222, 232, .34);
  border: 0;
  border-left: 5px solid var(--ice);
  box-shadow: none;
  padding: 18px 20px;
  font-size: 14px;
  color: var(--ink);
}
.panel--rail:hover { transform: none; box-shadow: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .02em;
  background: var(--paper);
  color: var(--ink);
  border: var(--bw) solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background-color .16s var(--ease), color .16s var(--ease);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(1px, 1px); box-shadow: 3px 3px 0 var(--ink); }

.btn--solid {
  background: var(--space);
  color: var(--paper);
  border-color: var(--space);
  box-shadow: 5px 5px 0 var(--mint);
}
.btn--solid:hover { background: var(--penguin); box-shadow: 7px 7px 0 var(--mint); }

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--ice);
  box-shadow: 5px 5px 0 rgba(127, 211, 242, .35);
}
.btn--ghost:hover { background: rgba(127, 211, 242, .14); box-shadow: 7px 7px 0 var(--ice); }

.btn--mint {
  background: var(--mint);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--steel);
  background: var(--paper);
  border: 1px solid currentColor;
}
.tag--ice { color: var(--penguin); background: rgba(127, 211, 242, .22); border-color: var(--ice); }
.tag--mint { color: var(--turf); background: rgba(46, 242, 176, .2); border-color: var(--mint); }
.tag--alert { color: #8A3E00; background: rgba(255, 138, 61, .2); border-color: var(--orange); }

/* ---------- 8. 组件：数据数字 / 表格 / 面包屑 / 图片位 ---------- */
.data-figure {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 14px;
  border-left: 5px solid var(--ice);
}
.data-figure__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.02em;
  color: var(--ink);
}
.data-figure__unit {
  margin-left: 6px;
  font-size: .34em;
  letter-spacing: .06em;
  color: var(--steel);
}
.data-figure__label {
  font-size: 14px;
  line-height: 1.5;
  color: var(--steel);
}
.data-figure--ice .data-figure__value { color: var(--penguin); }
.data-figure--mint { border-left-color: var(--mint); }
.data-figure--mint .data-figure__value { color: var(--turf); }
.data-figure--orange { border-left-color: var(--orange); }
.data-figure--orange .data-figure__value { color: #B4520F; }
.panel--dark .data-figure { border-left-color: var(--mint); }
.panel--dark .data-figure__value { color: var(--paper); }
.panel--dark .data-figure__label,
.panel--dark .data-figure__unit { color: var(--ice); }

.data-table {
  width: 100%;
  font-size: 15px;
  text-align: left;
}
.data-table caption {
  padding-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--steel);
  text-align: left;
}
.data-table th {
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .1em;
  color: var(--penguin);
  border-bottom: 3px solid var(--ink);
  white-space: nowrap;
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--silver);
  vertical-align: top;
}
.data-table td.u-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.data-table tbody tr:nth-child(even) { background: rgba(214, 222, 232, .4); }
.data-table tbody tr:hover { background: rgba(127, 211, 242, .2); }
@media (max-width: 719px) {
  .data-table { display: block; overflow-x: auto; white-space: nowrap; }
}

.breadcrumb { padding-block: 14px; }
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--steel);
}
.breadcrumb__item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb__item + .breadcrumb__item::before { content: "/"; color: var(--silver); }
.breadcrumb__link:hover { color: var(--penguin); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb__item[aria-current="page"] { color: var(--ink); }
.breadcrumb__item[aria-current="page"] .breadcrumb__link { color: var(--ink); }

.media-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: var(--bw) solid var(--ink);
  background: linear-gradient(135deg, var(--space) 0%, var(--penguin) 58%, var(--turf) 100%);
  box-shadow: var(--shadow-soft);
}
.media-frame > img,
.media-frame > picture,
.media-frame > picture > img,
.media-frame > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(245, 247, 250, .16) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(245, 247, 250, .12) 0 1px, transparent 1px 48px);
  pointer-events: none;
}
.media-frame img { transition: transform .4s var(--ease); }
.media-frame:hover img { transform: scale(1.03); }
.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--paper);
  background: rgba(11, 27, 58, .82);
  border-top: 2px solid var(--mint);
}

/* ---------- 9. 版面骨架 ---------- */
.layout-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3vw, 44px);
}
@media (min-width: 1080px) {
  .layout-rail { grid-template-columns: minmax(0, 1fr) 300px; }
}
.layout-rail__main { min-width: 0; }
.layout-rail__aside {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 10. 显现动效（无 JS 或 reduced-motion 时直接可见） ---------- */
html.js-on [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
html.js-on [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 11. 减弱动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  html.js-on [data-reveal] { opacity: 1; transform: none; }
  .masthead[data-open="true"] .nav { animation: none; }
}
