/* ============================================================
   易倍娱乐赛场 — 共享样式表 /assets/site.css
   设计语言：技术蓝图网格 · 电光蓝与霓虹绿 · 深空数据面板
   ============================================================ */

/* ---------- 变量 ---------- */
:root {
  --ink: #0A0E14;
  --panel: #131A24;
  --panel-deep: #0D131C;
  --grid: #1F2A38;
  --blue: #2F7DFF;
  --blue-deep: #0E2A4D;
  --neon: #35F0A0;
  --ice: #A8D4FF;
  --amber: #FFB35C;
  --down: #FF5C6C;
  --text: #E9F0F7;
  --muted: #8C9AAE;

  --sans: Inter, 'HarmonyOS Sans SC', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Roboto Mono', ui-monospace, 'SFMono-Regular', 'Menlo', monospace;

  --shell-w: 1240px;
  --gutter: clamp(1rem, 4vw, 2.75rem);
  --header-h: 78px;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;

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

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

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

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, hr { margin: 0; }

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

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

button { font: inherit; color: inherit; }

[hidden] { display: none !important; }

/* ---------- 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 620px at 8% -12%, rgba(47, 125, 255, .18), transparent 60%),
    radial-gradient(820px 480px at 96% 2%, rgba(53, 240, 160, .10), transparent 58%),
    radial-gradient(900px 700px at 50% 118%, rgba(14, 42, 77, .60), transparent 66%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.015em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.35; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--ice); text-decoration: none; }
a:hover { color: var(--neon); }

strong, b { font-weight: 700; color: #FFFFFF; }

code, time, .num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
}

main { display: block; }

:target { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

/* ---------- 焦点 ---------- */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 工具与布局 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.blueprint { position: relative; isolation: isolate; }

.blueprint::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, var(--grid) 0 1px, transparent 1px 80px);
  opacity: .42;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 62%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 62%);
}

.grid {
  display: grid;
  gap: clamp(1rem, 2.4vw, 2rem);
}

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

.card-grid {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.layout-main-rail {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.rail {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  align-self: start;
}

.rule {
  height: 1px;
  border: 0;
  background: var(--grid);
  margin: clamp(1.5rem, 4vw, 3rem) 0;
}

/* ---------- 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  padding: .6rem 1.15rem;
  background: var(--blue);
  color: #041019;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  transition: top .2s var(--ease);
}

.skip-link:focus {
  top: 0;
  color: #041019;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .58rem 1.05rem;
  border: 1px solid var(--grid);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .18s var(--ease), background-color .18s var(--ease),
              color .18s var(--ease), transform .18s var(--ease);
}

.btn:hover {
  border-color: var(--neon);
  color: var(--text);
  transform: translateY(-1px);
}

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

.btn-primary {
  border-color: transparent;
  background: linear-gradient(120deg, var(--blue) 0%, #1D5ED6 58%, var(--blue-deep) 100%);
  color: #F4F9FF;
  box-shadow: 0 0 0 1px rgba(53, 240, 160, .16), 0 12px 28px -20px rgba(47, 125, 255, .95);
}

.btn-primary:hover {
  background: linear-gradient(120deg, #3F8BFF 0%, var(--blue) 55%, #123157 100%);
  border-color: transparent;
  color: #FFFFFF;
}

.btn-ghost { color: var(--ice); }

.btn-ghost:hover {
  background: rgba(47, 125, 255, .10);
  color: var(--text);
}

/* ---------- 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease),
              box-shadow .3s var(--ease);
}

.site-header[data-scrolled="true"],
.site-header[data-nav-open="true"] {
  background: rgba(10, 14, 20, .94);
  border-bottom-color: var(--grid);
  box-shadow: 0 18px 44px -34px rgba(0, 0, 0, .95);
}

@supports (backdrop-filter: blur(10px)) {
  .site-header[data-scrolled="true"],
  .site-header[data-nav-open="true"] {
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
  }
}

.header-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(.5rem, 2vw, 2rem);
  min-height: var(--header-h);
  padding-block: .7rem;
  transition: min-height .3s var(--ease);
}

.site-header[data-scrolled="true"] .header-shell { min-height: 62px; }

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  flex: 0 0 auto;
  padding: .25rem 0;
  color: var(--text);
  text-decoration: none;
}

.brand:hover { color: var(--text); }

.brand-mark {
  display: grid;
  gap: 4px;
  width: 26px;
  flex: 0 0 auto;
}

.brand-mark-line {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transition: width .18s var(--ease), background-color .18s var(--ease);
}

.brand-mark-line:nth-child(2) { width: 78%; background: var(--neon); }
.brand-mark-line:nth-child(3) { width: 52%; background: var(--ice); }

.brand:hover .brand-mark-line:nth-child(1) { width: 62%; }
.brand:hover .brand-mark-line:nth-child(2) { width: 100%; }
.brand:hover .brand-mark-line:nth-child(3) { width: 76%; }

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-name {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-sub {
  font-family: var(--mono);
  font-size: .6875rem;
  line-height: 1.3;
  letter-spacing: .04em;
  color: var(--muted);
  white-space: nowrap;
}

/* 主导航 */
.primary-nav { margin-left: clamp(.5rem, 2vw, 1.75rem); }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(.35rem, 1.2vw, 1.15rem);
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: .5rem .2rem;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ice);
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: .22rem;
  height: 1px;
  background: var(--neon);
  transition: right .18s var(--ease);
}

