/* ==========================================================================
   TPG电玩城 — /assets/site.css
   夜场机台外壳：品牌轨道 + 悬浮胶囊 + 霓虹光带 + 打印回执
   ========================================================================== */

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

html,
body { margin: 0; padding: 0; }

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

body { min-height: 100vh; }

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

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

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

h1, h2, h3, h4, h5,
p, figure, blockquote { margin: 0; }

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

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #07060E;
  --ink-2: #141026;
  --ink-3: #0B0817;
  --violet: #7B4BFF;
  --cyan: #38F5D6;
  --magenta: #FF3D9A;
  --orange: #FF8A34;
  --paper: #F2E8D5;
  --paper-line: #C9B99A;
  --paper-ink: #241E12;
  --text: #E8E6F2;
  --muted: #9A94B8;
  --line: #2C2745;
  --dim: #6E6790;

  --rail: 84px;
  --maxw: 1440px;
  --gap: 24px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  --font-ui: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC",
    "Source Han Sans SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas,
    "Liberation Mono", monospace;

  --shadow-card: 0 22px 50px -28px rgba(0, 0, 0, .95),
    0 0 0 1px rgba(123, 75, 255, .14) inset;
  --glow-cyan: 0 0 0 4px rgba(56, 245, 214, .28);
}

/* ---------- 3. Base ---------- */
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .92;
  background:
    radial-gradient(920px 540px at 84% -10%, rgba(123, 75, 255, .30), transparent 62%),
    radial-gradient(780px 500px at 4% 6%, rgba(255, 61, 154, .16), transparent 64%),
    radial-gradient(760px 720px at 52% 110%, rgba(56, 245, 214, .10), transparent 62%),
    repeating-linear-gradient(0deg, rgba(232, 230, 242, .05) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(232, 230, 242, .05) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(0deg, rgba(7, 6, 14, .20) 0 1px, transparent 1px 3px);
}

::selection {
  background: rgba(56, 245, 214, .85);
  color: #06231F;
}

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  box-shadow: var(--glow-cyan);
  border-radius: 2px;
}

/* ---------- 4. Layout shell ---------- */
main,
#main-content {
  position: relative;
  z-index: 1;
  display: block;
  padding-top: 112px;
  padding-left: var(--rail);
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 64px);
}

/* ---------- 5. Typography ---------- */
.display-1,
.display-2 {
  font-weight: 900;
  letter-spacing: -.02em;
  color: #fff;
  text-shadow:
    0 0 1px rgba(123, 75, 255, .95),
    0 0 26px rgba(123, 75, 255, .38),
    0 0 62px rgba(255, 61, 154, .18);
  -webkit-mask-image: repeating-linear-gradient(to bottom, #000 0 7px, rgba(0, 0, 0, .86) 7px 8px);
  mask-image: repeating-linear-gradient(to bottom, #000 0 7px, rgba(0, 0, 0, .86) 7px 8px);
}

.display-1 { font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1.02; }
.display-2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); line-height: 1.12; }

.subhead {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.3;
  color: var(--text);
}

.lede {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 38em;
}

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--cyan);
}

.muted { color: var(--muted); }

.note {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

/* ---------- 6. Section & grid ---------- */
.section {
  position: relative;
  padding-block: clamp(48px, 7vw, 96px);
}

.section--tight { padding-block: clamp(32px, 4vw, 56px); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: 1 / -1; }

.lightband {
  height: 2px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--magenta), var(--orange));
  opacity: .55;
}

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(20, 16, 38, .72);
  color: var(--text);
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.2;
  transition:
    transform .18s var(--ease),
    border-color .18s var(--ease),
    box-shadow .18s var(--ease),
    background .18s var(--ease),
    color .18s var(--ease);
}

.btn::after {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
  opacity: .6;
  transition: width .18s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 245, 214, .55);
  box-shadow: 0 14px 30px -18px #000, 0 0 22px -8px rgba(56, 245, 214, .7);
}

