/* =========================================================
   球友汇中心 · 共享样式表 /assets/site.css
   夜场墨绿打底 · 荧光青柠索引 · 暖纸阅读面
   ========================================================= */

*, *::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[class], ol[class] { list-style: none; padding-left: 0; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

:root {
  --ink: #0C2019;
  --ink-2: #14352A;
  --ink-3: #1E4234;
  --lime: #C9F24A;
  --paper: #F4EBD9;
  --paper-2: #E3D4B9;
  --orange: #FF7A2F;
  --white: #F6FBF4;
  --stone: #8FA79A;
  --slate: #1B2A2E;
  --amber: #FFC857;

  --rail-w: 104px;
  --bar-h: 48px;
  --cut: 5deg;

  --wrap-max: 1180px;
  --gutter: clamp(18px, 4vw, 56px);

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

  --dur: 200ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --line: rgba(143, 167, 154, 0.34);
  --line-lime: rgba(201, 242, 74, 0.24);
}

@media (max-width: 1080px) {
  :root { --rail-w: 88px; }
}

@media (max-width: 860px) {
  :root { --rail-w: 0px; --bar-h: 44px; --gutter: 16px; }
}

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

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(12, 32, 25, 0.9);
}

body {
  min-height: 100vh;
  margin: 0;
  padding-left: var(--rail-w);
  padding-top: var(--bar-h);
  padding-bottom: var(--bar-h);
  background-color: var(--ink);
  background-image: repeating-linear-gradient(112deg, rgba(201, 242, 74, 0.028) 0 1px, transparent 1px 20px);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--lime); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------- 外壳：跳转链接 ---------------- */

.skip-link {
  position: fixed;
  top: 8px;
  left: calc(var(--rail-w) + 8px);
  z-index: 220;
  padding: 10px 18px;
  background: var(--lime);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transform: translateY(-220%);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  box-shadow: none;
}

/* ---------------- 外壳：顶部坐标条 ---------------- */

.site-frame { position: relative; z-index: 120; }

.frame-topbar {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  z-index: 90;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 var(--gutter);
  background: var(--ink-2);
  border-bottom: 1px solid var(--line-lime);
  background-image: repeating-linear-gradient(115deg, rgba(201, 242, 74, 0.045) 0 1px, transparent 1px 18px);
}

.frame-coord {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.coord-key { color: var(--stone); }
.coord-val { color: var(--lime); }

.frame-tip {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  color: var(--stone);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frame-tip::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 9px;
  background: var(--orange);
  transform: rotate(45deg) translateY(-1px);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  background: transparent;
  border: 1px solid rgba(201, 242, 74, 0.4);
  color: var(--lime);
  font-size: 13px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.nav-toggle:hover { background: rgba(201, 242, 74, 0.12); }

.nav-toggle-bar {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: background var(--dur) var(--ease);
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease);
}

.nav-toggle-bar::before { top: -5px; }
.nav-toggle-bar::after { top: 5px; }
.site-frame[data-open] .nav-toggle-bar { background: transparent; }
.site-frame[data-open] .nav-toggle-bar::before { transform: translateY(5px) rotate(45deg); }
.site-frame[data-open] .nav-toggle-bar::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------------- 外壳：左侧索引栏 ---------------- */

.frame-rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 22px 0 26px;
  background: var(--ink-2);
  border-right: 1px solid var(--line-lime);
}

.frame-rail::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(118deg, rgba(201, 242, 74, 0.05) 0 1px, transparent 1px 16px);
  pointer-events: none;
}

.rail-brand {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 4px 0 6px;
  color: var(--white);
  text-decoration: none;
}

.rail-brand:hover { text-decoration: none; }

.rail-brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  transform: rotate(-4deg);
  transition: transform var(--dur) var(--ease);
}

.rail-brand:hover .rail-brand-mark { transform: rotate(0deg) scale(1.06); }

.rail-brand-text {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--white);
}

