/* =========================================================
   828娱乐会 · /assets/site.css
   共享外壳：reset / tokens / 头部 / 页脚 / 基础组件
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  background: #060B14;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: "Inter", "HarmonyOS Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #EAF2FF;
  background: #060B14;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; display: block; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

/* ---------- 2. tokens ---------- */
:root {
  --ink-950: #060B14;
  --ink-900: #0B1420;
  --ink-800: #122033;
  --line-steel: #1E3347;
  --amber: #F0B429;
  --amber-soft: #FFD873;
  --cyan: #35E6D2;
  --rose: #FF4D8D;
  --rose-deep: #B3377A;
  --mint: #7DE2A6;
  --text: #EAF2FF;
  --text-2: #9AB0C6;
  --text-3: #6B869C;
  --num-dim: #5A7891;

  --font-display: "Oswald", "Bebas Neue", "Archivo Narrow", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Inter", "HarmonyOS Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --entry-h: 46px;
  --rail-w: 264px;
  --shell: 1200px;
  --cut: 18px;
  --radius-cut: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

/* 夜间频道氛围：三层径向光 + 点阵网格 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 620px at 8% -12%, rgba(53, 230, 210, 0.11), transparent 62%),
    radial-gradient(720px 520px at 98% 6%, rgba(240, 180, 41, 0.09), transparent 64%),
    radial-gradient(860px 700px at 62% 112%, rgba(179, 55, 122, 0.14), transparent 66%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  background-image: radial-gradient(rgba(30, 51, 71, 0.85) 1px, transparent 1px);
  background-size: 26px 26px;
}

/* ---------- 3. typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: clamp(38px, 6vw, 64px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: clamp(19px, 2.2vw, 24px); }
h4 { font-size: 17px; }

p { color: var(--text-2); }
strong { color: var(--text); font-weight: 700; }
small { font-size: 13px; color: var(--text-3); }

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

.serif {
  font-family: var(--font-serif);
  font-style: normal;
  color: var(--text-2);
}

.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;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #08111C;
  background: var(--amber);
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.22s ease;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 5. layout ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 20px;
}

.site-main {
  position: relative;
  padding-top: var(--entry-h);
  min-height: 60vh;
}

.section { position: relative; padding: clamp(48px, 7vw, 92px) 0; }

.section__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 22px;
  align-items: end;
  margin-bottom: clamp(24px, 4vw, 40px);
}
.section__index {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  color: var(--amber);
}
.section__title { font-size: clamp(24px, 3.2vw, 38px); }
.section__note {
  grid-column: 2;
  max-width: 46ch;
  font-family: var(--font-serif);
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text-2);
}

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ---------- 6. header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  pointer-events: none;
}

.entry-bar {
  position: relative;
  pointer-events: auto;
  height: var(--entry-h);
  background: linear-gradient(95deg, rgba(6, 11, 20, 0.98), rgba(11, 20, 32, 0.94));
  border-bottom: 1px solid var(--line-steel);
  backdrop-filter: blur(8px);
}
.entry-bar__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: 18px;
}
.entry-bar__badge {
  flex: none;
  padding: 2px 9px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: #08111C;
  background: var(--amber);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.entry-bar__nav { flex: 1 1 auto; min-width: 0; }
.entry-bar__list {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}
.entry-bar__list a {
  position: relative;
  display: inline-block;
  padding: 3px 0;
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.entry-bar__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.26s cubic-bezier(0.22, 0.7, 0.3, 1);
}
.entry-bar__list a:hover { color: var(--text); }
.entry-bar__list a:hover::after { transform: scaleX(1); }

.entry-bar__status {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
}
.entry-bar__ver { color: var(--cyan); }

.pulse-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse-ring 2.4s ease-out infinite;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(53, 230, 210, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(53, 230, 210, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 230, 210, 0); }
}

.site-rail {
  pointer-events: auto;
  position: fixed;
  top: var(--entry-h);
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 28px 20px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(180deg, rgba(11, 20, 32, 0.96), rgba(6, 11, 20, 0.99));
  border-right: 1px solid var(--line-steel);
}
.site-rail::after {
  content: "";
  position: absolute;
  top: 0; right: -1px;
  width: 1px; height: 140px;
  background: linear-gradient(180deg, var(--amber), rgba(240, 180, 41, 0));
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.brand__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.04em;
  color: #08111C;
  background: linear-gradient(135deg, var(--amber), var(--amber-soft));
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.brand__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand__name { font-size: 16px; font-weight: 700; letter-spacing: 0.01em; }
.brand__line { font-size: 11px; color: var(--text-3); }

.site-nav { display: flex; flex-direction: column; gap: 10px; }
.site-nav__caption {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--num-dim);
  text-transform: uppercase;
}
.nav-list { display: flex; flex-direction: column; gap: 2px; }
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px 11px 14px;
  font-size: 15px;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.nav-link::before {
  content: "";
  position: absolute;
  left: 0; top: 7px; bottom: 7px;
  width: 3px;
  background: var(--amber);
  transform: scaleY(0);
  transition: transform 0.24s cubic-bezier(0.22, 0.7, 0.3, 1);
}
.nav-link:hover {
  color: var(--text);
  background: rgba(18, 32, 51, 0.7);
  transform: translateX(3px);
}
.nav-link:hover::before { transform: scaleY(1); }
.nav-link[aria-current="page"] {
  color: var(--text);
  background: linear-gradient(90deg, rgba(240, 180, 41, 0.16), rgba(240, 180, 41, 0));
}
.nav-link[aria-current="page"]::before { transform: scaleY(1); }
.nav-link[aria-current="page"] .nav-link__num { color: var(--amber); }
.nav-link__num { flex: none; width: 24px; font-size: 12px; color: var(--num-dim); }
.nav-link__label { min-width: 0; }

.rail-foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line-steel);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rail-foot__ver { font-size: 12px; color: var(--cyan); letter-spacing: 0.16em; }
.rail-foot__note { font-size: 12px; color: var(--text-3); line-height: 1.6; }

.nav-toggle {
  display: none;
  pointer-events: auto;
  position: fixed;
  top: calc(var(--entry-h) + 12px);
  right: 12px;
  z-index: 70;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text);
  background: rgba(11, 20, 32, 0.94);
  border: 1px solid var(--line-steel);
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: var(--amber);
  transition: transform 0.24s ease, opacity 0.24s ease;
}
.site-header[data-open] .nav-toggle { border-color: var(--cyan); color: var(--cyan); }
.site-header[data-open] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.scroll-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: rgba(30, 51, 71, 0.6);
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--cyan));
  transition: width 0.1s linear;
}

/* ---------- 7. footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 104px);
  background: linear-gradient(180deg, var(--ink-900), var(--ink-950));
  border-top: 1px solid var(--line-steel);
}
.footer__edge {
  height: 3px;
  background: linear-gradient(98deg, var(--rose), var(--rose-deep) 42%, var(--amber) 100%);
}
.footer__inner {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 2.2fr);
  gap: 44px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 60px) 20px 34px;
}
.footer__brand { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.footer__note {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-2);
  max-width: 34ch;
}
.footer__stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-3);
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 20px;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col__title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-transform: uppercase;
}
.footer-col__list { display: flex; flex-direction: column; gap: 8px; }
.footer-col__list a {
  position: relative;
  font-size: 14.5px;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-col__list a:hover { color: var(--amber); padding-left: 4px; }
.footer-col__list--plain li {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-2);
}
.footer-col__list--plain .mono {
  display: inline-block;
  min-width: 54px;
  font-size: 11px;
  color: var(--num-dim);
  letter-spacing: 0.14em;
}
.footer__legal { border-top: 1px solid var(--line-steel); }
.footer__legal-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  align-items: center;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px 20px 26px;
}
.footer__icp,
.footer__copy {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-3);
}

/* ---------- 8. shared components ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn--primary {
  color: #08111C;
  background: var(--amber);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn--primary:hover { background: var(--amber-soft); transform: translateY(-2px); }
.btn--ghost {
  color: var(--text);
  background: rgba(18, 32, 51, 0.5);
  border-color: var(--line-steel);
}
.btn--ghost:hover { color: var(--cyan); border-color: var(--cyan); }

.panel {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  background: linear-gradient(160deg, rgba(18, 32, 51, 0.92), rgba(11, 20, 32, 0.92));
  border: 1px solid var(--line-steel);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  text-decoration: none;
  background: var(--ink-900);
  border: 1px solid var(--line-steel);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(53, 230, 210, 0.55);
  background: var(--ink-800);
}
.card--cut { clip-path: var(--radius-cut); }
.card__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-transform: uppercase;
}
.card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}
.card__text { font-size: 14.5px; line-height: 1.75; color: var(--text-2); }
.card__foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  background: rgba(53, 230, 210, 0.08);
  border: 1px solid rgba(53, 230, 210, 0.4);
}
.tag--amber { color: var(--amber); background: rgba(240, 180, 41, 0.1); border-color: rgba(240, 180, 41, 0.42); }
.tag--ok { color: var(--mint); background: rgba(125, 226, 166, 0.1); border-color: rgba(125, 226, 166, 0.42); }
.tag--rose { color: #FF86B3; background: rgba(255, 77, 141, 0.12); border-color: rgba(255, 77, 141, 0.45); }

.slant-tag {
  display: inline-block;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #08111C;
  background: var(--amber);
  transform: rotate(-8deg);
}

.rule { height: 1px; border: 0; margin: 0; background: var(--line-steel); }
.rule--pulse {
  height: 3px;
  background: linear-gradient(100deg, var(--rose), var(--rose-deep) 46%, var(--amber) 100%);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: rgba(18, 32, 51, 0.55);
  border-left: 2px solid var(--amber);
}
.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3vw, 30px);
  color: var(--text);
  letter-spacing: -0.01em;
}
.stat__label { font-size: 12.5px; color: var(--text-2); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-3);
}
.breadcrumb a { color: var(--text-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb__sep { color: #3A5570; }

.prose { max-width: 68ch; }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 38px; }
.prose h3 { margin-top: 26px; }
.prose p { color: var(--text-2); }
.prose a { color: var(--cyan); }
.prose ul { display: flex; flex-direction: column; gap: 9px; }
.prose li { position: relative; padding-left: 18px; color: var(--text-2); }
.prose li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.72em;
  width: 7px; height: 7px;
  background: var(--cyan);
  transform: rotate(45deg);
}

/* 图片容器基础规则：页面阶段直接放 <img> 或占位标签 */
.media {
  position: relative;
  aspect-ratio: var(--ratio, 16 / 9);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(140deg, var(--ink-800), var(--ink-900) 58%, #0A1526);
  border: 1px solid var(--line-steel);
}
.media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  background-image: radial-gradient(rgba(53, 230, 210, 0.24) 1px, transparent 1px);
  background-size: 22px 22px;
}
.media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  z-index: 3;
  width: 58%; height: 1px;
  background: linear-gradient(90deg, rgba(240, 180, 41, 0), var(--amber));
  transform: rotate(8deg);
  transform-origin: right top;
}
.media__label {
  position: absolute;
  left: 12px; bottom: 10px;
  z-index: 4;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-2);
  background: rgba(6, 11, 20, 0.72);
}
.media--4x3 { --ratio: 4 / 3; }
.media--1x1 { --ratio: 1 / 1; }
.media--3x4 { --ratio: 3 / 4; }
.media--21x9 { --ratio: 21 / 9; }