.btn:hover::after { width: 30px; }

.btn--primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(120deg, rgba(123, 75, 255, .95), rgba(255, 61, 154, .88));
  box-shadow: 0 0 32px -8px rgba(123, 75, 255, .9);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(56, 245, 214, .5);
  color: var(--cyan);
}

.btn--warm {
  background: rgba(255, 138, 52, .12);
  border-color: var(--orange);
  color: var(--orange);
}

/* ---------- 8. Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .1em;
  color: var(--dim);
}

.breadcrumb__item { color: var(--muted); }

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

.breadcrumb__sep { color: #3B3557; }

/* ---------- 9. Cards ---------- */
.card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: linear-gradient(160deg, rgba(20, 16, 38, .94), rgba(11, 8, 23, .94));
  box-shadow: var(--shadow-card);
  transition:
    transform .18s var(--ease),
    border-color .18s var(--ease),
    box-shadow .18s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 245, 214, .45);
  box-shadow:
    0 32px 62px -32px #000,
    0 0 30px -10px rgba(56, 245, 214, .55);
}

.card--slant {
  transform: rotate(var(--card-angle, -3deg));
}

.card--slant:hover {
  transform: rotate(var(--card-angle, -3deg)) translateY(-4px);
}

.card__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .16em;
  color: var(--dim);
  margin-bottom: 12px;
}

.card__title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 8px;
}

.card__body {
  font-size: .96rem;
  color: var(--muted);
  line-height: 1.8;
}

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--dim);
}

/* ---------- 10. Receipt (paper) ---------- */
.receipt {
  position: relative;
  max-width: 60%;
  padding: 26px 24px 30px;
  border: 1px solid var(--paper-line);
  border-radius: 2px;
  color: var(--paper-ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(36, 30, 18, .10) 1px, transparent 1px);
  background-size: 4px 4px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .45), 0 28px 54px -32px #000;
  margin-bottom: 40px;
}

.receipt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 8px;
  background-image:
    linear-gradient(-45deg, var(--paper) 6px, transparent 0),
    linear-gradient(45deg, var(--paper) 6px, transparent 0);
  background-size: 12px 12px;
  background-repeat: repeat-x;
  background-position: 0 0;
}

.receipt__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--paper-line);
  font-family: var(--font-mono);
  font-size: .86rem;
  letter-spacing: .02em;
}

.receipt__row:last-child { border-bottom: 0; }

.receipt__key { color: #5C523E; }

.receipt__val {
  color: #1A1509;
  font-weight: 700;
  text-align: right;
}

/* ---------- 11. Stats & tags ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .02em;
  color: var(--cyan);
  text-shadow: 0 0 22px rgba(56, 245, 214, .45);
}

.stat__label {
  font-size: .82rem;
  letter-spacing: .14em;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(20, 16, 38, .6);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--muted);
  white-space: nowrap;
}

.tag--cyan { color: var(--cyan); border-color: rgba(56, 245, 214, .42); }
.tag--warm { color: var(--orange); border-color: rgba(255, 138, 52, .45); }
.tag--magenta { color: var(--magenta); border-color: rgba(255, 61, 154, .45); }

/* ---------- 12. Media frames ---------- */
.media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: linear-gradient(150deg, #141026, #07060E);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(7, 6, 14, .28) 0 1px, transparent 1px 3px);
}

.media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--wide { aspect-ratio: 16 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }

.media--slant {
  transform: rotate(var(--media-angle, -3deg));
}

.media--ph {
  display: grid;
  place-items: center;
}

.media--ph::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(123, 75, 255, .16) 0 2px, transparent 2px 12px),
    repeating-linear-gradient(-45deg, rgba(56, 245, 214, .10) 0 2px, transparent 2px 12px);
}

.media__ph-label {
  position: relative;
  z-index: 1;
  padding: 0 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .2em;
  color: rgba(232, 230, 242, .5);
}

