/* =========================================================
   金博看台 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   ========================================================= */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 132px;
}
body { margin: 0; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }
img, svg, video { max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; }
table { border-collapse: collapse; }
.mast-nav__list, .round-strip__list, .footer-list, .filter-bar, .breadcrumb ol { list-style: none; margin: 0; padding: 0; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 底色体系 */
  --night: #0A1730;
  --night-deep: #071224;
  --panel: #12274A;
  --panel-hi: #0F2141;
  --line: #24406E;
  --line-soft: rgba(36, 64, 110, .58);

  /* 经幡五色 + 暖金 */
  --blue: #2F6DE0;
  --paper: #F2F6FC;
  --red: #D63A4C;
  --green: #1E9E6B;
  --yellow: #E5B32B;
  --gold: #F5C24A;
  --muted: #93A2BB;

  /* 高原渐变：仅用于首屏关键视觉与标题色块 */
  --grad-highland: linear-gradient(160deg, #1B3A6B 0%, #2F6DE0 55%, #0A1730 100%);
  --grad-night: linear-gradient(180deg, rgba(18, 39, 74, .86) 0%, rgba(10, 23, 48, .96) 100%);

  --shadow-1: 0 1px 0 rgba(36, 64, 110, .55), 0 10px 26px rgba(3, 9, 22, .42);
  --shadow-2: 0 2px 0 rgba(47, 109, 224, .34), 0 18px 40px rgba(3, 9, 22, .6);

  --radius: 5px;
  --radius-sm: 3px;

  --font-head: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-body: var(--font-head);
  --font-mono: "Roboto Mono", "Noto Sans Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);

  /* 字号阶梯 48 / 34 / 26 / 20 / 17 / 15 / 13 */
  --fs-1: clamp(32px, 5vw, 48px);
  --fs-2: clamp(26px, 3.4vw, 34px);
  --fs-3: 26px;
  --fs-4: 20px;
  --fs-5: 17px;
  --fs-6: 15px;
  --fs-7: 13px;
}

/* ---------- 3. 中文排版基础 ---------- */
body {
  background-color: var(--night);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--fs-6);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.14;
  color: var(--paper);
}
h1 { font-size: var(--fs-1); margin-bottom: .42em; }
h2 { font-size: var(--fs-2); margin-bottom: .5em; }
h3 { font-size: var(--fs-3); margin-bottom: .5em; }
h4 { font-size: var(--fs-4); margin-bottom: .55em; }
h5 { font-size: var(--fs-5); margin-bottom: .6em; }

p { margin-bottom: 1.1em; max-width: 46em; }

a {
  color: var(--blue);
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
a:hover { color: var(--paper); }

strong, b { font-weight: 700; color: var(--paper); }
small { font-size: var(--fs-7); color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

::selection { background: rgba(245, 194, 74, .3); color: var(--paper); }

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

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

/* 等宽数字：比分、积分、排名、版本号、统计 */
.num,
time,
.score,
[data-round-code] {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-weight: 500;
  letter-spacing: -.01em;
}

.delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-7);
  font-weight: 700;
  transition: color .2s ease;
}
.delta--up { color: var(--green); }
.delta--down { color: var(--red); }
.delta--flat { color: var(--muted); }

