/* ==========================================================================
   万合足球赛事 · 官方中文站
   共享外壳样式 /assets/site.css
   赛场数据指挥中心：框架式导航 + 堆叠画板 + 矿物色语义分区
   ========================================================================== */

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

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

body { margin: 0; }

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%; }

button, input, select, textarea { font: inherit; color: inherit; }

a { color: inherit; }

/* ---------- 2. Tokens ---------- */
:root {
  /* 色彩：自然矿物 + 球场数据高亮 */
  --c-ink: #0E1B2A;
  --c-ink-deep: #08121C;
  --c-ink-soft: #16283C;
  --c-grass: #1E6B4F;
  --c-grass-lift: #26946B;
  --c-moss: #7A8B5A;
  --c-cream: #F3EFE6;
  --c-paper: #FBF9F3;
  --c-cream-line: #E2DBCB;
  --c-stone: #8A8F86;
  --c-clay: #B85C38;
  --c-amber: #E0A030;
  --c-amber-ink: #6D4A0C;
  --c-alert: #C63B3B;
  --c-home: #1FA9C9;
  --c-away: #C0448E;

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

  /* 尺寸与节奏 */
  --header-h: 64px;
  --rail-w: 92px;
  --wrap: 1240px;
  --radius-panel: 28px;
  --radius-card: 20px;
  --radius-pill: 999px;
  --shadow-1: 0 1px 0 rgba(14, 27, 42, 0.05), 0 14px 32px -20px rgba(14, 27, 42, 0.45);
  --shadow-2: 0 2px 0 rgba(14, 27, 42, 0.04), 0 26px 48px -24px rgba(14, 27, 42, 0.55);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  padding-top: var(--header-h);
  font-family: var(--font-display);
  font-size: clamp(16px, 0.28vw + 15.2px, 17.5px);
  line-height: 1.72;
  color: var(--c-ink);
  background-color: var(--c-cream);
  background-image:
    linear-gradient(rgba(14, 27, 42, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 27, 42, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center top;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--c-ink);
}

h1 { font-size: clamp(3.2rem, 8vw, 7.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 3rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.5rem); line-height: 1.3; }

p { max-width: 72ch; }

strong { font-weight: 700; }

a:hover { text-decoration-color: var(--c-clay); }

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

/* ---------- 4. 可见性工具 ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 400;
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--c-grass);
  color: var(--c-cream);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: var(--shadow-2);
  transform: translateY(-180%);
  transition: transform 0.18s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--c-amber);
  outline-offset: 2px;
}

/* ---------- 5. 焦点可见 ---------- */
:focus-visible {
  outline: 2px solid var(--c-grass);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--c-cream);
}

.site-header :focus-visible,
.site-footer :focus-visible {
  outline: 2px solid var(--c-amber);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--c-cream);
}

/* ---------- 6. 通用容器与组件 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.panel {
  background: var(--c-paper);
  border: 1px solid rgba(14, 27, 42, 0.09);
  border-radius: var(--radius-panel);
  padding: clamp(20px, 3vw, 36px);
  box-shadow: var(--shadow-1);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.panel:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.label-caps {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-stone);
}

.metric {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--c-ink);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid currentColor;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.5;
  white-space: nowrap;
}

.pill--grass { color: var(--c-grass); background: rgba(30, 107, 79, 0.1); border-color: rgba(30, 107, 79, 0.45); }
.pill--amber { color: var(--c-amber-ink); background: rgba(224, 160, 48, 0.18); border-color: rgba(224, 160, 48, 0.62); }
.pill--clay  { color: var(--c-clay); background: rgba(184, 92, 56, 0.1); border-color: rgba(184, 92, 56, 0.45); }
.pill--alert { color: var(--c-alert); background: rgba(198, 59, 59, 0.1); border-color: rgba(198, 59, 59, 0.45); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.16s var(--ease), transform 0.16s var(--ease), box-shadow 0.16s var(--ease), color 0.16s var(--ease);
}

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

.btn-primary {
  background: var(--c-grass);
  color: var(--c-cream);
  border-color: rgba(243, 239, 230, 0.2);
  box-shadow: 0 12px 26px -18px rgba(30, 107, 79, 0.95);
}

.btn-primary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-amber);
  flex: none;
}

.btn-primary:hover { background: var(--c-grass-lift); }

.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: rgba(14, 27, 42, 0.25);
}

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

/* ---------- 7. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-stone);
}

.breadcrumb a {
  color: var(--c-grass);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 92, 56, 0.5);
}

.breadcrumb a:hover { color: var(--c-clay); border-bottom-color: var(--c-clay); }

.breadcrumb li:not(:first-child)::before {
  content: "/";
  margin-right: 6px;
  color: var(--c-stone);
}

/* ---------- 8. 网格基础 ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

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

@media (max-width: 900px) {
  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .grid-12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 9. 图片容器基础（供页面阶段放置占位） ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-panel);
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(30, 107, 79, 0.75), transparent 58%),
    linear-gradient(155deg, #16304a 0%, var(--c-ink) 52%, var(--c-ink-deep) 100%);
  aspect-ratio: 16 / 9;
  isolation: isolate;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 27, 42, 0) 34%, rgba(14, 27, 42, 0.78) 100%);
  pointer-events: none;
  z-index: 1;
}

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

.media-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-cream);
}

.heat-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 68% 44%, rgba(224, 160, 48, 0.6) 0%, rgba(198, 59, 59, 0.38) 30%, transparent 62%),
    radial-gradient(circle at 32% 70%, rgba(31, 169, 201, 0.34) 0%, transparent 55%);
  mix-blend-mode: screen;
}

/* ---------- 10. 头部外壳 ---------- */
.site-header {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
}