.media__cap {
  position: relative;
  z-index: 3;
  padding: 10px 12px;
  border-top: 1px dashed var(--line);
  background: rgba(7, 6, 14, .82);
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--muted);
}

/* ---------- 13. Tabs / Accordion ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(20, 16, 38, .6);
}

.tabs__btn {
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
  transition:
    color .18s var(--ease),
    background .18s var(--ease),
    border-color .18s var(--ease),
    box-shadow .18s var(--ease);
}

.tabs__btn:hover {
  color: var(--cyan);
  border-color: rgba(56, 245, 214, .35);
}

.tabs__btn[aria-pressed="true"],
.tabs__btn[aria-selected="true"] {
  color: #07060E;
  background: linear-gradient(120deg, var(--cyan), #8CFFEE);
  box-shadow: 0 0 22px -6px rgba(56, 245, 214, .8);
}

.acc { border-top: 1px solid var(--line); }

.acc__item { border-bottom: 1px solid var(--line); }

.acc__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  text-align: left;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text);
  transition: color .18s var(--ease);
}

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

.acc__icon {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--cyan);
}

.acc__icon::before,
.acc__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.acc__icon::before { width: 10px; height: 1px; }

.acc__icon::after {
  width: 1px;
  height: 10px;
  transition: transform .18s var(--ease);
}

.acc__trigger[aria-expanded="true"] .acc__icon::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.acc__panel {
  display: none;
  padding: 0 4px 20px;
  font-size: .98rem;
  color: var(--muted);
}

.acc__panel[data-open="true"] { display: block; }

/* ---------- 14. Reveal ---------- */
html[data-reveal-ready] [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .52s var(--ease), transform .52s var(--ease);
  will-change: opacity, transform;
}

html[data-reveal-ready] [data-reveal][data-reveal-state="in"] {
  opacity: 1;
  transform: none;
}

/* ---------- 15. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 14px;
  left: calc(var(--rail) + 16px);
  z-index: 90;
  padding: 12px 20px;
  border-radius: 2px;
  background: var(--cyan);
  color: #06231F;
  font-weight: 800;
  font-size: .94rem;
  letter-spacing: .04em;
  transform: translateY(-180%);
  transition: transform .18s var(--ease);
  pointer-events: auto;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ---------- 16. Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  pointer-events: none;
}

.site-header a,
.site-header button { pointer-events: auto; }

.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 75;
  width: 2px;
  height: 0;
  pointer-events: none;
  background: linear-gradient(180deg, var(--cyan), var(--violet) 55%, var(--magenta));
  box-shadow: 0 0 14px rgba(56, 245, 214, .7);
  transition: height .08s linear;
}

/* 16.1 brand rail */
.rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 55;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 20px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #0B0817 0%, #07060E 46%, #0B0817 100%);
  pointer-events: auto;
}

.rail__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 7px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(20, 16, 38, .62);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.rail__brand:hover {
  border-color: rgba(56, 245, 214, .5);
  box-shadow: 0 0 22px -8px rgba(56, 245, 214, .8);
}

.rail__mark {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .24em;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(56, 245, 214, .6);
}

.rail__cn {
  writing-mode: vertical-rl;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .3em;
  color: var(--text);
}

.rail__ticks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .1em;
  color: #4A4468;
}

.rail__tick {
  position: relative;
  display: block;
  transition: color .18s var(--ease), text-shadow .18s var(--ease);
}

.rail__tick[data-active="true"] {
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(56, 245, 214, .85);
}

.rail__tick[data-active="true"]::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  transform: translateY(-50%);
}

