/* ===================================================================
   爱游戏体育赛事 · 共享站点套件
   文件位置：/assets/site.css
   结构：Reset → 变量 → 排版 → 通用组件 → 页头 → 命令条 → 页脚 → 响应式
   =================================================================== */

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

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

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

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

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

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s cubic-bezier(.2,.7,.3,1);
}

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

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

[hidden] { display: none !important; }

/* ---------------- 2. 设计变量 ---------------- */
:root {
  /* 色彩 */
  --ink: #050B18;
  --ink-2: #0A1A33;
  --grid: #14345C;
  --cyan: #28F3E1;
  --blue: #2F7DFF;
  --orange: #FF7A1A;
  --white: #F5F8FF;
  --steel: #91A6C2;
  --red: #FF4D5E;
  --green: #19C9A0;
  --panel: #1B2F4E;

  --line: rgba(20, 52, 92, .9);
  --line-soft: rgba(20, 52, 92, .55);
  --cyan-soft: rgba(40, 243, 225, .12);
  --orange-soft: rgba(255, 122, 26, .14);

  /* 尺寸 */
  --shell: 1200px;
  --gutter: 20px;
  --hd-h: 72px;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 18px;

  /* 字体 */
  --font-sans: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* 动效 */
  --ease: cubic-bezier(.2, .7, .3, 1);
  --dur: .2s;
}

/* ---------------- 3. 基础排版 ---------------- */
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--white);
  background-color: var(--ink);
  background-image:
    radial-gradient(1080px 540px at 84% -6%, rgba(47, 125, 255, .16), transparent 62%),
    radial-gradient(820px 480px at 2% 2%, rgba(40, 243, 225, .09), transparent 60%),
    linear-gradient(to right, rgba(20, 52, 92, .26) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 52, 92, .26) 1px, transparent 1px);
  background-size: auto, auto, 88px 88px, 88px 88px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: .04em;
  color: var(--white);
}

p { text-wrap: pretty; }

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

.data { color: var(--cyan); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------- 4. 布局与通用组件 ---------------- */
.shell {
  width: min(calc(100% - (var(--gutter) * 2)), var(--shell));
  margin-inline: auto;
}

.section { padding-block: clamp(48px, 7vw, 96px); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-title {
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  letter-spacing: .05em;
}

.section-note {
  max-width: 46ch;
  font-size: .9375rem;
  color: var(--steel);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(40, 243, 225, .8);
}

.rule {
  height: 1px;
  border: 0;
  margin-block: 32px;
  background: linear-gradient(90deg, var(--line), transparent);
}

/* 按钮族 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.btn-primary {
  color: #180900;
  background: var(--orange);
  border-color: rgba(255, 122, 26, .9);
  box-shadow: 0 12px 28px -16px rgba(255, 122, 26, .95);
}

.btn-primary:hover {
  color: #180900;
  background: #FF9243;
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--cyan);
  background: rgba(40, 243, 225, .07);
  border-color: rgba(40, 243, 225, .45);
}

.btn-ghost:hover {
  color: var(--cyan);
  background: rgba(40, 243, 225, .16);
  border-color: rgba(40, 243, 225, .7);
}

.btn-outline {
  color: var(--white);
  background: transparent;
  border-color: rgba(145, 166, 194, .42);
}

.btn-outline:hover {
  color: var(--white);
  background: rgba(145, 166, 194, .12);
  border-color: rgba(145, 166, 194, .7);
}

.btn-sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: 8px;
}

.btn-block { width: 100%; }

/* 面包屑 */
.breadcrumb {
  padding-block: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  color: var(--steel);
}

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

.breadcrumb-list > li + li::before {
  content: "/";
  color: rgba(145, 166, 194, .45);
}

.breadcrumb-link { color: var(--steel); }
.breadcrumb-link:hover { color: var(--cyan); }
.breadcrumb-current { color: var(--white); }

/* 面板 */
.panel {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(27, 47, 78, .92), rgba(10, 26, 51, .94));
}

.panel--cut {
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.panel--hover {
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.panel--hover:hover {
  transform: translateY(-3px);
  border-color: rgba(40, 243, 225, .45);
  box-shadow: 0 26px 48px -32px rgba(40, 243, 225, .75);
}

/* 状态标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .1em;
  color: var(--steel);
  background: rgba(20, 52, 92, .35);
}

.tag--live {
  color: #FFD9C2;
  border-color: rgba(255, 77, 94, .55);
  background: rgba(255, 77, 94, .14);
}

.tag--live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px rgba(255, 77, 94, .9);
  animation: livePulse 1.8s ease-in-out infinite;
}

.tag--ok {
  color: #B9F6E7;
  border-color: rgba(25, 201, 160, .5);
  background: rgba(25, 201, 160, .14);
}

.tag--warn {
  color: #FFD8B5;
  border-color: rgba(255, 122, 26, .5);
  background: rgba(255, 122, 26, .14);
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

/* 网格 */
.grid {
  display: grid;
  gap: var(--gap, 20px);
}

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

/* 图片容器（页面阶段放 <img> 或保持空占位） */
.media-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(27, 47, 78, .95), rgba(5, 11, 24, .95));
  aspect-ratio: 16 / 9;
}

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

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(40, 243, 225, .1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(40, 243, 225, .1) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: .6;
  mix-blend-mode: screen;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 11, 24, .74) 100%);
}

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

