/* ============================================================
   K8体育看台 · 共享站点样式 /assets/site.css
   墨夜底 + 深墨绿 + 冷灰蓝分层；青柠与电光橙只做状态与操作
   ============================================================ */

/* ---------- 1. 变量 ---------- */
:root {
  --ink: #070B0A;
  --moss: #0E2A23;
  --panel: #171C1A;
  --steel: #2B3D48;
  --paper: #ECE7DA;
  --lime: #C8FF3D;
  --orange: #FF6B2C;
  --ice: #56E0D2;
  --sage: #7F9189;
  --violet: #8C7BFF;

  --line: rgba(43, 61, 72, 0.9);
  --line-soft: rgba(43, 61, 72, 0.55);
  --hair: rgba(236, 231, 218, 0.07);
  --body-text: #D6DAD1;

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

  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 44px);
  --pad-y: clamp(18px, 3vw, 34px);

  --nav-break: 960px;
}

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

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

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

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

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

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

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

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

/* ---------- 3. 基础排版（中文） ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(120% 68% at 10% -12%, rgba(86, 224, 210, 0.11), transparent 62%),
    radial-gradient(92% 58% at 96% 2%, rgba(200, 255, 61, 0.08), transparent 58%),
    linear-gradient(180deg, #070B0A 0%, #070B0A 46%, #0A1411 100%);
  background-attachment: fixed;
  color: var(--body-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--paper);
  text-wrap: balance;
}

h1 { font-size: clamp(34px, 5.4vw, 62px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; }

p { text-wrap: pretty; }

strong { color: var(--paper); }

::selection {
  background: var(--lime);
  color: #08110D;
}

/* ---------- 4. 布局容器 ---------- */
.shell {
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.page-main {
  padding-block: clamp(18px, 3vw, 36px) clamp(44px, 6vw, 80px);
}

#main-content,
[id="main-content"] {
  scroll-margin-top: 132px;
}

/* ---------- 5. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border: 1px solid var(--lime);
  background: var(--lime);
  color: #08110D;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  transform: translateY(-180%);
  transition: transform 0.18s ease;
}

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

/* ---------- 6. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background:
    linear-gradient(180deg, rgba(14, 42, 35, 0.99) 0%, rgba(11, 21, 18, 0.97) 100%);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 1px 0 var(--hair), 0 22px 44px -34px #000;
  backdrop-filter: blur(10px);
}

/* 滚动进度：贴在页头下沿的细刻度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(43, 61, 72, 0.55);
  overflow: hidden;
  pointer-events: none;
}

.scroll-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--ice) 0%, var(--lime) 100%);
}

/* 顶部状态带 */
.header-band {
  background: rgba(7, 11, 10, 0.7);
  border-bottom: 1px solid var(--line-soft);
}

.header-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
  padding-block: 5px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ice);
  line-height: 1.4;
}

.live-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 44, 0.18);
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(255, 107, 44, 0.18); }
  50% { opacity: 0.5; box-shadow: 0 0 0 5px rgba(255, 107, 44, 0.08); }
}

.header-code {
  display: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sage);
  white-space: nowrap;
}

/* 主栏：品牌在左，栏目在右 */
.header-main {
  background: linear-gradient(180deg, rgba(14, 42, 35, 0.6), rgba(7, 11, 10, 0.2));
}

.header-main-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 14px;
  padding-block: 10px;
}

/* 品牌 */
.brand-block { min-width: 0; }

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background:
    linear-gradient(155deg, rgba(200, 255, 61, 0.16), rgba(14, 42, 35, 0.72)),
    var(--moss);
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  box-shadow: inset 0 0 0 1px var(--hair), 3px 3px 0 rgba(43, 61, 72, 0.6);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

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

.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.15;
  color: var(--paper);
  white-space: nowrap;
}

.brand-tagline {
  display: none;
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.5;
  color: var(--sage);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-link:hover .brand-mark,
.brand-link:focus-visible .brand-mark {
  border-color: var(--lime);
  box-shadow: inset 0 0 0 1px rgba(200, 255, 61, 0.25), 3px 3px 0 rgba(200, 255, 61, 0.32);
}

/* 移动导航按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  background: rgba(23, 28, 26, 0.95);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--lime);
  color: var(--lime);
}

.nav-toggle[aria-expanded="true"] {
  background: var(--lime);
  border-color: var(--lime);
  color: #08110D;
}

.nav-toggle-box {
  display: grid;
  gap: 3px;
  width: 15px;
  flex: 0 0 auto;
}

.nav-toggle-box span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

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

/* 导航：移动端为编号面板 */
.site-nav {
  display: none;
  grid-column: 1 / -1;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(23, 28, 26, 0.98), rgba(14, 42, 35, 0.98));
  box-shadow: inset 0 1px 0 var(--hair);
  max-height: min(68vh, 480px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.site-nav[data-open] {
  display: block;
  animation: navDrop 0.2s ease-out both;
}

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.nav-item {
  border-bottom: 1px solid var(--line-soft);
}

.nav-item:last-child { border-bottom: 0; }

.nav-link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 13px 4px;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--paper);
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--lime);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--sage);
  transition: color 0.18s ease;
}

