/* ==========================================================================
   奔驰宝马娱乐 · 共享样式 /assets/site.css
   夜场电玩城霓虹 × 机械仪表盘 · 侧边轨道导航
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: #0B0B10;
}

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

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

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--c-blue);
  outline-offset: 3px;
  border-radius: 1px;
}

::selection { background: var(--c-red); color: #12000A; }

/* 2. 变量 ----------------------------------------------------------------- */
:root {
  --c-ink: #0B0B10;
  --c-plum: #2A1145;
  --c-red: #FF3B5C;
  --c-blue: #2D7DFF;
  --c-gold: #E8C06A;
  --c-cyan: #28E0D0;
  --c-panel: #1C1F2A;
  --c-silver: #C9CED6;
  --c-paper: #F5F1E8;
  --c-orange: #FF7A1A;

  --line: rgba(201, 206, 214, .18);
  --line-mid: rgba(201, 206, 214, .34);
  --line-hard: #3A3F52;

  --rail-w: 274px;
  --shell: 1180px;
  --gutter: clamp(18px, 3.4vw, 46px);

  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", "Courier New", monospace;

  --shadow-hard: 6px 6px 0 rgba(0, 0, 0, .55);
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, .45);
}

/* 3. 基础排版 ------------------------------------------------------------- */
body {
  min-height: 100vh;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.05vw, 17.5px);
  line-height: 1.75;
  letter-spacing: .01em;
  color: var(--c-paper);
  background:
    radial-gradient(1100px 640px at 90% -10%, rgba(45, 125, 255, .12), transparent 62%),
    radial-gradient(880px 520px at 2% 106%, rgba(255, 59, 92, .10), transparent 60%),
    var(--c-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

h1, h2, h3, h4 { font-weight: 900; line-height: 1.12; letter-spacing: -.012em; }
h1 { font-size: clamp(36px, 6.4vw, 74px); font-style: italic; }
h2 { font-size: clamp(24px, 3.6vw, 36px); font-style: italic; }
h3 { font-size: clamp(19px, 2.2vw, 24px); }
h4 { font-size: 17px; }

p { max-width: 42em; }

strong, b { font-weight: 800; color: var(--c-gold); }

.num,
.readout,
time,
[data-year] {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

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

.container--wide { max-width: 1440px; }

.section { padding-block: clamp(40px, 6vw, 82px); }

.prose { max-width: 40em; }
.prose p { margin-bottom: 1.05em; }
.prose p:last-child { margin-bottom: 0; }

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 26px);
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 232px), 1fr)); }

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