.nav-link:hover { color: var(--text); }
.nav-link:hover::after { right: 0; }

.nav-link[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
}

.nav-link[aria-current="page"]::after {
  right: 0;
  background: var(--blue);
}

/* 右侧动作 */
.header-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
  padding: .5rem .85rem;
  border: 1px solid var(--grid);
  border-radius: var(--radius-pill);
  background: rgba(19, 26, 36, .72);
  color: var(--ice);
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .12em;
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease), background-color .18s var(--ease);
}

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

.nav-toggle[aria-expanded="true"] {
  border-color: var(--blue);
  background: rgba(47, 125, 255, .14);
  color: var(--text);
}

.nav-toggle-bars {
  display: grid;
  gap: 4px;
  width: 16px;
}

.nav-toggle-bars span {
  display: block;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* 滚动刻度 */
.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.scroll-meter-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--neon));
  transition: width .12s linear;
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 8vw, 7rem);
  border-top: 1px solid var(--grid);
  background-image:
    linear-gradient(180deg, rgba(19, 26, 36, .72), rgba(10, 14, 20, .95) 58%),
    radial-gradient(720px 380px at 84% 0%, rgba(47, 125, 255, .16), transparent 66%);
  background-repeat: no-repeat;
}

.footer-ruler {
  height: 42px;
  border-bottom: 1px solid var(--grid);
  background-image: repeating-linear-gradient(90deg, var(--grid) 0 1px, transparent 1px 88px);
  background-size: 100% 14px;
  background-position: left bottom;
  background-repeat: no-repeat;
}

.footer-shell { padding-block: clamp(2rem, 5vw, 3.5rem) 1.75rem; }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-bottom: clamp(1.75rem, 4vw, 3rem);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.footer-brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--text);
}

.footer-brand-sub {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .1em;
  color: var(--neon);
}

.footer-brand-note {
  margin: .45rem 0 0;
  max-width: 34ch;
  font-size: .9375rem;
  color: var(--muted);
}

.footer-col { min-width: 0; }

.footer-col-title {
  margin: 0 0 .9rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--grid);
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--ice);
}

.footer-links {
  display: grid;
  gap: .45rem;
}

.footer-links a {
  position: relative;
  display: inline-block;
  font-size: .9375rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .18s var(--ease), padding-left .18s var(--ease);
}

.footer-links a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--neon);
  transition: width .18s var(--ease);
}

.footer-links a:hover {
  color: var(--text);
  padding-left: .9rem;
}

.footer-links a:hover::before { width: .62rem; }

.footer-contact { min-width: 0; }

.contact-list {
  display: grid;
  gap: .85rem;
}

.contact-item {
  display: grid;
  gap: .1rem;
}

.contact-label {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .14em;
  color: var(--muted);
}

.contact-value {
  font-size: .9375rem;
  color: var(--text);
  word-break: break-word;
}

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

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--grid);
  font-size: .8125rem;
  color: var(--muted);
}

.footer-base-note {
  margin: 0;
  flex: 1 1 320px;
}

.footer-icp,
.footer-copy {
  margin: 0;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .06em;
}

.footer-icp { color: var(--ice); }
.footer-copy { color: var(--muted); }

/* ---------- 面包屑 ---------- */
.breadcrumbs {
  margin: 0 0 clamp(1.25rem, 3vw, 2rem);
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .08em;
  color: var(--muted);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumbs li { display: inline-flex; align-items: center; }

.breadcrumbs li + li::before {
  content: "/";
  margin: 0 .55rem;
  color: var(--grid);
}

.breadcrumbs a {
  color: var(--ice);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.breadcrumbs a:hover {
  color: var(--neon);
  border-bottom-color: var(--neon);
}

.breadcrumbs [aria-current="page"] { color: var(--text); }

/* ---------- 章节 ---------- */
.section {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.section + .section { border-top: 1px solid var(--grid); }

.section-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(.75rem, 2vw, 1.75rem);
  align-items: start;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.section-index {
  margin: 0;
  padding-top: .4rem;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .16em;
  color: var(--neon);
  white-space: nowrap;
}

.section-head-main { min-width: 0; }

.section-title { margin: 0; }

.section-lead {
  max-width: 62ch;
  margin: .7rem 0 0;
  font-size: 1rem;
  color: var(--muted);
}

/* ---------- 索引导航 ---------- */
.index-list {
  display: grid;
  gap: .1rem;
  border-left: 1px solid var(--grid);
}

.index-link {
  display: block;
  margin-left: -1.5px;
  padding: .42rem .75rem;
  border-left: 2px solid transparent;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .08em;
  color: var(--muted);
  text-decoration: none;
  transition: color .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease);
}

.index-link:hover {
  color: var(--ice);
  background: rgba(47, 125, 255, .08);
}

.index-link[aria-current="true"] {
  color: var(--neon);
  border-left-color: var(--neon);
  background: rgba(53, 240, 160, .07);
}

/* ---------- 条目列表 ---------- */
.data-list {
  border-top: 1px solid var(--grid);
}

.data-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .5rem 1.25rem;
  align-items: center;
  padding: .9rem .25rem;
  border-bottom: 1px solid var(--grid);
  transition: background-color .18s var(--ease), padding-left .18s var(--ease);
}

.data-row:hover {
  background: rgba(47, 125, 255, .06);
  padding-left: .7rem;
}

.data-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ice);
  text-decoration: none;
  transition: color .18s var(--ease);
}