.nav-link:hover .nav-index { color: var(--ice); }

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

/* ---------- 7. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--line);
  background: rgba(23, 28, 26, 0.8);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.btn--primary {
  background: var(--lime);
  border-color: var(--lime);
  color: #08110D;
  font-weight: 700;
  box-shadow: 3px 3px 0 rgba(43, 61, 72, 0.85);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: #DAFF77;
  border-color: #DAFF77;
  box-shadow: 4px 4px 0 rgba(86, 224, 210, 0.5);
}

.btn--ghost {
  background: transparent;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--lime);
  color: var(--lime);
}

/* ---------- 8. 标签、序号、分隔 ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ice);
  line-height: 1.5;
}

.label::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--lime);
  flex: 0 0 auto;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  background: rgba(23, 28, 26, 0.85);
  color: var(--sage);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.6;
}

.tag--live {
  border-color: rgba(255, 107, 44, 0.6);
  color: var(--orange);
}

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--steel), rgba(43, 61, 72, 0.05));
  margin-block: clamp(16px, 2.4vw, 28px);
}

/* ---------- 9. 堆叠面板 ---------- */
.section-panel {
  position: relative;
  padding: var(--pad-y);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(23, 28, 26, 0.96) 0%, rgba(14, 42, 35, 0.82) 100%);
  box-shadow: inset 0 0 0 1px var(--hair), 6px 6px 0 rgba(43, 61, 72, 0.34);
}

.section-panel + .section-panel {
  margin-top: clamp(18px, 2.6vw, 28px);
}

.section-panel::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 10px;
  height: 10px;
  border-right: 1px solid rgba(200, 255, 61, 0.5);
  border-bottom: 1px solid rgba(200, 255, 61, 0.5);
  pointer-events: none;
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.panel-index {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--lime);
  text-transform: uppercase;
}

.panel-index::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--lime);
  flex: 0 0 auto;
}

.panel-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--paper);
}

/* ---------- 10. 面包屑 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: clamp(14px, 2vw, 22px);
}

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

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-item:not(:last-child)::after {
  content: "/";
  color: var(--steel);
}

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

.breadcrumb-link:hover,
.breadcrumb-link:focus-visible {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.breadcrumb-item[aria-current="page"] {
  color: var(--paper);
}

/* ---------- 11. 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
  grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr));
}

@media (min-width: 720px) {
  .grid {
    grid-template-columns: repeat(var(--cols-md, var(--cols, 1)), minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .grid {
    grid-template-columns: repeat(var(--cols-lg, var(--cols-md, var(--cols, 1))), minmax(0, 1fr));
  }
}

/* ---------- 12. 图片容器基础（页面阶段放入 img/picture） ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 18% 0%, rgba(86, 224, 210, 0.16), transparent 62%),
    radial-gradient(80% 70% at 92% 100%, rgba(200, 255, 61, 0.1), transparent 60%),
    linear-gradient(160deg, #0E2A23 0%, #070B0A 72%);
  box-shadow: inset 0 0 0 1px var(--hair);
}

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

.media-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.6;
  background:
    linear-gradient(var(--lime), var(--lime)) left top / 14px 1px no-repeat,
    linear-gradient(var(--lime), var(--lime)) left top / 1px 14px no-repeat,
    linear-gradient(var(--lime), var(--lime)) right top / 14px 1px no-repeat,
    linear-gradient(var(--lime), var(--lime)) right top / 1px 14px no-repeat,
    linear-gradient(var(--lime), var(--lime)) left bottom / 14px 1px no-repeat,
    linear-gradient(var(--lime), var(--lime)) left bottom / 1px 14px no-repeat,
    linear-gradient(var(--lime), var(--lime)) right bottom / 14px 1px no-repeat,
    linear-gradient(var(--lime), var(--lime)) right bottom / 1px 14px no-repeat;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(7, 11, 10, 0) 0%, rgba(7, 11, 10, 0.72) 100%);
  pointer-events: none;
}

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

/* ---------- 13. 正文块 ---------- */
.prose {
  max-width: 68ch;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--body-text);
}

