/* ==========================================================================
   东赢电竞站 · /assets/site.css
   共享外壳：侧边轨道导航 / 信息沉淀页脚 / 通用组件
   ========================================================================== */

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

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

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

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

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

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

a { color: inherit; }

h1, h2, h3, h4, h5, h6 { font-weight: 700; }

/* ---------- CSS 变量 ---------- */
:root {
  /* 色彩 */
  --ink: #050B14;
  --canvas: #0A1626;
  --panel: #10233D;
  --line: #1B3A5C;
  --text: #E8F3FF;
  --muted: #8EA9C9;
  --cyan: #35E6FF;
  --violet: #8A5CFF;
  --amber: #FFB648;
  --green: #49E0A8;
  --red: #FF6B7A;

  /* 结构 */
  --rail-w: 104px;
  --head-h: 66px;
  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 56px);
  --measure: 34em;

  /* 字体 */
  --font-display: "HarmonyOS Sans SC", "Alibaba PuHuiTi 3.0", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* 材质与动效 */
  --shadow-block: 6px 6px 0 rgba(138, 92, 255, 0.32);
  --shadow-deep: 8px 8px 0 rgba(5, 11, 20, 0.9);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --dur: 200ms;
}

/* ---------- 基础排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    linear-gradient(90deg, rgba(27, 58, 92, 0.26) 1px, transparent 1px),
    linear-gradient(180deg, rgba(27, 58, 92, 0.26) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-font-smoothing: antialiased;
}

main {
  position: relative;
  z-index: 1;
  display: block;
}

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

::selection {
  background: var(--cyan);
  color: #04101A;
}

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

/* ---------- 版心与网格 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 880px; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 32px);
}

/* ---------- 标题层级 ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: 0.02em;
  color: var(--text);
  text-wrap: balance;
}

.display--xl { font-size: clamp(2.6rem, 7.4vw, 6.4rem); letter-spacing: 0.01em; }
.display--lg { font-size: clamp(2rem, 4.6vw, 3.6rem); }
.display--md { font-size: clamp(1.4rem, 2.8vw, 2.1rem); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--amber);
  text-transform: uppercase;
}

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

/* ---------- 正文长文 ---------- */
.prose {
  max-width: var(--measure);
  font-size: 17px;
  line-height: 1.8;
  color: #CFE2F6;
}

.prose > * + * { margin-top: 1.1em; }

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--text);
}

.prose h2 { font-size: clamp(1.4rem, 2.6vw, 2.1rem); margin-top: 1.9em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; }

.prose a {
  color: var(--cyan);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.prose ul,
.prose ol { padding-left: 1.25em; }

.prose li + li { margin-top: 0.4em; }

.prose strong { color: var(--text); font-weight: 700; }

.prose blockquote {
  padding-left: 16px;
  border-left: 2px solid var(--amber);
  color: var(--muted);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-decoration: none;
  color: var(--text);
  background: transparent;
  border: 2px solid var(--line);
  cursor: pointer;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}

.btn--primary {
  color: #04101A;
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 4px 4px 0 var(--violet);
}

.btn--amber {
  color: #1A0F00;
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: 4px 4px 0 var(--violet);
}

.btn--ghost {
  color: var(--text);
  border-color: var(--line);
}

.btn--primary:hover,
.btn--amber:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--violet);
}

.btn--ghost:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--line);
}

.breadcrumb a {
  text-decoration: none;
  color: var(--muted);
  transition: color var(--dur) var(--ease);
}

.breadcrumb a:hover { color: var(--cyan); }

/* ---------- 主题带 / 面板 / 标签 / 旁注 ---------- */
.band {
  position: relative;
  background: var(--canvas);
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  padding-block: clamp(28px, 4.4vw, 60px);
}

.panel {
  position: relative;
  padding: clamp(16px, 2.4vw, 28px);
  background: var(--panel);
  border: 2px solid var(--line);
  box-shadow: var(--shadow-block);
}

.panel--flat { box-shadow: none; }

.panel__label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--cyan);
  background: rgba(53, 230, 255, 0.08);
  border: 1px solid rgba(53, 230, 255, 0.35);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: rgba(16, 35, 61, 0.85);
  border: 1px solid var(--line);
}

