/* ============================================================
   竞博赛场 · 共享站点样式 /assets/site.css
   技术蓝图网格 + 杂志刊头 + 赛场夜灯色彩节奏
   ============================================================ */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --c-red: #E23A3A;
  --c-ink: #0B1B2B;
  --c-char: #14181D;
  --c-cyan: #42F5D4;
  --c-gold: #F2B84B;
  --c-fog: #F4F7FA;
  --c-slate: #24384D;
  --c-steel: #9FB3C8;
  --c-green: #4CD08A;
  --c-orange: #FF8A4C;

  --line: rgba(159, 179, 200, 0.16);
  --line-strong: rgba(159, 179, 200, 0.34);
  --wash-cyan: rgba(66, 245, 212, 0.08);
  --wash-gold: rgba(242, 184, 75, 0.08);
  --wash-red: rgba(226, 58, 58, 0.1);

  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "Source Han Sans SC",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han 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, Menlo,
    Consolas, "Courier New", monospace;

  --shell: 1280px;
  --pad: clamp(16px, 4vw, 40px);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.7, 0.3, 1);
  --grid-cell: 72px;
}

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

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

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--c-char);
  background-image:
    radial-gradient(1100px 620px at 84% -12%, rgba(22, 50, 74, 0.78), transparent 70%),
    radial-gradient(880px 520px at 6% 2%, rgba(66, 245, 212, 0.055), transparent 66%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--c-fog);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.015em;
  color: var(--c-fog);
}

h1 { font-size: clamp(34px, 5.2vw, 66px); letter-spacing: 0.02em; }
h2 { font-size: clamp(26px, 3.4vw, 44px); }
h3 { font-size: clamp(20px, 2.1vw, 27px); }
h4 { font-size: clamp(17px, 1.6vw, 20px); letter-spacing: 0.03em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin: 0; }

a {
  color: var(--c-cyan);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--c-fog); }

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

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

hr { border: 0; height: 1px; background: var(--line); margin: 0; }

::selection {
  background: rgba(226, 58, 58, 0.85);
  color: #fff;
}

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

/* ---------- 3. 排版与工具 ---------- */
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}
.text-cyan { color: var(--c-cyan); }
.text-gold { color: var(--c-gold); }
.text-steel { color: var(--c-steel); }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 999;
  display: inline-block;
  padding: 10px 18px;
  background: var(--c-cyan);
  color: #06121c;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 12px;
  color: #06121c;
}

/* ---------- 4. 布局容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

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

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.rule {
  height: 1px;
  border: 0;
  background: var(--line);
  margin: 0;
}

/* 蓝图网格叠加层 */
.grid-field { position: relative; }
.grid-field::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(159, 179, 200, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(159, 179, 200, 0.06) 1px, transparent 1px);
  background-size: var(--grid-cell) var(--grid-cell);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.25) 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.25) 100%);
}

/* ---------- 5. 通用组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-cyan);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  flex: none;
}

.section-head {
  display: flex;
  align-items: flex-end;
  gap: clamp(14px, 2vw, 26px);
  flex-wrap: wrap;
  margin-bottom: clamp(20px, 3vw, 36px);
}
.section-num {
  font-family: var(--font-mono);
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.02em;
  color: rgba(66, 245, 212, 0.22);
  flex: none;
}
.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--c-fog);
  background: rgba(36, 56, 77, 0.4);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover {
  border-color: var(--c-cyan);
  color: var(--c-cyan);
  background: var(--wash-cyan);
}
.btn--primary {
  background: var(--c-red);
  border-color: var(--c-red);
  color: #fff;
}
.btn--primary:hover {
  background: #ef4b4b;
  border-color: #ef4b4b;
  color: #fff;
}
.btn--gold {
  background: var(--c-gold);
  border-color: var(--c-gold);
  color: #10202f;
}
.btn--gold:hover {
  background: #ffc76a;
  border-color: #ffc76a;
  color: #10202f;
}
.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--c-fog);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--c-steel);
  background: rgba(36, 56, 77, 0.45);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.tag--cyan {
  color: var(--c-cyan);
  border-color: rgba(66, 245, 212, 0.42);
  background: var(--wash-cyan);
}
.tag--gold {
  color: var(--c-gold);
  border-color: rgba(242, 184, 75, 0.42);
  background: var(--wash-gold);
}
.tag--red {
  color: #ff8a8a;
  border-color: rgba(226, 58, 58, 0.46);
  background: var(--wash-red);
}
.tag--live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-red);
  flex: none;
}

.panel {
  position: relative;
  padding: clamp(18px, 2.6vw, 28px);
  background: linear-gradient(160deg, rgba(36, 56, 77, 0.55), rgba(20, 24, 29, 0.86));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(244, 247, 250, 0.045);
}
.panel--gold {
  border-color: rgba(242, 184, 75, 0.34);
  box-shadow: inset 0 1px 0 rgba(242, 184, 75, 0.1);
}

.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--c-steel);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.breadcrumbs li + li::before {
  content: "/";
  color: var(--c-slate);
}
.breadcrumbs a {
  color: var(--c-steel);
  text-decoration: none;
}
.breadcrumbs a:hover { color: var(--c-cyan); }
.breadcrumbs [aria-current="page"] { color: var(--c-fog); }

.prose {
  max-width: 72ch;
  color: var(--c-fog);
}
.prose > p { margin-bottom: 1.1em; }
.prose h2, .prose h3 { margin-top: 1.7em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }

/* 图片容器基础规则（页面阶段放置图片占位） */
.frame {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(155deg, #16324A 0%, #0B1B2B 62%, #101f2c 100%);
  isolation: isolate;
}
.frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 78% 12%, rgba(66, 245, 212, 0.16), transparent 62%),
    radial-gradient(90% 80% at 12% 92%, rgba(226, 58, 58, 0.14), transparent 60%);
}
.frame > img,
.frame > picture,
.frame > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.frame--16x9 { aspect-ratio: 16 / 9; }
.frame--4x5 { aspect-ratio: 4 / 5; }
.frame--1x1 { aspect-ratio: 1 / 1; }
.frame--21x9 { aspect-ratio: 21 / 9; }
.frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--c-steel);
  background: linear-gradient(to top, rgba(8, 15, 22, 0.9), transparent);
}

