/* ==========================================================================
   小鸟体育 CN 站 · 共享外壳样式  /assets/site.css
   城市夜空底色 + 侧边轨道导航 + 堆叠面板 + 三色轨迹
   ========================================================================== */

:root {
  --night: #0A0E24;
  --panel: #131A3A;
  --panel-2: #18204A;
  --line: #2A3462;
  --orange: #FF6A1A;
  --orange-soft: #FF9A4D;
  --neon: #B8FF3C;
  --cyan: #35D7C0;
  --paper: #F5F7FF;
  --bright: #EEF1FC;
  --ink: #10163A;
  --mist: #9BA4C9;

  --rail-w: 92px;
  --mast-h: 60px;
  --wrap: 1280px;
  --radius: 8px;
  --shadow-card: 0 12px 32px rgba(0, 0, 0, .35);
  --ease: cubic-bezier(.22, .8, .28, 1);

  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", system-ui, -apple-system, "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
}

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

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

body {
  margin: 0;
  padding-left: var(--rail-w);
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.85;
  color: var(--bright);
  background-color: var(--night);
  background-image:
    radial-gradient(900px 520px at 84% -8%, rgba(255, 106, 26, .18), transparent 62%),
    radial-gradient(760px 460px at 4% 10%, rgba(53, 215, 192, .12), transparent 64%),
    linear-gradient(rgba(42, 52, 98, .20) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 52, 98, .20) 1px, transparent 1px);
  background-size: auto, auto, 72px 72px, 72px 72px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* --------------------------------------------------------- 中文排版 */
h1, h2, h3, h4 {
  margin: 0;
  color: var(--bright);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(34px, 5.2vw, 64px); line-height: 1.08; letter-spacing: -.02em; }
h2 { font-size: clamp(26px, 3.6vw, 44px); line-height: 1.16; }
h3 { font-size: clamp(20px, 2.2vw, 30px); font-weight: 700; }
h4 { font-size: 19px; font-weight: 700; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 215, 192, .35);
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
a:hover { border-bottom-color: var(--cyan); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { padding-left: 1.2em; }

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

/* --------------------------------------------------------- 工具类 */
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.text-neon { color: var(--neon); }
.text-cyan { color: var(--cyan); }
.text-orange { color: var(--orange); }

.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;
}

.stack > * + * { margin-top: 14px; }

.track-line {
  height: 1px;
  margin: 32px 0;
  background: linear-gradient(90deg, transparent, var(--orange) 28%, var(--cyan) 68%, transparent);
}

/* --------------------------------------------------------- 跳至主内容 */
.skip-link {
  position: fixed;
  top: 10px; left: 50%;
  z-index: 300;
  padding: 10px 20px;
  border-radius: 999px;
  border-bottom: none;
  background: var(--orange);
  color: #1A0A00;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  transform: translate(-50%, -180%);
  transition: transform .2s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* --------------------------------------------------------- 轨道标记 */
.brand-mark {
  position: relative;
  display: inline-block;
  flex: none;
  width: 22px; height: 22px;
  border: 2px solid var(--orange);
  border-radius: 50%;
}
.brand-mark::after {
  content: "";
  position: absolute;
  top: 50%; right: -3px;
  width: 6px; height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px rgba(184, 255, 60, .9);
}

/* --------------------------------------------------------- 头部 */
.site-header { position: relative; z-index: 60; }

.masthead {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--mast-h);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px 0 16px;
  background: rgba(10, 14, 36, .95);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 85;
}

.masthead__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--bright);
  border-bottom: none;
}
.masthead__name { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.masthead__sub {
  padding: 2px 6px;
  border: 1px solid rgba(184, 255, 60, .4);
  border-radius: 4px;
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px 9px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--bright);
  background: rgba(42, 52, 98, .5);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.nav-toggle:hover { border-color: var(--orange); color: var(--orange-soft); }
.nav-toggle__bars { position: relative; flex: none; width: 16px; height: 10px; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px; height: 2px;
  background: var(--orange);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.nav-toggle__bars::before { top: 0; box-shadow: 0 4px 0 0 var(--orange); }
.nav-toggle__bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(4px) rotate(45deg);
  box-shadow: none;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-4px) rotate(-45deg);
}

/* --------------------------------------------------------- 侧边轨道导航 */
.rail {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px 0 18px;
  background: linear-gradient(180deg, rgba(19, 26, 58, .97) 0%, rgba(10, 14, 36, .99) 100%);
  border-right: 1px solid var(--line);
  z-index: 80;
}
.rail::before {
  content: "";
  position: absolute;
  top: 0; right: -1px; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--orange), var(--cyan), transparent);
  opacity: .55;
  pointer-events: none;
}

.rail__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--bright);
  border-bottom: none;
}
.rail__name {
  writing-mode: vertical-rl;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--mist);
}

.rail__list {
  flex: 1;
  min-height: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  overflow-y: auto;
  scrollbar-width: none;
}
.rail__list::-webkit-scrollbar { width: 0; }