.tag--cyan { color: var(--cyan); border-color: rgba(53, 230, 255, 0.5); }
.tag--violet { color: var(--violet); border-color: rgba(138, 92, 255, 0.5); }
.tag--amber { color: var(--amber); border-color: rgba(255, 182, 72, 0.5); }
.tag--green { color: var(--green); border-color: rgba(73, 224, 168, 0.5); }

.note {
  padding-left: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  border-left: 2px solid var(--amber);
}

.rule {
  height: 2px;
  border: 0;
  background: var(--line);
}

/* ---------- 图片容器（页面阶段放置占位图） ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: var(--panel);
  background-image:
    repeating-linear-gradient(135deg, rgba(27, 58, 92, 0.55) 0 2px, transparent 2px 12px);
  border: 2px solid var(--line);
}

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

.media-frame > img,
.media-frame > picture,
.media-frame > picture > img,
.media-frame .media-frame__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 92%;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  color: var(--cyan);
  background: rgba(5, 11, 20, 0.84);
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   头部：桌面左侧轨道 / 移动顶部粘性栏 + 抽屉
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  right: auto;
  bottom: 0;
  left: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  width: var(--rail-w);
  padding: 16px 10px 14px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  background: #070F1B;
  border-right: 2px solid var(--line);
}

/* 跳转链接 */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #04101A;
  text-decoration: none;
  background: var(--cyan);
  border: 2px solid #04101A;
  transform: translateY(-220%);
  transition: transform var(--dur) var(--ease);
}

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

/* 滚动进度灯柱 */
.rail-progress {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 3px;
  background: rgba(27, 58, 92, 0.65);
  pointer-events: none;
}

.rail-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleY(var(--progress, 0));
  transform-origin: top center;
  background: linear-gradient(180deg, var(--cyan) 0%, var(--violet) 62%, var(--amber) 100%);
  transition: transform 90ms linear;
}

/* 品牌 */
.rail-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  text-decoration: none;
  border-bottom: 2px solid var(--line);
}

.rail-brand__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #04101A;
  background: var(--cyan);
  box-shadow: 4px 4px 0 var(--violet);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.rail-brand:hover .rail-brand__mark {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--violet);
}

.rail-brand__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.1em;
  text-align: center;
  color: var(--text);
}

/* 移动端开关（桌面隐藏） */
.rail-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text);
  background: var(--panel);
  border: 2px solid var(--line);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

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

.rail-toggle__box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 18px;
}

.rail-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cyan);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

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

/* 导航 */
.rail-nav {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.rail-nav__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail-nav__item { min-width: 0; }

.rail-nav__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 4px;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.rail-nav__link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--amber);
  transform: translateY(-50%);
  transition: height var(--dur) var(--ease);
}

.rail-nav__link:hover,
.rail-nav__link:focus-visible {
  color: var(--cyan);
  background: rgba(53, 230, 255, 0.07);
  border-color: rgba(53, 230, 255, 0.3);
}

.rail-nav__link:hover::before,
.rail-nav__link:focus-visible::before { height: 18px; }

.rail-nav__link[aria-current="page"] {
  color: #04101A;
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 3px 3px 0 var(--violet);
}

.rail-nav__link[aria-current="page"]::before { height: 0; }

.rail-nav__idx {
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.14em;
  color: var(--line);
}

.rail-nav__link[aria-current="page"] .rail-nav__idx { color: rgba(4, 16, 26, 0.62); }

.rail-nav__text {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-align: center;
}

/* 轨道底部 */
.rail-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 2px solid var(--line);
}

.rail-cta {
  display: block;
  padding: 10px 4px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none;
  color: #1A0F00;
  background: var(--amber);
  border: 2px solid var(--amber);
  box-shadow: 4px 4px 0 rgba(138, 92, 255, 0.55);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.rail-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(138, 92, 255, 0.75);
}

.rail-status {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--amber);
  word-break: break-all;
}

.rail-version {
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--muted);
  word-break: break-all;
}

@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }
  html { scroll-padding-top: 24px; }
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(48px, 8vw, 120px);
  background: #070F1B;
  border-top: 2px solid var(--line);
  color: var(--text);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 132px;
  height: 3px;
  background: var(--cyan);
}

.footer-inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: clamp(32px, 5vw, 64px) clamp(20px, 3vw, 32px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(24px, 4vw, 48px);
  border-bottom: 2px solid var(--line);
}

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