.rail-nav {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
}

.rail-list {
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail-list::-webkit-scrollbar { display: none; }

.rail-item { display: block; }

.rail-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 11px 6px;
  color: var(--stone);
  text-decoration: none;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.rail-link:hover { color: var(--white); background: rgba(201, 242, 74, 0.09); text-decoration: none; }
.rail-link:hover .rail-num { color: var(--lime); }

.rail-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--stone);
  transition: color var(--dur) var(--ease);
}

.rail-label {
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-align: center;
}

.rail-link[aria-current="page"] {
  color: var(--ink);
  background: var(--lime);
  text-decoration: none;
}

.rail-link[aria-current="page"] .rail-num { color: rgba(12, 32, 25, 0.66); }

.rail-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  width: 20px;
  height: 2px;
  background: var(--lime);
  transform: translateY(-50%);
}

.rail-note {
  position: relative;
  z-index: 1;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  max-height: 172px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  color: var(--stone);
}

/* ---------------- 外壳：底部全场进度条 ---------------- */

.frame-progress {
  position: fixed;
  left: var(--rail-w);
  right: 0;
  bottom: 0;
  z-index: 90;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 var(--gutter);
  background: var(--ink-2);
  border-top: 1px solid var(--line-lime);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--stone);
}

.progress-label { flex: 0 0 auto; color: var(--stone); }

.progress-track {
  position: relative;
  flex: 1 1 auto;
  height: 4px;
  background: rgba(246, 251, 244, 0.12);
  background-image: repeating-linear-gradient(90deg, rgba(246, 251, 244, 0.18) 0 1px, transparent 1px 10%);
  overflow: hidden;
}

.progress-bar {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--lime);
  transition: width 90ms linear;
}

.progress-readout { flex: 0 0 auto; min-width: 48px; text-align: right; color: var(--amber); }

/* ---------------- 页脚 ---------------- */

.site-foot {
  position: relative;
  margin-top: clamp(56px, 9vw, 140px);
  padding: clamp(48px, 8vw, 92px) var(--gutter) 0;
  background: var(--ink-2);
  border-top: 1px solid var(--line-lime);
  color: var(--stone);
  overflow: hidden;
}

.site-foot::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(122deg, rgba(201, 242, 74, 0.04) 0 1px, transparent 1px 22px);
  pointer-events: none;
}

.foot-grid {
  position: relative;
  max-width: var(--wrap-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(240px, 1.25fr) minmax(180px, 0.85fr);
  gap: clamp(28px, 5vw, 64px);
  padding-bottom: clamp(36px, 6vw, 68px);
}

.foot-col { min-width: 0; }

.foot-title {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--lime);
}

.foot-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }

.foot-link {
  display: inline-block;
  padding-bottom: 1px;
  color: var(--paper);
  font-size: 15px;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.foot-link:hover { color: var(--lime); border-bottom-color: var(--lime); text-decoration: none; }

.contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 15px;
}

.contact-key {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--stone);
}

.contact-val {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--white);
  word-break: break-all;
}

.copy-btn {
  flex: 0 0 auto;
  padding: 2px 10px;
  background: transparent;
  border: 1px solid rgba(201, 242, 74, 0.42);
  color: var(--lime);
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.copy-btn:hover { background: var(--lime); color: var(--ink); }

.copy-btn[data-copied="true"] {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

.foot-brand {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--white);
  transform: skewX(-4deg);
  transform-origin: left center;
}

.foot-meta {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--stone);
}

.foot-strip {
  position: relative;
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 18px 0 20px;
  border-top: 1px solid var(--line-lime);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--stone);
}

.foot-strip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--lime), rgba(201, 242, 74, 0) 72%);
}

/* ---------------- 通用排版 ---------------- */

.wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.display-1,
.display-2,
.display-3 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  transform: skewX(-4deg);
  transform-origin: left bottom;
}

