/* =========================================================
   星空娱乐赛事 · 共享样式 /assets/site.css
   ========================================================= */

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

html {
  background: #05070F;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .015em;
  padding: var(--bar-h) 0 0 var(--rail-w);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 82% -10%, rgba(122, 77, 255, .30), transparent 62%),
    radial-gradient(760px 460px at 4% 98%, rgba(53, 224, 255, .14), transparent 62%),
    linear-gradient(180deg, #05070F 0%, #0B1226 58%, #05070F 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .55;
  background-image:
    linear-gradient(to right, rgba(58, 74, 122, .18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(58, 74, 122, .18) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(circle at 50% 26%, #000 0%, transparent 76%);
  mask-image: radial-gradient(circle at 50% 26%, #000 0%, transparent 76%);
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.24; }
dl, dd, dt { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line-soft); margin: 0; }

:root {
  --ink-950: #05070F;
  --ink-900: #0B1226;
  --ink-800: #141B33;
  --purple: #7A4DFF;
  --cyan: #35E0FF;
  --red: #FF3B3B;
  --amber: #FFB020;
  --mint: #2AD4A6;
  --text: #E8ECF8;
  --text-dim: #9AA6C4;
  --line: #3A4A7A;
  --line-soft: rgba(58, 74, 122, .45);

  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-editorial: Georgia, "Songti SC", "Noto Serif SC", "SimSun", serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --rail-w: 268px;
  --bar-h: 68px;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;

  --shell: 1320px;
  --pad: 28px;

  --ease: cubic-bezier(.22, .68, .36, 1);
}

@media (min-width: 1560px) {
  :root { --rail-w: 300px; }
}

/* ---------- 排版基元 ---------- */

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: .012em; }

.u-condensed {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: semi-condensed;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.display-xl {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: semi-condensed;
  font-size: clamp(38px, 7vw, 96px);
  line-height: .98;
  letter-spacing: -.01em;
}

.editorial {
  font-family: var(--font-editorial);
  font-weight: 400;
  letter-spacing: .01em;
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--cyan);
}

/* ---------- 焦点与可访问性 ---------- */

:focus { outline: none; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
  border-radius: 6px;
  box-shadow: 0 0 0 6px rgba(5, 7, 15, .85);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 14px;
  z-index: 200;
  transform: translateY(-180%);
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--ink-950);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  transition: transform .22s var(--ease);
}

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

/* ---------- 布局容器 ---------- */

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

#main-content { position: relative; z-index: 1; }

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.section-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 26px; }

.section-head__kicker {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--cyan);
}

.section-head__title {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: .01em;
}

.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.3em; color: var(--text-dim); }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { font-size: clamp(21px, 2.3vw, 29px); margin: 1.7em 0 .55em; }
.prose h3 { font-size: clamp(17px, 1.8vw, 21px); margin: 1.4em 0 .45em; color: var(--text); }
.prose strong { color: var(--text); }
.prose ul { margin: 0 0 1.3em; padding-left: 1.1em; list-style: disc; }
.prose li { color: var(--text-dim); margin-bottom: .5em; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 24px;
  font-size: 12.5px;
  letter-spacing: .1em;
  color: var(--text-dim);
}

.breadcrumb a { transition: color .18s var(--ease); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb__sep { color: var(--line); }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.4;
  white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s var(--ease),
              border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}

.btn--ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(20, 27, 51, .62);
}

.btn--ghost:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(53, 224, 255, .1);
  transform: translateY(-2px);
}

.btn--primary {
  color: #FFFFFF;
  background: linear-gradient(120deg, var(--purple), #4B2AD0);
  box-shadow: 0 10px 28px rgba(122, 77, 255, .34);
}

.btn--primary:hover {
  color: var(--ink-950);
  background: linear-gradient(120deg, var(--purple), var(--cyan));
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(53, 224, 255, .3);
}

.btn:active { transform: translateY(0); }

/* ---------- 状态胶囊与标签 ---------- */

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(20, 27, 51, .7);
  color: var(--text-dim);
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: .1em;
  white-space: nowrap;
}

.status-pill--mint { color: var(--mint); border-color: rgba(42, 212, 166, .45); background: rgba(42, 212, 166, .1); }
.status-pill--cyan { color: var(--cyan); border-color: rgba(53, 224, 255, .45); background: rgba(53, 224, 255, .1); }
.status-pill--amber { color: var(--amber); border-color: rgba(255, 176, 32, .45); background: rgba(255, 176, 32, .1); }
.status-pill--red { color: var(--red); border-color: rgba(255, 59, 59, .5); background: rgba(255, 59, 59, .12); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 18, 38, .62);
  color: var(--text-dim);
  font-size: 13px;
  letter-spacing: .05em;
  transition: color .2s var(--ease), border-color .2s var(--ease),
              background-color .2s var(--ease), transform .2s var(--ease);
}

