/* ==========================================================================
   星空赛场 XINGKONG — /assets/site.css
   共享层：设计令牌 / reset / 中文排版 / 页头 / 页脚 / 通用组件 / 响应式
   ========================================================================== */

/* ---------- 0. 设计令牌 ---------- */
:root {
  --void: #050A16;
  --archive: #0B1426;
  --card: #131F35;
  --gold: #F5C451;
  --cyan: #2FE0D0;
  --alert: #FF6B4A;
  --slate: #7C8DA6;
  --paper: #E8EDF5;
  --line: #2A3A55;

  --band: linear-gradient(90deg, #F5C451 0%, #2FE0D0 48%, #7C8DA6 100%);
  --band-soft: linear-gradient(90deg, #F5C451 0%, rgba(245, 196, 81, 0) 32%, rgba(47, 224, 208, 0) 68%, #2FE0D0 100%);

  --font-display: "Archivo Black", "Sora", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --shell: 1120px;
  --gutter: clamp(18px, 4vw, 48px);
  --radius: 2px;
  --header-h: 82px;
  --header-h-compact: 56px;

  --shadow-paper: 0 1px 0 rgba(255, 255, 255, 0.035), 0 18px 38px -24px rgba(0, 0, 0, 0.95);
}

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

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

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

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

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

a { color: inherit; }

button { font: inherit; color: inherit; }

hr { border: 0; height: 0; }

::selection { background: rgba(245, 196, 81, 0.32); color: var(--paper); }

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

/* ---------- 2. 基础与中文排版 ---------- */
body {
  background-color: var(--void);
  background-image:
    radial-gradient(1.5px 1.5px at 7% 11%, rgba(232, 237, 245, 0.55), transparent 55%),
    radial-gradient(1.5px 1.5px at 24% 58%, rgba(47, 224, 208, 0.45), transparent 55%),
    radial-gradient(1.5px 1.5px at 43% 22%, rgba(232, 237, 245, 0.32), transparent 55%),
    radial-gradient(1.5px 1.5px at 66% 7%, rgba(245, 196, 81, 0.42), transparent 55%),
    radial-gradient(1.5px 1.5px at 81% 44%, rgba(232, 237, 245, 0.38), transparent 55%),
    radial-gradient(1.5px 1.5px at 94% 76%, rgba(47, 224, 208, 0.34), transparent 55%),
    radial-gradient(1.5px 1.5px at 13% 87%, rgba(232, 237, 245, 0.3), transparent 55%),
    radial-gradient(1.5px 1.5px at 57% 95%, rgba(245, 196, 81, 0.28), transparent 55%);
  background-repeat: no-repeat;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

#main-content { scroll-margin-top: calc(var(--header-h) + 16px); }

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
}

.lede {
  max-width: 38ch;
  font-size: clamp(15px, 1.9vw, 17px);
  line-height: 1.9;
  color: rgba(232, 237, 245, 0.86);
}

.up { color: var(--gold); }
.down { color: var(--alert); }

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

.quote-rule {
  border-left: 3px solid var(--gold);
  padding-left: 18px;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(232, 237, 245, 0.9);
}

.band-rule {
  height: 3px;
  background: var(--band);
  opacity: 0.85;
  max-width: 100%;
}

/* ---------- 3. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 400;
  transform: translateY(-180%);
  padding: 10px 16px;
  background: var(--gold);
  color: var(--void);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- 4. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(5, 10, 22, 0.94);
  border-bottom: 1px solid var(--line);
  color: var(--paper);
}

@supports ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .site-header {
    background: rgba(5, 10, 22, 0.82);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
  }
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--band-soft);
  opacity: 0.7;
  pointer-events: none;
}

.header-inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 12px var(--gutter);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  transition: padding 0.2s ease, min-height 0.2s ease;
}

.header-leading {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 1px;
  background: linear-gradient(160deg, rgba(245, 196, 81, 0.18), rgba(47, 224, 208, 0.06));
  box-shadow: inset 0 0 0 3px rgba(5, 10, 22, 0.85);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--gold);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.16s ease, color 0.16s ease;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.14em;
  color: var(--paper);
  white-space: nowrap;
}

.brand-latin {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.32em;
  color: var(--slate);
  white-space: nowrap;
}

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

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

.header-league {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 1px;
  background: var(--archive);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--slate);
  white-space: nowrap;
}

.header-league::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(245, 196, 81, 0.9);
}

.header-league-value { color: var(--cyan); }

.header-trailing {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

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

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

.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 11px;
  text-decoration: none;
  color: var(--slate);
  font-size: 13.5px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: color 0.16s ease;
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(124, 141, 166, 0.72);
  transition: color 0.16s ease;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 11px; right: 11px; bottom: 4px;
  height: 2px;
  background: var(--band);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}

.nav-list a:hover { color: var(--paper); }
.nav-list a:hover::after { transform: scaleX(0.55); }

.nav-list a[aria-current="page"] { color: var(--gold); }
.nav-list a[aria-current="page"] .nav-index { color: var(--cyan); }
.nav-list a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 1px;
  background: var(--archive);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease;
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  border-color: var(--gold);
  color: var(--gold);
}

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

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

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

.site-header[data-open="true"] .nav-toggle-glyph::before { transform: translateY(4.2px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle-glyph::after { transform: translateY(-4.2px) rotate(-45deg); }

/* 滚动后收窄 */
.site-header[data-scrolled="true"] .header-inner {
  min-height: var(--header-h-compact);
  padding-block: 8px;
}

.site-header[data-scrolled="true"] .brand-mark {
  width: 32px;
  height: 32px;
  font-size: 11px;
}

.site-header[data-scrolled="true"] .brand-latin { display: none; }
.site-header[data-scrolled="true"] .nav-index { opacity: 0; }
.site-header[data-scrolled="true"] .nav-list a { padding-block: 6px; }

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--archive);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

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

.btn-cta {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--void);
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: 0.1em;
}