/* ---------- 6. 页头 ---------- */
.site-header {
  position: relative;
  z-index: 40;
  overflow: hidden;
  background: linear-gradient(180deg, #0b1b2b 0%, #0e2133 100%);
  border-bottom: 1px solid var(--line);
  color: var(--c-fog);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(159, 179, 200, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(159, 179, 200, 0.045) 1px, transparent 1px);
  background-size: var(--grid-cell) var(--grid-cell);
}
.header-meta, .masthead, .site-nav {
  position: relative;
  z-index: 1;
}

/* 顶部状态条 */
.header-meta {
  border-bottom: 1px solid var(--line);
  background: rgba(8, 17, 27, 0.6);
}
.header-meta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
}
.meta-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--c-steel);
  white-space: nowrap;
}
.meta-line--end { color: var(--c-cyan); }
.meta-line__dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 0 3px rgba(76, 208, 138, 0.16);
  animation: jb-pulse 2.6s ease-in-out infinite;
}
.meta-line__sep {
  width: 18px;
  height: 1px;
  flex: none;
  background: var(--c-slate);
}
.meta-line__dim { color: var(--c-slate); }
.meta-line--end .meta-line__dim { color: rgba(66, 245, 212, 0.72); }

@keyframes jb-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* 刊头 */
.masthead {
  background: radial-gradient(120% 150% at 50% -25%, rgba(22, 50, 74, 0.9) 0%, rgba(11, 27, 43, 0) 62%);
}
.masthead__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding-block: clamp(18px, 2.6vw, 30px);
}
.masthead__side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  min-width: 0;
}
.masthead__side--start { align-items: flex-start; text-align: left; }
.masthead__side--end { align-items: flex-end; text-align: right; }
.masthead__note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--c-steel);
}
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--c-fog);
  background: rgba(36, 56, 77, 0.55);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.meta-chip__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-red);
  box-shadow: 0 0 0 3px rgba(226, 58, 58, 0.18);
}
.masthead__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #10202f;
  background: var(--c-gold);
  border-radius: var(--radius);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.masthead__cta:hover {
  background: #ffc76a;
  color: #10202f;
  transform: translateY(-1px);
}

/* 字标 */
.brand {
  grid-column: 2;
  justify-self: center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--c-fog);
  text-decoration: none;
}
.brand__kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.44em;
  text-indent: 0.44em;
  color: var(--c-cyan);
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.04;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  color: var(--c-fog);
}
.brand::after {
  content: "";
  width: 46px;
  height: 2px;
  margin-top: 4px;
  background: var(--c-red);
  transition: width 0.25s var(--ease);
}
.brand:hover { color: var(--c-fog); }
.brand:hover::after { width: 84px; }

/* 移动端栏目索引按钮 */
.nav-toggle {
  display: none;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-fog);
  background: rgba(36, 56, 77, 0.5);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-toggle::before {
  content: "";
  width: 14px;
  height: 2px;
  flex: none;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor;
}
.nav-toggle[aria-expanded="true"] {
  color: var(--c-cyan);
  border-color: var(--c-cyan);
}

/* 主导航 */
.site-nav {
  border-top: 1px solid var(--line);
  background: rgba(16, 24, 32, 0.92);
}
.site-nav__inner { padding-block: 0; }
.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(2px, 1.6vw, 26px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 10px 13px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--c-steel);
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--c-fog);
}
.site-nav__dot {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--c-slate);
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.site-nav__link[aria-current="page"] {
  color: var(--c-fog);
  border-bottom-color: var(--c-red);
}
.site-nav__link[aria-current="page"] .site-nav__dot {
  background: var(--c-cyan);
  box-shadow: 0 0 0 3px rgba(66, 245, 212, 0.18);
}