.header-top {
  pointer-events: auto;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 clamp(12px, 2.2vw, 24px);
  background: linear-gradient(100deg, var(--c-ink-deep) 0%, var(--c-ink) 46%, #12283a 100%);
  border-bottom: 1px solid rgba(243, 239, 230, 0.14);
  box-shadow: 0 16px 30px -26px rgba(8, 18, 28, 0.9);
}

.header-top::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--c-grass) 0%, var(--c-moss) 32%, var(--c-amber) 68%, transparent 100%);
  opacity: 0.75;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  text-decoration: none;
  color: var(--c-cream);
  border-radius: 14px;
  padding: 4px 6px;
  transition: background-color 0.16s var(--ease);
}

.brand:hover { background: rgba(243, 239, 230, 0.08); }

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--c-grass) 0%, #2b8a63 100%);
  box-shadow: inset 0 0 0 1px rgba(243, 239, 230, 0.28), 0 8px 18px -12px rgba(30, 107, 79, 0.95);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1.5px solid rgba(243, 239, 230, 0.55);
  border-radius: 6px;
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--c-amber);
}

.brand-text { display: block; min-width: 0; }

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  line-height: 1.25;
  color: var(--c-cream);
}

.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--c-moss);
}

/* 快捷搜索 */
.header-search {
  position: relative;
  flex: 1 1 260px;
  min-width: 0;
  max-width: 460px;
  margin-left: auto;
}

.search-input {
  width: 100%;
  height: 38px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(243, 239, 230, 0.22);
  background: rgba(243, 239, 230, 0.07);
  color: var(--c-cream);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
  appearance: none;
}

.search-input::placeholder { color: rgba(243, 239, 230, 0.44); }

.search-input:hover { border-color: rgba(224, 160, 48, 0.55); }

.search-input:focus {
  outline: none;
  border-color: var(--c-amber);
  background: rgba(243, 239, 230, 0.13);
  box-shadow: 0 0 0 3px rgba(224, 160, 48, 0.24);
}

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

/* 搜索结果面板 */
.quick-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 30;
  display: none;
  padding: 8px;
  border: 1px solid rgba(243, 239, 230, 0.16);
  border-radius: var(--radius-card);
  background: var(--c-ink-soft);
  box-shadow: var(--shadow-2);
  max-height: min(60vh, 420px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.quick-results[data-active] { display: block; }

.quick-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--c-cream);
  transition: background-color 0.14s var(--ease), transform 0.14s var(--ease);
}

.quick-item[hidden] { display: none; }

.quick-item:hover,
.quick-item:focus-visible {
  background: rgba(30, 107, 79, 0.62);
  transform: translateY(-1px);
}

.quick-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.quick-note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-moss);
  flex: none;
}

.quick-item:hover .quick-note,
.quick-item:focus-visible .quick-note { color: var(--c-amber); }

.quick-empty {
  padding: 12px 14px;
  font-size: 0.82rem;
  color: var(--c-stone);
  max-width: none;
}

/* 头部动作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.header-cta { flex: none; }

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 15px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(243, 239, 230, 0.26);
  background: rgba(243, 239, 230, 0.05);
  color: var(--c-cream);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--c-amber);
  background: rgba(243, 239, 230, 0.12);
}

.nav-toggle-bars {
  position: relative;
  width: 16px;
  height: 10px;
  flex: none;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease), top 0.2s var(--ease);
}

.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { top: 8px; }

.site-header[data-open="true"] .nav-toggle-bars::before {
  top: 4px;
  transform: rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle-bars::after {
  top: 4px;
  transform: rotate(-45deg);
}

.nav-toggle-label { display: inline-block; }

/* ---------- 11. 左侧框架导航导轨 ---------- */
.frame-rail {
  pointer-events: auto;
  position: fixed;
  top: var(--header-h);
  left: 0;
  bottom: 0;
  z-index: 110;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 10px 22px;
  background: linear-gradient(180deg, var(--c-ink) 0%, var(--c-ink-deep) 100%);
  border-right: 1px solid rgba(243, 239, 230, 0.13);
  overflow-y: auto;
  scrollbar-width: thin;
}

.rail-caption {
  margin: 0;
  max-width: none;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(122, 139, 90, 0.95);
}

