/* ============================================================
   电玩777局 · 共享样式 /assets/site.css
   深夜电玩厅 × 霓虹控制台
   ============================================================ */

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

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

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

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

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

a { color: inherit; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- 2. Tokens ---------- */
:root {
  --night: #0A0F2C;
  --panel: #131A3E;
  --line: #2A3560;
  --cyan: #2FF3E0;
  --magenta: #FF3D8B;
  --amber: #FFC24B;
  --violet: #7A5CFF;
  --mist: #E9F1FF;
  --steel: #8A98B8;
  --ink: #05070F;

  --font-display: "Inter", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;

  --rail-w: 196px;
  --topbar-h: 40px;
  --botbar-h: 36px;
  --edge: clamp(16px, 2.4vw, 32px);
  --shell-max: 1320px;
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  margin: 0;
  padding: var(--topbar-h) var(--edge) var(--botbar-h) var(--rail-w);
  background-color: var(--night);
  background-image:
    radial-gradient(circle at 10% -8%, rgba(122, 92, 255, 0.30), transparent 52%),
    radial-gradient(circle at 92% -4%, rgba(255, 61, 139, 0.20), transparent 48%),
    linear-gradient(rgba(42, 53, 96, 0.30) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 53, 96, 0.30) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  background-attachment: fixed;
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

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

p { max-width: 72ch; }

::selection { background: var(--magenta); color: #12010a; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* ---------- 4. 内容骨架 ---------- */
main {
  display: block;
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: clamp(24px, 3vw, 44px) 0 72px;
}

#main-content { scroll-margin-top: 72px; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.section {
  position: relative;
  margin: 0 0 clamp(40px, 5vw, 64px);
}

.section--anno { position: relative; }

.section__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: end;
  padding-bottom: 14px;
  margin-bottom: 22px;
  border-bottom: 3px solid var(--line);
}

.section__num {
  display: inline-block;
  padding: 4px 9px;
  border: 2px solid var(--line);
  background: var(--panel);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  line-height: 1.4;
}

.section__title {
  font-size: clamp(22px, 3vw, 34px);
  color: var(--mist);
  text-shadow: 0 0 16px rgba(47, 243, 224, 0.32);
}

.section__lede {
  margin-top: 12px;
  color: var(--steel);
  font-size: 16px;
}

.section__anno {
  display: none;
  position: absolute;
  top: 4px;
  left: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--violet);
}

.next-section__anno,
.neon-rule {
  height: 4px;
  margin: clamp(32px, 4vw, 52px) 0;
  border: 0;
  background: linear-gradient(90deg, var(--cyan), var(--magenta) 48%, var(--violet));
  opacity: 0.85;
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 3px solid var(--line);
  background: var(--panel);
  color: var(--mist);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: inset 0 -4px 0 rgba(5, 7, 15, 0.8), 4px 4px 0 rgba(5, 7, 15, 0.85);
  transition: transform 0.12s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: inset 0 -4px 0 rgba(5, 7, 15, 0.8), 4px 4px 0 rgba(5, 7, 15, 0.85), 0 0 24px -4px rgba(47, 243, 224, 0.65);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: inset 0 -2px 0 rgba(5, 7, 15, 0.8), 1px 1px 0 rgba(5, 7, 15, 0.85);
}

.btn--primary {
  background: var(--magenta);
  border-color: #ff86b8;
  color: #1c0112;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: #ff5c9e;
  border-color: #ffd0e4;
  color: #1c0112;
  box-shadow: inset 0 -4px 0 rgba(5, 7, 15, 0.35), 4px 4px 0 rgba(5, 7, 15, 0.85), 0 0 26px -4px rgba(255, 61, 139, 0.8);
}

.btn--amber {
  background: var(--amber);
  border-color: #ffdb96;
  color: #251703;
}

.btn--amber:hover,
.btn--amber:focus-visible {
  background: #ffd074;
  border-color: #fff0cd;
  color: #251703;
  box-shadow: inset 0 -4px 0 rgba(5, 7, 15, 0.3), 4px 4px 0 rgba(5, 7, 15, 0.85), 0 0 26px -4px rgba(255, 194, 75, 0.85);
}

