/* ============================================================
   亚星体育 · /assets/site.css
   比分牌 + 档案票据 · 左侧框架导航 + 纵向叙事长卷
   ============================================================ */

/* ---------- 1. 设计变量 ---------- */
:root {
  --yx-red: #D7262E;
  --yx-red-deep: #A3141B;
  --yx-yellow: #F5C518;
  --yx-yellow-soft: #FFE6A3;
  --yx-ink: #12231F;
  --yx-green: #1F4D3F;
  --yx-cream: #F7F1E6;
  --yx-paper: #FFFDF7;
  --yx-muted: #66736C;
  --yx-line: #D8D0C2;
  --yx-focus: #0B6B57;

  --rail-w: 272px;
  --gutter: clamp(18px, 4vw, 56px);
  --stack: clamp(14px, 2vw, 26px);
  --edge-cut: 22px;
  --header-offset: 0px;

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

  --shadow-card: 0 1px 0 rgba(18, 35, 31, 0.05), 0 16px 34px -22px rgba(18, 35, 31, 0.5);
}

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

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

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

[id] { scroll-margin-top: calc(var(--header-offset, 0px) + 18px); }

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--yx-cream);
  color: var(--yx-ink);
  font-family: var(--font-body);
  font-size: clamp(16px, 0.5vw + 14.8px, 17.5px);
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { display: block; }
main:focus { outline: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.45rem); letter-spacing: -0.01em; }
p { text-wrap: pretty; }
strong, b { font-weight: 700; }

.mono, .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

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

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

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 0.65rem 1.1rem;
  background: var(--yx-ink);
  color: var(--yx-cream);
  border: 2px solid var(--yx-yellow);
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 800;
  transform: translateY(-220%);
  transition: transform 0.18s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 3px solid var(--yx-focus);
  outline-offset: 2px;
}

/* ---------- 5. 头部框架 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--yx-ink);
  color: var(--yx-cream);
  border-bottom: 1px solid rgba(247, 241, 230, 0.12);
}
.site-header.is-scrolled {
  box-shadow: 0 16px 34px -26px rgba(18, 35, 31, 0.95);
}

.rail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--yx-cream);
  min-width: 0;
}
.brand-mark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  padding: 0 6px;
  background: rgba(247, 241, 230, 0.08);
  border: 1px solid rgba(247, 241, 230, 0.28);
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
}
.brand-mark-red,
.brand-mark-yellow { display: block; height: 6px; }
.brand-mark-red { width: 100%; background: var(--yx-red); }
.brand-mark-yellow { width: 62%; background: var(--yx-yellow); }

.brand-text { display: block; min-width: 0; }
.brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.06rem;
  letter-spacing: 0.03em;
  line-height: 1.2;
}
.brand-tagline {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: rgba(247, 241, 230, 0.6);
  line-height: 1.4;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(247, 241, 230, 0.3);
  border-radius: 4px;
  background: rgba(247, 241, 230, 0.06);
  color: var(--yx-cream);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.nav-toggle:hover { border-color: var(--yx-yellow); color: var(--yx-yellow); }
.nav-toggle-bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle-bars span {
  display: block;
  height: 2px;
  background: var(--yx-yellow);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle-text { white-space: nowrap; }

.primary-nav {
  display: none;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100dvh - 68px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px var(--gutter) 26px;
  border-top: 1px dashed rgba(247, 241, 230, 0.2);
  background: var(--yx-ink);
}
.site-header[data-open] .primary-nav { display: flex; }

.nav-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: rgba(247, 241, 230, 0.5);
}
.nav-caption-num {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 20px;
  padding: 0 4px;
  background: var(--yx-yellow);
  color: var(--yx-ink);
  border-radius: 2px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.nav-list { display: grid; gap: 2px; }
.nav-item { min-width: 0; }
.nav-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-left: 3px solid transparent;
  border-radius: 0 4px 4px 0;
  color: rgba(247, 241, 230, 0.84);
  font-weight: 600;
  font-size: 0.98rem;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.nav-link:hover {
  background: rgba(247, 241, 230, 0.08);
  color: #fff;
  border-left-color: var(--yx-yellow);
  transform: translateX(2px);
}
.nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(247, 241, 230, 0.3);
  transition: background 0.18s ease, box-shadow 0.18s ease;
}
.nav-link:hover .nav-dot { background: var(--yx-yellow); }
.nav-label { min-width: 0; overflow-wrap: anywhere; }
.nav-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(247, 241, 230, 0.42);
}
.nav-link[aria-current="page"] {
  background: rgba(245, 197, 24, 0.13);
  color: #fff;
  border-left-color: var(--yx-red);
  box-shadow: inset -3px 0 0 var(--yx-yellow);
}
.nav-link[aria-current="page"] .nav-dot {
  background: var(--yx-yellow);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.22);
}
.nav-link[aria-current="page"] .nav-num { color: var(--yx-yellow); }

.nav-cta {
  width: 100%;
  margin-top: 4px;
}

.rail-meta {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px dashed rgba(247, 241, 230, 0.2);
  display: grid;
  gap: 2px;
}
.rail-meta-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  color: rgba(247, 241, 230, 0.45);
}
.rail-meta-value {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--yx-yellow-soft);
}

.rail-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(247, 241, 230, 0.12);
}
.rail-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--yx-red);
  transition: width 0.08s linear;
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.82em 1.25em;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-align: center;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--yx-red);
  color: #fff;
  box-shadow: inset 0 -3px 0 var(--yx-red-deep);
}
.btn-primary:hover {
  background: var(--yx-red-deep);
  box-shadow: inset 0 -3px 0 #7d0e14;
}
.btn-secondary {
  background: var(--yx-ink);
  color: var(--yx-cream);
  box-shadow: inset 0 -3px 0 var(--yx-green);
}
.btn-secondary:hover { background: var(--yx-green); }
.btn-yellow {
  background: var(--yx-yellow);
  color: var(--yx-ink);
  box-shadow: inset 0 -3px 0 #c39c05;
}
.btn-yellow:hover { background: var(--yx-yellow-soft); }
.btn-ghost {
  background: transparent;
  color: var(--yx-cream);
  border-color: rgba(247, 241, 230, 0.38);
}
.btn-ghost:hover {
  border-color: var(--yx-yellow);
  color: var(--yx-yellow);
}
.btn-block { width: 100%; }

/* ---------- 7. 容器与栅格 ---------- */
.yx-container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
@media (min-width: 900px) {
  .grid-offset > :nth-child(even) { margin-top: clamp(22px, 4vw, 54px); }
}

