/* ============================================================
   雷电竞主站 · 共享外壳样式  /assets/site.css
   01 Reset  02 变量  03 中文排版  04 头部  05 导航
   06 按钮与标签  07 容器与栅格  08 页面通用组件
   09 图示容器  10 页脚  11 动效与可访问性  12 响应式
   ============================================================ */

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

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

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

ul, ol { list-style: none; }

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

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

button { background: none; border: 0; cursor: pointer; }

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

:focus-visible {
  outline: 2px solid #F5FF3D;
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: #7B2FF7;
  color: #F4F6FB;
}

/* 02 变量 -------------------------------------------------- */
:root {
  --ink: #0E0E12;
  --ink-2: #121826;
  --ink-3: #0A0A0F;
  --purple: #7B2FF7;
  --blue: #2F80FF;
  --yellow: #F5FF3D;
  --paper: #EDE6D8;
  --paper-ink: #1A1A22;
  --fog: #F4F6FB;
  --grey: #8A90A6;
  --green: #2EE6A8;
  --orange: #FF7A3D;
  --shadow-purple: #2A1150;
  --circuit: #1C2A44;

  --font-display: "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", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --header-h: 76px;
  --w-max: 1220px;
  --gutter: clamp(18px, 4vw, 48px);
  --radius: 18px;
  --radius-sm: 10px;
  --hairline: 1px solid rgba(28, 42, 68, 0.95);
  --glow: 0 0 0 1px rgba(123, 47, 247, 0.32), 0 26px 64px -34px rgba(123, 47, 247, 0.85);
}

/* 03 中文排版 ---------------------------------------------- */
body {
  min-height: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--fog);
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 560px at 88% -12%, rgba(123, 47, 247, 0.20), transparent 70%),
    radial-gradient(880px 520px at 6% 6%, rgba(47, 128, 255, 0.14), transparent 68%),
    linear-gradient(180deg, #0B0B10 0%, #0E0E12 46%, #0B0B10 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#main-content { display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(34px, 5.6vw, 64px); }
h2 { font-size: clamp(26px, 3.6vw, 40px); }
h3 { font-size: clamp(19px, 2.2vw, 24px); }

p { max-width: 68ch; }

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

small { font-size: 13px; color: var(--grey); }

.on-paper { color: var(--paper-ink); }
.on-paper h1, .on-paper h2, .on-paper h3 { color: var(--paper-ink); }
.on-paper p { color: #2B2B36; }
.on-paper strong { color: #5B1BC0; }
.on-paper a { color: #2A5FD0; text-decoration: underline; text-underline-offset: 3px; }

/* 04 头部 -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: linear-gradient(180deg, rgba(14, 14, 18, 0.88), rgba(14, 14, 18, 0));
  border-bottom: 1px solid transparent;
  transition: background-color 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.site-header.is-stuck {
  background: rgba(14, 14, 18, 0.96);
  border-bottom-color: rgba(28, 42, 68, 0.95);
  box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  min-height: var(--header-h);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 200;
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 0 0 10px 10px;
  transition: top 0.2s ease;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: linear-gradient(150deg, rgba(123, 47, 247, 0.62), rgba(47, 128, 255, 0.34));
  border: 1px solid rgba(123, 47, 247, 0.68);
  box-shadow: 0 0 26px -8px rgba(123, 47, 247, 0.95), inset 0 0 14px rgba(47, 128, 255, 0.34);
}

.brand__bolt {
  width: 12px;
  height: 21px;
  background: var(--yellow);
  clip-path: polygon(60% 0, 0 58%, 42% 58%, 34% 100%, 100% 40%, 54% 40%);
  filter: drop-shadow(0 0 6px rgba(245, 255, 61, 0.7));
}

.brand__text { display: flex; flex-direction: column; line-height: 1.2; }

.brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--fog);
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
}

.header-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-inline-start: auto;
  padding-inline-start: 18px;
  border-left: var(--hairline);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.header-meta__row { display: flex; align-items: baseline; gap: 8px; }

.header-meta__k { color: var(--grey); }

.header-meta__v { color: var(--yellow); }

/* 05 导航 -------------------------------------------------- */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  margin-inline-start: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 24px);
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 2px;
  font-size: 14px;
  letter-spacing: 0.03em;
  color: rgba(244, 246, 251, 0.74);
  transition: color 0.2s ease;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s ease;
}

.site-nav__link:hover { color: var(--fog); }
.site-nav__link:hover::after { transform: scaleX(1); }

.site-nav__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--grey);
}

.site-nav__link[aria-current="page"] { color: var(--fog); font-weight: 700; }
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"] .site-nav__idx { color: var(--yellow); }

.site-nav__cta { flex: 0 0 auto; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(47, 128, 255, 0.5);
  background: rgba(18, 24, 38, 0.9);
  color: var(--fog);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-toggle__bars { display: grid; gap: 4px; }

.nav-toggle__bar {
  width: 18px;
  height: 2px;
  background: var(--yellow);
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.nav-toggle[aria-expanded="true"] { border-color: var(--yellow); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-child { transform: translateY(-6px) rotate(-45deg); }

.scroll-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(28, 42, 68, 0.9);
  overflow: hidden;
}

.scroll-rail__fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--blue) 62%, var(--yellow));
  box-shadow: 0 0 12px rgba(123, 47, 247, 0.9);
  transition: width 0.12s linear;
}

