/* =========================================================
   利来看台 /assets/site.css
   夜间球场 · 侧轨导航 · 玻璃信号层
   ========================================================= */

/* ---------- 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, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

/* ---------- Variables ---------- */
:root {
  --ink-900: #061A2B;
  --ink-800: #0B2A44;
  --ink-700: #0F3350;
  --glass: #12344A;
  --cyan: #22F5E0;
  --coral: #FF6B4A;
  --violet: #8B5CF6;
  --ice: #E8F6FF;
  --mist: #8FB3C7;
  --green: #3DDC97;
  --amber: #FFC857;
  --line: rgba(34, 245, 224, 0.18);
  --line-soft: rgba(143, 179, 199, 0.16);
  --rail-w: 112px;
  --header-h: 62px;
  --pad-x: clamp(1.15rem, 4.5vw, 3.75rem);
  --maxw: 1240px;
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 26px;
  --font-display: "Oswald", "Arial Narrow", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.012em;
  color: var(--ice);
  background-color: var(--ink-900);
  background-image:
    repeating-linear-gradient(0deg, rgba(232, 246, 255, 0.024) 0 1px, transparent 1px 4px),
    radial-gradient(58vw 48vw at 10% -12%, rgba(139, 92, 246, 0.22), transparent 66%),
    radial-gradient(52vw 44vw at 92% 4%, rgba(34, 245, 224, 0.15), transparent 64%),
    radial-gradient(70vw 60vw at 74% 104%, rgba(255, 107, 74, 0.12), transparent 72%);
  background-attachment: fixed;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--ice);
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
p { color: var(--ice); }

::selection { background: var(--cyan); color: var(--ink-900); }

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

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--ink-900);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
  transform: translateY(-220%);
  transition: transform 0.22s ease;
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- Header shell ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
}

/* ---------- Desktop rail ---------- */
.rail {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3rem;
  height: 100%;
  padding: 1.5rem 0.7rem 1.35rem;
  background: linear-gradient(180deg, rgba(11, 42, 68, 0.97) 0%, rgba(6, 26, 43, 0.99) 58%, #061A2B 100%);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  overflow-x: hidden;
}
.rail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 36%;
  background: linear-gradient(180deg, var(--cyan), rgba(34, 245, 224, 0));
  pointer-events: none;
}
.rail::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  background: radial-gradient(65% 100% at 50% 100%, rgba(255, 107, 74, 0.18), transparent 72%);
  pointer-events: none;
}

.rail__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.3rem 0 1rem;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
}
.rail__brand-cn {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.02rem;
  letter-spacing: 0.22em;
  line-height: 1;
  color: var(--ice);
  transition: color 0.2s ease;
}
.rail__brand-en {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.8;
}
.rail__brand:hover .rail__brand-cn { color: var(--cyan); }

.rail-nav { width: 100%; }
.rail-nav__list { display: flex; flex-direction: column; gap: 0.15rem; }
.rail-nav__item { width: 100%; }
.rail-nav__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
  padding: 0.5rem 0.2rem;
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--mist);
  transition: color 0.18s ease, background 0.18s ease;
}
.rail-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 0;
  transform: translateY(-50%);
  background: var(--cyan);
  border-radius: 2px;
  transition: height 0.22s ease;
}
.rail-nav__link:hover,
.rail-nav__link:focus-visible {
  color: var(--ice);
  background: rgba(34, 245, 224, 0.09);
}
.rail-nav__link:hover::after,
.rail-nav__link:focus-visible::after { height: 54%; }
.rail-nav__link[aria-current="page"] {
  color: var(--ink-900);
  background: linear-gradient(135deg, var(--cyan) 0%, #6ff8ea 100%);
  box-shadow: 0 10px 26px -16px rgba(34, 245, 224, 0.95), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}
.rail-nav__link[aria-current="page"]::after { height: 0; }
.rail-nav__link[aria-current="page"] .rail-nav__num { color: rgba(6, 26, 43, 0.72); }
.rail-nav__num {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
  opacity: 0.85;
}
.rail-nav__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.rail__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding-top: 0.5rem;
}
.rail__pulse {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.26em;
  color: var(--green);
}
.rail__pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: railPulse 2.6s ease-out infinite;
}
@keyframes railPulse {
  0%   { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(61, 220, 151, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); }
}
.rail__cta {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.55rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--coral) 0%, #ff8f63 100%);
  color: var(--ink-900);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-decoration: none;
  box-shadow: 0 14px 30px -18px rgba(255, 107, 74, 0.95), inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.rail__cta:hover { transform: translateY(-2px); filter: brightness(1.06); }

