/* ===== 亚体育官网 · site.css ===== */

:root {
  --ink-900: #06120E;
  --pitch-800: #0C241C;
  --charcoal-900: #10161A;
  --lime-400: #C8FF3D;
  --lime-200: #E4FF9E;
  --orange-500: #FF6A2B;
  --silver-300: #B9C4C6;
  --mist-50: #F2F5F2;
  --paper-100: #F6F2E6;
  --teal-500: #1FA98A;
  --slate-600: #47605A;

  --line: rgba(185, 196, 198, 0.16);
  --line-strong: rgba(200, 255, 61, 0.34);
  --muted: rgba(185, 196, 198, 0.68);

  --rail-w: 88px;
  --shell-max: 1240px;
  --gutter: clamp(18px, 4vw, 44px);

  --font-display: "Barlow Condensed", "Arial Narrow", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 0.7, 0.3, 1);
}

:root[data-rail-compact] {
  --rail-w: 64px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  padding-inline-start: var(--rail-w);
  background:
    radial-gradient(120% 70% at 82% -10%, rgba(31, 169, 138, 0.14), transparent 62%),
    var(--ink-900);
  color: var(--silver-300);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
picture { max-width: 100%; }

a { color: var(--lime-200); }

ul,
ol { margin: 0 0 1em; padding-inline-start: 1.2em; }

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

::selection {
  background: var(--lime-400);
  color: var(--ink-900);
}

:focus-visible {
  outline: 2px solid var(--lime-400);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 中文排版 ---------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: semi-condensed;
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--mist-50);
}

h1 { font-size: clamp(36px, 5vw, 72px); }
h2 { font-size: clamp(28px, 3.4vw, 44px); }
h3 { font-size: clamp(20px, 2vw, 28px); }
h4 { font-size: 20px; }

p { margin: 0 0 1em; }

strong { color: var(--mist-50); font-weight: 600; }

.num,
[data-num] { font-variant-numeric: tabular-nums; }

.prose {
  max-width: 38em;
}

.prose p:last-child { margin-bottom: 0; }

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

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  z-index: 200;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  padding: 10px 18px;
  background: var(--lime-400);
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--mist-50);
  outline-offset: 2px;
}

/* ---------- 头部骨架 ---------- */
.site-header {
  position: relative;
  z-index: 60;
}

/* ---------- 左侧品牌轨道 ---------- */
.rail {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  z-index: 80;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 18px 0 22px;
  background:
    linear-gradient(180deg, rgba(200, 255, 61, 0.08), transparent 24%),
    linear-gradient(180deg, var(--ink-900), var(--pitch-800) 55%, var(--ink-900));
  border-inline-end: 1px solid var(--line);
  transition: width 0.28s var(--ease);
}

.rail::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-end: -1px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--lime-400) 32%, var(--teal-500) 70%, transparent);
  opacity: 0.55;
}

.rail__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--paper-100);
}

.rail__logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--lime-400);
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  clip-path: polygon(0 0, 100% 9%, 100% 100%, 0 91%);
  transition: transform 0.3s var(--ease), background 0.2s linear;
}

.rail__logo:hover .rail__logo-mark {
  transform: rotate(-5deg) scale(1.06);
  background: var(--lime-200);
}

.rail__logo-text {
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: 0.34em;
  color: rgba(185, 196, 198, 0.82);
}

.rail__issue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin-block-start: 4px;
}

.rail__issue-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(185, 196, 198, 0.6);
}

.rail__issue-num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 0.9;
  color: var(--lime-400);
  font-variant-numeric: tabular-nums;
}

.rail__meter {
  position: relative;
  flex: 1 1 auto;
  min-height: 48px;
  width: 2px;
  margin-block: 6px;
  background: rgba(185, 196, 198, 0.18);
  overflow: hidden;
}

.rail__meter-fill {
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0;
  height: 100%;
  background: linear-gradient(180deg, var(--lime-400), var(--teal-500) 60%, var(--orange-500));
  transform: scaleY(0);
  transform-origin: top center;
}

.rail__jumps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.rail__jump {
  writing-mode: vertical-rl;
  padding: 4px 2px;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: rgba(185, 196, 198, 0.86);
  text-decoration: none;
  transition: color 0.18s linear;
}

.rail__jump:hover { color: var(--lime-400); }

:root[data-rail-compact] .rail__logo-text,
:root[data-rail-compact] .rail__issue-label {
  opacity: 0;
  visibility: hidden;
}

/* ---------- 顶部双层导航 ---------- */
.topbar {
  position: sticky;
  inset-block-start: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(6, 18, 14, 0.97), rgba(6, 18, 14, 0.9));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--lime-400), var(--teal-500) 46%, var(--orange-500) 88%, transparent);
  opacity: 0.85;
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 22px;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 14px var(--gutter) 12px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: var(--mist-50);
}

.brand__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.1;
}

.brand__sub {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: rgba(185, 196, 198, 0.74);
}

.brand:hover .brand__name { color: var(--lime-200); }