.chip:hover {
  color: var(--text);
  border-color: var(--purple);
  background: rgba(122, 77, 255, .16);
  transform: translateY(-2px);
}

.chip.is-active,
.chip[aria-pressed="true"] {
  color: var(--ink-950);
  font-weight: 700;
  border-color: var(--cyan);
  background: var(--cyan);
}

/* ---------- 卡片与面板 ---------- */

.card {
  position: relative;
  padding: clamp(18px, 2.1vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(20, 27, 51, .85), rgba(11, 18, 38, .74));
  transition: transform .24s var(--ease), border-color .24s var(--ease),
              box-shadow .24s var(--ease), background-color .24s var(--ease);
}

.card:hover,
.card:focus-within {
  transform: translateY(-3px);
  border-color: var(--cyan);
  background-color: rgba(122, 77, 255, .1);
  box-shadow: 0 20px 46px rgba(5, 7, 15, .6), inset 0 0 0 1px rgba(53, 224, 255, .16);
}

.panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(11, 18, 38, .78);
  overflow: hidden;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(20, 27, 51, .62);
}

.panel__title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.panel__body { padding: 18px; }

/* ---------- 图片容器 ---------- */

.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(140deg, #0B1226, #05070F 62%);
  isolation: isolate;
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 18% 0%, rgba(122, 77, 255, .34), transparent 62%),
    radial-gradient(90% 70% at 100% 100%, rgba(53, 224, 255, .16), transparent 60%),
    linear-gradient(180deg, transparent 42%, rgba(5, 7, 15, .78));
}

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

.media__label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(53, 224, 255, .4);
  border-radius: 999px;
  background: rgba(5, 7, 15, .78);
  color: var(--text);
  font-size: 12px;
  letter-spacing: .1em;
}

.media--21x9 { aspect-ratio: 21 / 9; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }

/* =========================================================
   顶部框架：顶梁 + 左侧轨道
   ========================================================= */

.site-header { position: relative; z-index: 60; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 120;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

.frame-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 clamp(16px, 2.2vw, 30px);
  background: linear-gradient(90deg, rgba(11, 18, 38, .97), rgba(5, 7, 15, .93) 64%);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 -1px 0 rgba(53, 224, 255, .16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.brand { margin-right: auto; min-width: 0; }

.brand__mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__glyph {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: conic-gradient(from 210deg, var(--purple), var(--cyan), var(--purple));
  box-shadow: 0 0 22px rgba(122, 77, 255, .55), inset 0 0 0 1px rgba(232, 236, 248, .2);
  transition: transform .3s var(--ease);
}

.brand__glyph::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--ink-950);
}

.brand__mark:hover .brand__glyph { transform: rotate(38deg); }

.brand__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }

.brand__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--text);
  white-space: nowrap;
}

.brand__sub {
  font-size: 10.5px;
  letter-spacing: .2em;
  color: var(--text-dim);
  white-space: nowrap;
}

.version-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border: 1px solid rgba(42, 212, 166, .42);
  border-radius: 999px;
  background: rgba(42, 212, 166, .1);
  color: var(--mint);
  font-size: 12px;
  letter-spacing: .06em;
  white-space: nowrap;
}

.version-chip .num { color: var(--mint); font-size: 12.5px; }

.version-chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
}

.bar-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(20, 27, 51, .7);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .12em;
  transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}

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

.nav-toggle__bars {
  position: relative;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}

.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

.nav-toggle[aria-expanded="true"] { border-color: var(--cyan); color: var(--cyan); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- 左侧轨道 ---------- */

.frame-rail {
  position: fixed;
  top: var(--bar-h);
  left: 0;
  bottom: 0;
  z-index: 95;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 18px 22px;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(11, 18, 38, .94), rgba(5, 7, 15, .99));
  border-right: 1px solid var(--line);
  box-shadow: inset -1px 0 0 rgba(122, 77, 255, .14);
}

.rail__label {
  padding: 0 12px 8px;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--text-dim);
}

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

.rail__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px 11px 16px;
  border-radius: 14px;
  color: var(--text-dim);
  font-size: 14px;
  letter-spacing: .04em;
  transition: color .2s var(--ease), background-color .2s var(--ease),
              transform .2s var(--ease), box-shadow .2s var(--ease);
}

.rail__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 3px;
  background: var(--cyan);
  transform: translateY(-50%);
  transition: height .22s var(--ease);
}

.rail__link:hover {
  color: var(--text);
  background: rgba(122, 77, 255, .12);
  transform: translateX(3px);
}

