/* ==========================================================================
   B体育主站 · 共享站点套件 /assets/site.css
   夜间球场指挥台：框架导航 + 编辑部目录 + 扎染印刷边框
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

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

ul, ol { padding: 0; }

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

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

button { background: none; border: 0; }

[hidden] { display: none !important; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink-green: #071C17;
  --charcoal: #0E1210;
  --panel-green: #0F2A22;
  --cyan: #39F2D0;
  --orange: #FF5C35;
  --tie-blue: #2B6F8E;
  --paper: #F2F5EF;
  --mist: #A7B4AD;
  --focus: #8B7CFF;
  --line: rgba(57, 242, 208, 0.16);
  --line-soft: rgba(242, 245, 239, 0.10);

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

  --maxw: 1280px;
  --gutter: clamp(16px, 3.2vw, 44px);
  --header-h: 64px;
}

/* ---------- 3. 中文排版基线 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink-green);
  background-image:
    radial-gradient(1100px 560px at 84% -12%, rgba(43, 111, 142, 0.30), transparent 68%),
    radial-gradient(820px 480px at 4% 2%, rgba(57, 242, 208, 0.10), transparent 64%),
    linear-gradient(180deg, #071C17 0%, #08190F 55%, #0A1512 100%);
  background-repeat: no-repeat;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.05vw, 16.5px);
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--paper);
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.45rem, 2.5vw, 2.05rem); }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); letter-spacing: -0.01em; }
h4 { font-size: 1rem; letter-spacing: 0.01em; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

strong { font-weight: 700; color: var(--paper); }

::selection {
  background: rgba(57, 242, 208, 0.28);
  color: var(--paper);
}

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

#main-content:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--paper);
  color: #06120F;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 2px;
  transform: translateY(-180%);
  transition: transform 0.18s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline-color: var(--orange);
}

/* ---------- 5. 头部框架 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background-image: linear-gradient(180deg, rgba(14, 18, 16, 0.97), rgba(7, 28, 23, 0.95));
  border-bottom: 1px solid var(--line);
  color: var(--paper);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-frame {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.header-rail {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 20px);
  min-height: var(--header-h);
  padding-block: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: var(--paper);
  text-decoration: none;
}

.brand-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(242, 245, 239, 0.34);
  border-radius: 2px;
  background-color: var(--tie-blue);
  background-image:
    conic-gradient(from 200deg at 32% 26%, rgba(242, 245, 239, 0.62), transparent 42%),
    radial-gradient(80% 80% at 78% 82%, rgba(255, 92, 53, 0.55), transparent 62%),
    linear-gradient(148deg, var(--cyan) 0%, var(--tie-blue) 68%, #10414f 100%);
  color: #04120F;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(7, 28, 23, 0.35);
  transition: filter 0.18s ease;
}

.brand:hover .brand-mark { filter: brightness(1.12); }

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.brand-tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.14em;
  color: var(--mist);
  white-space: nowrap;
}

.brand--footer .brand-name { font-size: 15px; }

.header-meta {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(167, 180, 173, 0.88);
  white-space: nowrap;
}

.meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(57, 242, 208, 0.16);
}

/* 移动导航开关 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 12px;
  border: 1px solid rgba(57, 242, 208, 0.38);
  border-radius: 2px;
  background: rgba(57, 242, 208, 0.08);
  color: var(--cyan);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.nav-toggle:hover {
  background: rgba(57, 242, 208, 0.16);
  border-color: rgba(57, 242, 208, 0.62);
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: background-color 0.18s ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.18s ease;
}

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

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

.nav-toggle-text { line-height: 1; }

/* 导航 */
.site-nav {
  display: none;
  padding: 8px 0 18px;
}

.site-header[data-open] .site-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  counter-reset: nav;
}

.nav-list li { counter-increment: nav; }