.rail__top {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  transition: color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.rail__top:hover {
  color: var(--cyan);
  border-color: rgba(56, 245, 214, .55);
  box-shadow: 0 0 20px -6px rgba(56, 245, 214, .8);
}

.rail__top-glyph {
  font-family: var(--font-mono);
  font-size: .92rem;
  line-height: 1;
}

/* 16.2 floating capsule dock */
.navdock {
  position: fixed;
  top: 18px;
  right: 24px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 8, 20, .84);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow:
    0 26px 52px -28px #000,
    0 0 34px -16px rgba(123, 75, 255, .9);
  pointer-events: auto;
  transition: padding .24s var(--ease), box-shadow .24s var(--ease);
}

.navdock__brand {
  display: none;
  align-items: center;
  gap: 6px;
  padding-left: 6px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(56, 245, 214, .55);
}

.navdock__brand-cn {
  font-family: var(--font-ui);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .28em;
  color: var(--muted);
  text-shadow: none;
}

.navdock__nav {
  display: flex;
  align-items: center;
}

.navdock__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.navdock__item { display: block; }

.navdock__link {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  color: var(--text);
  transition: color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}

.navdock__link:hover {
  color: var(--cyan);
  background: rgba(56, 245, 214, .10);
}

.navdock__link[aria-current="page"] {
  color: #07060E;
  background: linear-gradient(120deg, var(--cyan), #8CFFEE);
  box-shadow: 0 0 22px -6px rgba(56, 245, 214, .85);
}

.navdock__toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--text);
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.navdock__toggle:hover {
  color: var(--cyan);
  border-color: rgba(56, 245, 214, .5);
}

.navdock__bars {
  display: grid;
  gap: 4px;
  width: 16px;
}

.navdock__bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .18s var(--ease), opacity .18s var(--ease);
}

.navdock__toggle[aria-expanded="true"] .navdock__bars i:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.navdock__toggle[aria-expanded="true"] .navdock__bars i:nth-child(2) {
  opacity: 0;
}

.navdock__toggle[aria-expanded="true"] .navdock__bars i:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.navdock__toggle-label { line-height: 1; }

.navdock__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--orange);
  border-radius: 999px;
  background: rgba(255, 138, 52, .10);
  color: var(--orange);
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .06em;
  white-space: nowrap;
  transition: color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}

.navdock__cta::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.navdock__cta:hover {
  background: var(--orange);
  color: #170A03;
  box-shadow: 0 0 28px -6px rgba(255, 138, 52, .85);
}

.navdock__cta-text { line-height: 1; }

/* 16.3 condensed state (desktop) */
.site-header[data-condensed="true"] .navdock {
  padding: 7px 7px 7px 14px;
  box-shadow:
    0 26px 52px -28px #000,
    0 0 26px -14px rgba(56, 245, 214, .7);
}

.site-header[data-condensed="true"] .navdock__brand { display: flex; }

.site-header[data-condensed="true"] .navdock__toggle { display: inline-flex; }

.site-header[data-condensed="true"] .navdock__nav {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(300px, calc(100vw - 48px));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(8, 6, 17, .97);
  box-shadow:
    0 30px 64px -26px #000,
    0 0 0 1px rgba(123, 75, 255, .16) inset;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s var(--ease);
}

.site-header[data-condensed="true"] .navdock__nav .navdock__list {
  flex-direction: column;
  align-items: stretch;
}

.site-header[data-condensed="true"] .navdock__link {
  padding: 12px 16px;
  border-radius: 12px;
}