.display-1 { font-size: clamp(40px, 7vw, 96px); line-height: 0.96; }
.display-2 { font-size: clamp(30px, 4.2vw, 58px); line-height: 1.02; }
.display-3 { font-size: clamp(21px, 2.4vw, 30px); line-height: 1.16; }

.lede {
  margin: 18px 0 0;
  max-width: 58ch;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.8;
  color: var(--stone);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.15em;
  letter-spacing: 0.04em;
}

.section { padding-block: clamp(56px, 9vw, 140px); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: clamp(24px, 4vw, 48px);
}

.section-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--lime);
}

.vlabel {
  position: absolute;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--stone);
  pointer-events: none;
}

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.btn:hover { text-decoration: none; }

.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: #FF9052; transform: translate(-2px, -3px) skewX(-4deg); }

.btn-ghost {
  background: transparent;
  color: var(--lime);
  border-color: rgba(201, 242, 74, 0.5);
}

.btn-ghost:hover { background: rgba(201, 242, 74, 0.14); transform: translate(-2px, -3px); }

/* ---------------- 面包屑 ---------------- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 clamp(20px, 3vw, 36px);
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--stone);
}

.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li:not(:last-child)::after { content: "/"; color: rgba(143, 167, 154, 0.5); }
.breadcrumb a { color: var(--stone); }
.breadcrumb a:hover { color: var(--lime); text-decoration: none; }
.breadcrumb [aria-current="page"] { color: var(--lime); }

/* ---------------- 暖纸阅读面板 ---------------- */

.paper-panel {
  --panel-cut: clamp(18px, 3vw, 40px);
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(24px, 4vw, 52px);
  padding-bottom: calc(clamp(24px, 4vw, 52px) + var(--panel-cut));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--panel-cut)), 0 100%);
}

.paper-panel h2,
.paper-panel h3 { color: var(--ink); }
.paper-panel a { color: #14532D; text-decoration: underline; text-underline-offset: 3px; }
.paper-panel a:hover { color: #0C2019; }
.paper-panel .lede { color: #4A5A52; }

/* ---------------- 网格 ---------------- */

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 28px);
}

.grid-tilt { transform: rotate(-2deg); }
.grid-tilt > * { transform: rotate(2deg); }

/* ---------------- 比分牌模块 ---------------- */

.scoreboard {
  display: grid;
  gap: 10px;
  padding: clamp(16px, 2.4vw, 26px);
  background: var(--slate);
  border-left: 3px solid var(--lime);
}

.scoreboard-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--white);
}

.scoreboard-label {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--stone);
}

.scoreboard-rule {
  height: 2px;
  background-image: repeating-linear-gradient(90deg, var(--lime) 0 8px, transparent 8px 14px);
}

/* ---------------- 折叠面板 ---------------- */

.acc { border-top: 1px solid var(--line); }

.acc-item { border-bottom: 1px solid var(--line); }
.acc-item[open] { border-left: 3px solid var(--lime); }

.acc-item > summary {
  position: relative;
  padding: 16px 6px 16px 30px;
  font-weight: 700;
  color: var(--white);
  cursor: pointer;
  list-style: none;
}

.acc-item > summary::-webkit-details-marker { display: none; }

.acc-item > summary::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-left: 2px solid var(--lime);
  border-bottom: 2px solid var(--lime);
  transform: translateY(-70%) rotate(-45deg);
  transition: transform var(--dur) var(--ease);
}

.acc-item[open] > summary::before { transform: translateY(-30%) rotate(135deg); }

.acc-body {
  padding: 0 6px 22px 30px;
  color: var(--stone);
}

.paper-panel .acc { border-top-color: rgba(12, 32, 25, 0.2); }
.paper-panel .acc-item { border-bottom-color: rgba(12, 32, 25, 0.2); }
.paper-panel .acc-item > summary { color: var(--ink); }
.paper-panel .acc-body { color: #4A5A52; }

/* ---------------- 数据表 ---------------- */

.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-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--stone);
}