.nav-link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 2px;
  color: rgba(242, 245, 239, 0.84);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.nav-link::before {
  content: counter(nav, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(167, 180, 173, 0.72);
  transition: color 0.18s ease;
}

.nav-link:hover {
  color: var(--paper);
  background: rgba(57, 242, 208, 0.08);
  border-color: rgba(57, 242, 208, 0.28);
}

.nav-link:hover::before { color: var(--cyan); }

.nav-link[aria-current="page"] {
  color: var(--cyan);
  background: rgba(57, 242, 208, 0.10);
  border-color: rgba(57, 242, 208, 0.42);
  box-shadow: inset 0 -2px 0 var(--orange);
}

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

.nav-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-actions .btn {
  width: 100%;
  justify-content: center;
}

.header-edge {
  height: 3px;
  background-image:
    repeating-linear-gradient(90deg, var(--tie-blue) 0 12px, rgba(57, 242, 208, 0.85) 12px 14px, transparent 14px 30px),
    linear-gradient(90deg, rgba(43, 111, 142, 0.55), transparent 62%);
  opacity: 0.85;
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 2px;
  background-image: linear-gradient(90deg, var(--tie-blue), var(--cyan) 58%, var(--orange));
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #180704;
}

.btn-primary:hover {
  background: #FF7A58;
  border-color: #FF7A58;
  color: #180704;
}

.btn-ghost {
  background: rgba(57, 242, 208, 0.06);
  border-color: rgba(57, 242, 208, 0.34);
  color: var(--paper);
}

.btn-ghost:hover {
  background: rgba(57, 242, 208, 0.14);
  border-color: rgba(57, 242, 208, 0.7);
  color: var(--cyan);
}

/* ---------- 7. 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 860px; }

.page-main {
  padding-block: clamp(24px, 4vw, 56px) clamp(40px, 6vw, 88px);
}

.grid {
  display: grid;
  gap: clamp(16px, 2.5vw, 28px);
  grid-template-columns: minmax(0, 1fr);
}

[data-toc-section] { scroll-margin-top: 124px; }

/* ---------- 8. 面包屑 ---------- */
.breadcrumb {
  margin-bottom: clamp(16px, 2.6vw, 26px);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  color: rgba(167, 180, 173, 0.85);
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-list li + li::before {
  content: "/";
  color: rgba(43, 111, 142, 0.95);
}

.breadcrumb-link {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.breadcrumb-link:hover {
  color: var(--cyan);
  border-bottom-color: rgba(57, 242, 208, 0.5);
}

.breadcrumb-current { color: var(--paper); }

/* ---------- 9. 基础组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

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

.index-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(57, 242, 208, 0.28);
  font-variant-numeric: tabular-nums;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 20px;
  padding-bottom: 12px;
  margin-bottom: clamp(16px, 2.4vw, 24px);
  border-bottom: 1px solid var(--line);
}

.section-title {
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  letter-spacing: -0.015em;
}

.panel {
  position: relative;
  padding: clamp(16px, 2.2vw, 26px);
  border: 1px solid var(--line);
  border-radius: 2px;
  background-image: linear-gradient(165deg, rgba(15, 42, 34, 0.94), rgba(10, 22, 18, 0.86));
  background-color: var(--panel-green);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(43, 111, 142, 0.24);
  border-radius: 1px;
  pointer-events: none;
}

.card {
  position: relative;
  display: block;
  padding: clamp(15px, 2vw, 22px);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  background: rgba(15, 42, 34, 0.55);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.card:hover,
.card:focus-visible {
  border-color: rgba(57, 242, 208, 0.45);
  background: rgba(15, 42, 34, 0.88);
  transform: translateY(-2px);
}

.note {
  margin-bottom: 1em;
  padding-left: 14px;
  border-left: 2px solid var(--tie-blue);
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--mist);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid rgba(57, 242, 208, 0.35);
  border-radius: 1px;
  background: rgba(57, 242, 208, 0.07);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
}

.tag--alert {
  border-color: rgba(255, 92, 53, 0.45);
  background: rgba(255, 92, 53, 0.10);
  color: var(--orange);
}

.tag--blue {
  border-color: rgba(43, 111, 142, 0.62);
  background: rgba(43, 111, 142, 0.18);
  color: #9ECFE6;
}

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

.rule {
  height: 1px;
  margin: clamp(20px, 3vw, 32px) 0;
  border: 0;
  background-image: linear-gradient(90deg, var(--tie-blue), rgba(57, 242, 208, 0.35) 34%, rgba(242, 245, 239, 0.06));
}

/* 目录 */
.toc {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}

.toc-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 12px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--mist);
  font-size: 13px;
  line-height: 1.55;
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.toc-link::before {
  content: attr(data-toc-index);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(43, 111, 142, 0.95);
}

.toc-link:hover {
  color: var(--paper);
  background: rgba(57, 242, 208, 0.06);
}

.toc-link.is-active,
.toc-link[aria-current] {
  color: var(--cyan);
  border-left-color: var(--orange);
  background: rgba(57, 242, 208, 0.09);
}

/* 折叠说明 */
.accordion {
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  background: rgba(15, 42, 34, 0.5);
}

.accordion + .accordion { margin-top: 8px; }

.accordion > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  color: var(--paper);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}

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

.accordion > summary::after {
  content: "＋";
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan);
}

.accordion[open] > summary::after { content: "－"; }
.accordion[open] > summary { border-bottom: 1px solid var(--line-soft); }

.accordion-body {
  padding: 14px 16px 16px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--mist);
}