.rail__link[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
  background: linear-gradient(90deg, rgba(122, 77, 255, .24), rgba(53, 224, 255, .05));
  box-shadow: inset 0 0 0 1px rgba(53, 224, 255, .18);
}

.rail__link[aria-current="page"]::before { height: 22px; }

.rail__num {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--line);
  transition: color .2s var(--ease);
}

.rail__link:hover .rail__num,
.rail__link[aria-current="page"] .rail__num { color: var(--cyan); }

.rail__txt { min-width: 0; }

.rail__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 12px 4px;
  border-top: 1px solid var(--line-soft);
}

.rail__cta {
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--text-dim);
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

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

.rail-scrim {
  position: fixed;
  inset: var(--bar-h) 0 0 0;
  z-index: 88;
  background: rgba(5, 7, 15, .74);
  opacity: 0;
  pointer-events: none;
  transition: opacity .26s var(--ease);
}

.rail-scrim[data-open] { opacity: 1; pointer-events: auto; }

body[data-nav-locked] { overflow: hidden; }

/* =========================================================
   页脚
   ========================================================= */

.site-footer {
  position: relative;
  margin-top: 110px;
  border-top: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(760px 340px at 88% 0%, rgba(122, 77, 255, .22), transparent 66%),
    radial-gradient(540px 320px at 2% 100%, rgba(53, 224, 255, .12), transparent 64%),
    linear-gradient(180deg, rgba(11, 18, 38, .74), rgba(5, 7, 15, .99) 48%);
}

.footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  grid-template-areas:
    "brand nav"
    "contact contact"
    "base base";
  gap: 46px 60px;
  padding-top: 74px;
  padding-bottom: 26px;
}

.footer__brand { grid-area: brand; display: flex; flex-direction: column; gap: 14px; }

.footer__wordmark {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--text);
}

.footer__tagline {
  max-width: 30ch;
  color: var(--text-dim);
  font-size: 14px;
  letter-spacing: .04em;
}

.footer__stats { display: flex; flex-wrap: wrap; gap: 9px; }

.footer__nav {
  grid-area: nav;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 26px;
}

.footer__col { display: flex; flex-direction: column; gap: 14px; }

.footer__title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer__links { display: flex; flex-direction: column; gap: 10px; }

.footer__links a {
  display: inline-block;
  width: fit-content;
  color: var(--text-dim);
  font-size: 14px;
  letter-spacing: .04em;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}

.footer__links a:hover {
  color: var(--text);
  border-bottom-color: var(--cyan);
  transform: translateX(3px);
}

.footer__contact {
  grid-area: contact;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 34px;
  border-top: 1px solid var(--line-soft);
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 34px;
}

.contact-list__row { display: flex; flex-direction: column; gap: 5px; min-width: 0; }

.contact-list dt {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.contact-list dd {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: .02em;
  color: var(--text);
  word-break: break-word;
}

.footer__note {
  max-width: 76ch;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--text-dim);
}

.footer__base {
  grid-area: base;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  letter-spacing: .1em;
  color: var(--text-dim);
}

.footer__legal { color: var(--text-dim); }
.footer__copy { color: var(--text-dim); }

.footer__top {
  margin-left: auto;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(20, 27, 51, .7);
  color: var(--text-dim);
  font-size: 12.5px;
  letter-spacing: .12em;
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}

.footer__top:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

/* =========================================================
   滚动显现
   ========================================================= */

html.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .52s var(--ease), transform .52s var(--ease);
}

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

/* =========================================================
   响应式
   ========================================================= */

@media (max-width: 1180px) {
  .footer__inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "nav" "contact" "base"; gap: 40px; }
  .contact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  body { padding-left: 0; }

  .frame-rail {
    width: min(320px, 86vw);
    transform: translateX(-104%);
    transition: transform .28s var(--ease);
    box-shadow: 26px 0 60px rgba(0, 0, 0, .62);
  }

  .frame-rail[data-open] { transform: translateX(0); }

  .nav-toggle { display: inline-flex; }
  .bar-actions { display: none; }
}

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

@media (max-width: 720px) {
  :root { --bar-h: 62px; --pad: 20px; }
  .version-chip { display: none; }
  .brand__name { font-size: 14px; letter-spacing: .12em; }
  .brand__sub { display: none; }
  .site-footer { margin-top: 76px; }
  .footer__inner { padding-top: 56px; }
  .contact-list { grid-template-columns: minmax(0, 1fr); }
  .footer__top { margin-left: 0; }
  .media--21x9 { aspect-ratio: 16 / 9; }
}

@media (max-width: 480px) {
  .footer__nav { grid-template-columns: minmax(0, 1fr); }
  .footer__base { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   动效偏好
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .card:hover, .btn:hover, .chip:hover, .rail__link:hover, .footer__top:hover { transform: none; }
  .scroll-progress { display: none; }
}