/* ---------- Mobile topbar ---------- */
.topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
  padding: 0 var(--pad-x);
  background: linear-gradient(180deg, rgba(6, 26, 43, 0.97) 0%, rgba(6, 26, 43, 0.86) 100%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.topbar__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.06rem;
  letter-spacing: 0.13em;
  color: var(--ice);
  text-decoration: none;
}
.topbar__brand-en {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--cyan);
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(18, 52, 74, 0.62);
  color: var(--ice);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.nav-toggle:hover { border-color: rgba(34, 245, 224, 0.55); background: rgba(34, 245, 224, 0.12); color: var(--cyan); }
.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 16px;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform 0.26s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle__text { line-height: 1; }

/* ---------- Drawer ---------- */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(3, 12, 20, 0.74);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-scrim[data-open="true"] { opacity: 1; pointer-events: auto; }

.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  width: min(86vw, 340px);
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.15rem 1.6rem;
  background: linear-gradient(165deg, #0B2A44 0%, #071F33 56%, #061A2B 100%);
  border-right: 1px solid rgba(34, 245, 224, 0.22);
  box-shadow: 26px 0 70px -34px rgba(0, 0, 0, 0.95);
  transform: translateX(-104%);
  visibility: hidden;
  transition: transform 0.34s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.34s;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.nav-drawer[data-open="true"] {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.34s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
}
.nav-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line-soft);
}
.nav-drawer__title {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
}
.nav-drawer__close {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--mist);
  transition: color 0.18s ease, border-color 0.18s ease;
}
.nav-drawer__close:hover { color: var(--cyan); border-color: rgba(34, 245, 224, 0.6); }
.nav-drawer__list {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-top: 1rem;
}
.nav-drawer__link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 0.75rem;
  border-left: 2px solid transparent;
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--ice);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.nav-drawer__link:hover,
.nav-drawer__link:focus-visible {
  background: rgba(34, 245, 224, 0.1);
  border-left-color: var(--cyan);
}
.nav-drawer__link[aria-current="page"] {
  background: rgba(34, 245, 224, 0.15);
  border-left-color: var(--cyan);
  color: var(--cyan);
}
.nav-drawer__num {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  opacity: 0.75;
}
.nav-drawer__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: 1.5rem;
}
.nav-drawer__cta { width: 100%; }
.nav-drawer__note {
  font-size: 0.7rem;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: var(--mist);
  word-break: break-word;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--coral) 0%, #ff8f63 100%);
  color: var(--ink-900);
  box-shadow: 0 16px 34px -20px rgba(255, 107, 74, 0.95);
}
.btn--primary:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn--ghost {
  border-color: var(--line);
  background: rgba(18, 52, 74, 0.44);
  color: var(--ice);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(34, 245, 224, 0.1); }
.btn--sm { padding: 0.55rem 1rem; font-size: 0.75rem; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.container--wide { max-width: 1440px; }
.section { padding-block: clamp(2.5rem, 6vw, 5rem); }
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.4rem, 3vw, 2.4rem);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--cyan);
}
.prose { max-width: 68ch; line-height: 1.8; }
.prose p + p { margin-top: 1em; }
.prose h2, .prose h3 { margin-top: 1.6em; margin-bottom: 0.6em; }
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}
.breadcrumb__link {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.breadcrumb__link:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
.breadcrumb__sep { color: rgba(143, 179, 199, 0.45); }
.breadcrumb__current { color: var(--cyan); }

/* ---------- Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(18, 52, 74, 0.5);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
}
.tag--cyan { color: var(--cyan); border-color: rgba(34, 245, 224, 0.45); background: rgba(34, 245, 224, 0.1); }
.tag--coral { color: var(--coral); border-color: rgba(255, 107, 74, 0.45); background: rgba(255, 107, 74, 0.1); }
.tag--amber { color: var(--amber); border-color: rgba(255, 200, 87, 0.45); background: rgba(255, 200, 87, 0.1); }
.tag--green { color: var(--green); border-color: rgba(61, 220, 151, 0.45); background: rgba(61, 220, 151, 0.1); }

/* ---------- Panels ---------- */
.panel {
  position: relative;
  padding: clamp(1.2rem, 3vw, 2rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--line-soft);
  background: linear-gradient(150deg, rgba(18, 52, 74, 0.78) 0%, rgba(9, 32, 50, 0.92) 100%);
  box-shadow: 0 34px 66px -46px rgba(0, 0, 0, 0.95);
}
.panel--glass {
  border-color: rgba(34, 245, 224, 0.24);
  background: linear-gradient(150deg, rgba(34, 245, 224, 0.11) 0%, rgba(139, 92, 246, 0.11) 56%, rgba(6, 26, 43, 0.66) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.panel--solid { background: var(--ink-800); }

/* ---------- Media containers ---------- */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--media-ratio, 16 / 9);
  border-radius: var(--r-md);
  border: 1px solid var(--line-soft);
  background: linear-gradient(140deg, #0C2E49 0%, #061A2B 100%);
}
.media > img,
.media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
  mix-blend-mode: screen;
  background:
    repeating-linear-gradient(0deg, rgba(232, 246, 255, 0.05) 0 1px, transparent 1px 3px),
    radial-gradient(62% 58% at 18% 8%, rgba(34, 245, 224, 0.2), transparent 66%),
    radial-gradient(60% 50% at 88% 96%, rgba(139, 92, 246, 0.22), transparent 70%);
}
.media--wide { --media-ratio: 21 / 9; }
.media--tall { --media-ratio: 4 / 5; }
.media--square { --media-ratio: 1 / 1; }
.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1rem 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice);
  background: linear-gradient(0deg, rgba(6, 26, 43, 0.92), rgba(6, 26, 43, 0));
}