.site-nav { flex: 1 1 auto; }

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

.nav-item { list-style: none; }

.nav-link {
  display: block;
  padding: 10px 4px;
  border: 1px solid transparent;
  border-radius: 14px;
  text-align: center;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: rgba(243, 239, 230, 0.76);
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease), transform 0.16s var(--ease);
}

.nav-link:hover {
  background: rgba(30, 107, 79, 0.62);
  border-color: rgba(224, 160, 48, 0.4);
  color: #ffffff;
  transform: translateY(-2px);
}

.nav-link[aria-current="page"] {
  background: var(--c-grass);
  border-color: rgba(243, 239, 230, 0.24);
  color: #ffffff;
  box-shadow: inset 3px 0 0 var(--c-amber);
}

.rail-foot {
  margin: 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-stone);
}

.rail-foot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-grass-lift);
  box-shadow: 0 0 0 4px rgba(30, 107, 79, 0.28);
}

/* ---------- 12. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  padding: clamp(40px, 5vw, 72px) clamp(16px, 4vw, 40px) clamp(20px, 3vw, 32px);
  color: var(--c-cream);
  background:
    radial-gradient(120% 90% at 8% 0%, rgba(30, 107, 79, 0.55) 0%, rgba(30, 107, 79, 0) 58%),
    radial-gradient(90% 70% at 92% 8%, rgba(184, 92, 56, 0.28) 0%, rgba(184, 92, 56, 0) 60%),
    linear-gradient(180deg, var(--c-ink) 0%, var(--c-ink-deep) 100%);
  border-top: 1px solid rgba(243, 239, 230, 0.14);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--c-amber) 0%, var(--c-grass) 38%, var(--c-moss) 70%, transparent 100%);
  opacity: 0.8;
}

.footer-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.55fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 56px);
}

.footer-brand { min-width: 0; }

.brand--footer {
  padding: 0;
  margin-bottom: 16px;
}

.brand--footer:hover { background: transparent; }

.brand--footer .brand-name { font-size: 1.05rem; }

.footer-summary {
  max-width: 34ch;
  margin: 0 0 12px;
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(243, 239, 230, 0.78);
}

.footer-note {
  max-width: 36ch;
  margin: 12px 0 0;
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(243, 239, 230, 0.52);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
  min-width: 0;
}

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

.footer-col-title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(243, 239, 230, 0.18);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-moss);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-link {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: rgba(243, 239, 230, 0.85);
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease), transform 0.16s var(--ease);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: #ffffff;
  border-bottom-color: var(--c-clay);
  transform: translateY(-1px);
}

.footer-contact { min-width: 0; }

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(243, 239, 230, 0.13);
  font-size: 0.82rem;
  line-height: 1.6;
}

.contact-key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-amber);
  padding-top: 3px;
}

.contact-val {
  color: rgba(243, 239, 230, 0.88);
  word-break: break-word;
}

.footer-bottom {
  width: 100%;
  max-width: var(--wrap);
  margin: clamp(28px, 4vw, 48px) auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(243, 239, 230, 0.16);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(243, 239, 230, 0.58);
}

.footer-copy { margin: 0; max-width: none; }

.footer-icp { margin: 0; max-width: none; color: rgba(243, 239, 230, 0.48); }

/* ---------- 13. 响应式 ---------- */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }
}

@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }

  .frame-rail {
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    max-height: calc(100vh - var(--header-h));
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 16px 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(243, 239, 230, 0.16);
    border-radius: 0 0 26px 26px;
    box-shadow: 0 28px 40px -30px rgba(8, 18, 28, 0.95);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s var(--ease);
  }

  .site-header[data-open="true"] .frame-rail {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .rail-caption,
  .rail-foot { display: none; }

  .site-nav { flex: 1 1 100%; }

  .nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav-link {
    padding: 9px 16px;
    font-size: 0.85rem;
    border-color: rgba(243, 239, 230, 0.18);
  }

  .nav-link[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--c-amber); }

  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .header-search { max-width: none; }

  .footer-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .header-top { gap: 10px; }

  .brand-sub { display: none; }

  .brand-name { font-size: 0.88rem; letter-spacing: 0.04em; }

  .brand-mark { width: 30px; height: 30px; border-radius: 10px; }

  .header-cta { display: none; }

  .header-search { flex: 1 1 110px; }

  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer-bottom { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .brand-name { font-size: 0.8rem; }

  .brand-mark { width: 28px; height: 28px; }

  .nav-toggle { padding: 0 12px; }

  .nav-toggle-label { display: none; }

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

  .footer-columns { grid-template-columns: 1fr 1fr; gap: 18px; }

  .panel { border-radius: var(--radius-card); }

  .media { border-radius: var(--radius-card); }
}

/* ---------- 14. 动效偏好 ---------- */
@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;
    scroll-behavior: auto !important;
  }

  .panel:hover,
  .btn:hover,
  .nav-link:hover,
  .footer-link:hover,
  .quick-item:hover { transform: none; }
}