.media-frame--cut {
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

.media-caption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 3;
  padding: 4px 9px;
  border: 1px solid rgba(40, 243, 225, .28);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .12em;
  color: var(--cyan);
  background: rgba(5, 11, 24, .72);
}

/* 长文 */
.prose {
  max-width: 68ch;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #D7E2F2;
}

.prose > * + * { margin-top: 1.1em; }

.prose h2 {
  margin-top: 1.6em;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  letter-spacing: .04em;
}

.prose h3 {
  margin-top: 1.4em;
  font-size: 1.15rem;
  letter-spacing: .03em;
  color: var(--cyan);
}

.prose strong { color: var(--white); font-weight: 700; }

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

.prose ul,
.prose ol {
  padding-left: 1.4em;
  list-style: disc;
}

.prose ol { list-style: decimal; }

.prose blockquote {
  padding-left: 16px;
  border-left: 2px solid var(--cyan);
  color: var(--steel);
}

/* 页内筛选按钮 */
[data-filter] {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  color: var(--steel);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

[data-filter]:hover {
  color: var(--white);
  border-color: rgba(40, 243, 225, .5);
}

[data-filter][aria-pressed="true"] {
  color: #04231F;
  font-weight: 600;
  background: var(--cyan);
  border-color: var(--cyan);
}

/* 显现动效 */
[data-reveal] {
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

[data-reveal].is-pending {
  opacity: 0;
  transform: translateY(16px);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------- 5. 页头 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(5, 11, 24, .98), rgba(5, 11, 24, .9));
  border-bottom: 1px solid var(--line);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(40, 243, 225, .55) 22%, rgba(47, 125, 255, .5) 62%, transparent);
  opacity: .75;
}

.site-header[data-scrolled] {
  border-bottom-color: rgba(40, 243, 225, .4);
  box-shadow: 0 18px 44px -34px rgba(40, 243, 225, .9);
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 120;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #04231F;
  background: var(--cyan);
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease);
}

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

.header-shell {
  width: min(calc(100% - (var(--gutter) * 2)), var(--shell));
  margin-inline: auto;
  min-height: var(--hd-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 10px;
}

/* 品牌脉冲 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  color: var(--white);
}

.brand:hover { color: var(--white); }

.brand-pulse {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
}

.brand-pulse::before {
  content: "";
  width: 11px;
  height: 11px;
  background: var(--cyan);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  box-shadow: 0 0 16px rgba(40, 243, 225, .7);
}

.brand-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(40, 243, 225, .55);
  border-radius: 50%;
  animation: pulseRing 2.8s var(--ease) infinite;
}

@keyframes pulseRing {
  0% { transform: scale(.55); opacity: .9; }
  100% { transform: scale(1.7); opacity: 0; }
}

.brand-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.1;
}

.brand-name {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.brand-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .14em;
  color: var(--steel);
}

.brand-ver {
  font-style: normal;
  font-weight: 500;
  color: #7FA3CC;
}

.brand-sep {
  width: 1px;
  height: 9px;
  background: rgba(145, 166, 194, .45);
}

.brand-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(25, 201, 160, .18);
  animation: livePulse 2.4s ease-in-out infinite;
}

/* 移动端栏目按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid rgba(40, 243, 225, .35);
  border-radius: 10px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .16em;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.nav-toggle:hover {
  background: rgba(40, 243, 225, .1);
  border-color: rgba(40, 243, 225, .6);
}

.nav-toggle-icon {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: background var(--dur) var(--ease);
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease);
}

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

.site-header[data-open] .nav-toggle-icon { background: transparent; }
.site-header[data-open] .nav-toggle-icon::before { top: 0; transform: rotate(45deg); }
.site-header[data-open] .nav-toggle-icon::after { top: 0; transform: rotate(-45deg); }

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

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-index {
  display: flex;
  align-items: center;
  gap: 2px;
}

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

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 10px 11px;
  border-radius: 10px;
  color: #B9C9E0;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.nav-link:hover {
  color: var(--white);
  background: rgba(40, 243, 225, .06);
}

.nav-num {
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .08em;
  color: rgba(40, 243, 225, .55);
  transition: color var(--dur) var(--ease);
}

.nav-text {
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease);
}

.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }

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

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

.nav-extras {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
  background: rgba(20, 52, 92, .5);
}

.scroll-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--blue) 68%, var(--orange));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------------- 6. 悬浮命令条 ---------------- */
.site-cmdbar {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(40, 243, 225, .3);
  border-radius: 999px;
  background: linear-gradient(140deg, rgba(10, 26, 51, .97), rgba(5, 11, 24, .97));
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .95);
}