/* ---------- 6. 网格与卡片 ---------- */
.grid {
  display: grid;
  gap: clamp(14px, 1.6vw, 22px);
}

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

.card {
  position: relative;
  padding: clamp(16px, 1.8vw, 22px);
  background: var(--panel);
  border: 3px solid var(--line);
  box-shadow: 6px 6px 0 rgba(5, 7, 15, 0.9);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.card:hover {
  border-color: var(--cyan);
  box-shadow: 6px 6px 0 rgba(5, 7, 15, 0.9), 0 0 26px -6px rgba(47, 243, 224, 0.6);
}

.card--glow { border-color: rgba(47, 243, 224, 0.6); }

.card--wide { grid-column: span 2; }

.card__label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--amber);
}

.card__title {
  margin-top: 8px;
  font-size: clamp(18px, 1.6vw, 20px);
  color: var(--mist);
}

.card__text {
  margin-top: 10px;
  color: var(--steel);
  font-size: 15.5px;
}

.card__meta {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--steel);
}

/* ---------- 7. 标签 ---------- */
.tag {
  display: inline-block;
  padding: 3px 9px;
  border: 2px solid var(--line);
  background: rgba(19, 26, 62, 0.85);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mist);
}

.tag--cyan { border-color: var(--cyan); color: var(--cyan); }
.tag--magenta { border-color: var(--magenta); color: var(--magenta); }
.tag--amber { border-color: var(--amber); color: var(--amber); }
.tag--violet { border-color: var(--violet); color: #b7a6ff; }

/* ---------- 8. 索引与数据 ---------- */
.index-list {
  border-top: 3px solid var(--line);
  margin-top: 8px;
}

.index-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--mist);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.index-row:hover,
.index-row:focus-visible {
  background: linear-gradient(90deg, rgba(47, 243, 224, 0.14), transparent 72%);
  color: var(--cyan);
}

.index-row__no {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--amber);
}

.index-row__main { font-weight: 700; }

.index-row__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--steel);
}

.stat {
  padding: 16px;
  background: rgba(19, 26, 62, 0.72);
  border: 3px solid var(--line);
}

.stat__value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1;
  color: var(--amber);
}

.stat__label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--steel);
}

/* ---------- 9. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--steel);
}

.crumbs__item {
  color: var(--steel);
  text-decoration: none;
}

.crumbs__item:hover,
.crumbs__item:focus-visible { color: var(--cyan); }

.crumbs__sep { color: var(--line); }

/* ---------- 10. 图片容器 ---------- */
.frame-media {
  position: relative;
  display: block;
  border: 3px solid var(--line);
  background: linear-gradient(140deg, rgba(122, 92, 255, 0.38), rgba(255, 61, 139, 0.24) 46%, rgba(47, 243, 224, 0.32));
  box-shadow: 6px 6px 0 rgba(5, 7, 15, 0.9);
  overflow: hidden;
}

.frame-media__img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.frame-media__chip {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 9px;
  border: 2px solid var(--cyan);
  background: rgba(5, 7, 15, 0.84);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

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

/* ---------- 11. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 6px;
  left: 6px;
  z-index: 120;
  padding: 10px 16px;
  border: 3px solid var(--ink);
  background: var(--amber);
  color: #241703;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-240%);
}

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

/* ---------- 12. 头部：状态条 ---------- */
.site-header { display: block; }

.status-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--topbar-h);
  padding: 0 14px;
  background: linear-gradient(90deg, var(--ink), #0d1330 42%, var(--ink));
  border-bottom: 3px solid var(--line);
  box-shadow: 0 12px 26px -20px rgba(47, 243, 224, 0.8);
}

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

.brand-mark__glyph {
  padding: 3px 7px;
  background: linear-gradient(120deg, var(--cyan), #8cfbee);
  color: #06181d;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 0 16px rgba(47, 243, 224, 0.7);
}

.brand-mark__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.status-bar__ticker {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.status-bar__label {
  flex: 0 0 auto;
  color: var(--amber);
}

.status-bar__value {
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--cyan);
}

.status-bar__device {
  flex: 0 0 auto;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  max-width: 36ch;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 3px solid var(--line);
  background: var(--panel);
  box-shadow: inset 0 -3px 0 rgba(5, 7, 15, 0.8);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--mist);
}