/* ---------- 8. 面包屑 ---------- */
.breadcrumbs { padding-block: clamp(14px, 2vw, 22px); }
.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--yx-muted);
}
.breadcrumbs-item { display: inline-flex; align-items: center; gap: 0.45rem; }
.breadcrumbs-item + .breadcrumbs-item::before {
  content: "/";
  color: var(--yx-line);
}
.breadcrumbs-link { border-bottom: 1px solid transparent; transition: color 0.16s ease, border-color 0.16s ease; }
.breadcrumbs-link:hover { color: var(--yx-red); border-bottom-color: var(--yx-red); }
.breadcrumbs-current { color: var(--yx-ink); font-weight: 700; }

/* ---------- 9. 章节头 ---------- */
.section-head {
  display: grid;
  gap: 0.7rem;
  margin-bottom: clamp(18px, 3vw, 34px);
}
.section-num {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.24em 0.7em;
  background: var(--yx-yellow);
  color: var(--yx-ink);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.section-title { margin: 0; }
.section-lede {
  max-width: 34em;
  color: #47544d;
  font-size: 1rem;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--yx-red-deep);
}

/* ---------- 10. 票据与切角面板 ---------- */
.ticket {
  position: relative;
  background: var(--yx-paper);
  border: 1px solid var(--yx-line);
  border-radius: 3px;
  padding: clamp(18px, 2.6vw, 28px);
  box-shadow: var(--shadow-card);
}
.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--yx-cream);
  transform: translateY(-50%);
  pointer-events: none;
}
.ticket::before { left: -8px; }
.ticket::after { right: -8px; }
.ticket-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 0.85rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px dashed var(--yx-line);
}
.ticket-num {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  padding: 0.15em 0.45em;
  background: var(--yx-yellow);
  color: var(--yx-ink);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.cut-panel {
  background: var(--yx-paper);
  border: 1px solid var(--yx-line);
  padding: clamp(16px, 2.4vw, 26px);
  clip-path: polygon(0 0, calc(100% - var(--edge-cut)) 0, 100% var(--edge-cut), 100% 100%, 0 100%);
  transition: transform 0.2s ease, background 0.2s ease;
}
.cut-panel:hover { transform: translate(2px, -2px); }

/* ---------- 11. 比分条 ---------- */
.score-strip {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  padding: clamp(14px, 2.4vw, 22px);
  background: var(--yx-ink);
  color: var(--yx-cream);
  border-radius: 4px;
  overflow: hidden;
}
.score-strip::after {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: var(--yx-red);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  opacity: 0.9;
  pointer-events: none;
}
.score-team {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
}
.score-team--away { text-align: right; }
.score-value {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.08em 0.5em;
  background: var(--yx-red);
  color: #fff;
  border-radius: 3px;
}
.score-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--yx-yellow-soft);
}

/* ---------- 12. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.22em 0.6em;
  border-radius: 2px;
  background: var(--yx-yellow-soft);
  color: var(--yx-ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.tag-red { background: var(--yx-red); color: #fff; }
.tag-yellow { background: var(--yx-yellow); color: var(--yx-ink); }
.tag-ink { background: var(--yx-ink); color: var(--yx-cream); }

/* ---------- 13. 费用锚点 ---------- */
.fee-anchor {
  display: inline-block;
  padding-bottom: 2px;
  font-weight: 800;
  color: var(--yx-red-deep);
  background-image: linear-gradient(var(--yx-yellow), var(--yx-yellow));
  background-repeat: no-repeat;
  background-size: 0% 3px;
  background-position: 0 100%;
  transition: background-size 0.22s ease, color 0.22s ease;
}
.fee-anchor:hover,
.fee-anchor:focus-visible {
  background-size: 100% 3px;
  color: var(--yx-red);
}

