/* ==========================================================================
   /assets/site.css
   天博赛场 · 全站共享样式（reset / tokens / 排版 / 头部 / 页脚 / 通用组件）
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-padding-top: 130px;
}

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, video { display: block; max-width: 100%; }

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

button { background: none; border: 0; }

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

table { border-collapse: collapse; width: 100%; }

hr { border: 0; }

/* ---------- 2. 设计令牌 ---------- */
:root {
  /* 背景与文字 */
  --ink-950: #050F1C;
  --ink-900: #08182B;
  --ink-800: #102A44;
  --ink-750: #0C2136;
  --ink-700: #16344F;
  --paper: #EAF3FB;
  --paper-dim: #A9C0D4;
  --steel: #7D93A8;

  /* 经幡五色与数据强调 */
  --cyan: #35F2D0;
  --orange: #FF8A3D;
  --f-blue: #3D8BFF;
  --f-red: #E5484D;
  --f-green: #37C978;
  --f-yellow: #F5C542;
  --white-flag: #EAF3FB;

  /* 线与边界 */
  --line: rgba(125, 147, 168, 0.28);
  --line-soft: rgba(125, 147, 168, 0.16);

  /* 字体 */
  --font-display: 'Archivo Black', 'Noto Sans SC', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --font-body: 'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* 尺寸 */
  --shell: 1220px;
  --gutter: clamp(16px, 3.4vw, 40px);
  --cut: 18px;
  --cut-sm: 10px;
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--paper);
  background-color: var(--ink-900);
  background-image:
    radial-gradient(1100px 520px at 92% -8%, rgba(53, 242, 208, 0.10), transparent 62%),
    radial-gradient(860px 500px at -8% 2%, rgba(61, 139, 255, 0.13), transparent 60%);
  background-repeat: no-repeat;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

h1, h2, h3, .section-title, .display {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  line-height: 1.1;
  letter-spacing: 0.005em;
  color: var(--paper);
}

h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
h4 { font-size: 1.05rem; font-weight: 700; font-style: normal; font-family: var(--font-body); }

p { overflow-wrap: break-word; }

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

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.88em;
  letter-spacing: 0.02em;
}

#main-content { display: block; scroll-margin-top: 120px; }

::selection { background: var(--cyan); color: var(--ink-950); }

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

/* ---------- 4. 跳至主内容 ---------- */
.skip-link {
  position: absolute;
  top: -80px;
  left: 12px;
  z-index: 300;
  display: inline-block;
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-950);
  background: var(--cyan);
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: top 0.18s ease;
}

.skip-link:focus { top: 12px; color: var(--ink-950); }

/* ---------- 5. 站点头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(8, 24, 43, 0.99), rgba(8, 24, 43, 0.94));
  border-bottom: 1px solid var(--line);
}

.header-rail {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px var(--gutter);
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
}

/* 品牌字标 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--paper);
}

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

.brand-mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  width: 26px;
  height: 27px;
  flex: 0 0 auto;
}

.brand-mark i {
  display: block;
  width: 5px;
  border-radius: 1px;
}

.brand-mark i:nth-child(1) {
  height: 58%;
  background: linear-gradient(180deg, var(--cyan), var(--f-blue));
}

.brand-mark i:nth-child(2) {
  height: 100%;
  background: linear-gradient(180deg, var(--orange), var(--f-red));
}

.brand-mark i:nth-child(3) {
  height: 78%;
  background: linear-gradient(180deg, var(--f-yellow), var(--f-green));
}

.brand-text { display: block; }

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 1.22rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--paper);
  transition: color 0.16s ease;
}

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

.brand-sub {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1.2;
  letter-spacing: 0.16em;
  color: var(--steel);
  text-transform: uppercase;
}

/* 头部语义短句 */
.brand-line {
  flex: 1 1 auto;
  min-width: 0;
  padding-left: clamp(12px, 1.8vw, 22px);
  border-left: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.5;
  letter-spacing: 0.1em;
  color: var(--paper-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 五色菱标 */
.header-flags,
.footer-flags {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}

.flag {
  display: block;
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
}

.flag--blue { background: var(--f-blue); }
.flag--white { background: var(--white-flag); }
.flag--red { background: var(--f-red); }
.flag--green { background: var(--f-green); }
.flag--yellow { background: var(--f-yellow); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* ---------- 6. 按钮 ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  --btn-line: var(--line);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 0.68em 1.15em;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.05em;
  color: var(--btn-fg);
  background-color: var(--btn-bg);
  border: 1px solid var(--btn-line);
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(
    var(--cut-sm) 0,
    100% 0,
    100% calc(100% - var(--cut-sm)),
    calc(100% - var(--cut-sm)) 100%,
    0 100%,
    0 var(--cut-sm)
  );
  transition: background-color 0.16s ease, color 0.16s ease,
              border-color 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover { color: var(--btn-fg); }

.btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--cyan);
}

.btn--cta {
  --btn-bg: var(--orange);
  --btn-fg: #0A1728;
  --btn-line: var(--orange);
  font-weight: 800;
}

.btn--cta:hover {
  --btn-bg: #FFA468;
  --btn-line: #FFA468;
  --btn-fg: #0A1728;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--cyan);
  --btn-line: rgba(53, 242, 208, 0.45);
}

.btn--ghost:hover {
  --btn-bg: rgba(53, 242, 208, 0.12);
  --btn-line: rgba(53, 242, 208, 0.75);
  --btn-fg: var(--cyan);
}

/* ---------- 7. 栏目轨道 ---------- */
.site-nav {
  position: relative;
  border-top: 1px solid var(--line-soft);
  background:
    linear-gradient(90deg, rgba(53, 242, 208, 0.07), transparent 34%),
    linear-gradient(180deg, rgba(16, 42, 68, 0.55), rgba(8, 24, 43, 0.55));
}

.site-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0 23px,
    rgba(125, 147, 168, 0.20) 23px 24px
  );
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 58%);
  mask-image: linear-gradient(90deg, #000 0%, transparent 58%);
}

