/* =========================================================
   亚星赛场 · 共享样式 /assets/site.css
   深夜球场蓝黑底 + 荧光青锚点 + 云南红土橙数据高亮
   ========================================================= */

/* ---------- 1. 变量 ---------- */
:root {
  /* 色板 */
  --ink-900: #070B14;
  --ink-800: #0E1524;
  --ink-700: #162034;
  --ink-650: #1B2740;
  --line: #2A3B57;
  --text: #E8EDF5;
  --text-soft: #C7D3E4;
  --muted: #7A8CA6;
  --cyan: #00E6C3;
  --cyan-soft: #A8FFE9;
  --clay: #FF6B35;
  --clay-soft: #FFB08A;
  --clay-deep: #3A1B12;
  --on-cyan: #04140F;
  --on-clay: #1A0C06;

  /* 字体 */
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Sarasa Mono SC", "SFMono-Regular", Menlo, Consolas, "Noto Sans Mono", monospace;

  /* 尺寸 */
  --rail-w: 248px;
  --rail-w-tight: 78px;
  --toolbar-h: 44px;
  --mobile-bar-h: 58px;
  --shell-max: 1240px;
  --gutter: clamp(20px, 4.2vw, 56px);
  --gutter-sm: clamp(16px, 4vw, 28px);

  /* 圆角：有机、不规则 */
  --r-a: 18px 6px 18px 6px;
  --r-b: 6px 16px 6px 16px;
  --r-c: 14px 14px 4px 14px;
  --r-pill: 999px;

  /* 动效 */
  --t-fast: 160ms;
  --t-base: 220ms;
  --t-slow: 300ms;
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-in: cubic-bezier(.55, .06, .68, .19);
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol, hr, fieldset {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

img, svg, picture, video {
  display: block;
  max-width: 100%;
}

img { height: auto; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
}

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

::selection {
  background: var(--cyan);
  color: var(--on-cyan);
}

/* ---------- 3. 中文排版基底 ---------- */
html, body {
  min-height: 100%;
}

body {
  background-color: var(--ink-900);
  background-image:
    radial-gradient(1100px 520px at 88% -8%, rgba(0, 230, 195, .07), transparent 62%),
    radial-gradient(760px 420px at 4% 88%, rgba(255, 107, 53, .055), transparent 66%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .004em;
  padding-top: var(--mobile-bar-h);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  display: block;
}

[id] {
  scroll-margin-top: calc(var(--mobile-bar-h) + 18px);
}

/* ---------- 4. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 120;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--cyan);
  color: var(--on-cyan);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  transform: translateY(-190%);
  transition: transform var(--t-base) var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- 5. 阅读进度 ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 100;
  background: rgba(42, 59, 87, .45);
  pointer-events: none;
}

.progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--cyan-soft) 46%, var(--clay) 100%);
}

/* ---------- 6. 左侧轨道导航 ---------- */
.rail {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  width: min(86vw, 330px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px 18px 22px;
  background:
    linear-gradient(180deg, #0B1322 0%, #070B14 62%, #070B14 100%);
  border-right: 1px solid var(--line);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(-102%);
  visibility: hidden;
  transition: transform 260ms var(--ease-out), visibility 0s linear 260ms;
}

.rail[data-open="true"] {
  transform: none;
  visibility: visible;
  transition: transform 260ms var(--ease-out), visibility 0s linear 0s;
}

.rail__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.rail__nav {
  flex: 1 1 auto;
}

.rail__quick {
  display: grid;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.rail__foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.rail__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--muted);
  white-space: nowrap;
}

.rail__close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  transition: color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}

.rail__close:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.rail__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin-left: -10px;
  border-radius: 10px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 12.5px;
  letter-spacing: .08em;
  transition: color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}

.rail__toggle:hover {
  color: var(--text);
  background: rgba(22, 32, 52, .8);
}

.rail__toggle-icon {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 14px;
  border: 1px solid currentColor;
  border-radius: 4px;
}

.rail__toggle-icon::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 4px;
  width: 1px;
  background: currentColor;
  opacity: .7;
}

.rail__scrim {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(4, 8, 16, .68);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base) var(--ease-out), visibility 0s linear var(--t-base);
}