/* 06 按钮与标签 -------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
  transition: transform 0.18s ease, box-shadow 0.24s ease, background-color 0.24s ease, color 0.24s ease;
}

.btn--primary {
  color: var(--fog);
  background: linear-gradient(120deg, var(--purple), var(--blue));
  box-shadow: 0 14px 34px -18px rgba(123, 47, 247, 0.95);
}

.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -18px rgba(47, 128, 255, 0.95); }

.btn--ghost {
  color: var(--fog);
  background: rgba(18, 24, 38, 0.7);
  border-color: rgba(47, 128, 255, 0.55);
}

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

.btn--quiet {
  color: var(--grey);
  border-color: var(--circuit);
  background: transparent;
}

.btn--quiet:hover { color: var(--fog); border-color: rgba(244, 246, 251, 0.5); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(46, 230, 168, 0.45);
  background: rgba(46, 230, 168, 0.12);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-block: 6px;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(28, 42, 68, 0.95);
  background: rgba(18, 24, 38, 0.72);
  color: var(--grey);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.filter-btn:hover { color: var(--fog); border-color: rgba(47, 128, 255, 0.6); }

.filter-btn[aria-pressed="true"] {
  color: var(--ink);
  background: linear-gradient(120deg, var(--purple), var(--blue));
  border-color: transparent;
  font-weight: 700;
}

[data-filter-item][hidden] { display: none !important; }

/* 07 容器与栅格 -------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--w-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid { display: grid; gap: clamp(18px, 2.6vw, 34px); }

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

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

.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }

.section {
  position: relative;
  padding-block: clamp(52px, 7vw, 110px);
}

.section--paper {
  background: linear-gradient(180deg, #E8E0D0, var(--paper) 40%, #E4DBC9);
  color: var(--paper-ink);
  border-block: 1px solid rgba(26, 26, 34, 0.12);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(24px, 3.4vw, 44px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--yellow);
  box-shadow: 0 0 10px rgba(245, 255, 61, 0.8);
}

.section--paper .eyebrow { color: #6B6252; }
.section--paper .eyebrow::before { background: var(--purple); box-shadow: none; }

.section-num {
  font-family: var(--font-mono);
  font-size: clamp(46px, 9vw, 118px);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.04em;
  color: rgba(123, 47, 247, 0.26);
  user-select: none;
}

.section--paper .section-num { color: rgba(26, 26, 34, 0.16); }

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, rgba(123, 47, 247, 0.7), rgba(47, 128, 255, 0.45), transparent);
}

/* 08 页面通用组件 ------------------------------------------ */
.panel {
  position: relative;
  padding: clamp(18px, 2.6vw, 30px);
  border-radius: var(--radius);
  border: var(--hairline);
  background:
    linear-gradient(158deg, rgba(18, 24, 38, 0.94), rgba(14, 14, 18, 0.96));
  box-shadow: var(--glow);
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(28, 42, 68, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 42, 68, 0.55) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.35;
  pointer-events: none;
}

.panel > * { position: relative; }

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-block: 6px;
}

.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(38px, 6.4vw, 84px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--yellow);
  text-shadow: 0 0 32px rgba(245, 255, 61, 0.28);
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
}

.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: rgba(138, 144, 166, 0.55); }
.breadcrumb a { color: rgba(244, 246, 251, 0.72); }
.breadcrumb a:hover { color: var(--yellow); }
.breadcrumb [aria-current="page"] { color: var(--fog); }

.toc { display: grid; gap: 8px; }

.toc__link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  color: rgba(244, 246, 251, 0.76);
  border-bottom: 1px dashed rgba(28, 42, 68, 0.95);
}

.toc__link:hover { color: var(--yellow); }

.fold {
  border: var(--hairline);
  border-radius: var(--radius-sm);
  background: rgba(18, 24, 38, 0.62);
  overflow: hidden;
}

.fold + .fold { margin-top: 10px; }

.fold__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fog);
  list-style: none;
}

.fold__summary::-webkit-details-marker { display: none; }

.fold__summary::after {
  content: "+";
  color: var(--yellow);
  font-size: 18px;
  line-height: 1;
}

.fold[open] .fold__summary::after { content: "–"; }

.fold__body {
  padding: 4px 18px 20px;
  font-size: 15px;
  color: rgba(244, 246, 251, 0.82);
  border-top: 1px solid rgba(28, 42, 68, 0.9);
}

.section--paper .fold {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(26, 26, 34, 0.16);
}