/* ---------- 4. 布局容器 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: clamp(40px, 6vw, 74px) 0; }
.section--tight { padding: clamp(28px, 4vw, 46px) 0; }
.section--top { padding-top: clamp(24px, 3vw, 40px); }

.grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.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)); }

.prose {
  max-width: 46em;
  font-size: var(--fs-6);
  line-height: 1.75;
  color: #DCE5F4;
}
.prose p { margin-bottom: 1.1em; }
.prose h2 { margin-top: 1.5em; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--gold { background: var(--gold); color: #0A1730; }
.btn--gold:hover { background: #FFD469; color: #0A1730; box-shadow: var(--shadow-2); }

.btn--blue { background: var(--blue); color: #FFFFFF; }
.btn--blue:hover { background: #4C86F0; color: #FFFFFF; box-shadow: var(--shadow-2); }

.btn--ghost { background: transparent; border-color: var(--line); color: var(--paper); }
.btn--ghost:hover { border-color: var(--blue); background: rgba(47, 109, 224, .14); color: var(--paper); }

/* ---------- 6. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(18, 39, 74, .72);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.6;
  white-space: nowrap;
}
.tag--yellow { background: var(--yellow); border-color: var(--yellow); color: #0A1730; }
.tag--blue { border-color: rgba(47, 109, 224, .7); color: var(--blue); background: rgba(47, 109, 224, .1); }
.tag--up { border-color: rgba(30, 158, 107, .6); color: var(--green); background: rgba(30, 158, 107, .1); }
.tag--down { border-color: rgba(214, 58, 76, .6); color: var(--red); background: rgba(214, 58, 76, .1); }
.tag--gold { border-color: rgba(245, 194, 74, .6); color: var(--gold); background: rgba(245, 194, 74, .1); }

/* ---------- 7. 卡片（档案卡） ---------- */
.card {
  position: relative;
  display: block;
  padding: clamp(18px, 2vw, 24px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.card__title {
  font-size: var(--fs-4);
  font-weight: 900;
  line-height: 1.25;
  color: var(--paper);
  margin-bottom: .35em;
}
.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: var(--fs-7);
  color: var(--muted);
}
.card__body { font-size: var(--fs-6); color: #DCE5F4; }
.card__body p:last-child { margin-bottom: 0; }
.card--accent { border-left: 3px solid var(--gold); }
.card--down { border-left: 3px solid var(--red); }
.card--up { border-left: 3px solid var(--green); }

/* ---------- 8. 面包屑 ---------- */
.breadcrumb {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px var(--gutter) 0;
  font-size: var(--fs-7);
  color: var(--muted);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--line); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--paper); }
.breadcrumb [aria-current="page"] { color: var(--paper); font-weight: 700; }

/* ---------- 9. 数据表（可横滑，首列冻结） ---------- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.table-scroll table { width: 100%; min-width: 560px; font-size: 14px; }
.table-scroll th,
.table-scroll td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}
.table-scroll thead th {
  background: var(--panel-hi);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}
.table-scroll tbody tr:last-child td { border-bottom: 0; }
.table-scroll tbody tr:hover td { background: rgba(47, 109, 224, .08); }
.table-scroll .is-num,
.table-scroll th.is-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; }
.table-scroll .is-freeze {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--panel);
  box-shadow: 1px 0 0 var(--line);
}
.table-scroll thead .is-freeze { background: var(--panel-hi); }

/* ---------- 10. 图片容器基础（页面阶段放 <img>） ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.82) contrast(1.08) brightness(.9);
  transition: transform .5s ease;
}
.media-frame:hover img { transform: scale(1.03); }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 23, 48, 0) 42%, rgba(10, 23, 48, .88) 100%);
}
.media-frame__badge {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 4px 10px;
  background: var(--gold);
  color: #0A1730;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}
.media-frame__tag {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 3px 8px;
  border-radius: 2px;
  background: rgba(10, 23, 48, .82);
  border: 1px solid var(--line);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
}

/* ---------- 11. 主题筛选 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: var(--fs-7);
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease, transform .18s ease;
}
.filter-chip:hover { color: var(--paper); border-color: var(--blue); transform: translateY(-1px); }
.filter-chip[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: #0A1730; }
.filter-chip[aria-pressed="true"]:hover { color: #0A1730; }

[data-category] { transition: opacity .2s ease, transform .2s ease; }
[data-category].is-out { opacity: 0; transform: translateY(8px); }
[data-category][hidden] { display: none !important; }
[data-empty-state][hidden] { display: none !important; }

/* ---------- 12. 轮次刻度 ---------- */
.round-tick { position: relative; padding-left: 24px; }
.round-tick::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 12px;
  bottom: -16px;
  width: 1px;
  background: var(--line);
}
.round-tick:last-child::before { display: none; }
.round-tick__mark {
  position: absolute;
  left: 0;
  top: 4px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  background: var(--night);
  transition: border-color .2s ease, background-color .2s ease;
}
.round-tick:hover .round-tick__mark { background: var(--blue); }
.round-tick--now .round-tick__mark { border-color: var(--gold); background: var(--gold); }