.utility {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.utility__item { display: flex; }

.utility__chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 5px 11px 5px 24px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--lime-200);
  background: rgba(200, 255, 61, 0.07);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  white-space: nowrap;
}

.utility__chip::before {
  content: "";
  position: absolute;
  inset-inline-start: 10px;
  inset-block-start: 50%;
  width: 6px;
  height: 6px;
  margin-block-start: -3px;
  border-radius: 50%;
  background: var(--orange-500);
  box-shadow: 0 0 0 3px rgba(255, 106, 43, 0.16);
  animation: pulse 2.6s ease-in-out infinite;
}

.utility__link {
  padding: 6px 2px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--silver-300);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
  transition: color 0.18s linear, border-color 0.18s linear;
}

.utility__link:hover {
  color: var(--lime-400);
  border-bottom-color: var(--lime-400);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 40px;
  padding: 0;
  background: rgba(200, 255, 61, 0.08);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--lime-400);
  transition: transform 0.24s var(--ease), opacity 0.16s linear;
}

.nav-toggle__bar + .nav-toggle__bar { margin-block-start: 5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 10px var(--gutter) 12px;
  background-image: linear-gradient(90deg, rgba(200, 255, 61, 0.5), rgba(31, 169, 138, 0.32) 45%, transparent 92%);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: top left;
}

.primary-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: navi;
}

.primary-nav__item { counter-increment: navi; }

.primary-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.55em;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--silver-300);
  text-decoration: none;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.primary-nav__link::before {
  content: counter(navi, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(185, 196, 198, 0.42);
}

.primary-nav__link:hover {
  color: var(--lime-200);
  background: rgba(200, 255, 61, 0.08);
}

.primary-nav__link[aria-current="page"] {
  color: var(--ink-900);
  background: var(--lime-400);
}

.primary-nav__link[aria-current="page"]::before { color: rgba(6, 18, 14, 0.62); }

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.85em 1.5em;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn--lime {
  background: var(--lime-400);
  color: var(--ink-900);
}

.btn--lime:hover {
  background: var(--lime-200);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--lime-200);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  background: rgba(200, 255, 61, 0.1);
  color: var(--lime-400);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--ink-900), 0 0 0 4px var(--lime-400);
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-block-start: clamp(56px, 8vw, 112px);
  color: var(--silver-300);
  background-color: var(--charcoal-900);
  background-image:
    linear-gradient(rgba(200, 255, 61, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 255, 61, 0.045) 1px, transparent 1px),
    radial-gradient(120% 90% at 12% 0%, rgba(31, 169, 138, 0.18), transparent 62%);
  background-size: 64px 64px, 64px 64px, auto;
  border-top: 1px solid var(--line-strong);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange-500), var(--lime-400) 40%, rgba(31, 169, 138, 0.5) 72%, transparent);
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2.4fr;
  gap: clamp(28px, 4vw, 56px);
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) 0;
}

.footer__mast { min-width: 0; }

.footer__brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.05;
  color: var(--mist-50);
}

.footer__tagline {
  margin: 12px 0 0;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--lime-400);
}

.footer__issue {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-size: clamp(64px, 9vw, 120px);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.02em;
  color: rgba(200, 255, 61, 0.12);
  -webkit-text-stroke: 1px rgba(200, 255, 61, 0.42);
  user-select: none;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 26px;
  min-width: 0;
}

.footer__col { min-width: 0; }

.footer__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: var(--lime-400);
}

.footer__title::before {
  content: "";
  width: 14px;
  height: 2px;
  background: currentColor;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__link {
  display: inline-block;
  max-width: 100%;
  font-size: 15px;
  color: var(--silver-300);
  text-decoration: none;
  word-break: break-word;
  border-bottom: 1px solid transparent;
  transition: color 0.18s linear, border-color 0.18s linear;
}

.footer__link:hover {
  color: var(--lime-200);
  border-bottom-color: rgba(200, 255, 61, 0.55);
}

.footer__text {
  display: block;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(185, 196, 198, 0.76);
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  width: 100%;
  max-width: var(--shell-max);
  margin-block-start: clamp(28px, 4vw, 48px);
  margin-inline: auto;
  padding: 22px var(--gutter) 34px;
  border-top: 1px solid var(--line);
}

.footer__legal {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 13px;
  color: rgba(185, 196, 198, 0.72);
}

.footer__legal a {
  color: var(--silver-300);
  text-decoration: none;
  border-bottom: 1px solid rgba(185, 196, 198, 0.3);
}

.footer__legal a:hover {
  color: var(--lime-400);
  border-bottom-color: var(--lime-400);
}

.footer__icp {
  margin: 0;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: rgba(185, 196, 198, 0.82);
  font-variant-numeric: tabular-nums;
}

.footer__note {
  flex-basis: 100%;
  margin: 0;
  max-width: 64ch;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(185, 196, 198, 0.58);
}

/* ---------- 通用排版组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--lime-400);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.5;
  color: var(--silver-300);
  background: rgba(185, 196, 198, 0.12);
  border: 1px solid rgba(185, 196, 198, 0.22);
  border-radius: 2px;
  white-space: nowrap;
}

.tag--lime {
  background: var(--lime-200);
  color: var(--ink-900);
  border-color: transparent;
}

.tag--orange {
  background: rgba(255, 106, 43, 0.14);
  color: var(--orange-500);
  border-color: rgba(255, 106, 43, 0.42);
}

.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 30px);
  background: linear-gradient(160deg, rgba(12, 36, 28, 0.94), rgba(6, 18, 14, 0.94));
  border: 1px solid var(--line);
}

.panel--paper {
  background: var(--paper-100);
  color: #1B2A25;
  border: 1px solid #D6CFBA;
  box-shadow:
    6px 6px 0 -1px var(--paper-100),
    6px 6px 0 0 #C3BBA4,
    13px 13px 0 -1px rgba(246, 242, 230, 0.28);
}

.panel--paper h2,
.panel--paper h3,
.panel--paper h4 { color: #12241D; }

.panel--paper .eyebrow { color: #3C5A50; }
.panel--paper a { color: #1B5C4C; }

/* ---------- 面包屑 ---------- */
.breadcrumb { margin-block-end: clamp(18px, 3vw, 28px); }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(185, 196, 198, 0.66);
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: rgba(200, 255, 61, 0.5);
}

