/* ============================================================
   BVIP赛场 · 共享样式 /assets/site.css
   01 变量与 reset
   02 中文排版与容器
   03 通用组件（按钮 / 面板 / 横带 / 媒体容器 / 表格 / 筛选）
   04 站点头部（竖栏框架导航 + 移动抽屉）
   05 站点页脚
   06 动效与响应式
   ============================================================ */

/* ---------- 01 变量与 reset ---------- */
:root {
  --deep: #0A1626;
  --night: #12263D;
  --edge: #1F3A56;
  --cyan: #35E6D0;
  --orange: #FF7A2F;
  --ice: #F2F7FB;
  --mist: #9DB2C6;
  --teal: #1FA88F;
  --sand: #FFE7D6;
  --glow: linear-gradient(115deg, rgba(53, 230, 208, 0.14), rgba(255, 122, 47, 0.08));

  --rail: 92px;
  --header-h: 60px;

  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-24: 1.5rem;
  --fs-34: 2.125rem;
  --fs-52: 3.25rem;
  --fs-84: 5.25rem;

  --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", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --cut: 18px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  line-height: 1.85;
  color: var(--ice);
  background-color: var(--deep);
  background-image:
    radial-gradient(1200px 720px at 88% -12%, rgba(53, 230, 208, 0.10), transparent 62%),
    radial-gradient(900px 620px at -6% 104%, rgba(255, 122, 47, 0.09), transparent 62%),
    linear-gradient(115deg, #0A1626 0%, #12263D 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

::selection { background: rgba(53, 230, 208, 0.3); color: var(--ice); }

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

/* ---------- 02 中文排版与容器 ---------- */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 56px);
}

.section { padding-block: clamp(34px, 6vw, 78px); }
.section--tight { padding-block: clamp(22px, 3.5vw, 44px); }

.display {
  font-size: clamp(34px, 6vw, 84px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0.04em;
  color: var(--ice);
}

.lede {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.9;
  color: var(--mist);
  max-width: 34em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
  line-height: 1;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--cyan);
}

.annotation {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mist);
  line-height: 1.6;
}
.annotation--vert { writing-mode: vertical-rl; letter-spacing: 0.32em; }

.prose {
  max-width: 36em;
  font-size: 17px;
  line-height: 1.85;
  color: #D6E3EE;
}
.prose p + p { margin-top: 1em; }
.prose h2, .prose h3 { margin-top: 1.8em; margin-bottom: 0.6em; color: var(--ice); line-height: 1.3; }
.prose ul, .prose ol { margin-top: 1em; padding-left: 1.2em; list-style: disc; }
.prose li + li { margin-top: 0.5em; }
.prose a { color: var(--cyan); border-bottom: 1px solid rgba(53, 230, 208, 0.4); }

.data-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.crumbs {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--mist);
  margin-bottom: 18px;
}
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--edge); }
.crumbs a:hover { color: var(--cyan); }
.crumbs [aria-current="page"] { color: var(--ice); }