.prose p + p { margin-top: 1em; }
.prose h3 { margin-top: 1.6em; margin-bottom: 0.5em; }
.prose ul,
.prose ol { margin-top: 0.8em; padding-left: 1.2em; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose a {
  color: var(--ice);
  border-bottom: 1px solid rgba(86, 224, 210, 0.45);
}
.prose a:hover { color: var(--lime); border-bottom-color: var(--lime); }

/* ---------- 14. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  background: linear-gradient(180deg, #0B1512 0%, #08100D 46%, #070B0A 100%);
  border-top: 1px solid var(--line);
  box-shadow: inset 0 1px 0 var(--hair);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(200, 255, 61, 0.55) 0 2px,
    transparent 2px 16px
  );
  pointer-events: none;
}

.footer-top {
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(135deg, rgba(14, 42, 35, 0.92) 0%, rgba(23, 28, 26, 0.9) 100%);
}

.footer-top-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-block: clamp(22px, 3.4vw, 34px);
}

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

.footer-kicker {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.6vw, 27px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.footer-note {
  margin-top: 6px;
  max-width: 46ch;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--sage);
}

.footer-cta { flex: 0 0 auto; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3vw, 32px);
  padding-block: clamp(28px, 4vw, 48px);
}

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

.footer-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ice);
  line-height: 1.5;
}

.footer-col-title::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: var(--lime);
}

.footer-brand-line {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.3;
  color: var(--paper);
}

.footer-desc {
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--sage);
  line-height: 1.7;
}

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

.footer-link {
  position: relative;
  display: inline-block;
  padding: 4px 0;
  font-size: 14px;
  color: #C7CDC4;
  transition: color 0.18s ease;
}

.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 1px;
  height: 1px;
  width: 0;
  background: var(--lime);
  transition: width 0.2s ease;
}

.footer-link:hover,
.footer-link:focus-visible { color: var(--lime); }
.footer-link:hover::after,
.footer-link:focus-visible::after { width: 100%; }

.footer-contact .contact-line {
  display: grid;
  gap: 1px;
  margin-bottom: 10px;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  line-height: 1.6;
}

.contact-value {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--paper);
  word-break: break-word;
}

.contact-note {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-soft);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--sage);
}

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  background: rgba(7, 11, 10, 0.7);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-block: 16px;
}

.footer-legal,
.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1.7;
  color: var(--sage);
}

.footer-legal { color: var(--ice); }

/* ---------- 15. 响应式：平板 ---------- */
@media (min-width: 560px) {
  .header-code { display: block; }

  .brand-tagline { display: block; }

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

@media (min-width: 760px) {
  .brand-mark { width: 44px; height: 44px; font-size: 20px; }
  .brand-name { font-size: 21px; }
  .header-main-inner { padding-block: 12px; }
  .page-main { padding-top: clamp(22px, 3vw, 40px); }
}

/* ---------- 16. 响应式：桌面（左右分置导航） ---------- */
@media (min-width: 960px) {
  .header-main-inner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(16px, 3vw, 48px);
    padding-block: 14px;
  }

  .nav-toggle { display: none; }

  .site-nav {
    display: block;
    grid-column: auto;
    justify-self: end;
    margin-top: 0;
    border-top: 0;
    border-left: 1px solid var(--line-soft);
    background: none;
    box-shadow: none;
    max-height: none;
    overflow: visible;
    animation: none;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: clamp(4px, 1.4vw, 18px);
    padding-left: clamp(12px, 2vw, 26px);
  }

  .nav-item {
    border-bottom: 0;
  }

  .nav-link {
    padding: 6px 2px;
    font-size: 14.5px;
    white-space: nowrap;
  }

  .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--lime);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.2s ease;
  }

  .nav-link:hover::after,
  .nav-link[aria-current="page"]::after {
    transform: scaleX(1);
  }

  .footer-top-inner {
    flex-wrap: nowrap;
  }

  .footer-grid {
    grid-template-columns: 1.35fr 1fr 1fr 1.5fr;
    gap: clamp(24px, 3vw, 40px);
  }

  #main-content { scroll-margin-top: 150px; }
}

@media (min-width: 1120px) {
  .header-code { letter-spacing: 0.28em; }
}

/* ---------- 17. 动效降级 ---------- */
@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;
  }

  .site-nav[data-open] { animation: none; }
  .live-dot { animation: none; opacity: 1; }
}