.nav-toggle__bars {
  display: block;
  position: relative;
  width: 16px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 -5px 0 var(--cyan), 0 5px 0 var(--cyan);
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: var(--magenta);
  box-shadow: 0 -5px 0 var(--magenta), 0 5px 0 var(--magenta);
}

/* ---------- 13. 头部：左栏目轨 ---------- */
.site-rail {
  position: fixed;
  top: var(--topbar-h);
  bottom: var(--botbar-h);
  left: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: var(--rail-w);
  padding: 18px 14px 16px;
  background: linear-gradient(180deg, rgba(19, 26, 62, 0.96), rgba(10, 15, 44, 0.96));
  border-right: 3px solid var(--line);
  overflow-y: auto;
}

.site-rail::after {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  right: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--cyan), var(--magenta) 55%, var(--violet));
  animation: neonBreath 6s ease-in-out infinite;
}

@keyframes neonBreath {
  0%, 100% { opacity: 0.68; }
  50% { opacity: 1; }
}

.rail-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--steel);
}

.site-nav { display: block; }

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-key {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 3px solid var(--line);
  background: var(--panel);
  color: var(--mist);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: inset 0 -4px 0 rgba(5, 7, 15, 0.75), 4px 4px 0 rgba(5, 7, 15, 0.85);
  transition: transform 0.12s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.nav-key__idx {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--amber);
}

.nav-key:hover,
.nav-key:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: inset 0 -4px 0 rgba(5, 7, 15, 0.75), 4px 4px 0 rgba(5, 7, 15, 0.85), 0 0 24px -6px rgba(47, 243, 224, 0.7);
}

.nav-key:active {
  transform: translate(2px, 2px);
  box-shadow: inset 0 -2px 0 rgba(5, 7, 15, 0.75), 1px 1px 0 rgba(5, 7, 15, 0.85);
}

.nav-key[aria-current="page"] {
  background: linear-gradient(90deg, var(--cyan), #1fd9c9);
  border-color: #a5fff6;
  color: #04161b;
  box-shadow: inset 0 -4px 0 rgba(5, 7, 15, 0.35), 0 0 28px -4px rgba(47, 243, 224, 0.8);
}

.nav-key[aria-current="page"] .nav-key__idx { color: #0a4a4b; }

.rail-cta {
  display: block;
  padding: 11px 14px;
  border: 3px solid #ff86b8;
  background: var(--magenta);
  color: #1c0112;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  box-shadow: inset 0 -4px 0 rgba(5, 7, 15, 0.35), 4px 4px 0 rgba(5, 7, 15, 0.85);
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.rail-cta:hover,
.rail-cta:focus-visible {
  background: #ff5c9e;
  box-shadow: inset 0 -4px 0 rgba(5, 7, 15, 0.35), 4px 4px 0 rgba(5, 7, 15, 0.85), 0 0 26px -4px rgba(255, 61, 139, 0.85);
}

.rail-cta:active {
  transform: translate(2px, 2px);
  box-shadow: inset 0 -2px 0 rgba(5, 7, 15, 0.35), 1px 1px 0 rgba(5, 7, 15, 0.85);
}

.rail-note {
  margin-top: auto;
  padding-top: 12px;
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(138, 152, 184, 0.7);
}

.rail-ticks {
  display: grid;
  gap: 5px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.rail-tick {
  padding: 2px 0 2px 8px;
  border-left: 3px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--line);
  transition: color 0.2s ease, border-color 0.2s ease, text-shadow 0.2s ease;
}

.rail-tick[data-active="true"] {
  border-left-color: var(--cyan);
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(47, 243, 224, 0.8);
}

/* ---------- 14. 头部：底部状态栏 ---------- */
.site-bottombar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--botbar-h);
  padding: 0 14px;
  background: var(--ink);
  border-top: 3px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--steel);
}