/* 5. 通用文字组件 --------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--c-gold);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--c-red);
  box-shadow: 0 0 10px rgba(255, 59, 92, .8);
}

.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  font-style: italic;
  line-height: 1.14;
  letter-spacing: -.015em;
  margin-bottom: .5em;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-silver);
  background: rgba(28, 31, 42, .68);
  border: 1px solid var(--line-mid);
  white-space: nowrap;
}
.tag--neon { border-color: var(--c-red); color: var(--c-red); background: rgba(255, 59, 92, .10); }
.tag--gold { border-color: var(--c-gold); color: var(--c-gold); background: rgba(232, 192, 106, .10); }
.tag--cyan { border-color: var(--c-cyan); color: var(--c-cyan); background: rgba(40, 224, 208, .10); }
.tag--live::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-cyan);
  box-shadow: 0 0 9px var(--c-cyan);
  animation: pulseDot 2.8s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.78); }
}

.readout { color: var(--c-cyan); font-weight: 700; }

/* 6. 按钮 ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--c-paper);
  background: transparent;
  border: 2px solid var(--line-hard);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease,
    border-color .16s ease, color .16s ease;
}

.btn--primary {
  color: #12000A;
  background: var(--c-red);
  border-color: var(--c-red);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, .6);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: #FF5A74;
  border-color: #FF5A74;
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 rgba(0, 0, 0, .7), 0 0 24px rgba(255, 59, 92, .45);
}

.btn--ghost {
  border-color: var(--line-mid);
  color: var(--c-paper);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--c-red);
  color: var(--c-red);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 rgba(255, 59, 92, .26);
}

.btn--gold {
  color: #221600;
  border-color: var(--c-gold);
  background: linear-gradient(160deg, #F6E2AF, var(--c-gold) 46%, #B8892F);
}
.btn--gold:hover,
.btn--gold:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .6);
}

.btn--block { width: 100%; }

/* 7. 面板与图片容器 ------------------------------------------------------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.6vw, 28px);
  background: linear-gradient(158deg, rgba(28, 31, 42, .95), rgba(23, 10, 38, .95));
  border: 2px solid var(--line-hard);
  box-shadow: var(--shadow-hard);
}
.panel::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 42px; height: 42px;
  background: linear-gradient(225deg, rgba(255, 59, 92, .40), transparent 70%);
  pointer-events: none;
}
.panel--neon { border-color: var(--c-red); }
.panel--gold { border-color: var(--c-gold); }

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-silver);
  border-bottom: 1px dashed var(--line-mid);
}

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--line-hard);
  background-color: #120d1c;
  background-image: repeating-linear-gradient(
    135deg,
    #16121f 0 12px,
    #1b1526 12px 24px
  );
}
.media-frame > img,
.media-frame > picture > img,
.media-frame > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px),
    linear-gradient(155deg, rgba(45, 125, 255, .16), transparent 52%),
    linear-gradient(340deg, rgba(255, 59, 92, .14), transparent 46%);
  opacity: .75;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }

/* 8. 面包屑 --------------------------------------------------------------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(201, 206, 214, .72);
}
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: var(--c-red); }
.breadcrumbs a { color: var(--c-silver); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-red); }
.breadcrumbs [aria-current="page"] { color: var(--c-gold); }

/* 9. Skip link ------------------------------------------------------------ */
.skip-link {
  position: fixed;
  top: -120px;
  left: 14px;
  z-index: 400;
  padding: 11px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #1A1200;
  background: var(--c-gold);
  border: 2px solid #000;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, .7);
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 14px; }

/* 10. 头部：移动端顶栏 + 抽屉 -------------------------------------------- */
.site-rail {
  position: sticky;
  top: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 64px;
  padding-inline: var(--gutter);
  background: #0B0B10;
  border-bottom: 2px solid var(--c-red);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .6);
}

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

.rail-bar {
  position: relative;
  z-index: 140;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

/* 品牌 */
.rail-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-right: auto;
  text-decoration: none;
  color: var(--c-paper);
}
.rail-brand__mark {
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 900;
  color: #0B0B10;
  background: var(--c-red);
  border: 2px solid #0B0B10;
  box-shadow: 0 0 0 2px var(--c-red), 0 0 20px rgba(255, 59, 92, .6);
  transform: skewX(-8deg);
}
.rail-brand__text { display: grid; gap: 1px; min-width: 0; }
.rail-brand__name {
  display: block;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1.2;
  white-space: nowrap;
}
.rail-brand__line {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  line-height: 1.2;
  color: var(--c-gold);
  white-space: nowrap;
}

/* 版本标签 */
.rail-version {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: rgba(201, 206, 214, .72);
  background: rgba(42, 17, 69, .6);
  border: 1px solid var(--line-mid);
  white-space: nowrap;
}
.rail-version__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-cyan);
  box-shadow: 0 0 9px var(--c-cyan);
  animation: pulseDot 2.8s ease-in-out infinite;
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--c-paper);
  background: var(--c-plum);
  border: 2px solid var(--c-red);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .8);
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.nav-toggle:hover { background: #3A1860; }
.nav-toggle:active { transform: translate(1px, 1px); }
.nav-toggle__bars { display: grid; gap: 3px; }
.nav-toggle__bars i {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--c-red);
  transition: transform .22s ease, opacity .22s ease;
}
.site-rail[data-open] .nav-toggle__bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-rail[data-open] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.site-rail[data-open] .nav-toggle__bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.site-rail[data-open] .nav-toggle__label { color: var(--c-gold); }

/* 抽屉 */
.rail-body {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 130;
  display: flex;
  flex-direction: column;
  width: min(88vw, 352px);
  height: 100vh;
  height: 100dvh;
  padding: 78px 0 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(172deg, #170a26 0%, #0B0B10 58%, #150a24 100%);
  border-left: 2px solid var(--c-red);
  box-shadow: -16px 0 48px rgba(0, 0, 0, .72);
  transform: translateX(103%);
  visibility: hidden;
  transition: transform .28s ease, visibility .28s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--c-red) transparent;
}