body[data-nav-open] .rail__scrim {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--t-base) var(--ease-out), visibility 0s linear 0s;
}

/* ---------- 7. 品牌 ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__mark {
  position: relative;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 10px 4px 10px 4px;
  background: linear-gradient(140deg, var(--cyan) 0%, #0BAE95 72%, #067A69 100%);
  box-shadow: 0 0 0 1px rgba(0, 230, 195, .3), 0 10px 26px rgba(0, 230, 195, .18);
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1.5px solid rgba(7, 11, 20, .82);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.brand__text {
  min-width: 0;
}

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .05em;
  color: var(--text);
  white-space: nowrap;
}

.brand__sub {
  display: block;
  margin-top: 1px;
  font-family: var(--font-ui);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- 8. 导航链接 ---------- */
.nav-list {
  display: grid;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px 11px 15px;
  border-radius: 10px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .09em;
  transition: color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 0;
  border-radius: 2px;
  background: var(--cyan);
  transform: translateY(-50%);
  transition: height var(--t-base) var(--ease-out);
}

.nav-link__idx {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--line);
  transition: color var(--t-fast) var(--ease-out);
}

.nav-link__label {
  min-width: 0;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(22, 32, 52, .78);
}

.nav-link:hover .nav-link__idx {
  color: var(--muted);
}

.nav-link[aria-current="page"] {
  color: var(--text);
  background: rgba(0, 230, 195, .09);
}

.nav-link[aria-current="page"]::before {
  height: 62%;
}

.nav-link[aria-current="page"] .nav-link__idx {
  color: var(--cyan);
}

/* ---------- 9. 快捷入口 ---------- */
.quick-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 12.5px;
  letter-spacing: .07em;
  transition: color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}

.quick-link:hover {
  color: var(--cyan);
  background: rgba(0, 230, 195, .07);
}

.quick-link__dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(0, 230, 195, .12);
}

.quick-link__text {
  min-width: 0;
  white-space: nowrap;
}

/* ---------- 10. 移动顶栏与开关 ---------- */
.mobile-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--mobile-bar-h);
  padding: 0 var(--gutter-sm);
  background: rgba(7, 11, 20, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.mobile-bar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mobile-bar__brand .brand__mark {
  width: 26px;
  height: 26px;
}

.mobile-bar__brand .brand__mark::after {
  inset: 7px;
}

.mobile-bar__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .06em;
  color: var(--text);
  white-space: nowrap;
}

.mobile-bar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-bar__cta {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 12.5px;
  letter-spacing: .08em;
  transition: color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}

.mobile-bar__cta:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(22, 32, 52, .62);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 12.5px;
  letter-spacing: .09em;
  transition: border-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}

.nav-toggle:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: background var(--t-fast) var(--ease-out);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--t-base) var(--ease-out);
}

.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { bottom: -5px; }

[data-nav-toggle][aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

[data-nav-toggle][aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(5px) rotate(45deg);
}

[data-nav-toggle][aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-5px) rotate(-45deg);
}

/* ---------- 11. 顶部工具条 ---------- */
.toolbar {
  position: fixed;
  top: 14px;
  right: clamp(16px, 2.6vw, 34px);
  z-index: 70;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 5px 6px 5px 12px;
  border: 1px solid rgba(42, 59, 87, .9);
  border-radius: var(--r-pill);
  background: rgba(14, 21, 36, .84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .5);
}

.toolbar__search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--muted);
  transition: color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}

.toolbar__search:hover {
  color: var(--cyan);
  background: rgba(0, 230, 195, .1);
}

.toolbar__search-icon {
  position: relative;
  display: block;
  width: 12px;
  height: 12px;
  border: 1.6px solid currentColor;
  border-radius: 50%;
}

