/* =========================================================
   M6赛场 · 共享站点样式 /assets/site.css
   夜场转播台 × 战术板：玻璃框 + 实色内容层
   ========================================================= */

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

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

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

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

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

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

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

:where(a, button, [tabindex], summary):focus-visible {
  outline: 2px solid #3CF2C0;
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 2. Tokens ---------- */
:root {
  --red: #E23A2E;
  --night: #111A33;
  --board: #1B2748;
  --mint: #3CF2C0;
  --amber: #FFB13B;
  --haze: #8FA0BF;
  --paper: #F4EBDD;
  --glass: #9BD9E8;
  --ink: #070C18;

  --text: #E4EAF5;
  --text-soft: rgba(143, 160, 191, 0.9);

  --line: rgba(155, 217, 232, 0.18);
  --line-soft: rgba(155, 217, 232, 0.1);
  --line-strong: rgba(155, 217, 232, 0.34);

  --glass-fill: rgba(27, 39, 72, 0.52);
  --glass-fill-strong: rgba(17, 26, 51, 0.86);

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-body: "HarmonyOS Sans SC", "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-data: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;

  --pad-inline: clamp(16px, 2.2vw, 30px);
  --shell: 1380px;
  --content: 1240px;
  --gap: clamp(16px, 2vw, 28px);

  --ease: cubic-bezier(0.32, 0.72, 0.24, 1);
}

/* ---------- 3. Base / 中文排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--night);
  background-image:
    radial-gradient(1100px 620px at 84% -8%, rgba(60, 242, 192, 0.1), transparent 62%),
    radial-gradient(920px 560px at 4% 2%, rgba(226, 58, 46, 0.14), transparent 60%),
    radial-gradient(760px 520px at 50% 108%, rgba(27, 39, 72, 0.9), transparent 70%),
    linear-gradient(180deg, #0C1428 0%, var(--night) 42%, #0D1630 100%);
  background-repeat: no-repeat;
  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.15;
  letter-spacing: 0.01em;
  color: var(--paper);
  text-wrap: balance;
}

h1 { font-size: clamp(34px, 5.4vw, 68px); }
h2 { font-size: clamp(25px, 3.2vw, 38px); }
h3 { font-size: clamp(19px, 2vw, 24px); }
h4 { font-size: 17px; }

p { text-wrap: pretty; }

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

::selection { background: rgba(226, 58, 46, 0.55); color: #FFF6EC; }

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

.wrap {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: var(--pad-inline);
}

.section {
  position: relative;
  padding-block: clamp(36px, 6vw, 88px);
}

.section--tight { padding-block: clamp(24px, 3.6vw, 48px); }

.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line-strong) 18%, var(--line-soft) 60%, transparent);
  margin-block: clamp(20px, 3vw, 40px);
}

.stack { display: grid; gap: var(--gap); }
.stack--sm { display: grid; gap: 10px; }

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

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

/* ---------- 5. 文字组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mint);
}

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

.display-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5.4vw, 72px);
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--paper);
}

.display-title em {
  font-style: normal;
  color: var(--red);
}

.lede {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.75;
  color: var(--text-soft);
  max-width: 62ch;
}

.data-num {
  font-family: var(--font-data);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--mint);
}

.section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  margin-bottom: clamp(18px, 2.4vw, 30px);
}

.prose { max-width: 68ch; color: var(--text-soft); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: clamp(22px, 2.6vw, 30px); color: var(--paper); margin-top: 1.8em; }
.prose h3 { font-size: 19px; color: var(--paper); margin-top: 1.5em; }
.prose strong { color: var(--paper); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 1.2em; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.72em;
  width: 8px; height: 2px;
  background: var(--amber);
}
.prose blockquote {
  border-left: 2px solid var(--red);
  padding: 6px 0 6px 18px;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.6;
}
.prose a {
  color: var(--mint);
  border-bottom: 1px solid rgba(60, 242, 192, 0.45);
}

/* ---------- 6. 表面：实色面板与玻璃卡 ---------- */
.panel {
  position: relative;
  background: var(--board);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: clamp(20px, 2.6vw, 34px);
}

.card {
  position: relative;
  background: var(--glass-fill);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(18px, 2.2vw, 26px);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease), background 0.18s var(--ease);
}

.card:hover {
  border-color: var(--line-strong);
  background: rgba(27, 39, 72, 0.68);
}

.card-title {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.3;
  color: var(--paper);
}

.card-text { font-size: 14.5px; line-height: 1.75; color: var(--text-soft); }