.site-rail[data-open] .rail-body {
  transform: translateX(0);
  visibility: visible;
}

.rail-scrim {
  position: fixed;
  inset: 0;
  z-index: 125;
  background:
    radial-gradient(circle at 84% 8%, rgba(255, 59, 92, .20), transparent 56%),
    rgba(11, 11, 16, .80);
  opacity: 0;
  visibility: hidden;
  transition: opacity .26s ease, visibility .26s ease;
}
.site-rail[data-open] .rail-scrim {
  opacity: 1;
  visibility: visible;
}

/* 主导航 */
.site-nav { padding: 4px 0 14px; }

.site-nav__title {
  margin: 0 0 10px;
  padding: 0 22px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .24em;
  color: rgba(201, 206, 214, .48);
}

.site-nav__list { list-style: none; margin: 0; padding: 0; }

.site-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px 11px 21px;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--c-silver);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 59, 92, .30));
  transform: skewX(-16deg);
  transition: width .24s ease;
}
.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--c-paper);
  border-left-color: rgba(255, 59, 92, .65);
  background: linear-gradient(90deg, rgba(255, 59, 92, .14), transparent 72%);
}
.site-nav__link:hover::after,
.site-nav__link:focus-visible::after { width: 26%; }

.site-nav__link[aria-current="page"] {
  color: var(--c-paper);
  border-left-color: var(--c-red);
  background: linear-gradient(90deg, rgba(255, 59, 92, .26), rgba(255, 59, 92, 0) 80%);
}
.site-nav__link[aria-current="page"]::after { width: 32%; }

.site-nav__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: rgba(201, 206, 214, .45);
  transition: color .18s ease;
}
.site-nav__link:hover .site-nav__idx { color: var(--c-cyan); }
.site-nav__link[aria-current="page"] .site-nav__idx { color: var(--c-red); }

.site-nav__label { position: relative; z-index: 1; }

/* 轨道底部 */
.rail-foot {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding: 20px 22px 6px;
  border-top: 1px solid var(--line);
}
.rail-cta { width: 100%; }

.rail-utility {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}
.rail-utility a {
  display: inline-block;
  font-size: 12.5px;
  color: rgba(201, 206, 214, .70);
  text-decoration: none;
  border-bottom: 1px dashed rgba(201, 206, 214, .30);
  transition: color .16s ease, border-color .16s ease;
}
.rail-utility a:hover {
  color: var(--c-cyan);
  border-bottom-color: var(--c-cyan);
}

/* 11. 头部：桌面端侧边轨道 ------------------------------------------------ */
@media (min-width: 1024px) {
  .site-rail {
    position: fixed;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: var(--rail-w);
    height: auto;
    padding: 0;
    border-bottom: 0;
    border-right: 1px solid #43255F;
    background: linear-gradient(180deg, #0B0B10 0%, #150A24 42%, #2A1145 100%);
    box-shadow: 10px 0 44px rgba(0, 0, 0, .55);
  }

  .site-rail::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    display: block;
    width: 3px;
    background: linear-gradient(
      180deg,
      var(--c-red) 0%,
      var(--c-blue) 38%,
      var(--c-cyan) 68%,
      rgba(40, 224, 208, 0) 100%
    );
    opacity: .92;
  }

  .rail-bar {
    display: block;
    width: auto;
    padding: 26px 22px 20px;
    border-bottom: 1px solid var(--line);
  }
  .rail-brand { margin-right: 0; }
  .rail-brand__mark { width: 38px; height: 38px; flex-basis: 38px; font-size: 19px; }
  .rail-brand__name { font-size: 16px; }

  .rail-version { margin-top: 14px; }

  .nav-toggle { display: none; }

  .rail-scrim { display: none; }

  .rail-body {
    position: static;
    inset: auto;
    width: auto;
    height: auto;
    max-height: none;
    flex: 1 1 auto;
    min-height: 0;
    padding: 18px 0 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: none;
    border-left: 0;
    box-shadow: none;
    transform: none;
    visibility: visible;
    transition: none;
  }

  .site-nav { padding: 0 0 10px; }
  .site-nav__title { padding-inline: 22px; }
  .site-nav__link { font-size: 14.5px; padding-block: 11px; }

  .rail-foot { padding: 18px 22px 4px; }
}