.data-table td.num,
.data-table th.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.paper-panel .data-table th,
.paper-panel .data-table td { border-bottom-color: rgba(12, 32, 25, 0.18); }
.paper-panel .data-table thead th { color: #5A6A61; }

/* ---------------- 图片容器 ---------------- */

.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--slate);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
  transition: transform 320ms var(--ease);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(27, 42, 46, 0.2), rgba(12, 32, 25, 0.66));
  pointer-events: none;
}

.media-frame--wide { aspect-ratio: 16 / 7; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--cut { clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%); }
.media-frame:hover img { transform: scale(1.04); }

.media-caption {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--stone);
}

/* ---------------- 显现动画 ---------------- */

.reveal {
  opacity: 0;
  transform: translate(12px, 12px);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}

.reveal.is-in { opacity: 1; transform: none; }

[data-nav] a { transition: color var(--dur) var(--ease), background var(--dur) var(--ease); }

/* ---------------- 移动端与平板 ---------------- */

@media (max-width: 1080px) {
  .rail-label { font-size: 11px; }
  .foot-grid { grid-template-columns: minmax(150px, 0.85fr) minmax(200px, 1.2fr) minmax(150px, 0.85fr); }
}

@media (max-width: 860px) {
  body { padding-left: 0; padding-top: calc(var(--bar-h) + 4px); }

  .frame-topbar {
    left: 0;
    gap: 10px;
    padding: 0 14px;
  }

  .coord-key { display: none; }

  .frame-coord { font-size: 11px; letter-spacing: 0.1em; }

  .frame-tip { font-size: 12px; }

  .nav-toggle { display: inline-flex; margin-left: auto; flex: 0 0 auto; }

  .frame-rail {
    top: var(--bar-h);
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    visibility: hidden;
    max-height: 0;
    padding: 0 16px;
    gap: 0;
    align-items: stretch;
    border-right: 0;
    border-bottom: 1px solid var(--line-lime);
    opacity: 0;
    overflow: hidden;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
    transition: max-height 260ms var(--ease), opacity 180ms var(--ease), padding 260ms var(--ease);
  }

  .site-frame[data-open] .frame-rail {
    visibility: visible;
    max-height: calc(100vh - var(--bar-h) - 8px);
    max-height: calc(100dvh - var(--bar-h) - 8px);
    padding: 22px 16px 30px;
    opacity: 1;
    overflow-y: auto;
  }

  .rail-brand {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 0 0 16px;
    margin-bottom: 10px;
    border-bottom: 1px dashed rgba(201, 242, 74, 0.28);
  }

  .rail-brand-text {
    writing-mode: horizontal-tb;
    font-size: 18px;
    letter-spacing: 0.08em;
  }

  .rail-nav { flex: none; align-items: stretch; }
  .rail-list { gap: 4px; }

  .rail-link {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 13px 12px;
  }

  .rail-num { font-size: 13px; }
  .rail-label { font-size: 16px; text-align: left; }
  .rail-link[aria-current="page"]::after { display: none; }

  .rail-note {
    writing-mode: horizontal-tb;
    transform: none;
    max-height: none;
    margin-top: 18px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-align: center;
  }

  .frame-progress { gap: 12px; font-size: 10px; letter-spacing: 0.12em; }
  .progress-readout { min-width: 40px; }

  .foot-grid { grid-template-columns: 1fr; gap: 34px; }
  .foot-strip { flex-direction: column; align-items: flex-start; }
  .display-1, .display-2, .display-3 { transform: skewX(-2deg); }
}

@media (max-width: 520px) {
  .frame-tip { display: none; }
  .contact-val { font-size: 13px; }
}

/* ---------------- 动效降级 ---------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal { opacity: 1; transform: none; }
  .btn:hover,
  .btn-primary:hover,
  .btn-ghost:hover,
  .rail-brand:hover .rail-brand-mark { transform: none; }
  .media-frame:hover img { transform: none; }
}