.bottombar__icp { flex: 0 0 auto; }

.bottombar__local {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.bottombar__dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(47, 243, 224, 0.9);
  animation: pipPulse 2.4s ease-in-out infinite;
}

@keyframes pipPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.bottombar__host { flex: 0 0 auto; color: rgba(138, 152, 184, 0.7); }

/* ---------- 15. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(40px, 5vw, 72px);
  padding: clamp(36px, 4vw, 52px) 0 24px;
  border-top: 4px solid var(--line);
  background: linear-gradient(180deg, rgba(19, 26, 62, 0.94), var(--ink) 72%);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 38%;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), rgba(47, 243, 224, 0));
}

.footer-grid,
.footer-legal {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding-left: var(--edge);
  padding-right: var(--edge);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1.35fr;
  gap: clamp(20px, 3vw, 46px);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--mist);
}

.footer-brand__glyph {
  padding: 2px 8px;
  background: var(--cyan);
  color: var(--night);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 0 18px rgba(47, 243, 224, 0.6);
}

.footer-tagline {
  margin-top: 14px;
  font-size: 17px;
  color: var(--mist);
}

.footer-meta {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--steel);
}

.footer-heading {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--amber);
}

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

.footer-list a {
  color: var(--steel);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.footer-list--contact li {
  display: grid;
  gap: 2px;
  font-size: 15px;
  line-height: 1.6;
}

.footer-key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--steel);
}

.footer-value {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--mist);
  word-break: break-word;
}

.footer-value--wide {
  font-family: var(--font-body);
  font-size: 15px;
}

.footer-note {
  margin-top: 16px;
  padding-left: 12px;
  border-left: 3px solid var(--magenta);
  font-size: 13px;
  color: var(--steel);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(28px, 3vw, 40px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--steel);
}

.footer-copy { color: var(--steel); }

.footer-copy--host { color: rgba(138, 152, 184, 0.7); }

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

.footer-legal__links a {
  color: var(--steel);
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-legal__links a:hover,
.footer-legal__links a:focus-visible { color: var(--magenta); }

/* ---------- 16. 进度条 / 显现 ---------- */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: 3px;
  background: rgba(42, 53, 96, 0.55);
  pointer-events: none;
}

.read-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--magenta) 68%, var(--amber));
  box-shadow: 0 0 14px rgba(47, 243, 224, 0.85);
}

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  [data-reveal][data-visible="true"] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1200px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col--contact { grid-column: span 2; }
}

@media (min-width: 901px) and (max-width: 1200px) {
  :root { --rail-w: 172px; }
  .nav-key { padding: 9px 10px; font-size: 14px; }
}

@media (min-width: 1240px) {
  .section--anno { padding-left: 44px; }
  .section--anno .section__anno { display: block; }
}

@media (max-width: 1100px) {
  .status-bar__device { display: none; }
}

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

  .nav-toggle { display: inline-flex; }

  .site-rail {
    top: var(--topbar-h);
    right: 0;
    bottom: var(--botbar-h);
    width: auto;
    border-right: 0;
    border-bottom: 3px solid var(--line);
    background: linear-gradient(180deg, #0d1330, var(--night));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s;
  }

  .site-rail[data-open] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

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

  .rail-note { display: none; }

  .rail-ticks { margin-top: 0; }

  .grid--3,
  .grid--2 { grid-template-columns: 1fr; }

  .card--wide { grid-column: auto; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-col--contact { grid-column: auto; }
  .footer-col--nav { padding-top: 0; }
}

@media (min-width: 901px) {
  .footer-col--nav { padding-top: 30px; }
  .footer-col--contact { padding-top: 12px; }
}

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

  .status-bar__label { display: none; }

  .nav-list { grid-template-columns: 1fr; }

  .grid--4 { grid-template-columns: 1fr; }

  .index-row {
    grid-template-columns: 46px 1fr;
    gap: 10px;
  }

  .index-row__meta { grid-column: 2; }

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

@media (max-width: 420px) {
  .brand-mark__name { display: none; }
  .bottombar__host { display: none; }
}

/* ---------- 18. 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