@media (max-width: 480px) {
  .rail-brand__line { display: none; }
  .rail-version { display: none; }
}

/* 12. 页脚 ---------------------------------------------------------------- */
.site-footer {
  position: relative;
  isolation: isolate;
  margin-top: clamp(56px, 9vw, 108px);
  overflow: hidden;
  background: linear-gradient(180deg, #0B0B10 0%, #150A24 34%, #2A1145 100%);
  border-top: 2px solid var(--c-red);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--c-red) 0%,
    var(--c-gold) 28%,
    var(--c-blue) 62%,
    var(--c-cyan) 100%
  );
  opacity: .9;
}

.footer__glow {
  position: absolute;
  right: -12%;
  bottom: -46%;
  z-index: 0;
  width: min(660px, 92%);
  aspect-ratio: 1 / 1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 59, 92, .24), transparent 68%);
  filter: blur(6px);
}

.footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 3.6vw, 46px);
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(34px, 5vw, 62px) var(--gutter) clamp(22px, 3vw, 34px);
}

@media (min-width: 700px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .footer__inner { grid-template-columns: 1.55fr .85fr .85fr 1.45fr; }
}

.footer__brand { min-width: 0; }

.footer__mark {
  font-size: clamp(22px, 3vw, 31px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -.01em;
  line-height: 1.15;
  background: linear-gradient(96deg, #F8E7BC 0%, var(--c-gold) 38%, #B8892F 72%, #F8E7BC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.footer__tag {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  color: rgba(201, 206, 214, .75);
}

.footer__cta { margin-top: 16px; }

.footer__note {
  max-width: 26em;
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(201, 206, 214, .62);
}

.footer__title {
  margin: 0 0 14px;
  padding-left: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: .2em;
  line-height: 1.4;
  color: var(--c-gold);
  border-left: 3px solid var(--c-red);
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.footer__list a {
  display: inline-block;
  font-size: 14.5px;
  color: rgba(245, 241, 232, .80);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .16s ease, border-color .16s ease, transform .16s ease;
}
.footer__list a:hover,
.footer__list a:focus-visible {
  color: var(--c-red);
  border-bottom-color: var(--c-red);
  transform: translateX(3px);
}

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

.footer__list--contact { gap: 10px; }

.footer__contact {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 6px 10px;
  padding: 9px 10px;
  background: rgba(11, 11, 16, .48);
  border: 1px solid var(--line);
}
.footer__contact--addr { grid-template-columns: auto 1fr; align-items: start; }

.footer__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--c-cyan);
}

.footer__value {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--c-paper);
  word-break: break-all;
}
.footer__contact--addr .footer__value {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  word-break: break-word;
}

.copy-btn {
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--c-silver);
  background: transparent;
  border: 1px solid var(--line-mid);
  cursor: pointer;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}
.copy-btn:hover { color: #12000A; background: var(--c-cyan); border-color: var(--c-cyan); }
.copy-btn.is-done { color: #221600; background: var(--c-gold); border-color: var(--c-gold); }

.footer__bar {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 22px;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 16px var(--gutter) 28px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: rgba(245, 241, 232, .58);
}
.footer__copy { max-width: none; }
.footer__icp { color: var(--c-silver); white-space: nowrap; }

/* 13. 阅读进度灯管（由 JS 注入） ------------------------------------------ */
.scroll-gauge {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 200;
  width: 4px;
  height: 100vh;
  height: 100dvh;
  pointer-events: none;
  background: rgba(201, 206, 214, .10);
}
.scroll-gauge__fill {
  display: block;
  width: 100%;
  height: calc(var(--p, 0) * 100%);
  background: linear-gradient(180deg, var(--c-cyan) 0%, var(--c-blue) 42%, var(--c-red) 100%);
  box-shadow: 0 0 14px rgba(255, 59, 92, .68);
}

/* 14. 目录当前项（配合 data-toc） ---------------------------------------- */
[data-toc] a[aria-current="true"] {
  color: var(--c-red);
  border-color: var(--c-red);
}

/* 15. 减少动效 ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .rail-body { transition: none; }
  .scroll-gauge__fill { transition: none; }
}