.nav-list {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: stretch;
  gap: clamp(2px, 0.6vw, 10px);
}

.nav-item { display: flex; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 14px clamp(8px, 1.1vw, 16px);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: var(--paper-dim);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--f-blue));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}

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

.nav-link:hover::before { transform: scaleX(1); }

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

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

/* 移动端开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
  color: var(--cyan);
  background-color: rgba(53, 242, 208, 0.08);
  border: 1px solid rgba(53, 242, 208, 0.42);
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: background-color 0.16s ease, color 0.16s ease;
}

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

.nav-toggle:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--cyan);
}

.nav-toggle[aria-expanded="true"] {
  color: var(--ink-950);
  background-color: var(--cyan);
  border-color: var(--cyan);
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease;
}

.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { bottom: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-toggle-label { display: inline-block; }

/* ---------- 8. 站点页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  color: var(--paper-dim);
  background: linear-gradient(180deg, rgba(16, 42, 68, 0.55) 0%, var(--ink-950) 62%);
  border-top: 1px solid var(--line);
}

.footer-track {
  height: 4px;
  opacity: 0.8;
  background: linear-gradient(
    90deg,
    var(--f-blue) 0 20%,
    var(--white-flag) 20% 40%,
    var(--f-red) 40% 60%,
    var(--f-green) 60% 80%,
    var(--f-yellow) 80% 100%
  );
}

.footer-inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) var(--gutter) 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(22px, 3.4vw, 44px);
}

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

.brand--footer .brand-name { font-size: 1.1rem; }
.brand--footer .brand-sub { color: var(--steel); }

.footer-note {
  max-width: 30ch;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--paper-dim);
}

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

.footer-title {
  margin-bottom: 14px;
  padding-left: 10px;
  border-left: 2px solid var(--orange);
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.2em;
  color: var(--steel);
  text-transform: uppercase;
}

.footer-links li + li { margin-top: 9px; }

.footer-links a {
  display: inline-block;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--paper-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

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

.footer-meta li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  line-height: 1.6;
}

.footer-meta li + li { margin-top: 10px; }

.meta-key {
  flex: 0 0 auto;
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: var(--steel);
}

.meta-val {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.footer-base {
  margin-top: clamp(28px, 4vw, 46px);
  padding: 18px 0 30px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--steel);
}

.footer-copy,
.footer-legal,
.footer-icp { margin: 0; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-legal a {
  color: var(--paper-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

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

.footer-icp { margin-left: auto; color: var(--steel); }

/* ---------- 9. 通用布局组件 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(40px, 6vw, 80px); }
.section--tight { padding-block: clamp(26px, 3.6vw, 48px); }

.split {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 2.6fr);
  gap: clamp(18px, 3vw, 44px);
  align-items: start;
}

.grid {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
}

.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)); }

/* ---------- 10. 文本与索引组件 ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--orange);
  flex: 0 0 auto;
}

.lede {
  max-width: 62ch;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--paper-dim);
}

.section-title em,
.section-title strong {
  font-style: normal;
  color: var(--cyan);
}

.rule-slash {
  height: 2px;
  margin-block: clamp(20px, 3vw, 34px);
  background: linear-gradient(
    90deg,
    var(--orange) 0%,
    var(--f-blue) 38%,
    rgba(125, 147, 168, 0.35) 68%,
    transparent 96%
  );
  clip-path: polygon(0 0, 100% 0, 96% 100%, 0 100%);
  transform: scaleY(0.9);
}

/* ---------- 11. 状态标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.14em;
  color: var(--paper-dim);
  border: 1px solid currentColor;
  background-color: rgba(8, 24, 43, 0.5);
  text-transform: uppercase;
  white-space: nowrap;
}

.tag--league { color: var(--f-blue); }
.tag--live { color: var(--f-red); }
.tag--final { color: var(--f-green); }
.tag--soon { color: var(--f-yellow); }
.tag--data { color: var(--cyan); }

/* ---------- 12. 面板与图片容器 ---------- */
.panel {
  position: relative;
  padding: clamp(16px, 2.2vw, 26px);
  background: linear-gradient(160deg, rgba(22, 52, 79, 0.86), rgba(12, 33, 54, 0.94));
  border: 1px solid var(--line);
  clip-path: polygon(
    0 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% 100%,
    var(--cut) 100%,
    0 calc(100% - var(--cut))
  );
}