.btn-cta:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--void);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
}

.btn-block {
  display: flex;
  width: 100%;
}

.header-cta { flex: 0 0 auto; }

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(48px, 8vw, 96px);
  padding-top: clamp(40px, 6vw, 72px);
  background: linear-gradient(180deg, var(--void) 0%, var(--archive) 55%, var(--void) 100%);
  border-top: 1px solid var(--line);
  color: var(--paper);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--band);
  opacity: 0.5;
}

.footer-top {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(32px, 4vw, 52px);
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) 2fr;
  gap: clamp(28px, 4vw, 64px);
}

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

.footer-tagline {
  margin-top: 20px;
  max-width: 24ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--paper);
}

.footer-note {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--slate);
}

.footer-contact {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(42, 58, 85, 0.75);
  display: grid;
  gap: 8px;
}

.contact-line {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  font-size: 13px;
  line-height: 1.7;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(124, 141, 166, 0.8);
}

.contact-value {
  color: rgba(232, 237, 245, 0.88);
  word-break: break-word;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px clamp(16px, 2.5vw, 32px);
  align-content: start;
}

.footer-col-title {
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--gold);
}

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

.footer-list a {
  display: inline-block;
  color: var(--slate);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.16s ease;
}

.footer-list a:hover {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 5px;
}

.footer-bottom {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 18px var(--gutter) 28px;
  border-top: 1px solid rgba(42, 58, 85, 0.85);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--slate);
}

.footer-copy { color: rgba(232, 237, 245, 0.7); }
.footer-icp { color: rgba(124, 141, 166, 0.9); }

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

.footer-legal a {
  color: var(--slate);
  text-decoration: none;
  transition: color 0.16s ease;
}

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

/* ---------- 7. 章节与版式组件 ---------- */
.section {
  position: relative;
  padding-block: clamp(44px, 7vw, 92px);
}

.section + .section {
  border-top: 1px solid rgba(42, 58, 85, 0.45);
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.section-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: rgba(245, 196, 81, 0.9);
}

@supports ((-webkit-text-stroke: 1px #000)) {
  .section-num {
    color: transparent;
    -webkit-text-stroke: 1px rgba(245, 196, 81, 0.62);
  }
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
}

.section-title {
  font-size: clamp(24px, 3.4vw, 40px);
  color: var(--paper);
}

.section-lede {
  max-width: 38ch;
  font-size: 15px;
  line-height: 1.9;
  color: var(--slate);
}

.breadcrumbs {
  padding-block: 18px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--slate);
}

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

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

.breadcrumbs li + li::before {
  content: "/";
  margin: 0 9px;
  color: rgba(124, 141, 166, 0.5);
}

.breadcrumbs a {
  color: var(--slate);
  text-decoration: none;
  transition: color 0.16s ease;
}

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

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

/* ---------- 8. 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

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

.grid--cards {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* ---------- 9. 档案卡 / 资料卡 ---------- */
.card,
.data-card {
  position: relative;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(19, 31, 53, 0.96), rgba(11, 20, 38, 0.96));
  box-shadow: var(--shadow-paper);
  overflow: hidden;
}