.data-row:hover .data-title { color: var(--text); }

.data-meta {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .06em;
  color: var(--muted);
}

/* ---------- 更新时间戳 ---------- */
.timestamp {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: .75rem;
  letter-spacing: .06em;
  color: var(--neon);
  white-space: nowrap;
}

.timestamp::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 3px rgba(53, 240, 160, .14);
  animation: eb-pulse 1.6s ease-in-out infinite;
}

@keyframes eb-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .32; }
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .62rem;
  border: 1px solid var(--grid);
  border-radius: var(--radius-pill);
  background: rgba(47, 125, 255, .07);
  color: var(--ice);
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .08em;
  white-space: nowrap;
}

.tag-neon {
  border-color: rgba(53, 240, 160, .34);
  background: rgba(53, 240, 160, .08);
  color: var(--neon);
}

.tag-amber {
  border-color: rgba(255, 179, 92, .32);
  background: rgba(255, 179, 92, .08);
  color: var(--amber);
}

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  padding: clamp(1.1rem, 2.2vw, 1.6rem);
  border: 1px solid var(--grid);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(19, 26, 36, .94), rgba(11, 16, 23, .94));
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}

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

/* ---------- 图片容器 ---------- */
.figure { margin: 0; }

.figure-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--grid);
  border-radius: var(--radius-md);
  background-color: var(--panel-deep);
  background-image:
    linear-gradient(135deg, var(--blue-deep) 0%, #0B1220 55%, rgba(53, 240, 160, .14) 100%);
}

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

.figure-media--wide { aspect-ratio: 21 / 9; }
.figure-media--tall { aspect-ratio: 4 / 5; }

.figure-caption {
  margin-top: .6rem;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .04em;
  color: var(--muted);
}

/* ---------- 长正文 ---------- */
.prose {
  max-width: 68ch;
  font-size: 1rem;
  line-height: 1.8;
}

.prose p {
  margin: 0 0 1.15em;
  color: #CDD8E4;
}

.prose h2 {
  margin: 2em 0 .6em;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.prose h3 {
  margin: 1.6em 0 .5em;
  color: var(--text);
}

.prose ul {
  margin: 0 0 1.15em;
  padding-left: 1.15rem;
  list-style: disc;
  color: #CDD8E4;
}

.prose li { margin-bottom: .45em; }

.prose a {
  color: var(--blue);
  border-bottom: 1px solid rgba(47, 125, 255, .5);
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.prose a:hover {
  color: var(--neon);
  border-bottom-color: var(--neon);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
  .brand-sub { display: none; }
}

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

@media (max-width: 1024px) {
  .header-actions .btn-ghost { display: none; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    position: absolute;
    top: calc(100% + 6px);
    left: var(--gutter);
    right: var(--gutter);
    margin-left: 0;
    padding: .8rem;
    border: 1px solid var(--grid);
    border-radius: var(--radius-lg);
    background: rgba(15, 21, 30, .985);
    box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .95);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s linear;
  }

  .primary-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: .1rem;
  }

  .nav-link {
    display: block;
    padding: .72rem .8rem;
    border-radius: 10px;
    font-size: 1rem;
  }

  .nav-link::after { display: none; }

  .nav-link:hover,
  .nav-link:focus-visible {
    background: rgba(47, 125, 255, .12);
    color: var(--text);
  }

  .nav-link[aria-current="page"] {
    background: rgba(47, 125, 255, .16);
    box-shadow: inset 2px 0 0 var(--neon);
  }

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

  .rail {
    position: static;
  }

  .index-list {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    border-left: 0;
    border-top: 1px solid var(--grid);
    padding-top: .35rem;
  }

  .index-link {
    margin-left: 0;
    border-left: 0;
    border-top: 2px solid transparent;
  }

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

@media (max-width: 900px) {
  .section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: .35rem;
  }

  .section-index { padding-top: 0; }
}

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

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }

  .footer-brand-note { max-width: none; }

  .data-row {
    grid-template-columns: minmax(0, 1fr);
    gap: .35rem;
  }
}

@media (max-width: 560px) {
  .header-shell { gap: .5rem; }
  .btn { padding: .5rem .8rem; font-size: .8125rem; }
  .brand-name { font-size: .95rem; }
  .footer-ruler { height: 28px; }
}

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

  .timestamp::before { animation: none; }
  .card:hover { transform: none; }
  .btn:hover { transform: none; }
}