.cmdbar-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .18em;
  color: var(--cyan);
}

.cmdbar-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px rgba(255, 77, 94, .9);
  animation: livePulse 1.8s ease-in-out infinite;
}

.cmdbar-main { min-height: 42px; padding-inline: 18px; }
.cmdbar-alt { min-height: 42px; padding-inline: 16px; }

/* ---------------- 7. 页脚 ---------------- */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: clamp(56px, 8vw, 110px);
  padding: clamp(44px, 6vw, 72px) 0 26px;
  background: linear-gradient(180deg, #071224 0%, #04070F 100%);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(46%, 560px);
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--blue) 65%, transparent);
}

.site-footer::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  z-index: 0;
  width: 460px;
  height: 460px;
  pointer-events: none;
  background: repeating-linear-gradient(45deg, rgba(20, 52, 92, .55) 0 1px, transparent 1px 16px);
  transform: rotate(10deg);
  opacity: .45;
}

.footer-shell {
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr);
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--white);
}

.footer-sub {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .16em;
  color: var(--cyan);
}

.footer-desc {
  max-width: 32ch;
  font-size: .875rem;
  line-height: 1.7;
  color: var(--steel);
}

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

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

.footer-col-title {
  position: relative;
  margin-bottom: 14px;
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--white);
}

.footer-col-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--cyan);
}

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

.footer-list a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .875rem;
  color: #9FB4D0;
}

.footer-list a::before {
  content: "";
  width: 4px;
  height: 4px;
  flex: none;
  background: var(--grid);
  transform: rotate(45deg);
  transition: background var(--dur) var(--ease);
}

.footer-list a:hover { color: var(--cyan); }
.footer-list a:hover::before { background: var(--cyan); }

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}

.footer-contact-line {
  font-size: .8125rem;
  color: var(--steel);
  word-break: break-word;
}

.footer-contact-line .mono { color: #CFE0F5; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 20px;
}

.footer-legal {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .04em;
  color: rgba(145, 166, 194, .8);
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-legal-link {
  padding-bottom: 1px;
  border-bottom: 1px dashed rgba(145, 166, 194, .45);
  font-size: .75rem;
  color: #9FB4D0;
}

.footer-legal-link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* ---------------- 8. 响应式 ---------------- */
@media (max-width: 1120px) and (min-width: 981px) {
  .site-nav { gap: 10px; }
  .nav-link { padding: 10px 8px; }
  .nav-text { font-size: .875rem; }
  .nav-num { font-size: .5625rem; }
  .nav-extras { padding-left: 12px; }
  .nav-extras .btn { padding-inline: 12px; font-size: 13px; }
}

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

  .site-nav {
    position: fixed;
    inset: var(--hd-h) 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    margin-left: 0;
    padding: 18px var(--gutter) calc(104px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: linear-gradient(168deg, #0A1A33 0%, #050B18 72%);
    border-top: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }

  .site-header[data-open] .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav-index {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    padding: 15px 6px;
    gap: 12px;
    border-bottom: 1px solid rgba(20, 52, 92, .7);
    border-radius: 0;
    font-size: 1.0625rem;
  }

  .nav-link::after { display: none; }

  .nav-link[aria-current="page"] {
    color: var(--cyan);
    background: linear-gradient(90deg, rgba(40, 243, 225, .12), transparent 70%);
  }

  .nav-num { font-size: .75rem; }

  .nav-extras {
    flex-direction: column;
    align-items: stretch;
    margin-top: 18px;
    padding-left: 0;
    border-left: 0;
  }

  .nav-extras .btn { width: 100%; }

  html.nav-open,
  html.nav-open body { overflow: hidden; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }
}

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

@media (max-width: 720px) {
  .site-cmdbar {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
    padding: 8px;
    border-radius: 16px;
  }

  .cmdbar-tag { display: none; }

  .site-cmdbar .btn {
    flex: 1 1 0;
    min-width: 0;
    font-size: .9375rem;
  }

  .site-footer { padding-bottom: 108px; }
}

@media (max-width: 600px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .brand-name { font-size: .9375rem; letter-spacing: .04em; }
  .brand-meta { font-size: .5625rem; letter-spacing: .08em; }
  .brand { gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal],
  [data-reveal].is-pending {
    opacity: 1 !important;
    transform: none !important;
  }
}