/* ---------- Scroll meter (JS injected) ---------- */
.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 110;
  background: rgba(232, 246, 255, 0.06);
  pointer-events: none;
}
.scroll-meter__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--violet) 55%, var(--coral) 100%);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 8vw, 7rem);
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--pad-x) 2rem;
  background: linear-gradient(180deg, rgba(11, 42, 68, 0.55) 0%, rgba(7, 28, 45, 0.94) 34%, #05161F 100%);
  border-top: 1px solid rgba(34, 245, 224, 0.22);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--cyan) 26%, var(--violet) 58%, var(--coral) 82%, transparent 100%);
  opacity: 0.75;
}
.site-footer::after {
  content: "";
  position: absolute;
  top: -42%;
  right: -12%;
  width: 62vw;
  height: 62vw;
  max-width: 620px;
  max-height: 620px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2), transparent 66%);
  pointer-events: none;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  max-width: var(--maxw);
  margin-inline: auto;
}
.footer-brand { position: relative; }
.footer-brand__mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: 0.16em;
  color: var(--ice);
}
.footer-brand__mark::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 0.55rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(34, 245, 224, 0.9);
  vertical-align: 0.35em;
}
.footer-brand__tagline {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--mist);
}
.footer-brand__cta { margin-top: 1.3rem; }

.footer-col__label {
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
}
.footer-col__list { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-link {
  position: relative;
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.18s ease;
}
.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}
.footer-link:hover,
.footer-link:focus-visible { color: var(--ice); }
.footer-link:hover::after,
.footer-link:focus-visible::after { transform: scaleX(1); }

.footer-contact { min-width: 0; }
.footer-contact__note {
  margin-bottom: 0.9rem;
  font-size: 0.72rem;
  line-height: 1.75;
  letter-spacing: 0.03em;
  color: var(--mist);
}
.footer-contact__list { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-contact__list li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.footer-contact__key {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
}
.footer-contact__val {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--ice);
  word-break: break-word;
}
.footer-contact__val--mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--cyan);
}

.footer-base {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  max-width: var(--maxw);
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
}
.footer-base__copy,
.footer-base__legal {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: var(--mist);
}
.footer-base__legal { color: rgba(143, 179, 199, 0.85); }
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(18, 52, 74, 0.52);
  color: var(--ice);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.to-top:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .rail { display: none; }
  .topbar { display: flex; }
}

@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--rail-w);
    height: 100vh;
  }
  .topbar { display: none; }
  .nav-drawer,
  .nav-scrim { display: none; }
  .scroll-meter { left: var(--rail-w); }
  .footer-grid { grid-template-columns: 1.6fr 0.8fr 0.8fr 0.8fr 1.5fr; }
}

@media (min-width: 720px) and (max-width: 1023px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (min-width: 1024px) and (max-height: 720px) {
  .rail { gap: 0.9rem; padding-block: 1rem; }
  .rail__brand { padding-bottom: 0.7rem; }
  .rail__brand-cn { font-size: 0.94rem; }
  .rail-nav__link { padding-block: 0.4rem; }
  .rail__cta { padding: 0.75rem 0.45rem; font-size: 0.74rem; }
}

@media (max-width: 480px) {
  .nav-drawer { width: min(92vw, 330px); }
  .footer-base { justify-content: flex-start; }
}

/* ---------- Motion preferences ---------- */
@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__pulse-dot { animation: none; box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.22); }
}
