/* ============================================================
   V8国际娱乐 · 共享层 site.css
   轨道导览 + 框景语言 + 珠宝色分区
   ============================================================ */

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

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

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

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

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

a { color: inherit; text-decoration: none; }

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

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #0B1030;
  --ink-deep: #141A46;
  --cyan: #44E6D0;
  --gold: #F2C46B;
  --rose: #FF5C8A;
  --violet: #8B5CF6;
  --fog: #EEF1F8;
  --mist: #A8B2CE;
  --wine: #5A1030;
  --teal: #06373A;

  --rail-w: 104px;
  --bar-h: 62px;
  --maxw: 1180px;
  --pad: clamp(20px, 4vw, 56px);

  --r-lg: 28px;
  --r-md: 18px;
  --r-pill: 999px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --font-sans: "HarmonyOS Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "Cascadia Code", "Roboto Mono", Menlo, monospace;
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  padding-left: var(--rail-w);
  color: var(--fog);
  font-family: var(--font-sans);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .01em;
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(0deg, rgba(238, 241, 248, .016) 0 1px, transparent 1px 3px),
    radial-gradient(52vw 52vw at 84% -10%, rgba(139, 92, 246, .26), transparent 62%),
    radial-gradient(42vw 42vw at 4% 2%, rgba(68, 230, 208, .13), transparent 66%),
    radial-gradient(66vw 46vw at 48% 108%, rgba(90, 16, 48, .5), transparent 74%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

h1, h2, h3, h4 {
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.03em;
}

p { max-width: 68ch; }

::selection { background: rgba(68, 230, 208, .3); color: #04121A; }

/* ---------- 4. 版式组件 ---------- */
.page {
  position: relative;
  z-index: 1;
  display: block;
  padding: clamp(30px, 5vw, 76px) 0 clamp(52px, 8vw, 104px);
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(48px, 7vw, 96px); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mist);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

.display {
  font-size: clamp(2.5rem, 6.2vw, 5.2rem);
  font-weight: 200;
  letter-spacing: -.035em;
  line-height: 1.02;
  text-wrap: balance;
  color: var(--fog);
}

.accent {
  font-weight: 800;
  letter-spacing: -.045em;
  background: linear-gradient(100deg, var(--cyan) 0%, var(--gold) 62%, var(--rose) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 56ch;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.8;
  color: var(--mist);
}

/* ---------- 5. 框景 ---------- */
.frame {
  position: relative;
  border: 1px solid rgba(68, 230, 208, .22);
  border-radius: var(--r-lg);
  padding: clamp(22px, 4vw, 52px);
  background: linear-gradient(178deg, rgba(20, 26, 70, .74) 0%, rgba(11, 16, 48, .38) 100%);
}

.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid var(--gold);
  pointer-events: none;
}

.frame::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: var(--r-lg);
}

.frame::after {
  right: -1px;
  bottom: -1px;
  border-top: 0;
  border-left: 0;
  border-bottom-right-radius: var(--r-lg);
}

/* ---------- 6. 珠宝色分区 ---------- */
.slab {
  position: relative;
  border-radius: clamp(26px, 5vw, 56px);
  padding: clamp(26px, 5vw, 64px);
}

.slab--wine { background: linear-gradient(150deg, #5A1030 0%, #3A0A20 78%); }
.slab--teal { background: linear-gradient(150deg, #06373A 0%, #04262B 78%); }

.slab . eyebrow { color: rgba(238, 241, 248, .7); }

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.2;
  transition: transform .3s var(--ease), background-color .3s var(--ease),
              color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn--gold {
  background: linear-gradient(120deg, #F2C46B 0%, #FFDCA0 100%);
  color: #241705;
  box-shadow: 0 10px 26px rgba(242, 196, 107, .18);
}

.btn--gold:hover { box-shadow: 0 16px 34px rgba(242, 196, 107, .32); }

.btn--cyan {
  background: transparent;
  color: var(--cyan);
  border-color: rgba(68, 230, 208, .55);
}

.btn--cyan:hover {
  background: rgba(68, 230, 208, .12);
  box-shadow: inset 0 0 0 1px rgba(68, 230, 208, .35);
}

.btn--ghost {
  background: rgba(238, 241, 248, .06);
  color: var(--fog);
  border-color: rgba(238, 241, 248, .18);
}

.btn--ghost:hover { background: rgba(238, 241, 248, .12); }

/* ---------- 8. 卡片与标签 ---------- */
.card {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid rgba(168, 178, 206, .16);
  border-radius: var(--r-lg);
  background: rgba(20, 26, 70, .72);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(68, 230, 208, .5);
  box-shadow: 0 18px 46px rgba(3, 6, 20, .55);
}

.card--note {
  border-style: dashed;
  border-radius: var(--r-md);
  background: rgba(11, 16, 48, .58);
}

.card--entry {
  border-radius: var(--r-lg) var(--r-lg) clamp(30px, 5vw, 60px) var(--r-lg);
  background: linear-gradient(160deg, rgba(20, 26, 70, .9), rgba(11, 16, 48, .5));
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  line-height: 1.6;
  border: 1px solid currentColor;
  color: var(--mist);
}

.tag--gold { color: var(--gold); background: rgba(242, 196, 107, .1); }
.tag--rose { color: var(--rose); background: rgba(255, 92, 138, .1); font-weight: 600; }
.tag--cyan { color: var(--cyan); background: rgba(68, 230, 208, .1); }

/* ---------- 9. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  color: var(--mist);
}

.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "/"; color: rgba(168, 178, 206, .45); }

.crumbs a {
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}

.crumbs a:hover { color: var(--cyan); border-bottom-color: rgba(68, 230, 208, .5); }
.crumbs [aria-current="page"] { color: var(--gold); }

/* ---------- 10. 图片容器 ---------- */
.media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(168, 178, 206, .14);
  border-radius: var(--r-lg);
  background-color: #10163A;
  background-image:
    radial-gradient(60% 80% at 18% 18%, rgba(68, 230, 208, .32), transparent 62%),
    radial-gradient(52% 62% at 82% 72%, rgba(255, 92, 138, .24), transparent 64%),
    radial-gradient(46% 56% at 60% 8%, rgba(242, 196, 107, .16), transparent 66%),
    linear-gradient(160deg, #141A46 0%, #0B1030 74%);
}

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

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .45;
  background-image:
    linear-gradient(90deg, rgba(238, 241, 248, .07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(238, 241, 248, .07) 1px, transparent 1px);
  background-size: 64px 64px;
}

.media--21x9 { aspect-ratio: 21 / 9; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3  { aspect-ratio: 4 / 3; }
.media--1x1  { aspect-ratio: 1 / 1; }

.media--city::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  background-image:
    repeating-linear-gradient(90deg,
      rgba(14, 20, 56, .96) 0 22px,
      transparent 22px 34px,
      rgba(20, 26, 70, .96) 34px 62px,
      transparent 62px 72px),
    linear-gradient(180deg, rgba(11, 16, 48, 0) 0%, rgba(6, 10, 32, .92) 100%);
  opacity: .8;
}

.media-cap {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--mist);
}

/* ---------- 11. 头部 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 80;
  width: var(--rail-w);
}

.skip-link {
  position: fixed;
  top: -140px;
  left: 16px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  background: var(--cyan);
  color: #04121A;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(68, 230, 208, .3);
  transition: top .25s var(--ease);
}

.skip-link:focus-visible,
.skip-link:focus { top: 14px; }

.rail {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 18px 8px 16px;
  background: linear-gradient(180deg, #161C4E 0%, #101639 48%, #0B1132 100%);
  border-right: 1px solid rgba(68, 230, 208, .16);
  box-shadow: 14px 0 44px rgba(4, 7, 24, .5);
}

.rail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--gold) 55%, var(--rose));
  opacity: .9;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fog);
}

.brand-glyph {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #06121C;
  background: linear-gradient(140deg, #44E6D0 0%, #7BF0E1 42%, #F2C46B 100%);
  box-shadow: 0 8px 22px rgba(68, 230, 208, .28);
}

.brand-name {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  color: var(--mist);
}

.brand--rail {
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.brand--rail .brand-name {
  writing-mode: vertical-rl;
  letter-spacing: .26em;
  line-height: 1.1;
}

.brand--bar { gap: 9px; }

.brand--bar .brand-name {
  writing-mode: horizontal-tb;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--fog);
}

.rail-badge {
  writing-mode: vertical-rl;
  padding: 10px 5px;
  border: 1px solid rgba(242, 196, 107, .38);
  border-radius: var(--r-pill);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--gold);
  background: rgba(242, 196, 107, .07);
  max-width: 100%;
}

.rail-nav {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.rail-nav::-webkit-scrollbar { display: none; }

.rail-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
}

.rail-item { width: 100%; }

.rail-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 8px 4px;
  border-radius: 14px;
  color: var(--mist);
  transition: color .25s var(--ease), background-color .25s var(--ease);
}

.rail-idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--mist);
  opacity: .75;
  transition: color .25s var(--ease), opacity .25s var(--ease);
}

.rail-lbl {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.3;
}

.rail-link:hover { background: rgba(68, 230, 208, .1); color: var(--fog); }
.rail-link:hover .rail-idx { color: var(--cyan); opacity: 1; }

.rail-link[aria-current="page"] {
  background: rgba(68, 230, 208, .14);
  color: var(--fog);
}

.rail-link[aria-current="page"] .rail-idx { color: var(--gold); opacity: 1; }

.rail-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 9px;
  bottom: 9px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  box-shadow: 0 0 12px rgba(68, 230, 208, .8);
  transition: transform .3s var(--ease);
  transform-origin: top center;
}

.rail-quick {
  display: none;
}

.rail-meter {
  position: relative;
  width: 2px;
  height: 52px;
  border-radius: 2px;
  background: rgba(168, 178, 206, .22);
  overflow: hidden;
  flex: 0 0 auto;
}

.rail-meter-fill {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  transition: height .18s linear;
}

.rail-chapter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  max-width: 88px;
  text-align: center;
  color: var(--mist);
  flex: 0 0 auto;
}

.rail-chapter-idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--cyan);
}

.rail-chapter-label {
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: .06em;
}

.rail-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  padding: 11px 6px;
  border-radius: var(--r-pill);
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  color: #241705;
  background: linear-gradient(120deg, #F2C46B 0%, #FFDCA0 100%);
  box-shadow: 0 10px 24px rgba(242, 196, 107, .22);
  flex: 0 0 auto;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.rail-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(242, 196, 107, .34);
}

.rail-cta-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .14em;
  opacity: .72;
}

.quicklink {
  position: fixed;
  top: 22px;
  right: 26px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid rgba(68, 230, 208, .32);
  border-radius: var(--r-pill);
  background: rgba(20, 26, 70, .78);
  color: var(--fog);
  font-size: 13px;
  letter-spacing: .06em;
  backdrop-filter: blur(8px);
  transition: color .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease);
}

.quicklink::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 10px var(--rose);
}

.quicklink:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(20, 26, 70, .95);
}

.topbar { display: none; }

.nav-toggle { display: none; }

.nav-toggle-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
}

/* ---------- 12. 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(40px, 8vw, 108px);
  padding-top: clamp(34px, 6vw, 72px);
  border-radius: clamp(30px, 6vw, 72px) clamp(30px, 6vw, 72px) 0 0;
  background: linear-gradient(165deg, #5A1030 0%, #3B0A20 62%, #2A0718 100%);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(30px, 6vw, 72px);
  right: clamp(30px, 6vw, 72px);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(242, 196, 107, .7) 30%, rgba(68, 230, 208, .55) 70%, transparent);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(24px, 4vw, 52px);
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--pad) clamp(30px, 5vw, 56px);
}

.footer-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--gold);
}

.footer-line {
  margin-top: 10px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1.16;
  color: var(--fog);
}

.footer-note {
  margin-top: 10px;
  max-width: 32ch;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(238, 241, 248, .62);
}

.footer-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: rgba(238, 241, 248, .55);
}

.footer-nav ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 16px;
}

.footer-nav--legal ul { grid-template-columns: minmax(0, 1fr); }

.footer-nav a {
  display: inline-block;
  font-size: 14px;
  color: rgba(238, 241, 248, .84);
  transition: color .25s var(--ease), transform .25s var(--ease);
}

.footer-nav a:hover {
  color: var(--gold);
  transform: translateX(2px);
}

.footer-contact-item {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 9px;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(238, 241, 248, .86);
  word-break: break-word;
}

.footer-tag {
  flex: 0 0 auto;
  padding: 2px 9px;
  border: 1px solid rgba(242, 196, 107, .3);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: rgba(242, 196, 107, .9);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 22px;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 18px var(--pad) 26px;
  border-top: 1px solid rgba(238, 241, 248, .14);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  color: rgba(238, 241, 248, .6);
}

.footer-copy,
.footer-icp,
.footer-lang { max-width: none; }

/* ---------- 13. 返回顶部 ---------- */
.backtop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid rgba(68, 230, 208, .4);
  border-radius: var(--r-pill);
  background: rgba(20, 26, 70, .92);
  color: var(--fog);
  font-size: 12.5px;
  letter-spacing: .08em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease),
              visibility .3s, border-color .3s var(--ease), color .3s var(--ease);
}

.backtop[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

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

/* ---------- 14. 焦点与动效降级 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

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

  .card:hover, .btn:hover, .rail-cta:hover, .backtop[data-visible] {
    transform: none;
  }
}

/* ---------- 15. 平板 ---------- */
@media (max-width: 1080px) {
  :root { --rail-w: 92px; }

  .rail-lbl { font-size: 11.5px; }

  .footer-inner { grid-template-columns: 1.4fr 1fr 1.2fr; }
  .footer-contact { grid-column: 1 / -1; }
}

/* ---------- 16. 移动端 ---------- */
@media (max-width: 899px) {
  body {
    padding-left: 0;
    font-size: 16px;
    background-attachment: scroll;
  }

  .site-header {
    position: sticky;
    top: 0;
    bottom: auto;
    left: auto;
    width: 100%;
    height: auto;
  }

  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: var(--bar-h);
    padding: 0 16px;
    background: rgba(11, 16, 48, .94);
    border-bottom: 1px solid rgba(68, 230, 208, .18);
    backdrop-filter: blur(12px);
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 38px;
    padding: 0 16px;
    border: 1px solid rgba(68, 230, 208, .42);
    border-radius: var(--r-pill);
    color: var(--fog);
    transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  }

  .nav-toggle::before {
    content: "";
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: var(--cyan);
    box-shadow: 0 5px 0 var(--cyan), 0 -5px 0 var(--cyan);
    transition: background-color .25s var(--ease), box-shadow .25s var(--ease);
  }

  .site-header[data-open] .nav-toggle {
    background: rgba(68, 230, 208, .16);
    border-color: var(--cyan);
    color: var(--cyan);
  }

  .site-header[data-open] .nav-toggle::before {
    background: var(--rose);
    box-shadow: 0 5px 0 var(--rose), 0 -5px 0 var(--rose);
  }

  .rail {
    position: fixed;
    top: var(--bar-h);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 75;
    height: auto;
    align-items: stretch;
    gap: 14px;
    padding: 22px 18px 30px;
    border-right: 0;
    border-top: 1px solid rgba(68, 230, 208, .14);
    background: linear-gradient(180deg, #121845 0%, #0B1030 100%);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  }

  .site-header[data-open] .rail {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .brand--rail { display: none; }

  .rail-badge {
    writing-mode: horizontal-tb;
    align-self: flex-start;
    padding: 8px 18px;
    font-size: 10.5px;
    letter-spacing: .2em;
  }

  .rail-nav {
    flex: 0 0 auto;
    align-items: stretch;
    overflow: visible;
  }

  .rail-list { gap: 7px; }

  .rail-link {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 12px 16px;
    border: 1px solid rgba(168, 178, 206, .14);
    border-radius: 16px;
    color: var(--fog);
  }

  .rail-idx { font-size: 11px; opacity: .85; }
  .rail-lbl { font-size: 15px; }

  .rail-link[aria-current="page"]::before {
    left: 4px;
    top: 14px;
    bottom: 14px;
    width: 3px;
  }

  .rail-quick {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 16px;
    border: 1px dashed rgba(255, 92, 138, .55);
    border-radius: 16px;
    font-size: 13.5px;
    color: var(--fog);
    transition: border-color .25s var(--ease), color .25s var(--ease);
  }

  .rail-quick:hover { border-color: var(--rose); color: var(--rose); }

  .rail-meter,
  .rail-chapter { display: none; }

  .rail-cta {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    font-size: 13.5px;
  }

  .quicklink { display: none; }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }

  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }

  .footer-base {
    justify-content: flex-start;
    padding-bottom: 22px;
  }

  .backtop {
    right: 14px;
    bottom: 14px;
    padding: 10px 15px;
    font-size: 12px;
  }

  .slab { border-radius: 26px; }
}

@media (max-width: 560px) {
  .footer-nav ul { grid-template-columns: minmax(0, 1fr); }
  .footer-nav--legal ul { grid-template-columns: minmax(0, 1fr); }
  .display { font-size: clamp(2.1rem, 10vw, 3rem); }
}