/* 图片容器基础（页面阶段放 <img>） */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background-color: #0A1512;
  background-image:
    radial-gradient(120% 120% at 18% 0%, rgba(43, 111, 142, 0.38), transparent 62%),
    repeating-linear-gradient(115deg, rgba(242, 245, 239, 0.05) 0 2px, transparent 2px 9px),
    linear-gradient(160deg, #0F2A22, #08120E);
}

.media-frame img,
.media-frame picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.04);
}

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

.media-caption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: rgba(167, 180, 173, 0.88);
}

.paper-label {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 6px 10px;
  background: var(--paper);
  color: #0A1512;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  line-height: 1.4;
  box-shadow: 0 2px 0 rgba(7, 28, 23, 0.55);
}

.paper-label--top {
  top: 0;
  bottom: auto;
}

/* ---------- 10. 页脚 ---------- */
.site-footer {
  position: relative;
  border-top: 1px solid rgba(57, 242, 208, 0.18);
  background-color: var(--charcoal);
  background-image:
    radial-gradient(900px 320px at 88% -10%, rgba(43, 111, 142, 0.28), transparent 66%),
    linear-gradient(180deg, #0E1210 0%, #0A0F0D 58%, #08100D 100%);
  color: var(--mist);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background-image: repeating-linear-gradient(90deg, var(--tie-blue) 0 14px, rgba(57, 242, 208, 0.8) 14px 16px, transparent 16px 34px);
  opacity: 0.75;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(34px, 5vw, 62px) var(--gutter) clamp(22px, 3vw, 30px);
}

.footer-lead .brand { margin-bottom: 0; }

.footer-summary {
  max-width: 36ch;
  margin-top: 16px;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--mist);
}

.footer-contact {
  display: grid;
  gap: 9px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.contact-key {
  flex: none;
  padding: 3px 6px;
  border: 1px solid rgba(167, 180, 173, 0.3);
  border-radius: 1px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  line-height: 1.4;
  color: rgba(167, 180, 173, 0.8);
}

.contact-value {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  line-height: 1.6;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.copy-btn {
  padding: 3px 7px;
  border: 1px solid rgba(167, 180, 173, 0.34);
  border-radius: 1px;
  background: transparent;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  line-height: 1.4;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.copy-btn:hover {
  color: var(--cyan);
  border-color: rgba(57, 242, 208, 0.55);
  background: rgba(57, 242, 208, 0.08);
}

.copy-btn[data-state="ok"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04120F;
}

.copy-btn[data-state="manual"] {
  border-color: var(--orange);
  color: var(--orange);
}

.footer-note {
  max-width: 44ch;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed rgba(167, 180, 173, 0.24);
  font-size: 12px;
  line-height: 1.9;
  color: rgba(167, 180, 173, 0.82);
}

.footer-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
}

.footer-col-title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--paper);
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.3;
}

.footer-links {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-link {
  display: inline-block;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  color: var(--mist);
  font-size: 13.5px;
  line-height: 1.65;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.footer-link:hover {
  color: var(--cyan);
  border-bottom-color: rgba(57, 242, 208, 0.5);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 16px var(--gutter) 26px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: rgba(167, 180, 173, 0.86);
}

.legal-item { margin: 0; }

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 6px 10px;
  border: 1px solid rgba(57, 242, 208, 0.42);
  border-radius: 1px;
  background: rgba(57, 242, 208, 0.08);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.to-top:hover {
  background: rgba(57, 242, 208, 0.18);
  border-color: rgba(57, 242, 208, 0.72);
}

/* ---------- 11. 响应式 ---------- */
@media (min-width: 560px) {
  .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brand-tagline { white-space: normal; }
}

@media (min-width: 900px) {
  .grid--split { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .grid--aside { grid-template-columns: minmax(0, 250px) minmax(0, 1fr); align-items: start; }
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
}

@media (min-width: 1024px) {
  :root { --header-h: 70px; }

  .header-meta { display: inline-flex; }
  .nav-toggle { display: none; }

  .site-nav,
  .site-header[data-open] .site-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: clamp(14px, 3vw, 32px);
    padding: 0 0 10px;
  }

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

  .nav-link {
    width: auto;
    padding: 8px 10px;
    font-size: 13px;
  }

  .nav-actions {
    flex-direction: row;
    align-items: center;
    flex: none;
  }

  .nav-actions .btn {
    width: auto;
    padding: 9px 15px;
    font-size: 12.5px;
  }
}

@media (max-width: 559px) {
  .brand-tagline { display: none; }
  .footer-legal { gap: 8px 14px; }
  .to-top { margin-left: 0; }
}

/* ---------- 12. 还原动效偏好 ---------- */
@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;
  }
}
