/* ===========================================================
   火博体育官网 · 共享层 /assets/site.css
   档案轨道 + 赛事数据带
   =========================================================== */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.is-locked, body.is-locked { overflow: hidden; }
body { margin: 0; }
img, svg, video, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, p, figure, blockquote { margin: 0; }
summary { cursor: pointer; }
summary::-webkit-details-marker { display: none; }

/* ---------- tokens ---------- */
:root {
  --ink: #0F0D0C;
  --slate: #1B1817;
  --line: #2E2A28;
  --silver: #9C968E;
  --paper: #F2ECE3;
  --paper-ink: #1F1C1A;
  --flame: #FF4A17;
  --flame-deep: #BC3208;
  --mint: #2EF2B8;
  --clay: #B4694A;
  --moss: #5C7A55;

  --rail: 88px;
  --rail-open: 220px;
  --bar-h: 64px;

  --r-card: 24px;
  --r-soft: 16px;
  --r-pill: 999px;

  --gap: clamp(16px, 2.4vw, 32px);
  --pad-y: clamp(44px, 7vw, 96px);

  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, .8, .24, 1);
}

/* ---------- base ---------- */
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .01em;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: .32;
  background-image: radial-gradient(rgba(242, 236, 227, .05) .5px, transparent .5px);
  background-size: 3px 3px;
}

h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.025em;
}
h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.18rem, 2.4vw, 1.6rem); }

.tilt { transform: rotate(-2.5deg); transform-origin: left bottom; }
.num,
[data-year],
time {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

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

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  left: 16px;
  top: -120px;
  z-index: 1000;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  background: var(--mint);
  color: #062A20;
  font-weight: 800;
  font-size: 14px;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- 页面容器 ---------- */
.shell { margin-left: var(--rail); }
.wrap {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4.4vw, 64px);
}
.section { padding-block: var(--pad-y); }
.rule { height: 1px; background: var(--line); border: 0; margin-block: clamp(28px, 5vw, 56px); }

.band {
  background: var(--slate);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(22px, 3.6vw, 44px);
}
.band--ink { background: var(--ink); }
.band--paper { background: var(--paper); color: var(--paper-ink); border-color: transparent; }
.band--paper h1, .band--paper h2, .band--paper h3 { color: var(--paper-ink); }

/* ---------- 排版组 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--silver);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--flame);
}
.section-title { font-size: clamp(1.8rem, 4vw, 3.2rem); }
.lead {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--silver);
  max-width: 60ch;
}
.band--paper .lead { color: #5B544E; }

.prose { max-width: 68ch; }
.prose p + p { margin-top: 1.05em; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul { margin: 1em 0; display: grid; gap: 8px; }
.prose li { position: relative; padding-left: 20px; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--flame);
}
.band--paper .prose { color: var(--paper-ink); }

/* ---------- 面包屑 ---------- */
.breadcrumbs { padding-block: 18px; }
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--silver);
}
.breadcrumbs__item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs__item::after { content: "/"; color: var(--line); }
.breadcrumbs__item:last-child::after { content: ""; }
.breadcrumbs__link { color: var(--silver); transition: color .18s var(--ease); }
.breadcrumbs__link:hover { color: var(--flame); }
.breadcrumbs__current { color: var(--paper); }