.toolbar__search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 6px;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.toolbar__cta {
  padding: 7px 16px;
  border-radius: var(--r-pill);
  background: var(--cyan);
  color: var(--on-cyan);
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .09em;
  white-space: nowrap;
  transition: background var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}

.toolbar__cta:hover {
  background: var(--cyan-soft);
  transform: translateY(-2px);
}

/* ---------- 12. 内容容器与网格 ---------- */
.shell {
  width: min(100% - var(--gutter) * 2, var(--shell-max));
  margin-inline: auto;
}

.shell--wide {
  width: min(100% - var(--gutter) * 2, 1460px);
}

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stack--tight { gap: 10px; }
.stack--loose { gap: 28px; }

/* ---------- 13. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .07em;
  line-height: 1.2;
  text-align: center;
  transition: transform var(--t-fast) var(--ease-out),
              background-color var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--sm {
  padding: 9px 18px;
  font-size: 12.5px;
}

.btn--primary {
  background: var(--cyan);
  color: var(--on-cyan);
}

.btn--primary:hover {
  background: var(--cyan-soft);
}

.btn--ghost {
  border-color: var(--line);
  background: rgba(22, 32, 52, .55);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn--clay {
  background: var(--clay);
  color: var(--on-clay);
}

.btn--clay:hover {
  background: var(--clay-soft);
}

/* ---------- 14. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: .09em;
  color: var(--muted);
}

.breadcrumb__link {
  transition: color var(--t-fast) var(--ease-out);
}

.breadcrumb__link:hover {
  color: var(--cyan);
}

.breadcrumb__sep {
  color: var(--line);
}

/* ---------- 15. 正文与文字工具 ---------- */
.prose {
  max-width: 42rem;
}

.prose p {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.78;
}

.prose p + p {
  margin-top: 1em;
}

.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(0, 230, 195, .35);
  transition: border-color var(--t-fast) var(--ease-out);
}

.prose a:hover {
  border-color: var(--cyan);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--cyan);
}

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--clay);
}

.num--soft {
  color: var(--clay-soft);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- 16. 章节导航 ---------- */
.section-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.section-nav::-webkit-scrollbar {
  height: 3px;
}

.section-nav::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}

.section-nav__link {
  flex: 0 0 auto;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: .09em;
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out),
              background-color var(--t-fast) var(--ease-out);
}

.section-nav__link:hover {
  color: var(--text);
  border-color: var(--cyan);
}

.section-nav__link[aria-current="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--on-cyan);
}

/* ---------- 17. 卡片与标签 ---------- */
.card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-a);
  background: linear-gradient(160deg, rgba(22, 32, 52, .92), rgba(14, 21, 36, .92));
  transition: transform var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 230, 195, .55);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
}

/* ---------- 18. 图片容器 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-a);
  background: linear-gradient(150deg, var(--ink-700), var(--ink-800));
}

.media > img,
.media > picture,
.media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media > img,
.media > picture > img {
  transition: transform 420ms var(--ease-out);
}

.media:hover > img,
.media:hover > picture > img {
  transform: scale(1.03);
}

.media--wide { aspect-ratio: 16 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }
.media--banner { aspect-ratio: 21 / 9; }

.media__cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: rgba(7, 11, 20, .82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .05em;
}

/* ---------- 19. 斜向引导线工具 ---------- */
.diagonal-track {
  position: relative;
}

.diagonal-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 10%, var(--line) 90%, transparent);
  transform: rotate(-12deg);
  transform-origin: left center;
  pointer-events: none;
}