/* 手风琴（答疑、条款等页面复用） */
.accordion { border: 1px solid var(--line-steel); background: var(--ink-900); }
.accordion__item + .accordion__item { border-top: 1px solid var(--line-steel); }
.accordion__trigger {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  color: var(--text);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
.accordion__trigger:hover { color: var(--cyan); background: rgba(18, 32, 51, 0.6); }
.accordion__icon { margin-left: auto; font-family: var(--font-mono); color: var(--amber); }
.accordion__panel { padding: 0 18px 18px; font-size: 15px; color: var(--text-2); }

/* 滚动显现 */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s cubic-bezier(0.22, 0.7, 0.3, 1), transform 0.55s cubic-bezier(0.22, 0.7, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 9. responsive ---------- */
@media (min-width: 1025px) {
  .site-main { padding-left: var(--rail-w); }
  .site-footer { margin-left: var(--rail-w); }
}

@media (max-width: 1024px) {
  .entry-bar__inner { padding-inline: 12px; gap: 10px; }
  .entry-bar__nav { overflow-x: auto; scrollbar-width: none; }
  .entry-bar__nav::-webkit-scrollbar { display: none; }
  .entry-bar__list { gap: 16px; }
  .entry-bar__status { font-size: 11px; }

  .site-rail {
    width: min(86vw, 320px);
    z-index: 65;
    transform: translateX(-104%);
    transition: transform 0.28s cubic-bezier(0.22, 0.7, 0.3, 1);
    box-shadow: 24px 0 60px rgba(2, 5, 10, 0.6);
  }
  .site-header[data-open] .site-rail { transform: translateX(0); }
  .site-header::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 60;
    opacity: 0;
    pointer-events: none;
    background: rgba(3, 6, 12, 0.68);
    transition: opacity 0.28s ease;
  }
  .site-header[data-open]::after { opacity: 1; pointer-events: auto; }

  .nav-toggle { display: inline-flex; }
  body.nav-open { overflow: hidden; }
}

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

@media (max-width: 640px) {
  .shell { padding-inline: 14px; }
  .section__head { grid-template-columns: minmax(0, 1fr); }
  .section__note { grid-column: 1; }
  .entry-bar__meta { display: none; }
  .entry-bar__list a { font-size: 12.5px; }
  .footer__cols { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .footer__legal-inner { justify-content: flex-start; }
  .brand__mark { width: 42px; height: 42px; font-size: 18px; }
}

/* ---------- 10. motion / reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse-dot { animation: none; }
  .js [data-reveal] {
    transform: none;
    transition: opacity 0.35s linear;
    transition-delay: 0ms;
  }
  .card:hover,
  .btn--primary:hover,
  .nav-link:hover { transform: none; }
  .site-rail,
  .site-header::after,
  .entry-bar__list a::after { transition-duration: 0.001ms; }
}