/* ---------- 13. 跳过链接 ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -120px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--gold);
  color: #0A1730;
  font-size: 14px;
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top .18s ease;
}
.skip-link:focus { top: 0; color: #0A1730; }

/* =========================================================
   14. 头部
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(10, 23, 48, .95);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}

.masthead {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px var(--gutter) 13px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}

.mast-nav { min-width: 0; }
.mast-nav--left { justify-self: start; }
.mast-nav--right { justify-self: end; }
.mast-nav__list { display: flex; align-items: center; gap: 2px; }

.mast-nav a {
  display: block;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.mast-nav a:hover { color: var(--paper); background: rgba(47, 109, 224, .12); }
.mast-nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }

/* 字标 */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 2px 6px;
  text-align: center;
  text-decoration: none;
}
.brand-flags { display: flex; gap: 3px; }
.brand-flags i {
  display: block;
  width: 14px;
  height: 5px;
  border-radius: 1px;
}
.brand-flags i:nth-child(1) { background: var(--blue); }
.brand-flags i:nth-child(2) { background: var(--paper); }
.brand-flags i:nth-child(3) { background: var(--red); }
.brand-flags i:nth-child(4) { background: var(--green); }
.brand-flags i:nth-child(5) { background: var(--yellow); }

.brand-name {
  font-family: var(--font-head);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 900;
  letter-spacing: .07em;
  line-height: 1.05;
  color: var(--paper);
  transition: color .18s ease;
}
.brand:hover { color: inherit; }
.brand:hover .brand-name { color: var(--gold); }
.brand-sub {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .26em;
  color: var(--muted);
  line-height: 1.4;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--paper);
  font-size: var(--fs-7);
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}
.nav-toggle:hover { border-color: var(--blue); background: rgba(47, 109, 224, .14); }
.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 3px; width: 16px; }
.nav-toggle__bars i {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
[data-header][data-open] .nav-toggle__bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
[data-header][data-open] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
[data-header][data-open] .nav-toggle__bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 轮次跑马条 */
.round-strip {
  border-top: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(18, 39, 74, .92) 0%, rgba(10, 23, 48, .92) 100%);
}
.round-strip__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.round-strip__label {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .26em;
  color: var(--yellow);
}
.round-strip__list {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8px, #000 calc(100% - 8px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8px, #000 calc(100% - 8px), transparent 100%);
}
.round-strip__list::-webkit-scrollbar { display: none; }
.round-strip__list li { display: flex; }

.round-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 23, 48, .6);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease, transform .18s ease;
}
.round-chip:hover {
  color: var(--paper);
  border-color: var(--blue);
  background: rgba(47, 109, 224, .18);
  transform: translateY(-1px);
}
.round-chip .num { font-size: 12px; }
.round-chip__text { letter-spacing: .02em; }
.round-chip--now {
  background: var(--gold);
  border-color: var(--gold);
  color: #0A1730;
}
.round-chip--now:hover { background: #FFD469; border-color: #FFD469; color: #0A1730; }

.strip-link {
  flex: 0 0 auto;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.strip-link:hover { color: var(--paper); border-color: var(--blue); background: rgba(47, 109, 224, .16); }

/* 滚动进度细线 */
.scroll-bar {
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 2;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--gold) 100%);
  pointer-events: none;
}

/* =========================================================
   15. 页脚
   ========================================================= */