/* ---------- 03 通用组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.82em 1.45em;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--ice);
  background: var(--night);
  border: 1px solid var(--edge);
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 13px 100%, 0 calc(100% - 13px));
  transition: transform 0.16s var(--ease), background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.btn:hover { transform: translateY(-2px); border-color: var(--cyan); }
.btn--primary { background: var(--orange); color: #2A0F00; border-color: transparent; }
.btn--primary:hover { background: #FF8F4D; border-color: transparent; }
.btn--ghost { background: rgba(53, 230, 208, 0.07); border-color: var(--cyan); color: var(--cyan); }
.btn--ghost:hover { background: rgba(53, 230, 208, 0.16); color: var(--ice); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  line-height: 1.4;
  color: var(--mist);
  background: rgba(18, 38, 61, 0.7);
  border: 1px solid var(--edge);
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(53, 230, 208, 0.18);
  animation: dot-breathe 2.6s ease-in-out infinite;
}
@keyframes dot-breathe {
  0%, 100% { box-shadow: 0 0 0 3px rgba(53, 230, 208, 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(53, 230, 208, 0.06); }
}

.panel {
  position: relative;
  padding: clamp(20px, 3vw, 34px);
  background: linear-gradient(160deg, rgba(18, 38, 61, 0.94), rgba(10, 22, 38, 0.94));
  border: 1px solid var(--edge);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 72px;
  height: 72px;
  background: linear-gradient(225deg, rgba(53, 230, 208, 0.36), transparent 72%);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  pointer-events: none;
}
.panel--float {
  box-shadow: 0 34px 70px -46px #000, 0 0 0 1px rgba(53, 230, 208, 0.14);
  transform: translateY(-2px);
}

.band {
  position: relative;
  padding: clamp(22px, 3.4vw, 40px) clamp(20px, 3vw, 38px);
  background: var(--glow);
  border: 1px solid var(--edge);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.rule-diag {
  height: 2px;
  border: 0;
  margin: clamp(26px, 5vw, 60px) 0;
  background: linear-gradient(90deg, rgba(53, 230, 208, 0.85), rgba(255, 122, 47, 0.5) 55%, transparent);
  transform: skewY(-1.4deg);
  transform-origin: left center;
}

.grid { display: grid; gap: clamp(20px, 3.5vw, 46px); align-items: start; }
.grid--7-5 { grid-template-columns: 7fr 5fr; }
.grid--5-7 { grid-template-columns: 5fr 7fr; }

.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 16 / 10;
  background: linear-gradient(150deg, #12263D, #0A1626);
  border: 1px solid var(--edge);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(53, 230, 208, 0.24) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.media-frame img,
.media-frame video,
.media-frame picture {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame__cap {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ice);
  background: linear-gradient(0deg, rgba(10, 22, 38, 0.92), rgba(10, 22, 38, 0));
}

.data-table { width: 100%; font-size: 15px; }
.data-table caption {
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--mist);
  padding-bottom: 0.8em;
}
.data-table th,
.data-table td {
  padding: 0.72em 0.8em;
  text-align: left;
  border-bottom: 1px solid var(--edge);
}
.data-table thead th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--mist);
  border-bottom-color: var(--cyan);
  white-space: nowrap;
}
.data-table tbody tr { transition: background 0.15s var(--ease); }
.data-table tbody tr:hover { background: rgba(53, 230, 208, 0.07); }
.data-table tbody td:first-child { box-shadow: inset 0 0 0 transparent; transition: box-shadow 0.15s var(--ease); }
.data-table tbody tr:hover td:first-child { box-shadow: inset 2px 0 0 var(--cyan); }
.data-table .is-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--cyan);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.filter-btn {
  padding: 8px 14px;
  font-size: 13px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: var(--mist);
  background: rgba(18, 38, 61, 0.62);
  border: 1px solid var(--edge);
  transition: color 0.15s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.filter-btn:hover { color: var(--ice); border-color: var(--cyan); }
.filter-btn[aria-pressed="true"] {
  color: var(--deep);
  font-weight: 700;
  background: var(--sand);
  border-color: var(--cyan);
  box-shadow: inset 0 0 0 1px var(--cyan);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  pointer-events: none;
  z-index: 95;
}

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 30px);
  bottom: clamp(14px, 3vw, 30px);
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--cyan) var(--p, 0deg), rgba(31, 58, 86, 0.92) 0);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  z-index: 88;
}
.to-top[data-visible] { opacity: 1; visibility: visible; transform: none; }
.to-top__inner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--deep);
  color: var(--cyan);
  font-size: 16px;
  line-height: 1;
}

/* ---------- 04 站点头部 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: calc(var(--rail) + 14px);
  z-index: 120;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #04141A;
  background: var(--cyan);
  transform: translateY(-190%);
  transition: transform 0.18s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail);
  z-index: 80;
  background: linear-gradient(180deg, rgba(18, 38, 61, 0.97) 0%, rgba(10, 22, 38, 0.99) 100%);
  border-right: 1px solid var(--edge);
}

.frame-line {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan) 22%, rgba(255, 122, 47, 0.7) 78%, transparent);
  opacity: 0.55;
  pointer-events: none;
  z-index: 79;
}

.topbar { display: none; }

.rail {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 18px 0 20px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }

.rail__top { padding: 0 12px; }

.rail__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px 0 16px;
  border-bottom: 1px solid var(--edge);
}
.rail__mark {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--cyan);
  line-height: 1;
}
.rail__name {
  writing-mode: vertical-rl;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.24em;
  color: var(--ice);
  line-height: 1;
}
.rail__tag {
  font-size: 11px;
  line-height: 1.55;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--mist);
  max-width: 6em;
}

.rail__nav { padding: 14px 0 0; }
.rail__list { display: flex; flex-direction: column; }
.rail__item + .rail__item { margin-top: 2px; }

.rail__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 12px 6px;
  color: var(--mist);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.rail__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 2px;
  background: var(--cyan);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.14s var(--ease);
}
.rail__link:hover,
.rail__link:focus-visible { color: var(--ice); }
.rail__link:hover::before,
.rail__link:focus-visible::before { transform: scaleY(1); }
.rail__link[aria-current="page"] {
  color: var(--cyan);
  background: linear-gradient(90deg, rgba(53, 230, 208, 0.14), transparent 85%);
}
.rail__link[aria-current="page"]::before { transform: scaleY(1); background: var(--orange); }

.rail__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--mist);
  opacity: 0.66;
  line-height: 1;
}
.rail__label {
  writing-mode: vertical-rl;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1;
}

.rail__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 18px 12px 0;
  padding-top: 16px;
  border-top: 1px solid var(--edge);
}
.rail__cta {
  display: block;
  width: 100%;
  padding: 10px 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  line-height: 1.4;
  color: var(--sand);
  background: rgba(255, 122, 47, 0.14);
  border: 1px solid rgba(255, 122, 47, 0.72);
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}
.rail__cta:hover { background: var(--orange); color: #2A0F00; }
.rail__status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--mist);
}

.rail-scrim { display: none; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  color: var(--ice);
  border: 1px solid var(--edge);
  background: rgba(18, 38, 61, 0.8);
}
.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--cyan);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle__text {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--mist);
  margin-left: 4px;
}

/* ---------- 05 站点页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 120px);
  border-top: 1px solid var(--edge);
  background: linear-gradient(180deg, rgba(10, 22, 38, 0) 0%, rgba(18, 38, 61, 0.78) 24%, rgba(10, 22, 38, 0.98) 100%);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(53, 230, 208, 0.16) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.45;
  pointer-events: none;
}
.footer-inner {
  position: relative;
  padding-block: clamp(38px, 6vw, 74px) 26px;
}

.footer-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 20px 40px;
  align-items: end;
}
.footer-head__main { display: flex; flex-direction: column; gap: 14px; }
.footer-claim {
  font-size: clamp(34px, 6.4vw, 70px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--ice);
}
.footer-note {
  font-size: 15px;
  line-height: 1.85;
  color: var(--mist);
  max-width: 34ch;
  padding-bottom: 6px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.45fr;
  gap: clamp(24px, 4vw, 54px);
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--edge);
}
.footer-col { min-width: 0; }
.footer-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.footer-list { display: flex; flex-direction: column; gap: 9px; }
.footer-list a {
  display: inline-block;
  font-size: 15px;
  color: var(--mist);
  transition: color 0.15s var(--ease), transform 0.15s var(--ease);
}
.footer-list a:hover { color: var(--ice); transform: translateX(3px); }
.footer-list a[aria-current="page"] { color: var(--cyan); }

.footer-kv {
  font-size: 14px;
  line-height: 1.85;
  color: var(--mist);
  word-break: break-word;
}
.footer-kv + .footer-kv { margin-top: 10px; }
.footer-kv strong {
  font-weight: 600;
  color: var(--ice);
  letter-spacing: 0.06em;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  margin-top: clamp(26px, 4vw, 46px);
  padding-top: 18px;
  border-top: 1px solid var(--edge);
  font-size: 13px;
  color: var(--mist);
}
.footer-legal {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ice);
}
.footer-fine { font-size: 12px; letter-spacing: 0.04em; }

/* ---------- 06 动效与响应式 ---------- */
@keyframes reveal-in {
  from { opacity: 0; transform: translate3d(-18px, 14px, 0); }
  to { opacity: 1; transform: none; }
}
[data-reveal].is-in {
  animation: reveal-in 0.42s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 80ms);
}