/* ---------- 胶囊标签 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(242, 236, 227, .03);
  color: var(--silver);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  white-space: nowrap;
  transition: border-color .18s var(--ease), color .18s var(--ease), background-color .18s var(--ease);
}
.chip--mini { font-family: var(--font-mono); font-size: 11px; padding: 3px 9px; }
.chip--flame { color: var(--flame); border-color: rgba(255, 74, 23, .45); background: rgba(255, 74, 23, .09); }
.chip--mint { color: var(--mint); border-color: rgba(46, 242, 184, .38); background: rgba(46, 242, 184, .07); }
.chip--clay { color: var(--clay); border-color: rgba(180, 105, 74, .45); background: rgba(180, 105, 74, .1); }
.chip--moss { color: #9BB893; border-color: rgba(92, 122, 85, .55); background: rgba(92, 122, 85, .14); }
.band--paper .chip { color: #5B544E; border-color: rgba(31, 28, 26, .16); background: rgba(31, 28, 26, .03); }
.band--paper .chip--flame { color: var(--flame-deep); border-color: rgba(188, 50, 8, .34); background: rgba(255, 74, 23, .1); }
.band--paper .chip--mint { color: #14664A; border-color: rgba(20, 102, 74, .3); background: rgba(46, 242, 184, .16); }

/* ---------- 卡片与数据 ---------- */
.card {
  background: var(--slate);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(18px, 2.4vw, 28px);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.card:hover { border-color: var(--flame); background: #211D1B; }

.data-card {
  position: relative;
  overflow: hidden;
  background: var(--slate);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(18px, 2.4vw, 28px);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.data-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--flame), rgba(255, 74, 23, 0));
}
.data-card:hover { border-color: rgba(255, 74, 23, .5); background: #211D1B; }

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--paper);
  transition: color .2s var(--ease);
}
.stat__value--mint { color: var(--mint); }
.stat__value--flame { color: var(--flame); }
.stat__unit { font-family: var(--font-mono); font-size: .46em; color: var(--silver); margin-left: .35em; }
.stat__label { font-size: 13px; letter-spacing: .08em; color: var(--silver); }

/* ---------- 图片容器（页面阶段放 img / svg） ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--slate);
  aspect-ratio: 16 / 10;
}
.media > img,
.media > svg,
.media > picture { width: 100%; height: 100%; object-fit: cover; }
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }
.media__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 20px;
  font-size: 13px;
  color: var(--paper);
  background: linear-gradient(to top, rgba(15, 13, 12, .92), rgba(15, 13, 12, 0));
}
.media__tag { position: absolute; top: 14px; left: 14px; }

/* ---------- 折叠区 ---------- */
.fold {
  border: 1px solid var(--line);
  border-radius: var(--r-soft);
  background: var(--slate);
  padding: 0 clamp(16px, 2vw, 22px);
  transition: border-color .2s var(--ease);
}
.fold + .fold { margin-top: 10px; }
.fold[open] { border-color: rgba(255, 74, 23, .5); }
.fold summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.fold summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--flame);
}
.fold[open] summary::after { content: "–"; }
.fold__body { padding: 0 0 18px; color: var(--silver); font-size: 16px; }
.band--paper .fold { background: #fff; border-color: rgba(31, 28, 26, .12); }
.band--paper .fold__body { color: #5B544E; }

/* ---------- 栅格 ---------- */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--asym { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }

/* ===========================================================
   头部 · 左侧档案轨道
   =========================================================== */
.site-rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  background: var(--slate);
  border-right: 1px solid var(--line);
  z-index: 60;
  transition: width .22s var(--ease);
}
.site-rail:hover,
.site-rail:focus-within { width: var(--rail-open); }

.rail-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px 0 18px;
  gap: 18px;
  overflow: hidden;
}

/* 品牌 */
.rail-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-inline: 22px;
  flex: 0 0 auto;
}
.rail-brand__mark {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(145deg, var(--flame), var(--flame-deep));
  transform: rotate(-4deg);
  box-shadow: 0 10px 26px rgba(255, 74, 23, .22);
}
.rail-brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  max-width: 0;
  transition: opacity .16s ease, max-width .22s var(--ease);
}
.site-rail:hover .rail-brand__text,
.site-rail:focus-within .rail-brand__text { opacity: 1; max-width: 170px; }
.rail-brand__name { font-size: 15px; font-weight: 800; color: var(--paper); letter-spacing: -.01em; }
.rail-brand__sub { font-size: 11px; letter-spacing: .14em; color: var(--silver); }