/* ---------- 14. 图片容器基础规则 ---------- */
.media-figure { margin: 0; }
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--yx-green);
  border: 1px solid var(--yx-line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--edge-cut)), calc(100% - var(--edge-cut)) 100%, 0 100%);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.08) saturate(1.05);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(18, 35, 31, 0.18) 0 1px, transparent 1px 4px);
  opacity: 0.22;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame[data-placeholder] {
  display: grid;
  place-items: center;
  padding: 1rem;
}
.media-frame[data-placeholder]::before {
  content: attr(data-placeholder);
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  line-height: 1.8;
  text-align: center;
  color: rgba(247, 241, 230, 0.82);
}
.media-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--yx-muted);
}

/* ---------- 15. 横向拖拽区 ---------- */
[data-drag-scroll] {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: var(--yx-red) transparent;
}
[data-drag-scroll]::-webkit-scrollbar { height: 6px; }
[data-drag-scroll]::-webkit-scrollbar-thumb { background: var(--yx-red); border-radius: 99px; }
[data-drag-scroll]:focus-visible { outline: 3px solid var(--yx-focus); outline-offset: 2px; }
[data-drag-scroll].is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

/* ---------- 16. 显现与高亮状态 ---------- */
.yx-js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.62s ease, transform 0.62s cubic-bezier(0.22, 0.7, 0.28, 1);
  will-change: opacity, transform;
}
.yx-js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

.is-target {
  box-shadow: 0 0 0 3px var(--yx-yellow);
  border-radius: 3px;
  transition: box-shadow 0.3s ease;
}

/* ---------- 17. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  background: var(--yx-ink);
  color: var(--yx-cream);
  border-top: 6px solid var(--yx-red);
}
.footer-perf {
  height: 8px;
  background-image: repeating-linear-gradient(90deg, var(--yx-yellow) 0 16px, transparent 16px 32px);
  opacity: 0.85;
}
.footer-inner {
  max-width: 1180px;
  margin-inline: auto;
  padding: clamp(34px, 5vw, 64px) var(--gutter) clamp(26px, 4vw, 44px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 44px);
}
.footer-brand { min-width: 0; }
.footer-brand-line {
  display: inline-block;
  padding-bottom: 0.25rem;
  border-bottom: 3px solid var(--yx-yellow);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}
.footer-note {
  margin-top: 1rem;
  max-width: 32em;
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(247, 241, 230, 0.66);
}
.footer-brand .btn { margin-top: 1.2rem; }

.footer-col {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  min-width: 0;
}
.footer-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--yx-yellow);
}
.footer-heading::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--yx-red);
  clip-path: polygon(0 0, 100% 0, 100% 60%, 60% 100%, 0 100%);
}
.footer-list {
  display: grid;
  gap: 0.55rem;
  font-size: 0.94rem;
}
.footer-list a {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  color: rgba(247, 241, 230, 0.84);
  transition: color 0.16s ease, border-color 0.16s ease;
}
.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--yx-yellow);
  border-bottom-color: var(--yx-yellow);
}
.footer-contact { gap: 0.75rem; }
.footer-contact-line {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.9;
  color: rgba(247, 241, 230, 0.8);
  overflow-wrap: anywhere;
}
.footer-contact-label {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: rgba(247, 241, 230, 0.45);
}

.footer-base {
  max-width: 1180px;
  margin-inline: auto;
  padding: 18px var(--gutter) 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 22px;
  border-top: 1px dashed rgba(247, 241, 230, 0.22);
  font-size: 0.8rem;
  color: rgba(247, 241, 230, 0.6);
}
.footer-icp {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--yx-yellow-soft);
}
.footer-copy { margin: 0; }

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

/* ---------- 19. 桌面框架导航 ---------- */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }

  .site-header {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--rail-w);
    height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 26px 24px 0;
    border-bottom: 0;
    border-right: 1px solid rgba(247, 241, 230, 0.14);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .rail-top {
    display: block;
    padding: 0;
    margin-bottom: 24px;
  }
  .brand { gap: 12px; }
  .nav-toggle { display: none; }

  .primary-nav {
    display: flex;
    flex: 1 1 auto;
    padding: 0;
    max-height: none;
    overflow: visible;
    border-top: 0;
    background: transparent;
    gap: 14px;
  }
  .nav-caption { padding-bottom: 4px; }
  .nav-list { gap: 3px; }
  .nav-link { padding: 10px 10px; font-size: 0.95rem; }

  .nav-cta { margin-top: 16px; }
  .rail-meta { margin-top: auto; }

  .rail-progress {
    position: fixed;
    left: 0;
    bottom: 0;
    right: auto;
    width: var(--rail-w);
    height: 4px;
    z-index: 121;
  }

  .footer-inner { grid-template-columns: 1.7fr 1fr 1.1fr 1fr; }
}

/* ---------- 20. 减少动效 ---------- */
@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;
  }
  .yx-js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .btn:hover,
  .cut-panel:hover,
  .nav-link:hover { transform: none; }
  .rail-progress-bar { transition: none; }
}