.rail__item { width: 100%; display: flex; justify-content: center; }

.rail__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 10px 2px;
  color: var(--mist);
  border-bottom: none;
  border-left: 2px solid transparent;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.rail__link:hover {
  color: var(--bright);
  background: rgba(255, 106, 26, .08);
}
.rail__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--line);
  transition: color .2s var(--ease);
}
.rail__label {
  writing-mode: vertical-rl;
  font-size: 13px;
  letter-spacing: .16em;
}
.rail__link[aria-current="page"] {
  color: var(--orange);
  border-left-color: var(--orange);
  background: linear-gradient(90deg, rgba(255, 106, 26, .18), transparent);
}
.rail__link[aria-current="page"] .rail__num { color: var(--neon); }

.rail__foot {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------- 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
  text-align: center;
  border: 1px solid transparent;
  border-bottom: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn--primary {
  background: linear-gradient(120deg, var(--orange), var(--orange-soft));
  color: #1A0A00;
  box-shadow: 0 10px 26px rgba(255, 106, 26, .32);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255, 106, 26, .42); }
.btn--ghost {
  background: transparent;
  color: var(--bright);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn--quiet {
  background: rgba(53, 215, 192, .12);
  color: var(--cyan);
  border-color: rgba(53, 215, 192, .4);
}
.btn--quiet:hover { background: rgba(53, 215, 192, .2); }

.btn--rail {
  writing-mode: vertical-rl;
  padding: 15px 9px;
  font-size: 13px;
  letter-spacing: .18em;
}

/* --------------------------------------------------------- 滚动进度 */
.scroll-progress {
  position: fixed;
  top: 0; left: var(--rail-w); right: 0;
  height: 3px;
  z-index: 90;
  pointer-events: none;
  background: rgba(42, 52, 98, .35);
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--orange), var(--neon));
  transition: transform .1s linear;
}

/* --------------------------------------------------------- 容器与栅格 */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 48px);
}
.wrap--narrow { max-width: 880px; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--asym { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

/* --------------------------------------------------------- 堆叠面板 */
.panel {
  position: relative;
  margin-bottom: 24px;
  padding: clamp(22px, 3.4vw, 46px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.panel::after {
  content: attr(data-index);
  position: absolute;
  top: 6px; right: 16px;
  z-index: 0;
  font-family: var(--font-mono);
  font-size: clamp(64px, 9vw, 88px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  color: rgba(42, 52, 98, .55);
  pointer-events: none;
}
.panel > * { position: relative; z-index: 1; }

.panel--offset { margin-left: 24px; }

.panel--paper {
  background: var(--paper);
  border-color: #DDE3F5;
  color: var(--ink);
}
.panel--paper h1,
.panel--paper h2,
.panel--paper h3,
.panel--paper h4 { color: var(--ink); }
.panel--paper::after { color: rgba(16, 22, 58, .08); }

/* --------------------------------------------------------- 章节标题组 */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}
.section-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--neon);
}
.section-title { font-size: clamp(24px, 3.2vw, 38px); line-height: 1.22; }
.section-lead {
  max-width: 36em;
  font-size: 16px;
  color: var(--mist);
}
.panel--paper .section-lead { color: #4A5580; }

.display-title {
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.02em;
  padding-right: .06em;
  transform: skewX(-6deg);
  transform-origin: left center;
}

.annotation {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--mist);
}

/* --------------------------------------------------------- 卡片 */
.float-card {
  position: relative;
  overflow: hidden;
  padding: 20px 22px;
  background: var(--panel-2);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.float-card:hover {
  transform: translateY(-6px) rotate(-1.5deg);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .45);
}
.float-card__tag { position: absolute; top: 0; left: 0; display: flex; }
.float-card__tag span { display: block; width: 26px; height: 3px; }
.float-card__tag span:nth-child(1) { background: var(--orange); }
.float-card__tag span:nth-child(2) { background: var(--cyan); }
.float-card__tag span:nth-child(3) { background: var(--neon); }

.archive-card {
  position: relative;
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.archive-card__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  background: rgba(53, 215, 192, .1);
  border: 1px solid rgba(53, 215, 192, .45);
  border-bottom: none;
  border-radius: 3px 3px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--cyan);
}

/* --------------------------------------------------------- 筛选与标签页 */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.filter-chip {
  padding: 8px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--mist);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: color .16s var(--ease), border-color .16s var(--ease), background .16s var(--ease), box-shadow .16s var(--ease);
}
.filter-chip:hover { color: var(--bright); border-color: var(--cyan); }
.filter-chip[aria-pressed="true"] {
  color: #04211C;
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 8px 20px rgba(53, 215, 192, .28);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}
.tab {
  padding: 10px 18px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--mist);
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: color .16s var(--ease), background .16s var(--ease);
}
.tab:hover { color: var(--bright); }
.tab[aria-selected="true"] { color: var(--ink); background: var(--paper); }