/* 抽屉按钮（桌面隐藏） */
.nav-toggle { display: none; }
.nav-toggle__bars { display: block; }
.nav-toggle__bars i {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle__bars i + i { margin-top: 4px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle__label { font-size: 13px; font-weight: 800; letter-spacing: .1em; }

/* 导航轨道 */
.rail-nav {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.rail-nav::-webkit-scrollbar { display: none; }

.rail-nav__list { display: flex; flex-direction: column; gap: 2px; padding-block: 4px; }
.rail-nav__item { list-style: none; }

.rail-link {
  position: relative;
  display: flex;
  align-items: center;
  height: 46px;
  padding-left: 20px;
  border-radius: 0 14px 14px 0;
  color: var(--silver);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.rail-link:hover { color: var(--paper); background: rgba(242, 236, 227, .05); }
.rail-link__idx {
  width: 48px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: #5B544E;
  transition: color .18s var(--ease);
}
.rail-link__label {
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  max-width: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: opacity .16s ease, max-width .22s var(--ease);
}
.site-rail:hover .rail-link__label,
.site-rail:focus-within .rail-link__label { opacity: 1; max-width: 150px; }

.rail-link[aria-current="page"] { color: var(--paper); }
.rail-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--flame);
}
.rail-link[aria-current="page"] .rail-link__idx { color: var(--flame); }
.rail-link[aria-current="page"] .rail-link__label { font-weight: 900; }

/* 赛季归档进度块 */
.rail-widget {
  margin-top: auto;
  margin-inline: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 13, 12, .5);
  flex: 0 0 auto;
}
.rail-widget__season {
  display: grid;
  place-items: center;
  width: 100%;
  height: 40px;
  border-radius: 12px;
  border: 1px dashed rgba(46, 242, 184, .35);
  background: rgba(46, 242, 184, .05);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--mint);
}
.rail-widget__body {
  overflow: hidden;
  opacity: 0;
  max-height: 0;
  margin-top: 0;
  transition: opacity .16s ease, max-height .26s var(--ease), margin-top .2s var(--ease);
}
.site-rail:hover .rail-widget__body,
.site-rail:focus-within .rail-widget__body { opacity: 1; max-height: 340px; margin-top: 12px; }
.rail-widget__head { font-size: 11px; letter-spacing: .14em; color: var(--silver); margin-bottom: 10px; }
.rail-widget__leagues { display: grid; gap: 8px; }
.rail-widget__league { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--silver); }
.rail-widget__name { flex: 0 0 32px; letter-spacing: .06em; }
.rail-widget__track {
  flex: 1 1 auto;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--line);
  overflow: hidden;
}
.rail-widget__fill {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--flame);
}
.rail-widget__note { margin-top: 10px; font-size: 11px; letter-spacing: .06em; color: #5B544E; }

/* 轨道底部 CTA */
.rail-actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 0;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
  text-align: center;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.btn--primary { background: var(--flame); color: #1A0A04; }
.btn--primary:hover { background: #FF6A3C; }
.btn--primary:active { background: var(--flame-deep); color: #FFF3EC; }
.btn--ghost { border-color: var(--line); color: var(--paper); }
.btn--ghost:hover { border-color: var(--flame); color: var(--flame); }

.rail-actions .btn__full { display: none; }
.rail-actions .btn__short { display: inline; }
.site-rail:hover .rail-actions .btn__full,
.site-rail:focus-within .rail-actions .btn__full { display: inline; }
.site-rail:hover .rail-actions .btn__short,
.site-rail:focus-within .rail-actions .btn__short { display: none; }

/* ===========================================================
   页脚
   =========================================================== */
.site-footer {
  margin-left: var(--rail);
  margin-top: clamp(48px, 7vw, 96px);
  padding-block: clamp(40px, 5vw, 64px) 24px;
  background: var(--slate);
  border-top: 1px solid var(--line);
  border-radius: 28px 28px 0 0;
  color: var(--silver);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.1fr .9fr 1.3fr;
  gap: clamp(24px, 3vw, 48px);
}
.footer-col { min-width: 0; }
.footer-col--brand { padding-right: 12px; }
.footer-heading {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--paper);
  margin-bottom: 16px;
}
.footer-list { display: grid; gap: 9px; font-size: 14px; }
.footer-list__item { line-height: 1.65; }
.footer-text { color: var(--silver); }
.footer-link {
  position: relative;
  display: inline-block;
  padding-block: 2px;
  color: var(--silver);
  transition: color .18s var(--ease);
}
.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--flame);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .2s var(--ease);
}
.footer-link:hover { color: var(--paper); }
.footer-link:hover::after,
.footer-link:focus-visible::after { transform: scaleX(1); }

.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand__mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(145deg, var(--flame), var(--flame-deep));
  transform: rotate(-4deg);
}
.footer-brand__name { font-size: 17px; font-weight: 900; color: var(--paper); letter-spacing: -.01em; }
.footer-brand__domain { font-family: var(--font-mono); font-size: 13px; color: var(--silver); }
.footer-filing { margin-top: 10px; font-size: 12px; letter-spacing: .06em; color: #5B544E; }

.footer-bottom {
  margin-top: clamp(32px, 4vw, 52px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 13px;
}
.footer-note { color: var(--silver); max-width: 62ch; }
.footer-copy { font-family: var(--font-mono); color: #5B544E; }

/* ===========================================================
   JS 生成物
   =========================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: var(--rail);
  right: 0;
  height: 3px;
  z-index: 85;
  pointer-events: none;
  background: rgba(242, 236, 227, .06);
}
.scroll-progress i {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--flame-deep), var(--flame));
  will-change: transform;
}
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 88;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(27, 24, 23, .94);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s, border-color .2s var(--ease), color .2s var(--ease);
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--flame); color: var(--flame); }

html[data-js] [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
html[data-js] [data-reveal].is-visible { opacity: 1; transform: none; }

/* ===========================================================
   响应式
   =========================================================== */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .shell { margin-left: 0; }
  .grid--2, .grid--3, .grid--4, .grid--asym { grid-template-columns: minmax(0, 1fr); }

  .site-rail {
    position: sticky;
    inset: auto;
    top: 0;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    height: var(--bar-h);
    z-index: 70;
    background: #171413;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    transition: none;
  }
  .site-rail:hover,
  .site-rail:focus-within { width: 100%; }

  .rail-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: var(--bar-h);
    padding: 0 16px;
    gap: 10px;
    overflow: visible;
  }
  .rail-brand { padding-inline: 0; }
  .rail-brand__text { opacity: 1; max-width: 200px; }
  .site-rail:hover .rail-brand__text,
  .site-rail:focus-within .rail-brand__text { opacity: 1; max-width: 200px; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 80;
    padding: 12px 18px;
    border-radius: var(--r-pill);
    background: var(--flame);
    color: #1A0A04;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .48);
    cursor: pointer;
  }

  .rail-nav {
    position: fixed;
    inset: 0;
    z-index: 75;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 78px 18px 130px;
    background: var(--ink);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .2s ease, transform .22s var(--ease), visibility .22s;
  }
  .site-rail[data-open] .rail-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .site-rail[data-open] .rail-brand { position: relative; z-index: 78; }

  .rail-nav__list { gap: 8px; padding: 0; }
  .rail-link {
    height: 58px;
    padding-left: 18px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--slate);
    color: var(--paper);
  }
  .rail-link__label { opacity: 1; max-width: 100%; font-size: 19px; font-weight: 800; }
  .site-rail:hover .rail-link__label,
  .site-rail:focus-within .rail-link__label { opacity: 1; max-width: 100%; }
  .rail-link__idx { width: 38px; text-align: left; color: var(--silver); }
  .rail-link[aria-current="page"] { background: rgba(255, 74, 23, .14); border-color: var(--flame); }
  .rail-link[aria-current="page"]::before { top: 13px; bottom: 13px; }

  .rail-widget { margin: 6px 0 0; padding: 14px 16px; }
  .rail-widget__season { height: 44px; font-size: 15px; }
  .rail-widget__body { opacity: 1; max-height: 360px; margin-top: 12px; }

  .rail-actions { flex-direction: row; padding: 0; margin-top: 14px; }
  .rail-actions .btn { flex: 1 1 0; }
  .rail-actions .btn__full { display: inline; }
  .rail-actions .btn__short { display: none; }

  .site-footer {
    margin-left: 0;
    border-radius: 20px 20px 0 0;
    padding-bottom: 110px;
  }

  .scroll-progress { left: 0; }
  .to-top { right: 16px; bottom: 84px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .rail-brand__sub { display: none; }
  .rail-brand__text { max-width: 150px; }
}

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