/* ---------- 7. 标签与指标 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--glass);
  background: rgba(155, 217, 232, 0.1);
  border: 1px solid rgba(155, 217, 232, 0.24);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mint);
  background: rgba(60, 242, 192, 0.12);
  border: 1px solid rgba(60, 242, 192, 0.34);
}

.badge--amber {
  color: var(--amber);
  background: rgba(255, 177, 59, 0.12);
  border-color: rgba(255, 177, 59, 0.4);
}

.badge--amber::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  animation: m6-pulse 1.2s ease-in-out infinite;
}

@keyframes m6-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 177, 59, 0.55); }
  50% { opacity: 0.55; box-shadow: 0 0 0 5px rgba(255, 177, 59, 0); }
}

.stat-value {
  font-family: var(--font-data);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.1;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--haze);
}

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
              border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.btn--primary {
  color: #FFF6EC;
  background: linear-gradient(135deg, var(--red), #B62A20);
  border-color: rgba(255, 177, 59, 0.32);
  box-shadow: 0 14px 30px -18px rgba(226, 58, 46, 0.95);
}

.btn--primary:hover { transform: translateY(-1px); }

.btn--ghost {
  color: var(--paper);
  background: rgba(155, 217, 232, 0.08);
  border-color: rgba(155, 217, 232, 0.3);
}

.btn--ghost:hover {
  background: rgba(60, 242, 192, 0.12);
  border-color: rgba(60, 242, 192, 0.55);
  color: var(--mint);
}

/* ---------- 9. 面包屑 ---------- */
.breadcrumbs {
  font-size: 12.5px;
  color: var(--haze);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li + li::before {
  content: "/";
  font-family: var(--font-data);
  color: rgba(143, 160, 191, 0.5);
}

.breadcrumbs a:hover { color: var(--mint); }

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

/* ---------- 10. 筛选条 与 横向轨道 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border-radius: var(--r-md);
  background: rgba(17, 26, 51, 0.6);
  border: 1px solid var(--line-soft);
}

.filter-btn {
  padding: 8px 15px;
  border-radius: 9px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--haze);
  border: 1px solid transparent;
  transition: color 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.filter-btn:hover { color: var(--paper); background: rgba(155, 217, 232, 0.1); }

.filter-btn[aria-pressed="true"] {
  color: var(--ink);
  font-weight: 600;
  background: var(--mint);
  border-color: var(--mint);
  box-shadow: 0 8px 20px -12px rgba(60, 242, 192, 0.9);
}

.rail {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(60, 242, 192, 0.5) transparent;
}

.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-track { background: rgba(155, 217, 232, 0.08); border-radius: 99px; }
.rail::-webkit-scrollbar-thumb { background: rgba(60, 242, 192, 0.45); border-radius: 99px; }

.rail-item {
  flex: 0 0 clamp(240px, 30vw, 330px);
  scroll-snap-align: start;
}

/* ---------- 11. 图片容器基础规则 ---------- */
.img-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background-color: var(--board);
  background-image:
    linear-gradient(115deg, rgba(60, 242, 192, 0.09), transparent 46%),
    repeating-linear-gradient(90deg, rgba(155, 217, 232, 0.09) 0 1px, transparent 1px 46px),
    radial-gradient(120% 90% at 50% 110%, rgba(7, 12, 24, 0.85), transparent 70%);
}

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

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

.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 52%, rgba(7, 12, 24, 0.62) 100%);
}

.img-caption {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--haze);
}

/* ---------- 12. Skip link ---------- */
.skip-link {
  position: absolute;
  left: 14px;
  top: -80px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  background: var(--mint);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible { top: 0; }

/* ---------- 13. 头部：夜场转播框 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: linear-gradient(180deg, rgba(9, 15, 31, 0.95), rgba(14, 22, 44, 0.9));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 22px 44px -34px rgba(7, 12, 24, 0.95);
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--red) 0 17%,
    var(--amber) 17% 21%,
    rgba(60, 242, 192, 0.85) 21% 25%,
    rgba(143, 160, 191, 0.22) 25% 100%);
}

.header-inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 14px var(--pad-inline);
  min-height: 74px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 1.8vw, 28px);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--red), #931910);
  box-shadow: inset 0 0 0 1px rgba(244, 235, 221, 0.28),
              0 10px 22px -14px rgba(226, 58, 46, 0.95);
}

.brand-mark::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: var(--mint);
  box-shadow: 0 0 14px rgba(60, 242, 192, 0.8);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(244, 235, 221, 0.42);
  border-radius: 8px;
}

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

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

.brand-note {
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.1em;
  color: var(--haze);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: rgba(27, 39, 72, 0.72);
  color: var(--paper);
  justify-self: end;
}

.nav-toggle-bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--mint);
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-toggle-label {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--haze);
}

/* 主导航 */
.site-nav { min-width: 0; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-list::-webkit-scrollbar { display: none; }

.nav-item { flex: none; }

.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  color: var(--haze);
  transition: color 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.nav-label { white-space: nowrap; }

.nav-index {
  display: none;
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(143, 160, 191, 0.66);
}

.nav-link:hover {
  color: var(--paper);
  background: rgba(60, 242, 192, 0.08);
  border-color: rgba(60, 242, 192, 0.3);
}

.nav-link[aria-current="page"] {
  color: var(--paper);
  background: rgba(226, 58, 46, 0.18);
  border-color: rgba(226, 58, 46, 0.62);
  box-shadow: inset 0 -2px 0 var(--red);
}

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

/* 工具区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.ghost-link {
  padding: 8px 11px;
  border-radius: 9px;
  border: 1px solid rgba(143, 160, 191, 0.28);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--haze);
  white-space: nowrap;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.ghost-link:hover {
  color: var(--paper);
  border-color: var(--line-strong);
  background: rgba(155, 217, 232, 0.1);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 17px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
  color: #FFF6EC;
  background: linear-gradient(135deg, var(--red), #B62A20);
  border: 1px solid rgba(255, 177, 59, 0.34);
  box-shadow: 0 12px 26px -16px rgba(226, 58, 46, 0.95);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.cta-button::after {
  content: "→";
  font-family: var(--font-data);
  font-size: 12px;
  transition: transform 0.18s var(--ease);
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px -16px rgba(226, 58, 46, 1);
}

.cta-button:hover::after { transform: translateX(3px); }

/* 滚动标尺 */
.scroll-meter {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  pointer-events: none;
}

.scroll-meter-fill {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--mint), var(--amber) 68%, var(--red));
}