/* ---------- 20. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 132px);
  padding: clamp(42px, 6vw, 78px) 0 26px;
  background: linear-gradient(180deg, var(--ink-800) 0%, var(--ink-900) 72%);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(240px, 32%);
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.footer__grid {
  display: grid;
  gap: 34px 26px;
  grid-template-columns: 1fr;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 34ch;
}

.brand--footer .brand__mark {
  width: 30px;
  height: 30px;
}

.footer__tagline {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--cyan);
}

.footer__note {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.footer__title {
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__item {
  min-width: 0;
}

.footer__link {
  display: inline-block;
  padding: 3px 0;
  color: var(--text-soft);
  font-size: 14px;
  transition: color var(--t-fast) var(--ease-out);
}

.footer__link:hover {
  color: var(--cyan);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 4px 9px;
  margin-left: -9px;
  border-radius: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-align: left;
  transition: color var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out);
}

.copy-btn:hover {
  color: var(--cyan);
  background: rgba(0, 230, 195, .08);
}

.copy-btn__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-btn__hint {
  flex: 0 0 auto;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-family: var(--font-ui);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--muted);
  transition: color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}

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

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(34px, 5vw, 60px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footer__legal,
.footer__copyright {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
}

/* ---------- 21. 平板 ---------- */
@media (min-width: 640px) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__brand {
    grid-column: 1 / -1;
    max-width: 46ch;
  }

  .grid {
    gap: 28px;
  }
}

/* ---------- 22. 桌面：轨道常驻 ---------- */
@media (min-width: 1000px) {
  body {
    padding-top: 0;
    padding-left: var(--rail-w);
    transition: padding-left var(--t-base) var(--ease-out);
  }

  body[data-rail="tight"] {
    padding-left: var(--rail-w-tight);
  }

  [id] {
    scroll-margin-top: 84px;
  }

  .mobile-bar {
    display: none;
  }

  .toolbar {
    display: inline-flex;
  }

  .rail {
    width: var(--rail-w);
    transform: none;
    visibility: visible;
    padding: 26px 20px 24px;
    overflow-y: auto;
    transition: width var(--t-base) var(--ease-out), padding var(--t-base) var(--ease-out);
  }

  .rail__close {
    display: none;
  }

  .rail__scrim {
    display: none;
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1.45fr) repeat(4, minmax(0, .82fr));
    gap: 28px;
  }

  .footer__brand {
    grid-column: auto;
  }
}

/* ---------- 23. 桌面：折叠为图标条 ---------- */
@media (min-width: 1000px) {
  body[data-rail="tight"] .rail {
    width: var(--rail-w-tight);
    padding-inline: 13px;
  }

  body[data-rail="tight"] .brand {
    justify-content: center;
  }

  body[data-rail="tight"] .nav-link {
    justify-content: center;
    gap: 0;
    padding-inline: 8px;
  }

  body[data-rail="tight"] .nav-link::before {
    left: -1px;
  }

  body[data-rail="tight"] .rail__head {
    justify-content: center;
    padding-bottom: 12px;
  }

  body[data-rail="tight"] .rail__nav {
    padding-top: 4px;
  }

  body[data-rail="tight"] .rail__toggle {
    margin-left: 0;
    justify-content: center;
    width: 100%;
  }

  body[data-rail="tight"] .brand__text,
  body[data-rail="tight"] .nav-link__label,
  body[data-rail="tight"] .quick-link__text,
  body[data-rail="tight"] .rail__toggle-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  body[data-rail="tight"] .rail__quick,
  body[data-rail="tight"] .rail__meta {
    display: none;
  }
}

/* ---------- 24. 宽屏 ---------- */
@media (min-width: 1400px) {
  :root {
    --rail-w: 264px;
  }
}

/* ---------- 25. 无障碍与降级 ---------- */
body[data-nav-open] {
  overflow: hidden;
}

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

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

  .btn:hover,
  .card:hover,
  .toolbar__cta:hover,
  .media:hover > img,
  .media:hover > picture > img {
    transform: none;
  }
}

@media print {
  .rail,
  .mobile-bar,
  .toolbar,
  .progress,
  .skip-link,
  .rail__scrim {
    display: none !important;
  }

  body {
    padding: 0;
    background: #fff;
    color: #000;
  }
}