.breadcrumb__link {
  color: var(--silver-300);
  text-decoration: none;
  border-bottom: 1px dashed rgba(185, 196, 198, 0.42);
}

.breadcrumb__link:hover {
  color: var(--lime-400);
  border-bottom-color: var(--lime-400);
}

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

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

/* ---------- 图片容器基础规则 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 16 / 9;
  background: var(--pitch-800);
  border: 1px solid rgba(185, 196, 198, 0.22);
}

.media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(200, 255, 61, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 255, 61, 0.09) 1px, transparent 1px);
  background-size: 40px 40px;
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(120% 100% at 50% 0%, transparent 45%, rgba(6, 18, 14, 0.55) 100%);
}

.media__img,
.media > img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.06) brightness(0.92);
}

.media--wide { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1 / 1; }

.media--diag {
  clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
}

.media__caption {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 3;
  margin: 0;
  padding: 16px 18px 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--lime-200);
  background: linear-gradient(0deg, rgba(6, 18, 14, 0.94), transparent);
}

/* ---------- 标签页 / 分段控件 ---------- */
.tabs { display: block; }

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 22px;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.tabs__tab {
  appearance: none;
  margin-block-end: -1px;
  padding: 10px 16px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(185, 196, 198, 0.8);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.tabs__tab:hover { color: var(--lime-200); }

.tabs__tab[aria-selected="true"] {
  color: var(--ink-900);
  background: var(--lime-400);
  border-bottom-color: var(--lime-400);
}

.tabs__panel { animation: fade 180ms var(--ease) both; }
.tabs__panel[hidden] { display: none; }

/* ---------- 显现动效 ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}

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

/* ---------- 动画关键帧 ---------- */
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(255, 106, 43, 0.16); }
  50% { opacity: 0.55; box-shadow: 0 0 0 6px rgba(255, 106, 43, 0.04); }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes drawer {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1023px) {
  :root,
  :root[data-rail-compact] { --rail-w: 0px; }

  .rail { display: none; }

  body { padding-inline-start: 0; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 90px; }

  .utility__item:not(:first-child) { display: none; }

  .nav-toggle { display: block; }

  .primary-nav {
    display: none;
    padding: 6px var(--gutter) 20px;
    background-image: linear-gradient(180deg, rgba(12, 36, 28, 0.98), rgba(6, 18, 14, 0.99));
    background-size: auto;
    border-top: 1px solid var(--line-strong);
    max-height: 72vh;
    overflow-y: auto;
  }

  .primary-nav[data-open] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    animation: drawer 240ms var(--ease) both;
  }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .primary-nav__link {
    justify-content: flex-start;
    padding: 13px 8px;
    font-size: 16px;
    border-bottom: 1px solid rgba(185, 196, 198, 0.1);
  }

  .primary-nav__link[aria-current="page"] { border-bottom-color: var(--lime-400); }

  .primary-nav__cta {
    margin-block-start: 14px;
    width: 100%;
  }

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

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

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

  .footer__issue { font-size: clamp(56px, 16vw, 96px); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }

  .brand__sub { display: none; }

  .topbar__inner { gap: 10px 12px; padding-block: 11px 10px; }

  .utility__chip { padding-inline: 9px 9px 9px 22px; font-size: 11px; letter-spacing: 0.08em; }

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

  .footer__base { flex-direction: column; align-items: flex-start; }

  .media--wide { aspect-ratio: 16 / 9; }
}

/* ---------- 动效偏好 ---------- */
@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;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .utility__chip::before { animation: none; }

  .rail__meter-fill { transform: scaleY(0); }
}