/* 头部断点 */
@media (min-width: 1240px) {
  .nav-index { display: inline; }
}

@media (max-width: 1180px) {
  .ghost-link { display: none; }
}

@media (max-width: 980px) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    background: linear-gradient(180deg, rgba(11, 18, 36, 0.98), rgba(9, 15, 31, 0.99));
    border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 48px -30px rgba(7, 12, 24, 1);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: max-height 0.34s var(--ease), opacity 0.24s var(--ease), transform 0.24s var(--ease);
  }

  .site-nav[data-open] {
    max-height: min(74vh, 560px);
    overflow-y: auto;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px var(--pad-inline) 20px;
    overflow: visible;
  }

  .nav-link {
    justify-content: flex-start;
    padding: 14px 14px;
    border-radius: 12px;
    font-size: 15px;
  }

  .nav-index { display: inline; font-size: 11px; }

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

@media (max-width: 720px) {
  .brand-note { display: none; }
  .header-actions { display: none; }
  .brand-mark { width: 36px; height: 36px; border-radius: 10px; }
  .brand-name { font-size: 18px; }
}

/* ---------- 14. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(40px, 7vw, 96px);
  color: var(--haze);
  background: linear-gradient(180deg, #0B1225 0%, #080E1D 62%, var(--ink) 100%);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 4%, rgba(226, 58, 46, 0.9) 34%, rgba(60, 242, 192, 0.85) 62%, transparent 96%);
}

.footer-inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(38px, 5.6vw, 72px) var(--pad-inline) 26px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 2fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: 10px;
  max-width: 34ch;
}

.footer-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--red), #931910);
  box-shadow: inset 0 0 0 1px rgba(244, 235, 221, 0.26);
  position: relative;
}

.footer-mark::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 3px;
  background: var(--mint);
  opacity: 0.9;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--paper);
}

.footer-brand-line {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--haze);
}

.footer-mono {
  font-family: var(--font-data);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  color: rgba(60, 242, 192, 0.7);
}

.footer-note {
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(143, 160, 191, 0.82);
}

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

.footer-col-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--paper);
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-list {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-list a {
  display: inline-block;
  font-size: 14px;
  color: var(--haze);
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}

.footer-list a:hover {
  color: var(--mint);
  transform: translateX(3px);
}

.footer-contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  margin-top: clamp(28px, 4vw, 46px);
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: var(--r-md);
  border: 1px solid var(--line-soft);
  background: rgba(27, 39, 72, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.footer-contact-item { display: grid; gap: 6px; }

.footer-contact-label {
  font-family: var(--font-data);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(155, 217, 232, 0.75);
}

.footer-contact-value {
  font-family: var(--font-data);
  font-size: 14px;
  line-height: 1.5;
  color: var(--paper);
  word-break: break-word;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  margin-top: clamp(22px, 3vw, 34px);
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
}

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

.footer-copy {
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(143, 160, 191, 0.78);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-left: auto;
}

.footer-legal-links a {
  color: var(--haze);
  border-bottom: 1px solid rgba(143, 160, 191, 0.35);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.footer-legal-links a:hover {
  color: var(--mint);
  border-color: rgba(60, 242, 192, 0.6);
}

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-contact { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .footer-legal-links { margin-left: 0; }
}

@media (max-width: 400px) {
  .footer-nav { grid-template-columns: 1fr; }
}

/* ---------- 15. 减少动态偏好 ---------- */
@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;
  }
  .badge--amber::before { animation: none; opacity: 1; }
  .scroll-meter-fill { transition: none; }
}