.site-header[data-condensed="true"] .navdock__nav[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

/* ---------- 17. Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 72px 0 0 var(--rail);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #07060E 0%, #0C0918 58%, #07060E 100%);
  color: var(--text);
}

.footer__inner { padding-bottom: 44px; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1.25fr .95fr;
  gap: 32px;
  padding-bottom: 48px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.footer__col + .footer__col {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.footer__logo {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  width: fit-content;
}

.footer__logo-mark {
  font-family: var(--font-mono);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--cyan);
  text-shadow: 0 0 16px rgba(56, 245, 214, .55);
}

.footer__logo-cn {
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .3em;
  color: var(--text);
}

.footer__tagline {
  max-width: 24em;
  font-size: .95rem;
  line-height: 1.8;
  color: var(--muted);
}

.footer__note {
  max-width: 26em;
  font-size: .82rem;
  line-height: 1.75;
  color: var(--dim);
}

.footer__heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer__heading::before {
  content: "";
  width: 10px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 4px 0;
  font-size: .94rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}

.footer__link:hover {
  color: var(--cyan);
  border-bottom-color: rgba(56, 245, 214, .45);
  transform: translateX(3px);
}

.footer__link-mark {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: #443D66;
}

.footer__link:hover .footer__link-mark { color: var(--cyan); }

.footer__service {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__service-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.footer__service-key {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  line-height: 2;
  color: var(--dim);
}

.footer__service-val {
  font-size: .9rem;
  line-height: 1.7;
  color: var(--text);
  overflow-wrap: anywhere;
}

.footer__service-val--mono {
  font-family: var(--font-mono);
  font-size: .84rem;
  letter-spacing: .02em;
  color: var(--cyan);
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footer__copy {
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--dim);
}

.footer__icp {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--dim);
}

.footer__band {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
  height: 8px;
}

.footer__band-seg {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--magenta));
  opacity: .22;
  transition: opacity .18s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease);
}

.footer__band-seg:nth-child(2n) {
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}

.footer__band-seg:nth-child(3n) {
  background: linear-gradient(90deg, var(--magenta), var(--orange));
}

.footer__band-seg[data-lit="true"] {
  opacity: 1;
  filter: brightness(1.3);
  box-shadow: 0 0 22px rgba(56, 245, 214, .65);
}

/* ---------- 18. Responsive ---------- */
@media (max-width: 1240px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__col + .footer__col { padding-left: 0; border-left: 0; }
}

@media (max-width: 1080px) {
  .col-7,
  .col-8 { grid-column: span 12; }
  .col-5,
  .col-4,
  .col-6 { grid-column: span 6; }
  .col-3,
  .col-2 { grid-column: span 4; }
  .receipt { max-width: 100%; }
}

@media (max-width: 880px) {
  :root { --rail: 0px; --gap: 16px; }

  .rail { display: none; }

  main,
  #main-content { padding-top: 92px; }

  .skip-link { left: 16px; }

  .navdock {
    top: 12px;
    right: 12px;
    gap: 8px;
    padding: 7px 7px 7px 12px;
  }

  .navdock__brand { display: flex; }

  .navdock__toggle { display: inline-flex; }

  .navdock__nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(320px, calc(100vw - 32px));
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(8, 6, 17, .97);
    box-shadow:
      0 30px 64px -26px #000,
      0 0 0 1px rgba(123, 75, 255, .16) inset;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s var(--ease);
  }

  .navdock__nav .navdock__list {
    flex-direction: column;
    align-items: stretch;
  }

  .navdock__link {
    padding: 12px 16px;
    border-radius: 12px;
  }

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

  .site-footer { padding-left: 0; }
  .footer__col + .footer__col { padding-left: 0; border-left: 0; }
}

@media (max-width: 720px) {
  body { font-size: 16px; line-height: 1.8; }

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

  .col-2,
  .col-3,
  .col-4,
  .col-5,
  .col-6,
  .col-7,
  .col-8 { grid-column: span 6; }

  .footer__grid { grid-template-columns: 1fr; gap: 24px; }

  .card { padding: 20px; }

  .section-head { margin-bottom: 26px; }
}

@media (max-width: 460px) {
  .navdock__cta-text { display: none; }

  .navdock__cta { padding: 10px 12px; }

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

/* ---------- 19. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .12s !important;
  }

  .scroll-progress { transition: none; }

  html[data-reveal-ready] [data-reveal] {
    opacity: 1;
    transform: none;
    transition: opacity .12s linear;
  }

  .card:hover,
  .card--slant,
  .card--slant:hover,
  .media--slant,
  .btn:hover,
  .footer__link:hover { transform: none; }
}