.section--paper .fold__summary { color: var(--paper-ink); }
.section--paper .fold__summary::after { color: var(--purple); }
.section--paper .fold__body { color: #2B2B36; border-top-color: rgba(26, 26, 34, 0.14); }

/* 09 图示容器 ---------------------------------------------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: var(--hairline);
  overflow: hidden;
  background-color: var(--ink-2);
  background-image:
    radial-gradient(120% 90% at 12% 0%, rgba(123, 47, 247, 0.42), transparent 62%),
    radial-gradient(90% 80% at 92% 100%, rgba(47, 128, 255, 0.36), transparent 64%),
    repeating-linear-gradient(135deg, rgba(28, 42, 68, 0.75) 0 1px, transparent 1px 22px),
    linear-gradient(180deg, #10141F, #0A0A0F);
  box-shadow: inset 0 0 0 1px rgba(245, 255, 61, 0.06), var(--glow);
}

.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media-frame__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
}

/* 10 页脚 -------------------------------------------------- */
.site-footer {
  position: relative;
  color: var(--fog);
  background: linear-gradient(180deg, #0B0B10, #090910);
  border-top: 1px solid rgba(28, 42, 68, 0.9);
  overflow: hidden;
}

.footer-shear {
  height: clamp(48px, 7vw, 96px);
  background: linear-gradient(100deg, rgba(123, 47, 247, 0.72), rgba(47, 128, 255, 0.58) 56%, rgba(245, 255, 61, 0.28));
  clip-path: polygon(0 0, 100% 0, 100% 34%, 0 100%);
  opacity: 0.55;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.3fr);
  gap: clamp(24px, 4vw, 54px);
  padding-block: clamp(34px, 5vw, 68px);
}

.site-footer__brand { display: flex; flex-direction: column; gap: 16px; }

.brand--footer .brand__name { font-size: 20px; }

.footer-note {
  font-size: 14px;
  line-height: 1.85;
  color: rgba(244, 246, 251, 0.72);
  max-width: 34ch;
}

.footer-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
}

.footer-col__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: var(--hairline);
}

.footer-list { display: grid; gap: 9px; }

.footer-list a {
  display: inline-block;
  font-size: 14px;
  color: rgba(244, 246, 251, 0.76);
  transition: color 0.18s ease, transform 0.18s ease;
}

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

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

.footer-contact li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(28, 42, 68, 0.95);
}

.footer-contact__k {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}

.footer-contact__v {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fog);
  word-break: break-word;
}

.copy-btn {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(47, 128, 255, 0.5);
  color: rgba(244, 246, 251, 0.8);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease;
}

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

.copy-btn[data-copied="true"] {
  color: var(--ink);
  background: var(--green);
  border-color: var(--green);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 18px 26px;
  border-top: var(--hairline);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--grey);
}

.footer-legal__meta { max-width: none; }
.footer-legal__row { max-width: none; color: rgba(138, 144, 166, 0.85); }

.top-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(28, 42, 68, 0.95);
  color: rgba(244, 246, 251, 0.82);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.18s ease, border-color 0.18s ease;
}

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

/* 11 动效与可访问性 ---------------------------------------- */
html.is-enhanced [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.62s ease, transform 0.62s ease;
}

html.is-enhanced [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

.tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html.is-enhanced [data-reveal] { opacity: 1; transform: none; }
  .tag::before { animation: none; }
  .scroll-rail__fill { transition: none; }
}

/* 12 响应式 ------------------------------------------------ */
@media (min-width: 861px) {
  .grid--split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

@media (max-width: 1080px) {
  .site-footer__inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
  .footer-col--contact { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }

  .header-meta { display: none; }

  .nav-toggle {
    display: inline-flex;
    margin-inline-start: auto;
  }

  .site-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 95;
    display: block;
    margin: 0;
    padding: 16px;
    max-height: min(74vh, 540px);
    overflow-y: auto;
    border-radius: 22px;
    border: 1px solid rgba(47, 128, 255, 0.42);
    background: linear-gradient(180deg, rgba(18, 24, 38, 0.99), rgba(11, 11, 16, 0.99));
    box-shadow: 0 28px 70px -26px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(123, 47, 247, 0.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(calc(100% + 28px));
    transition: transform 0.3s ease, opacity 0.26s ease, visibility 0.3s ease;
  }

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

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .site-nav__link {
    justify-content: space-between;
    padding: 13px 8px;
    font-size: 15px;
    border-bottom: 1px solid rgba(28, 42, 68, 0.9);
  }

  .site-nav__link::after { display: none; }

  .site-nav__link[aria-current="page"] {
    color: var(--yellow);
    background: rgba(123, 47, 247, 0.16);
    border-radius: 8px;
  }

  .site-nav__cta {
    width: 100%;
    margin-top: 14px;
  }

  .section-num { font-size: clamp(40px, 13vw, 74px); }
}

@media (max-width: 720px) {
  .site-footer__inner { grid-template-columns: minmax(0, 1fr); }
  .footer-col--contact { grid-column: auto; }
  .footer-legal { justify-content: flex-start; }
  .brand__sub { font-size: 9px; letter-spacing: 0.14em; }
  .grid--12 { grid-template-columns: minmax(0, 1fr); }
  .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: auto; }
}

@media (max-width: 420px) {
  .nav-toggle__label { display: none; }
  .btn { padding: 11px 16px; font-size: 12px; }
}