.site-footer {
  margin-top: clamp(40px, 6vw, 80px);
  background: var(--night-deep);
  border-top: 1px solid var(--line);
}
.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 56px) var(--gutter) 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.35fr;
  gap: clamp(24px, 4vw, 48px);
}

.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-logo {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .08em;
  color: var(--paper);
  line-height: 1.2;
}
.footer-logo:hover { color: var(--gold); }
.footer-tag {
  margin: 0;
  max-width: 26em;
  font-size: var(--fs-7);
  line-height: 1.75;
  color: var(--muted);
}
.footer-legal {
  margin: 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--muted);
}

.footer-title {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .24em;
  color: var(--yellow);
}

.footer-list { display: grid; gap: 8px; }
.footer-list a { color: var(--muted); font-size: 14px; font-weight: 500; }
.footer-list a:hover { color: var(--paper); }

.footer-list--contact { gap: 12px; }
.footer-list--contact li { display: grid; gap: 3px; }
.footer-key {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--line);
}
.footer-value { font-size: 13px; color: var(--muted); line-height: 1.6; }

.copy-btn {
  justify-self: start;
  padding: 4px 9px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  letter-spacing: .01em;
  cursor: pointer;
  transition: border-color .18s ease, border-style .18s ease, background-color .18s ease, color .18s ease;
}
.copy-btn:hover { border-style: solid; border-color: var(--blue); background: rgba(47, 109, 224, .14); }
.copy-btn[data-copied="true"] { border-style: solid; border-color: var(--green); color: var(--green); background: rgba(30, 158, 107, .12); }

.footer-base {
  margin-top: clamp(28px, 4vw, 40px);
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
}
.footer-copy { margin: 0; font-size: 12px; color: var(--muted); max-width: none; }
.footer-note { margin: 0; font-size: 12px; color: var(--line); max-width: none; }

/* =========================================================
   16. 动效与入场
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  html.js-motion [data-reveal] {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .32s ease, transform .32s ease;
  }
  html.js-motion [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover,
  .card:hover,
  .filter-chip:hover,
  .round-chip:hover { transform: none; }
  .media-frame:hover img { transform: none; }
}

/* =========================================================
   17. 响应式
   ========================================================= */
@media (max-width: 1100px) {
  .mast-nav a { padding: 8px 9px; font-size: 13px; }
  .brand-sub { letter-spacing: .18em; }
}

@media (max-width: 960px) {
  .masthead {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px var(--gutter) 10px;
  }
  .brand {
    order: 1;
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    text-align: left;
    padding: 0;
  }
  .brand-flags { gap: 2px; }
  .brand-flags i { width: 10px; height: 4px; }
  .brand-name { font-size: 22px; letter-spacing: .05em; }
  .brand-sub { display: none; }

  .nav-toggle { order: 2; display: inline-flex; margin-left: auto; }

  [data-nav] {
    order: 3;
    flex: 0 0 100%;
    display: none;
    padding-top: 8px;
    border-top: 1px solid var(--line-soft);
    margin-top: 4px;
  }
  [data-header][data-open] [data-nav] { display: block; }

  .mast-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .mast-nav a {
    padding: 12px 8px;
    font-size: 14px;
    border-bottom: 1px solid var(--line-soft);
    border-left: 2px solid transparent;
    border-bottom-width: 1px;
  }
  .mast-nav a[aria-current="page"] {
    border-left-color: var(--gold);
    border-bottom-color: var(--line-soft);
    background: rgba(47, 109, 224, .1);
    color: var(--gold);
  }

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

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

@media (max-width: 640px) {
  html { scroll-padding-top: 128px; }
  .round-strip__inner { gap: 10px; }
  .round-strip__label { letter-spacing: .18em; }
  .strip-link { display: none; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-list--contact { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 6px; }

  .btn { width: 100%; justify-content: center; }
  .filter-chip { padding: 6px 12px; }
  .media-frame--wide { aspect-ratio: 16 / 9; }
}