/* 滚动进度 */
.header-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 2;
  width: 100%;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--c-red) 0%, var(--c-gold) 55%, var(--c-cyan) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  opacity: 0.92;
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(48px, 8vw, 96px);
  background: linear-gradient(180deg, #0b1b2b 0%, #0a141d 58%, #080f16 100%);
  border-top: 1px solid var(--line-strong);
  color: var(--c-steel);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(159, 179, 200, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(159, 179, 200, 0.055) 1px, transparent 1px);
  background-size: var(--grid-cell) var(--grid-cell);
}
.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(240px, 42vw);
  height: 2px;
  background: linear-gradient(90deg, var(--c-red), transparent);
  pointer-events: none;
}
.footer-top,
.footer-base { position: relative; z-index: 1; }

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 1.15fr;
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(40px, 6vw, 68px) clamp(30px, 4vw, 46px);
}
.footer-brand__kicker {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.44em;
  color: var(--c-cyan);
}
.footer-brand__name {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.1;
  letter-spacing: 0.16em;
  color: var(--c-fog);
}
.footer-brand__line {
  max-width: 30ch;
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--c-steel);
}

.footer-nav__title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-cyan);
}
.footer-nav__title::after {
  content: "";
  display: block;
  width: 26px;
  height: 1px;
  margin-top: 10px;
  background: var(--line-strong);
}
.footer-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.footer-nav__link {
  display: inline-block;
  font-size: 14px;
  color: var(--c-steel);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer-nav__link:hover {
  color: var(--c-fog);
  border-bottom-color: var(--c-cyan);
}

.footer-contact__list {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.footer-contact__row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 0;
}
.footer-contact__key {
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(159, 179, 200, 0.78);
}
.footer-contact__val {
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-fog);
  overflow-wrap: anywhere;
}

.footer-base {
  border-top: 1px solid var(--line);
  background: rgba(6, 12, 18, 0.55);
}
.footer-base__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--c-steel);
}
.footer-base__copy,
.footer-base__icp { margin: 0; }
.footer-base__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-base__links a {
  color: var(--c-steel);
  transition: color 0.2s var(--ease);
}
.footer-base__links a:hover { color: var(--c-cyan); }

/* ---------- 8. 显现动效协议 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s var(--ease), transform 0.55s var(--ease);
}

/* ---------- 9. 响应式：平板 ---------- */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1.3fr 1fr;
    row-gap: clamp(26px, 4vw, 40px);
  }
  .footer-contact { grid-column: 1 / -1; }
  .footer-contact__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 10. 响应式：手机 ---------- */
@media (max-width: 899px) {
  .header-meta__inner { min-height: 32px; }
  .meta-line { letter-spacing: 0.12em; font-size: 10px; }
  .meta-line--end { display: none; }

  .masthead__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto;
    align-items: center;
    gap: 12px;
    padding-block: 16px;
  }
  .masthead__side { display: none; }
  .brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-items: flex-start;
  }
  .brand__name { font-size: clamp(23px, 6.4vw, 30px); letter-spacing: 0.14em; text-indent: 0.14em; }
  .brand::after { margin-top: 2px; }
  .nav-toggle {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .site-nav {
    display: none;
    border-top: 1px solid var(--line);
    background: #101820;
  }
  .site-nav[data-open] { display: block; }
  .site-nav__inner { padding-block: 8px 12px; }
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
  }
  .site-nav__list > li { display: block; }
  .site-nav__link {
    display: flex;
    width: 100%;
    padding: 14px 6px;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
    border-left: 2px solid transparent;
  }
  .site-nav__list > li:last-child .site-nav__link { border-bottom: 0; }
  .site-nav__link[aria-current="page"] {
    border-bottom-color: var(--line);
    border-left-color: var(--c-red);
    background: rgba(226, 58, 58, 0.06);
    padding-left: 14px;
  }
  .site-nav__link:hover { background: rgba(66, 245, 212, 0.05); }

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

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    padding-block: clamp(34px, 8vw, 48px) clamp(26px, 6vw, 34px);
  }
  .footer-contact { grid-column: auto; }
  .footer-contact__list { grid-template-columns: minmax(0, 1fr); }
  .footer-brand__line { max-width: none; }
  .footer-base__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 480px) {
  .meta-line__dim { display: none; }
  .nav-toggle { padding: 0 11px; font-size: 12px; }
  .section-num { font-size: 40px; }
}

/* ---------- 11. 降低动效 ---------- */
@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;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .meta-line__dot { animation: none !important; }
  .brand:hover::after { width: 46px; }
  .masthead__cta:hover { transform: none; }
}