.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(140deg, #0E2740 0%, #08182B 55%, #123050 100%);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 11px,
    rgba(125, 147, 168, 0.09) 11px 12px
  );
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) brightness(0.9);
}

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

.media-frame__tag {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  color: var(--cyan);
  background: rgba(8, 24, 43, 0.88);
  border-top: 1px solid rgba(53, 242, 208, 0.42);
  text-transform: uppercase;
}

/* ---------- 13. 数字锚点 ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  line-height: 1.4;
  letter-spacing: 0.16em;
  color: var(--steel);
  text-transform: uppercase;
}

/* ---------- 14. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--steel);
}

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

.breadcrumb li + li::before {
  content: "/";
  color: var(--steel);
  opacity: 0.6;
}

.breadcrumb a {
  color: var(--paper-dim);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--cyan); }

/* ---------- 15. 滚动进度与返回顶部（脚本注入） ---------- */
.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 210;
  pointer-events: none;
}

.scroll-meter::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--f-blue) 58%, var(--orange) 100%);
  transition: transform 0.1s linear;
}

.to-top {
  position: fixed;
  right: clamp(12px, 2vw, 26px);
  bottom: clamp(16px, 3vh, 30px);
  z-index: 90;
  width: 54px;
  height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--cyan);
  background-color: var(--ink-800);
  border: 1px solid rgba(53, 242, 208, 0.42);
  cursor: pointer;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.22s ease, transform 0.22s ease,
              visibility 0.22s ease, background-color 0.18s ease;
}

.to-top__glyph {
  display: block;
  width: 10px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.to-top__label { display: block; }

.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover { background-color: var(--ink-700); }

.to-top:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--cyan);
}

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1100px) {
  .brand-line { display: none; }
}

@media (max-width: 1000px) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .header-flags { display: none; }

  .header-rail {
    min-height: 56px;
    padding-block: 10px;
    gap: 10px;
  }

  .header-actions {
    margin-left: auto;
    gap: 8px;
  }

  .header-actions .btn--ghost { display: none; }

  .site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 8px var(--gutter);
  }

  .site-nav::before { display: none; }

  .nav-toggle { display: inline-flex; }

  .nav-list {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    display: block;
    max-height: 76vh;
    overflow-y: auto;
    padding: 20px var(--gutter) calc(26px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, #0D2540 0%, #08182B 100%);
    border-top: 2px solid var(--orange);
    box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.55);
    clip-path: polygon(0 20px, 100% 0, 100% 100%, 0 100%);
    transform: translateY(105%);
    visibility: hidden;
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.25, 1), visibility 0.28s;
  }

  [data-nav][data-open="true"] .nav-list {
    transform: translateY(0);
    visibility: visible;
  }

  .nav-item {
    display: block;
    max-width: var(--shell);
    margin-inline: auto;
  }

  .nav-link {
    width: 100%;
    padding: 15px 8px;
    font-size: 1rem;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--line-soft);
    border-left: 2px solid transparent;
  }

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

  .nav-link:hover { background-color: transparent; }

  .nav-link[aria-current="page"] {
    padding-left: 16px;
    border-bottom-color: var(--line-soft);
    border-left-color: var(--orange);
  }

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

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

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

  .footer-icp {
    margin-left: 0;
    width: 100%;
  }

  .to-top {
    width: 48px;
    height: 48px;
    font-size: 0.54rem;
  }
}

@media (max-width: 520px) {
  .brand-name { font-size: 1.05rem; }
  .brand-sub { display: none; }
  .header-actions .btn--cta { padding: 0.6em 0.9em; font-size: 0.78rem; }
  h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
}

/* ---------- 17. 减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .nav-list { transition: none !important; }
  .scroll-meter::before { transition: none !important; }
  .to-top { transition: opacity 0.001ms linear, visibility 0.001ms linear !important; }
}