#main-content { display: block; scroll-margin-top: calc(var(--header-h) + 12px); }

@media (min-width: 861px) {
  body { padding-left: var(--rail); }
}

@media (max-width: 960px) {
  .grid--7-5,
  .grid--5-7 { grid-template-columns: 1fr; }
  .footer-head { grid-template-columns: 1fr; align-items: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --header-h: 60px; --rail: 0px; }

  .skip-link { left: 14px; }

  .site-header {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: var(--header-h);
    display: flex;
    align-items: center;
    padding: 0 14px 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--edge);
    backdrop-filter: blur(8px);
  }

  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
  }
  .topbar__brand { display: inline-flex; align-items: baseline; gap: 8px; }
  .topbar__mark {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.26em;
    color: var(--cyan);
  }
  .topbar__name { font-size: 16px; font-weight: 900; letter-spacing: 0.16em; color: var(--ice); }

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

  .rail {
    position: fixed;
    top: var(--header-h);
    left: 0;
    bottom: 0;
    width: min(300px, 85vw);
    height: auto;
    padding: 18px 0 24px;
    overflow-y: auto;
    border-right: 1px solid rgba(53, 230, 208, 0.6);
    box-shadow: 0 0 70px rgba(0, 0, 0, 0.62);
    background: linear-gradient(180deg, #12263D, #0A1626);
    transform: translateX(-104%);
    transition: transform 0.3s var(--ease);
    z-index: 82;
  }
  .rail[data-open] { transform: translateX(0); }

  .rail-scrim {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    background: rgba(4, 10, 18, 0.66);
    z-index: 81;
  }
  .rail[data-open] + .rail-scrim { display: block; }

  .rail__brand { flex-direction: row; align-items: center; gap: 12px; padding: 2px 0 14px; }
  .rail__name { writing-mode: horizontal-tb; font-size: 18px; letter-spacing: 0.14em; }
  .rail__tag { text-align: left; max-width: 15em; font-size: 11px; }

  .rail__link { flex-direction: row; align-items: center; gap: 12px; padding: 14px 18px; }
  .rail__label { writing-mode: horizontal-tb; font-size: 16px; letter-spacing: 0.12em; }
  .rail__num { font-size: 11px; }
  .rail__link::before { top: 0; bottom: 0; width: 3px; }

  .rail__foot { margin: 20px 18px 0; align-items: stretch; }
  .rail__status { flex-direction: row; justify-content: center; font-size: 11px; }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  #main-content { padding-top: var(--header-h); }

  .footer-base { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-col:last-child { grid-column: auto; }
  .btn { width: 100%; justify-content: center; }
  .data-table { font-size: 14px; }
  .data-table th,
  .data-table td { padding: 0.6em 0.5em; }
}

@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;
  }
  [data-reveal].is-in { animation: none; }
  .status-dot { animation: none; }
  .btn:hover,
  .footer-list a:hover { transform: none; }
}