/* --------------------------------------------------------- 表格 */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.data-table thead th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--mist);
}
.data-table tbody tr:nth-child(odd) { background: rgba(42, 52, 98, .22); }
.data-table .mono { font-family: var(--font-mono); }

/* --------------------------------------------------------- 图片容器 */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(140deg, #131A3A 0%, #0A0E24 72%);
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px 14px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--bright);
  background: linear-gradient(0deg, rgba(10, 14, 36, .92), transparent);
}

/* --------------------------------------------------------- 面包屑 */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--mist);
}
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--line); }
.crumbs a { color: var(--mist); border-bottom: 1px solid transparent; }
.crumbs a:hover { color: var(--cyan); border-bottom-color: rgba(53, 215, 192, .4); }
.crumbs [aria-current="page"] { color: var(--bright); }

/* --------------------------------------------------------- 页脚 */
.site-footer {
  position: relative;
  margin-top: 96px;
  padding: 56px 0 32px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(19, 26, 58, .78), rgba(10, 14, 36, .99));
  border-top: 1px solid var(--line);
}
.footer__track {
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 106, 26, .9) 22%, rgba(53, 215, 192, .9) 55%, rgba(184, 255, 60, .85) 78%, transparent);
}
.site-footer::after {
  content: "";
  position: absolute;
  right: -120px; bottom: -160px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 26, .16), transparent 66%);
  pointer-events: none;
}
.footer__wrap { position: relative; z-index: 1; }

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr);
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.footer__brand { min-width: 0; }
.footer__logo {
  margin: 0 0 12px;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 900;
  letter-spacing: -.01em;
}
.footer__logo-sub {
  margin-left: 8px;
  vertical-align: middle;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--neon);
}
.footer__tagline {
  max-width: 28em;
  margin: 0 0 14px;
  font-size: 16px;
  color: var(--bright);
}
.footer__update {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  color: var(--mist);
}
.footer__pulse {
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 4px rgba(184, 255, 60, .16);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.footer__col-title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--orange);
}
.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer__list a {
  font-size: 15px;
  color: var(--mist);
  border-bottom: 1px solid transparent;
}
.footer__list a:hover { color: var(--bright); border-bottom-color: var(--orange); }

.footer__contact {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.footer__contact-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--bright);
}
.footer__sep { color: var(--line); }
.footer__contact-sub {
  max-width: 62em;
  margin: 0;
  font-size: 13px;
  color: var(--mist);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 20px;
  font-size: 13px;
  color: var(--mist);
}
.footer__legal p { margin: 0; }

/* --------------------------------------------------------- 入场显现 */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   响应式：平板 / 手机
   ========================================================================== */
@media (max-width: 1023.98px) {
  body {
    padding-left: 0;
    padding-top: var(--mast-h);
    background-attachment: scroll;
  }

  .masthead { display: flex; }

  .rail {
    top: var(--mast-h);
    right: 0; bottom: 0; left: auto;
    width: min(84vw, 360px);
    align-items: stretch;
    gap: 16px;
    padding: 20px 20px 28px;
    border-right: none;
    border-left: 1px solid var(--line);
    overflow-y: auto;
    transform: translateX(104%);
    transition: transform .3s var(--ease);
  }
  .rail::before { display: none; }
  .rail[data-open] { transform: translateX(0); }

  .rail__brand {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .rail__name {
    writing-mode: horizontal-tb;
    font-size: 15px;
    letter-spacing: .12em;
    color: var(--bright);
  }

  .rail__list {
    flex: none;
    align-items: stretch;
    gap: 4px;
    overflow: visible;
  }
  .rail__item { justify-content: stretch; }
  .rail__link {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 13px 12px;
    border-radius: 8px;
    border-left: 2px solid transparent;
  }
  .rail__num { font-size: 12px; color: var(--mist); }
  .rail__label { writing-mode: horizontal-tb; font-size: 16px; letter-spacing: .06em; }

  .rail__foot {
    flex-direction: row;
    width: 100%;
    gap: 10px;
    padding-top: 16px;
  }
  .btn--rail {
    writing-mode: horizontal-tb;
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    letter-spacing: .08em;
  }

  .scroll-progress { left: 0; top: var(--mast-h); height: 2px; }

  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--asym { grid-template-columns: minmax(0, 1fr); }

  .panel--offset { margin-left: 0; }

  .float-card:hover { transform: translateY(-3px); }

  .footer__top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 719.98px) {
  body { font-size: 16px; line-height: 1.8; }

  .grid,
  .grid--2,
  .grid--3 { grid-template-columns: minmax(0, 1fr); gap: 18px; }

  .panel { border-radius: 12px; }
  .panel::after { font-size: 68px; top: 2px; right: 10px; }

  .display-title { transform: skewX(-4deg); }

  .float-card:hover { transform: none; }

  .site-footer { margin-top: 64px; padding-top: 40px; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .footer__legal { flex-direction: column; }
}

/* ==========================================================================
   减少动态
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .rail { transition: none !important; }
  .float-card:hover { transform: none !important; }
}