.card::before,
.data-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--band);
  opacity: 0.6;
  transition: width 0.2s ease;
}

.card:hover::before,
.data-card:hover::before { width: 5px; }

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.card-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--slate);
  white-space: nowrap;
}

/* ---------- 10. 标签 ---------- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 1px;
  background: rgba(11, 20, 38, 0.85);
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  line-height: 1.6;
}

.chip--gold {
  border-color: rgba(245, 196, 81, 0.45);
  background: rgba(245, 196, 81, 0.09);
  color: var(--gold);
}

.chip--cyan {
  border-color: rgba(47, 224, 208, 0.4);
  background: rgba(47, 224, 208, 0.08);
  color: var(--cyan);
}

.chip--alert {
  border-color: rgba(255, 107, 74, 0.45);
  background: rgba(255, 107, 74, 0.09);
  color: var(--alert);
}

/* ---------- 11. 排名光带与数据元 ---------- */
.rank-bar {
  position: relative;
  height: 6px;
  background: rgba(42, 58, 85, 0.65);
  overflow: hidden;
}

.rank-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--band);
  transition: width 0.3s ease;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--cyan);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--slate);
}

/* ---------- 12. 图像容器基础规则 ---------- */
.media-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--archive);
  background-image:
    radial-gradient(120% 90% at 18% 0%, rgba(47, 224, 208, 0.18), transparent 62%),
    radial-gradient(90% 80% at 82% 100%, rgba(245, 196, 81, 0.14), transparent 62%);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) brightness(0.92) contrast(1.03);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 18% 28%, rgba(232, 237, 245, 0.55), transparent 60%),
    radial-gradient(1px 1px at 61% 12%, rgba(47, 224, 208, 0.5), transparent 60%),
    radial-gradient(1px 1px at 84% 66%, rgba(232, 237, 245, 0.4), transparent 60%),
    radial-gradient(1px 1px at 34% 84%, rgba(245, 196, 81, 0.4), transparent 60%);
  opacity: 0.75;
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--card { aspect-ratio: 4 / 3; }
.media-frame--portrait { aspect-ratio: 3 / 4; }

.media-caption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--slate);
}

/* ---------- 13. 滚动进度 / 返回顶部 / 显现 ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  z-index: 300;
  background: var(--band);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.to-top {
  position: fixed;
  right: clamp(14px, 2vw, 26px);
  bottom: clamp(14px, 2vw, 26px);
  z-index: 250;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 1px;
  background: rgba(11, 20, 38, 0.95);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.to-top[data-visible="true"] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  border-color: var(--gold);
  color: var(--gold);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1279px) {
  .header-league { display: none; }
}

@media (max-width: 1120px) {
  .nav-list a {
    padding-inline: 8px;
    font-size: 13px;
  }
  .nav-index {
    font-size: 8.5px;
    letter-spacing: 0.04em;
  }
}

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 8px var(--gutter) 22px;
    background: rgba(11, 20, 38, 0.99);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s linear;
  }

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

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

  .nav-list li + li { border-top: 1px solid rgba(42, 58, 85, 0.6); }

  .nav-list a {
    padding: 15px 4px;
    font-size: 15px;
    justify-content: flex-start;
  }

  .nav-index {
    display: inline-block;
    font-size: 9.5px;
    letter-spacing: 0.08em;
  }

  .nav-list a::after {
    left: 0;
    right: auto;
    width: 28px;
    bottom: 9px;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(26px, 4vw, 40px);
  }

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

@media (max-width: 760px) {
  body { font-size: 15.5px; }

  .brand-latin { display: none; }

  .site-header[data-scrolled="true"] .brand-mark,
  .brand-mark { width: 34px; height: 34px; font-size: 11px; }

  .brand-name { font-size: 15.5px; letter-spacing: 0.1em; }

  .header-inner { padding-block: 10px; min-height: 68px; }

  .header-trailing { gap: 10px; }

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

  .footer-bottom { font-size: 10.5px; }
}

@media (max-width: 520px) {
  .header-cta {
    padding: 9px 11px;
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .nav-toggle {
    padding-inline: 9px;
    font-size: 10px;
  }

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

  .contact-line { grid-template-columns: 1fr; gap: 2px; }

  .to-top { padding: 9px 11px; font-size: 10px; }
}

/* ---------- 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;
  }

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