.footer-kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  border: 1px solid rgba(53, 230, 255, 0.4);
  background: rgba(53, 230, 255, 0.07);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.05em;
  color: var(--text);
}

.footer-summary {
  max-width: 22em;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.footer-note {
  margin-top: 14px;
  padding-left: 12px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  border-left: 2px solid var(--amber);
}

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

.footer-col__title {
  margin-bottom: 14px;
  padding-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--amber);
  border-bottom: 1px solid var(--line);
}

.footer-col__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col__list li + li { margin-top: 10px; }

.footer-col__link {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  text-decoration: none;
  word-break: break-word;
  transition: color var(--dur) var(--ease);
}

.footer-col__link:hover,
.footer-col__link:focus-visible {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-col__link--mono {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

.footer-service {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(142, 169, 201, 0.85);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding-block: clamp(18px, 2.6vw, 28px);
  border-bottom: 1px solid var(--line);
}

.footer-meta__item {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-top: clamp(16px, 2.4vw, 24px);
}

.footer-legal__link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

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

/* 返回顶部 */
.to-top {
  position: fixed;
  right: clamp(12px, 2vw, 28px);
  bottom: clamp(12px, 2vw, 28px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  background: var(--panel);
  border: 2px solid var(--cyan);
  box-shadow: 4px 4px 0 rgba(138, 92, 255, 0.45);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              visibility var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.to-top[data-shown="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover { box-shadow: 6px 6px 0 rgba(138, 92, 255, 0.7); }

.to-top__icon {
  font-size: 14px;
  line-height: 1;
}

.to-top__label { line-height: 1; }

/* ==========================================================================
   响应式：平板与手机
   ========================================================================== */
@media (max-width: 1023px) {
  .site-header {
    position: sticky;
    top: 0;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    height: var(--head-h);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 14px;
    overflow: visible;
    border-right: 0;
    border-bottom: 2px solid var(--line);
  }

  .rail-progress {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
  }

  .rail-progress__bar {
    transform: scaleX(var(--progress, 0));
    transform-origin: left center;
    background: linear-gradient(90deg, var(--cyan) 0%, var(--violet) 62%, var(--amber) 100%);
  }

  .rail-brand {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .rail-brand__mark {
    width: 36px;
    height: 36px;
    font-size: 12px;
    box-shadow: 3px 3px 0 var(--violet);
  }

  .rail-brand__name {
    font-size: 16px;
    letter-spacing: 0.12em;
    text-align: left;
  }

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

  .rail-nav {
    position: fixed;
    top: var(--head-h);
    right: 0;
    left: 0;
    z-index: 79;
    max-height: calc(100vh - var(--head-h));
    overflow-y: auto;
    padding: 10px 12px 18px;
    background: #0A1626;
    border-bottom: 2px solid var(--cyan);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms var(--ease),
                transform 180ms var(--ease),
                visibility 180ms var(--ease);
  }

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

  .rail-nav__list { gap: 2px; }

  .rail-nav__link {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 14px 12px;
    font-size: 15px;
    color: var(--text);
    border: 1px solid transparent;
    border-bottom: 1px solid rgba(27, 58, 92, 0.75);
  }

  .rail-nav__link::before { display: none; }

  .rail-nav__link::after {
    content: "›";
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--line);
  }

  .rail-nav__idx {
    min-width: 22px;
    font-size: 11px;
    color: var(--muted);
  }

  .rail-nav__text {
    font-size: 15px;
    text-align: left;
  }

  .rail-nav__link[aria-current="page"] {
    color: #04101A;
    background: var(--cyan);
    border-color: var(--cyan);
    box-shadow: 4px 4px 0 var(--violet);
  }

  .rail-nav__link[aria-current="page"] .rail-nav__idx,
  .rail-nav__link[aria-current="page"]::after { color: rgba(4, 16, 26, 0.65); }

  .rail-foot { display: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brandblock { grid-column: 1 / -1; }
}

@media (max-width: 639px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-meta { flex-direction: column; gap: 6px; }
  .to-top { padding: 9px 12px; }
  .to-top__label { display: none; }
}

/* ---------- 降低动效偏好 ---------- */
@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;
    scroll-behavior: auto !important;
  }

  .rail-nav__link:hover,
  .rail-brand:hover .rail-brand__mark,
  .btn--primary:hover,
  .btn--amber:hover,
  .rail-cta:hover,
  .to-top:hover { transform: none; }
}
