@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;600&family=Noto+Sans+SC:wght@400;500;600;700&family=Noto+Serif+SC:wght@600;700&family=Outfit:wght@500;600;700&display=swap");
@import url("https://fonts.cdnfonts.com/css/din-alternate");

:root {
  color-scheme: dark;
  --bg: #070918;
  --panel: rgba(13, 16, 39, 0.78);
  --panel-strong: rgba(17, 20, 49, 0.96);
  --line: rgba(138, 156, 255, 0.15);
  --line-strong: rgba(126, 159, 255, 0.34);
  --text: #fcfdff;
  --text-strong: #ffffff;
  --muted: #9aa3c4;
  --muted-light: #c8cfe8;
  --purple: #8b5cf6;
  --purple-bright: #aa7cff;
  --blue: #467dff;
  --cyan: #47d9ff;
  --green: #50e3a4;
  --gold: #ffc86b;
  --danger: #ff7a9e;
  --seg-nav-active: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(70, 125, 255, 0.9));
  /* 液态玻璃：更透的乳白磨砂 */
  --kpi-face: rgba(255, 255, 255, 0.08);
  --kpi-face-hover: rgba(255, 255, 255, 0.14);
  --kpi-border: rgba(255, 255, 255, 0.36);
  --kpi-border-hover: rgba(255, 255, 255, 0.52);
  --kpi-blur: blur(56px) saturate(240%) brightness(1.08);
  --chip-face: rgba(255, 255, 255, 0.055);
  --chip-border: rgba(255, 255, 255, 0.26);
  --chip-border-hover: rgba(255, 255, 255, 0.4);
  --chip-blur: blur(20px) saturate(180%);
  /* 3D 厚重液态玻璃 */
  --liquid-shade: rgba(139, 92, 246, 0.08);
  --liquid-glow: rgba(139, 92, 246, 0.25);
  --liquid-border: rgba(255, 255, 255, 0.2);
  --liquid-border-hover: rgba(255, 255, 255, 0.35);
  --liquid-blur: blur(20px) saturate(180%);
  /* 兼容旧引用 */
  --glass-bg: var(--chip-face);
  --glass-bg-strong: var(--kpi-face);
  --glass-border: var(--liquid-border);
  --glass-border-hover: var(--liquid-border-hover);
  --glass-highlight: rgba(255, 255, 255, 0.4);
  --glass-inset-bottom: rgba(0, 0, 0, 0.2);
  --glass-tint: rgba(255, 255, 255, 0.06);
  --glass-glow: var(--liquid-glow);
  --glass-shadow: none;
  --glass-shadow-sm: none;
  --glass-blur: var(--liquid-blur);
  --header-h: 72px;
  --cockpit-turn-duration: 640ms;
  /* 中心加宽，侧屏收窄；仍靠 translateZ/rotateY 做景深 */
  --cockpit-screen-width: min(76vw, 1320px);
  --cockpit-side-width: min(20vw, 260px);
  --cockpit-screen-height: min(68vh, 700px);
  /* 锁定三屏位姿，避免 hover / 中断动画把角度拉歪 */
  --cockpit-pose-center: translate(-50%, -48%);
  --cockpit-pose-left: translate(-50%, -48%) translateX(calc(-0.52 * var(--cockpit-screen-width) - 42%)) translateZ(-200px) rotateY(32deg) scale(0.92);
  --cockpit-pose-right: translate(-50%, -48%) translateX(calc(0.52 * var(--cockpit-screen-width) + 42%)) translateZ(-200px) rotateY(-32deg) scale(0.92);
  --cockpit-pose-left-far: translate(-50%, -48%) translateX(calc(-0.72 * var(--cockpit-screen-width) - 50%)) translateZ(-280px) rotateY(40deg) scale(0.8);
  --cockpit-pose-right-far: translate(-50%, -48%) translateX(calc(0.72 * var(--cockpit-screen-width) + 50%)) translateZ(-280px) rotateY(-40deg) scale(0.8);
  /* 角色字体：标题衬线 / Tab 几何无衬线 / 表头正黑 / 正文系统黑体 / 数字等宽 */
  --font-title: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-tab: "Outfit", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-thead: "Noto Sans SC", "Source Han Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: var(--font-body);
  --font-metric: "DIN Alternate", "DIN Condensed", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-family: var(--font-display);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -15%, rgba(91, 76, 255, 0.2), transparent 35%),
    linear-gradient(180deg, #080a1b 0%, #060716 50%, #080918 100%);
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

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

.ambient {
  position: fixed;
  z-index: -2;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
  pointer-events: none;
}

.ambient--one {
  top: 10%;
  right: -220px;
  background: #3f78ff;
}

.ambient--two {
  bottom: 2%;
  left: -240px;
  background: #8a42ff;
}

.grid-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.035) 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 38%, rgba(255, 255, 255, 0.028) 0 1px, transparent 1.5px),
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 22px 22px, 28px 28px, 32px 32px, 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.grid-noise::after {
  position: absolute;
  inset: -6% 0;
  content: "";
  pointer-events: none;
  opacity: 0.72;
  transform: rotate(-12deg);
  background-image:
    radial-gradient(circle, rgba(71, 217, 255, 0.22) 1.35px, transparent 2.1px),
    radial-gradient(circle, rgba(170, 124, 255, 0.16) 1.1px, transparent 1.9px),
    radial-gradient(circle, rgba(255, 255, 255, 0.14) 1.25px, transparent 2px);
  background-size: 12px 12px, 12px 12px, 12px 12px;
  background-position: 0 0, 6px 6px, 0 0;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 960 240'%3E%3Ctext x='480' y='165' text-anchor='middle' font-size='128' font-weight='700' font-family='PingFang SC,Microsoft YaHei,sans-serif' fill='black' letter-spacing='24'%3E%E5%B9%B3%E8%A1%8C%E5%AE%87%E5%AE%99%3C/text%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 960 240'%3E%3Ctext x='480' y='165' text-anchor='middle' font-size='128' font-weight='700' font-family='PingFang SC,Microsoft YaHei,sans-serif' fill='black' letter-spacing='24'%3E%E5%B9%B3%E8%A1%8C%E5%AE%87%E5%AE%99%3C/text%3E%3C/svg%3E");
  -webkit-mask-size: min(110vw, 1400px) auto;
  mask-size: min(110vw, 1400px) auto;
  -webkit-mask-position: center 36%;
  mask-position: center 36%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  user-select: none;
  animation: brandMatrixPulse 7.5s ease-in-out infinite;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  padding: 0 clamp(24px, 4vw, 72px);
  border-bottom: 1px solid rgba(144, 157, 255, 0.12);
  background: rgba(6, 8, 24, 0.72);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(22px) saturate(140%);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 12px;
}

.brand__mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(138, 163, 255, 0.32);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(112, 80, 255, 0.28), rgba(48, 108, 255, 0.16));
  box-shadow: inset 0 0 22px rgba(129, 98, 255, 0.14), 0 0 28px rgba(74, 92, 255, 0.12);
}

.brand__mark svg,
.brand__mark img {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: #c8d4ff;
  stroke-width: 1.4;
}

.brand__mark img {
  object-fit: contain;
  display: block;
  stroke: none;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--text-strong);
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand small {
  margin-top: 3px;
  color: var(--muted-light);
  font-size: 10px;
  letter-spacing: 0.22em;
}

.topbar__center {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #727c9f;
  font-size: 9px;
  letter-spacing: 0.32em;
}

.topbar__line {
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #536491);
}

.topbar__line:last-child {
  transform: rotate(180deg);
}

.topbar__right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
}

.rank-comparison-filter {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  color: #9ba5c8;
  font-size: 10px;
  letter-spacing: 0.04em;
  cursor: pointer;
  user-select: none;
}

.rank-comparison-filter input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.rank-comparison-filter__track {
  position: relative;
  width: 34px;
  height: 18px;
  border: 1px solid rgba(138, 156, 255, 0.3);
  border-radius: 999px;
  background: rgba(18, 23, 53, 0.86);
  transition: border-color 180ms ease, background 180ms ease;
}

.rank-comparison-filter__track i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8791b6;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.rank-comparison-filter input:checked + .rank-comparison-filter__track {
  border-color: rgba(104, 128, 255, 0.66);
  background: rgba(75, 89, 218, 0.38);
}

.rank-comparison-filter input:checked + .rank-comparison-filter__track i {
  background: #e5e9ff;
  box-shadow: 0 0 9px rgba(102, 137, 255, 0.8);
  transform: translateX(16px);
}

.rank-comparison-filter input:focus-visible + .rank-comparison-filter__track {
  outline: 2px solid rgba(109, 207, 255, 0.72);
  outline-offset: 2px;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(89, 225, 173, 0.18);
  border-radius: 99px;
  color: #96edcb;
  background: rgba(52, 197, 142, 0.07);
  font-size: 11px;
}

.demo-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

.date-stamp {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.leaderboard-section {
  position: relative;
  display: flex;
  min-height: calc(100svh - var(--header-h));
  scroll-margin-top: var(--header-h);
  scroll-snap-align: start;
  padding: clamp(30px, 4vh, 52px) clamp(46px, 6vw, 108px) clamp(28px, 4vh, 52px);
  isolation: isolate;
}

.globe-section {
  position: relative;
  display: flex;
  min-height: calc(100svh - var(--header-h));
  scroll-margin-top: var(--header-h);
  scroll-snap-align: start;
  padding:
    clamp(16px, 2vh, 28px)
    clamp(24px, 4vw, 72px)
    clamp(20px, 3vh, 36px);
  isolation: isolate;
}

.globe-section::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 45% 50%, rgba(24, 60, 82, 0.18), transparent 46%),
    linear-gradient(180deg, #02060c 0%, #040a12 100%);
}

.globe-section__inner {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(8px, 1.2vh, 16px);
  width: 100%;
  min-height: calc(100svh - var(--header-h) - clamp(36px, 5vh, 64px));
}

.globe-section__head {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.globe-section__head h1 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(27px, 2.45vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.globe-section__meta {
  margin: 8px 0 0;
  color: #7f8cb3;
  font-size: 13px;
}

.globe-stage {
  position: relative;
  min-height: clamp(320px, 58vh, 720px);
  border: 1px solid rgba(90, 210, 230, 0.28);
  border-radius: 4px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 48% 46%, rgba(24, 90, 120, 0.5), transparent 54%),
    radial-gradient(ellipse at 50% 108%, rgba(18, 70, 98, 0.34), transparent 44%),
    linear-gradient(180deg, #01060c 0%, #021018 48%, #01070e 100%);
  box-shadow:
    inset 0 0 0 1px rgba(120, 220, 240, 0.08),
    inset 0 0 90px rgba(40, 130, 170, 0.22),
    inset 0 0 160px rgba(8, 36, 54, 0.45),
    0 0 40px rgba(40, 160, 190, 0.16),
    0 18px 40px rgba(0, 0, 0, 0.4);
}

.globe-stage--holo {
  display: block;
}

.globe-stage__fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.globe-stage__grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(80, 180, 210, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 180, 210, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 48%, #000 28%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 48%, #000 28%, transparent 72%);
}

.globe-stage__halo {
  position: absolute;
  left: 50%;
  top: 48%;
  width: min(78%, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(90, 210, 235, 0.2) 0%, rgba(40, 140, 180, 0.1) 36%, transparent 68%);
  box-shadow:
    0 0 70px rgba(61, 184, 212, 0.22),
    inset 0 0 50px rgba(61, 184, 212, 0.12);
  transform: translate(-50%, -50%) scale(0.98);
  animation: globe-halo-breathe 5.5s ease-in-out infinite;
}

.globe-stage__sweep {
  position: absolute;
  inset: -10%;
  background: conic-gradient(
    from 210deg at 50% 48%,
    transparent 0deg,
    rgba(90, 210, 235, 0.07) 36deg,
    transparent 88deg,
    transparent 360deg
  );
  animation: globe-sweep-rotate 14s linear infinite;
  mix-blend-mode: screen;
}

.globe-stage__radar {
  position: absolute;
  left: 50%;
  top: 48%;
  width: min(70%, 640px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(120, 230, 250, 0.16),
    transparent 55deg,
    transparent 360deg
  );
  mask: radial-gradient(circle, transparent 42%, #000 43%, #000 70%, transparent 71%);
  -webkit-mask: radial-gradient(circle, transparent 42%, #000 43%, #000 70%, transparent 71%);
  transform: translate(-50%, -50%) rotate(0deg);
  animation: globe-radar-spin 9s linear infinite;
  mix-blend-mode: screen;
  opacity: 0.65;
}

.globe-stage__scanlines {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background: repeating-linear-gradient(
    to bottom,
    rgba(160, 230, 250, 0.14) 0,
    rgba(160, 230, 250, 0.14) 1px,
    transparent 1px,
    transparent 3px
  );
  animation: globe-scan-drift 7s linear infinite;
  mix-blend-mode: soft-light;
}

.globe-stage__stars {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(200, 240, 255, 0.75), transparent),
    radial-gradient(1px 1px at 78% 22%, rgba(180, 230, 250, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 64% 70%, rgba(210, 245, 255, 0.7), transparent),
    radial-gradient(1px 1px at 28% 76%, rgba(170, 220, 240, 0.45), transparent),
    radial-gradient(1px 1px at 88% 58%, rgba(190, 235, 250, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 42% 36%, rgba(210, 245, 255, 0.6), transparent);
  animation: globe-stars-twinkle 7s ease-in-out infinite;
}

.globe-stage__frame {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(110, 210, 230, 0.14);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.globe-stage__frame::before,
.globe-stage__frame::after {
  position: absolute;
  width: 28px;
  height: 28px;
  content: "";
  border: 2px solid rgba(140, 230, 250, 0.7);
  box-shadow: 0 0 12px rgba(80, 200, 230, 0.35);
}

.globe-stage__frame::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.globe-stage__frame::after {
  right: -1px;
  bottom: -1px;
  border-left: 0;
  border-top: 0;
}

.globe-stage__hud {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(170, 225, 240, 0.78);
  font-family: var(--font-metric, ui-monospace, Menlo, monospace);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(80, 200, 230, 0.35);
}

.globe-stage__hud i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6ad4ec;
  box-shadow: 0 0 10px rgba(106, 212, 236, 0.9);
  animation: globe-hud-blink 2.4s ease-in-out infinite;
}

.globe-stage__hud em {
  color: rgba(130, 180, 200, 0.7);
  font-style: normal;
}

.globe-stage__hud b {
  color: #d8f6ff;
  font-weight: 650;
}

.globe-stage__hud--tl { top: 16px; left: 18px; }
.globe-stage__hud--tr { top: 16px; right: 18px; }
.globe-stage__hud--bl { bottom: 16px; left: 18px; }
.globe-stage__hud--br { bottom: 16px; right: 18px; }

@keyframes globe-halo-breathe {
  0%, 100% { opacity: 0.72; transform: translate(-50%, -50%) scale(0.98); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.03); }
}

@keyframes globe-sweep-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes globe-radar-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes globe-stars-twinkle {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

@keyframes globe-scan-drift {
  from { transform: translateY(0); }
  to { transform: translateY(3px); }
}

@keyframes globe-hud-blink {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.globe-stage__canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: clamp(320px, 58vh, 720px);
}

.globe-stage__canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.globe-side {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 18px 14px 16px 10px;
  border-left: 1px solid rgba(61, 184, 212, 0.12);
  background:
    linear-gradient(180deg, rgba(0, 10, 18, 0.72), rgba(0, 6, 12, 0.55));
  backdrop-filter: blur(10px);
}

.globe-focus-card {
  --city-color: #3db8d4;
  min-height: 112px;
  padding: 14px 14px 16px;
  border: 1px solid rgba(61, 184, 212, 0.2);
  border-radius: 4px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--city-color) 10%, transparent), transparent 60%),
    rgba(0, 10, 18, 0.78);
}

.globe-focus-card.is-active {
  border-color: color-mix(in srgb, var(--city-color) 55%, transparent);
}

.globe-focus-card__hint {
  margin: 28px 0 0;
  color: #5f7f96;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.globe-focus-card__kicker {
  margin: 0 0 8px;
  color: color-mix(in srgb, var(--city-color) 80%, #fff);
  font-family: var(--font-thead);
  font-size: 10px;
  letter-spacing: 0.32em;
}

.globe-focus-card__city {
  margin: 0;
  color: #e8f6fa;
  font-family: var(--font-title);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.globe-focus-card__count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 10px 0 0;
  color: #7f9db0;
}

.globe-focus-card__count strong {
  color: var(--city-color);
  font-family: var(--font-metric, ui-monospace, Menlo, monospace);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
}

.globe-focus-card__count span {
  font-size: 13px;
}

.globe-side__list {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.globe-side__item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 2px;
  color: #b7d3e0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.globe-side__item em {
  color: #4f7388;
  font-family: var(--font-metric, ui-monospace, Menlo, monospace);
  font-size: 11px;
  font-style: normal;
}

.globe-side__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.globe-side__item strong {
  color: #6f91a6;
  font-family: var(--font-metric, ui-monospace, Menlo, monospace);
  font-size: 12px;
  font-weight: 500;
}

.globe-side__item:hover,
.globe-side__item.is-active {
  --city-color: #3db8d4;
  border-color: color-mix(in srgb, var(--city-color) 35%, transparent);
  background: color-mix(in srgb, var(--city-color) 8%, transparent);
}

.globe-side__item.is-active strong {
  color: var(--city-color);
}

/* globe.gl 会改写最外层 transform，偏移必须放在内层 */
.globe-html-anchor {
  position: relative;
  width: 0;
  height: 0;
  overflow: visible;
  pointer-events: none;
}

.globe-place-label {
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(150, 186, 204, 0.38);
  font-family: var(--font-tab, "PingFang SC", "Microsoft YaHei", sans-serif);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  text-shadow: none;
  transform: translate(-50%, -50%);
}

.globe-place-label--country {
  color: rgba(140, 176, 194, 0.32);
  font-size: 10px;
}

.globe-place-label--admin1 {
  color: rgba(130, 166, 184, 0.26);
  font-size: 9px;
}

.globe-place-label--province {
  color: rgba(158, 194, 210, 0.42);
  font-size: 11px;
}

.globe-place-label--prefecture {
  color: rgba(132, 168, 186, 0.28);
  font-size: 9px;
}

.globe-city-dot {
  --dot-size: 10px;
  --dot-delay: 0s;
  position: absolute;
  left: 0;
  top: 0;
  width: var(--dot-size);
  height: var(--dot-size);
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: globe-dot-breathe 2.8s ease-in-out infinite;
  animation-delay: var(--dot-delay);
}

.globe-city-dot__halo {
  position: absolute;
  inset: -80%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(210, 248, 255, 0.5) 0%,
    rgba(61, 184, 212, 0.16) 42%,
    transparent 72%
  );
}

.globe-city-dot__core {
  position: absolute;
  inset: 26%;
  border-radius: 50%;
  background: #f4fdff;
  box-shadow:
    0 0 6px rgba(216, 246, 255, 0.95),
    0 0 14px rgba(61, 184, 212, 0.55);
}

@keyframes globe-dot-breathe {
  0%, 100% { opacity: 0.7; filter: brightness(0.92); }
  50% { opacity: 1; filter: brightness(1.22); }
}

.globe-count-label {
  position: absolute;
  left: 0;
  top: 0;
  min-width: 1.2em;
  padding: 0 2px;
  color: #f2fbff;
  font-family: var(--font-metric, ui-monospace, Menlo, monospace);
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  text-shadow:
    0 0 8px rgba(180, 240, 255, 0.8),
    0 0 18px rgba(61, 184, 212, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.85);
  transform: translate(-50%, calc(-100% - 10px));
  animation: globe-count-glow 2.8s ease-in-out infinite;
}

@keyframes globe-count-glow {
  0%, 100% {
    text-shadow:
      0 0 8px rgba(180, 240, 255, 0.75),
      0 0 18px rgba(61, 184, 212, 0.35),
      0 1px 2px rgba(0, 0, 0, 0.85);
  }
  50% {
    text-shadow:
      0 0 12px rgba(210, 250, 255, 0.95),
      0 0 26px rgba(61, 184, 212, 0.5),
      0 1px 2px rgba(0, 0, 0, 0.85);
  }
}

.globe-float-chip {
  --city-color: #3db8d4;
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 96px;
  padding: 8px 11px;
  border: 1px solid color-mix(in srgb, var(--city-color) 65%, transparent);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  color: #e8f6fa;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--city-color) 18%, transparent), transparent 55%),
    rgba(0, 14, 22, 0.9);
  box-shadow:
    0 0 24px color-mix(in srgb, var(--city-color) 32%, transparent),
    0 8px 20px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  transform: translate(10%, -85%);
  backdrop-filter: blur(8px);
}

.globe-float-chip strong {
  font-size: 13px;
  font-weight: 650;
}

.globe-float-chip span {
  color: color-mix(in srgb, var(--city-color) 90%, #fff);
  font-family: var(--font-metric, ui-monospace, Menlo, monospace);
  font-size: 12px;
}

.globe-stage__fallback {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #8a97bb;
  font-size: 14px;
  text-align: center;
  background: rgba(5, 8, 22, 0.55);
}

.globe-stage__fallback[hidden] {
  display: none !important;
}

body.online-page .globe-section {
  align-items: stretch;
  padding:
    clamp(8px, 1vh, 14px)
    clamp(24px, 4vw, 72px)
    clamp(16px, 2.5vh, 28px);
}

/* 桌面端：三屏各占一视口；地球框吃掉标题下剩余空间，避免 58vh/720 把首屏撑高 */
@media (min-width: 821px) {
  body.online-page {
    --online-pad-x: clamp(20px, 3vw, 56px);
    --online-pad-top: clamp(6px, 0.9vh, 12px);
    --online-pad-bottom: clamp(8px, 1.4vh, 18px);
    --online-heading-slot: clamp(30px, 4.4vh, 46px);
    --online-rail-slot: 40px;
    --online-available: calc(
      100svh
      - var(--header-h)
      - var(--online-pad-top)
      - var(--online-pad-bottom)
      - var(--online-heading-slot)
    );
    --rank-row-h: clamp(34px, 4.35vh, 47px);
    --rank-row-h-1: clamp(42px, 5.2vh, 58px);
    --rank-row-h-2: clamp(42px, 5.2vh, 58px);
    --rank-row-h-3: clamp(42px, 5.2vh, 58px);
    --rank-thead-h: clamp(30px, 3.5vh, 38px);
    --board-head-h: clamp(48px, 5.8vh, 64px);
    --page-dots-h: clamp(40px, 4.8vh, 52px);
    --screen-pad-y: clamp(18px, 2.6vh, 30px);
    --cockpit-screen-width: min(
      calc(100vw - (var(--online-pad-x) * 2) - 48px),
      1480px
    );
    --cockpit-side-width: min(18vw, 240px);
    --cockpit-fit-height: min(
      calc(
        var(--screen-pad-y)
        + var(--board-head-h)
        + var(--rank-thead-h)
        + var(--rank-row-h-1)
        + var(--rank-row-h-2)
        + var(--rank-row-h-3)
        + ((var(--rank-page-rows) - 3) * var(--rank-row-h))
        + var(--page-dots-h)
      ),
      calc(var(--online-available) - var(--online-rail-slot))
    );
    --cockpit-screen-height: var(--cockpit-fit-height);
  }

  body.online-page .globe-section,
  body.online-page .leaderboard-section {
    box-sizing: border-box;
    height: calc(100svh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
    max-height: calc(100svh - var(--header-h));
    padding:
      var(--online-pad-top)
      var(--online-pad-x)
      var(--online-pad-bottom);
    /* 纵向锁在一屏；横向保持可见，避免裁掉 3D 侧屏 */
    overflow-x: visible;
    overflow-y: clip;
  }

  body.online-page .globe-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  body.online-page .globe-section__inner,
  body.online-page .section-inner {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: clamp(4px, 0.8vh, 10px);
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    margin: 0;
  }

  body.online-page .globe-section__head,
  body.online-page .section-heading {
    justify-content: flex-start;
    align-items: flex-start;
    align-self: start;
    width: 100%;
    margin: 0;
    text-align: left;
  }

  body.online-page .globe-section__head h1,
  body.online-page .section-heading h1,
  body.online-page .section-heading h2 {
    font-size: clamp(22px, 2.1vw + 0.4vh, 36px);
    line-height: 1.15;
  }

  body.online-page .title-index {
    margin-right: clamp(8px, 0.8vw, 12px);
  }

  body.online-page .globe-stage {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
  }

  body.online-page .globe-stage__canvas {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  body.online-page .leaderboard-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  body.online-page .leader-deck--carousel {
    width: 100%;
    height: 100%;
    min-height: 0;
    gap: 4px;
  }

  body.online-page .cockpit-screen {
    min-height: 0;
  }

  body.online-page .cockpit-screen.pos-center {
    height: var(--cockpit-fit-height);
    min-height: 0;
    max-height: 100%;
  }

  body.online-page .cockpit-screen.pos-left,
  body.online-page .cockpit-screen.pos-right {
    min-height: 0;
  }
}

@media (max-width: 820px) {
  .globe-section {
    min-height: 0;
    padding: 12px 16px 20px;
  }

  .globe-section__inner {
    min-height: 0;
  }

  .globe-section__head h1 {
    font-size: clamp(22px, 6vw, 30px);
  }

  .globe-stage {
    height: min(62svh, 480px);
    min-height: 240px;
    max-height: 480px;
    contain: layout size;
  }

  .globe-stage__canvas {
    height: 100%;
    min-height: 0;
  }

  .globe-count-label,
  .globe-city-dot {
    animation: none;
  }

  .globe-stage__sweep,
  .globe-stage__radar,
  .globe-stage__scanlines {
    animation: none;
    mix-blend-mode: normal;
  }

  .globe-stage__hud i {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .globe-stage__halo,
  .globe-stage__sweep,
  .globe-stage__radar,
  .globe-stage__scanlines,
  .globe-stage__stars,
  .globe-stage__hud i,
  .globe-count-label,
  .globe-city-dot {
    animation: none !important;
  }
}

.leaderboard-section::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 45%, rgba(91, 78, 255, 0.11), transparent 38%),
    radial-gradient(circle at 18% 82%, rgba(48, 103, 210, 0.05), transparent 28%),
    linear-gradient(90deg, transparent 49.9%, rgba(145, 161, 255, 0.06) 50%, transparent 50.1%);
}

.leaderboard-section:nth-child(2)::before {
  background:
    radial-gradient(circle at 50% 45%, rgba(40, 128, 255, 0.095), transparent 40%),
    radial-gradient(circle at 82% 78%, rgba(91, 78, 255, 0.05), transparent 26%),
    linear-gradient(90deg, transparent 49.9%, rgba(145, 161, 255, 0.06) 50%, transparent 50.1%);
}

.section-inner {
  width: min(1680px, 100%);
  min-width: 0;
  margin: auto;
  overflow: visible;
}

.leaderboard-section .leader-deck--carousel {
  /* 允许左右 3D 探出，但纵向裁掉反射/位移带来的假滚动高度 */
  overflow-x: visible;
  overflow-y: clip;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin: 0 0 clamp(18px, 2.5vh, 30px);
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 10px;
  color: #7785ad;
  font-family: var(--font-thead);
  font-size: 10px;
  letter-spacing: 0.28em;
}

.section-kicker::before {
  width: 26px;
  height: 1px;
  content: "";
  background: var(--purple-bright);
  box-shadow: 0 0 10px var(--purple);
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(27px, 2.45vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.title-index {
  margin-right: 12px;
  color: rgba(154, 166, 215, 0.23);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 400;
}

.section-stats {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: max-content;
  padding-bottom: 4px;
}

.section-stat {
  position: relative;
  padding-left: 22px;
}

.section-stat::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 4px;
  height: 28px;
  border-radius: 99px;
  content: "";
  transform: translateY(-50%);
  background: linear-gradient(var(--purple-bright), var(--blue));
  box-shadow: 0 0 12px rgba(113, 94, 255, 0.7);
}

.section-stat strong,
.section-stat span {
  display: block;
}

.section-stat strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 18px;
  font-weight: 500;
}

.section-stat span {
  margin-top: 2px;
  color: #7782a3;
  font-size: 10px;
  letter-spacing: 0.12em;
}

/* 分页榜：前三等高加高行 + 其余常規行算死，刚好无纵向滚动条 */
:root {
  --rank-page-rows: 10;
  --rank-row-h: 47px;
  --rank-row-h-1: 58px;
  --rank-row-h-2: 58px;
  --rank-row-h-3: 58px;
  --rank-thead-h: 38px;
  --board-head-h: 64px;
  --page-dots-h: 52px;
  --screen-pad-y: 30px;
  --cockpit-fit-height: calc(
    var(--screen-pad-y)
    + var(--board-head-h)
    + var(--rank-thead-h)
    + var(--rank-row-h-1)
    + var(--rank-row-h-2)
    + var(--rank-row-h-3)
    + ((var(--rank-page-rows) - 3) * var(--rank-row-h))
    + var(--page-dots-h)
  );
}

/* 线上驾驶舱：标题贴左上；中心屏用 fit 高度（桌面尺寸见上方 min-width:821 自适应块） */
body.online-page {
  --cockpit-screen-width: min(88vw, 1480px);
  --cockpit-screen-height: var(--cockpit-fit-height);
  --rank-ornament-size: min(24vw, 38vh);
  --rank-ornament-pos: right 8vw top -6vh;
}

body.online-page .leaderboard-section {
  align-items: stretch;
  overflow: visible;
  padding:
    clamp(8px, 1vh, 14px)
    clamp(24px, 4vw, 72px)
    clamp(16px, 2.5vh, 28px);
  background-image: url("../assets/rank-ornament.png");
  background-repeat: no-repeat;
  background-position: var(--rank-ornament-pos);
  background-size: var(--rank-ornament-size) auto;
}

@media (max-width: 820px) {
  body.online-page .leaderboard-section {
    background-image: none;
  }
}

body.online-page .section-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  margin: 0;
}

body.online-page .section-heading {
  align-items: flex-start;
  justify-content: flex-start;
  margin-bottom: clamp(4px, 0.8vh, 10px);
  text-align: left;
}

body.online-page .leader-deck--carousel {
  gap: 4px;
  height: calc(var(--cockpit-fit-height) + 44px);
}

body.online-page .cockpit-board-rail {
  padding-bottom: 4px;
}

body.online-page .cockpit-screen {
  min-height: 0;
}

body.online-page .cockpit-screen.pos-center {
  height: var(--cockpit-fit-height);
  min-height: 0;
}

body.online-page .cockpit-screen.pos-center .cockpit-screen-content {
  padding-top: clamp(10px, 1.4vh, 14px);
  padding-bottom: clamp(12px, 1.6vh, 16px);
}

body.online-page .board-head {
  height: auto;
  min-height: var(--board-head-h);
  padding-top: 0;
  padding-bottom: 0;
}

body.online-page .board-title-line {
  flex-wrap: wrap;
  row-gap: 8px;
}

body.online-page .offline-board-periods {
  flex: 0 1 auto;
}

body.online-page .rank-table th {
  height: var(--rank-thead-h);
}

body.online-page .rank-table td {
  height: var(--rank-row-h);
}

body.online-page .rank-table tr.rank-row--1 td {
  height: var(--rank-row-h-1);
}

body.online-page .rank-table tr.rank-row--2 td {
  height: var(--rank-row-h-2);
}

body.online-page .rank-table tr.rank-row--3 td {
  height: var(--rank-row-h-3);
}

/* 分页模式：装下整页 10 行，隐藏纵向滚动条；分页条贴榜单底部 */
body.online-page .active-board:not(.is-limit-all) .table-wrap {
  overflow: hidden;
}

body.online-page .active-board > .rank-page-dots {
  flex: 0 0 auto;
  margin-top: auto;
  padding: 10px clamp(14px, 2vw, 24px) 14px;
  border-top: 1px solid rgba(132, 146, 224, 0.1);
  background: transparent;
}

/* 全量：卡片高度与 TOP 10 相同，只在表内滚动 */
body.online-page .leaderboard-section.is-limit-all .table-wrap {
  overflow: auto;
}

/* 桌面端榜单：转盘吃掉标题/指标栏下的剩余视口，中心榜垂直居中，
   从而在 Tab 与表格之间留出空隙（不要把表格顶到 Tab 正下方） */
@media (min-width: 821px) {
  body.online-page .leaderboard-section {
    align-items: stretch;
  }

  body.online-page .section-inner {
    flex: 1 1 0;
    min-height: 0;
    height: auto;
  }

  body.online-page .leader-deck--carousel {
    height: 100%;
    min-height: 0;
  }

  body.online-page .section-heading {
    margin-bottom: clamp(4px, 0.8vh, 10px);
  }
}

.leader-deck {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(690px, 4.8fr) minmax(125px, 0.9fr);
  gap: 12px;
  height: clamp(680px, 74vh, 780px);
  min-height: 0;
  padding: 12px;
  border: 1px solid rgba(136, 151, 255, 0.2);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(91, 78, 255, 0.06), transparent 42%),
    rgba(9, 11, 30, 0.62);
  box-shadow:
    0 32px 100px rgba(0, 0, 0, 0.28),
    inset 0 1px rgba(255, 255, 255, 0.035),
    inset 0 0 80px rgba(65, 51, 150, 0.045);
  backdrop-filter: blur(20px);
}

.leader-deck--carousel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.leader-deck--carousel::before,
.leader-deck--carousel::after {
  display: none;
}

.cockpit-board-rail {
  position: relative;
  z-index: 9;
  display: block;
  flex: 0 0 auto;
  width: 100%;
  max-width: var(--cockpit-screen-width);
  margin: 0 auto;
  padding: 0 0 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border-bottom: 1px solid rgba(138, 156, 255, 0.1);
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
  transition: scrollbar-color 160ms ease;
}

.cockpit-board-rail:hover,
.cockpit-board-rail:focus-within {
  scrollbar-color: rgba(126, 159, 255, 0.45) transparent;
}

.cockpit-board-rail::-webkit-scrollbar {
  height: 4px;
}

.cockpit-board-rail::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: transparent;
  transition: background 160ms ease;
}

.cockpit-board-rail:hover::-webkit-scrollbar-thumb,
.cockpit-board-rail:focus-within::-webkit-scrollbar-thumb {
  background: rgba(126, 159, 255, 0.45);
}

.cockpit-board-rail__inner {
  display: flex;
  gap: 4px;
  width: max-content;
  min-width: 100%;
  justify-content: safe center;
  padding: 0 8px;
}

.cockpit-board-chip {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 12px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(154, 163, 196, 0.72);
  font-family: var(--font-tab);
  cursor: pointer;
  transition: color 280ms ease;
}

.cockpit-board-chip::after {
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 2px;
  content: "";
  border-radius: 2px;
  background: linear-gradient(90deg, var(--purple-bright), var(--cyan));
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 280ms ease, transform 320ms cubic-bezier(0.22, 0.75, 0.24, 1);
}

.cockpit-board-chip em {
  color: inherit;
  opacity: 0.55;
  font-family: var(--font-metric);
  font-size: 10px;
  font-style: normal;
  transition: opacity 280ms ease;
}

.cockpit-board-chip span {
  max-width: 11em;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cockpit-board-chip:hover,
.cockpit-board-chip:focus-visible {
  color: rgba(236, 240, 255, 0.92);
  outline: 0;
}

.cockpit-board-chip:hover em,
.cockpit-board-chip:focus-visible em {
  opacity: 0.75;
}

.cockpit-board-chip.is-active {
  color: #f4f6ff;
}

.cockpit-board-chip.is-active em {
  opacity: 0.8;
  color: var(--cyan);
}

.cockpit-board-chip.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.leader-deck::before,
.leader-deck::after {
  position: absolute;
  z-index: 2;
  width: 74px;
  height: 1px;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(110, 130, 255, 0.74));
}

.leader-deck::before {
  top: -1px;
  left: 9%;
}

.leader-deck::after {
  right: 9%;
  bottom: -1px;
  transform: rotate(180deg);
}

.cockpit-viewer {
  position: relative;
  isolation: isolate;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  height: 100%;
  perspective: 1500px;
  perspective-origin: 50% 47%;
  opacity: 1;
  transition: opacity 180ms ease;
}

.cockpit-viewer::before {
  position: absolute;
  inset: 8% 7% 5%;
  z-index: 0;
  content: "";
  border-radius: 44%;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(70, 125, 255, 0.3), transparent 55%),
    radial-gradient(ellipse at 24% 52%, rgba(139, 92, 246, 0.2), transparent 48%),
    radial-gradient(ellipse at 78% 48%, rgba(71, 217, 255, 0.16), transparent 45%);
  filter: blur(30px);
  opacity: 0.78;
  pointer-events: none;
  animation: cockpitAura 4.8s ease-in-out infinite;
}

.cockpit-viewer::after {
  position: absolute;
  right: 11%;
  bottom: 4%;
  left: 11%;
  z-index: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(105, 95, 255, 0.75), rgba(71, 217, 255, 0.9), transparent);
  box-shadow: 0 0 16px rgba(70, 125, 255, 0.75), 0 0 42px rgba(71, 217, 255, 0.42);
  opacity: 0.72;
  pointer-events: none;
  animation: cockpitFloorBeam 3.8s ease-in-out infinite;
}

.cockpit-viewer.is-fading {
  opacity: 0;
}

.cockpit-carousel {
  position: absolute;
  inset: 0;
  z-index: 1;
  transform-style: preserve-3d;
}

.cockpit-carousel.is-turning {
  pointer-events: none;
}

.cockpit-carousel.is-enter-prep .cockpit-screen {
  transition: none !important;
}

/* 翻入下一榜：新中心从右侧位姿转入，旧中心落到左侧 */
.cockpit-carousel[data-enter="next"] .cockpit-screen.pos-center {
  z-index: 4;
  opacity: 0.78;
  transform: var(--cockpit-pose-right);
}

.cockpit-carousel[data-enter="next"] .cockpit-screen.pos-left {
  z-index: 8;
  opacity: 1;
  transform: var(--cockpit-pose-center);
}

.cockpit-carousel[data-enter="next"] .cockpit-screen.pos-right {
  z-index: 2;
  opacity: 0;
  transform: var(--cockpit-pose-right-far);
}

/* 翻入上一榜：新中心从左侧位姿转入，旧中心落到右侧 */
.cockpit-carousel[data-enter="prev"] .cockpit-screen.pos-center {
  z-index: 4;
  opacity: 0.78;
  transform: var(--cockpit-pose-left);
}

.cockpit-carousel[data-enter="prev"] .cockpit-screen.pos-right {
  z-index: 8;
  opacity: 1;
  transform: var(--cockpit-pose-center);
}

.cockpit-carousel[data-enter="prev"] .cockpit-screen.pos-left {
  z-index: 2;
  opacity: 0;
  transform: var(--cockpit-pose-left-far);
}

/* 跨榜跳跃：起势更远一点，滚动感更明显 */
.cockpit-carousel[data-enter="next"].is-jump .cockpit-screen.pos-center {
  opacity: 0.55;
  transform: var(--cockpit-pose-right-far);
}

.cockpit-carousel[data-enter="prev"].is-jump .cockpit-screen.pos-center {
  opacity: 0.55;
  transform: var(--cockpit-pose-left-far);
}

.cockpit-screen {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--cockpit-screen-width);
  height: var(--cockpit-screen-height);
  min-height: 560px;
  padding: 0;
  overflow: visible;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  transform-style: preserve-3d;
  transform-origin: center center;
  opacity: 0;
  cursor: pointer;
  transition:
    transform var(--cockpit-turn-duration) cubic-bezier(0.2, 0.78, 0.2, 1),
    opacity var(--cockpit-turn-duration) ease;
}

.cockpit-screen:focus-visible .cockpit-screen-shell {
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.42),
    inset 0 1px rgba(255, 255, 255, 0.045),
    0 0 0 2px rgba(71, 217, 255, 0.45);
}

/* 中心屏不抬 Z、不缩放，保证表格文字清晰 */
.cockpit-screen.pos-center {
  z-index: 8;
  width: var(--cockpit-screen-width);
  opacity: 1;
  cursor: default;
  transform: var(--cockpit-pose-center);
  pointer-events: auto;
}

.cockpit-screen.pos-left,
.cockpit-screen.pos-right {
  width: var(--cockpit-side-width);
  min-height: calc(var(--cockpit-screen-height) - 56px);
  height: calc(var(--cockpit-screen-height) - 40px);
}

.cockpit-screen.pos-left {
  z-index: 4;
  opacity: 0.78;
  transform: var(--cockpit-pose-left);
}

.cockpit-screen.pos-right {
  z-index: 4;
  opacity: 0.78;
  transform: var(--cockpit-pose-right);
}

/* 翻页落到静止态后：强制锁死三屏位姿，无视 hover/focus */
.cockpit-carousel.is-turning:not([data-enter]) .cockpit-screen.pos-center,
.cockpit-carousel.is-turning:not([data-enter]) .cockpit-screen.pos-center:hover,
.cockpit-carousel.is-turning:not([data-enter]) .cockpit-screen.pos-center:focus-visible {
  opacity: 1;
  transform: var(--cockpit-pose-center) !important;
}

.cockpit-carousel.is-turning:not([data-enter]) .cockpit-screen.pos-left,
.cockpit-carousel.is-turning:not([data-enter]) .cockpit-screen.pos-left:hover,
.cockpit-carousel.is-turning:not([data-enter]) .cockpit-screen.pos-left:focus-visible {
  opacity: 0.78;
  transform: var(--cockpit-pose-left) !important;
}

.cockpit-carousel.is-turning:not([data-enter]) .cockpit-screen.pos-right,
.cockpit-carousel.is-turning:not([data-enter]) .cockpit-screen.pos-right:hover,
.cockpit-carousel.is-turning:not([data-enter]) .cockpit-screen.pos-right:focus-visible {
  opacity: 0.78;
  transform: var(--cockpit-pose-right) !important;
}

/* 静止态：侧屏 hover 只提亮度，不再改角度 */
.cockpit-screen.pos-left:hover,
.cockpit-screen.pos-right:hover,
.cockpit-screen.pos-left:focus-visible,
.cockpit-screen.pos-right:focus-visible {
  opacity: 0.92;
}

.cockpit-screen.is-exiting {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.cockpit-screen-shell {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(136, 151, 255, 0.32);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(91, 78, 255, 0.12), transparent 34%),
    linear-gradient(0deg, rgba(54, 115, 255, 0.08), transparent 48%),
    rgba(11, 14, 36, 0.98);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.42),
    inset 0 1px rgba(255, 255, 255, 0.045),
    0 0 28px rgba(70, 125, 255, 0.12);
  backface-visibility: hidden;
}

.cockpit-screen-shell--center {
  border-color: rgba(141, 157, 255, 0.4);
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.08), transparent 30%),
    linear-gradient(315deg, rgba(54, 115, 255, 0.07), transparent 35%),
    var(--panel-strong);
  backface-visibility: visible;
}

.cockpit-screen-shell::before {
  position: absolute;
  inset: 8px;
  z-index: 1;
  content: "";
  border: 1px solid rgba(71, 217, 255, 0.1);
  border-radius: 14px;
  pointer-events: none;
}

.cockpit-screen-shell::after {
  position: absolute;
  top: 0;
  left: 16%;
  z-index: 2;
  width: 68%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--purple-bright), var(--cyan), transparent);
  box-shadow: 0 0 18px rgba(112, 121, 255, 0.55);
  pointer-events: none;
}

/* 侧屏静置光效：只增强边缘和扫光，不改变三屏位姿与内容布局。 */
.cockpit-screen.pos-left .cockpit-screen-shell,
.cockpit-screen.pos-right .cockpit-screen-shell {
  border-color: rgba(122, 164, 255, 0.62);
  animation: cockpitSideGlow 4.2s ease-in-out infinite;
}

.cockpit-screen.pos-left .cockpit-screen-shell::before,
.cockpit-screen.pos-right .cockpit-screen-shell::before {
  border-color: rgba(71, 217, 255, 0.3);
  box-shadow: inset 0 0 38px rgba(70, 125, 255, 0.17), 0 0 16px rgba(71, 217, 255, 0.1);
}

.cockpit-screen.pos-left .cockpit-screen-shell::after,
.cockpit-screen.pos-right .cockpit-screen-shell::after {
  top: -34%;
  left: -92%;
  z-index: 1;
  width: 178%;
  height: 34%;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(126, 96, 255, 0.18), rgba(71, 217, 255, 0.58), transparent);
  box-shadow: 0 0 34px rgba(71, 217, 255, 0.28);
  transform: rotate(-12deg);
  animation: cockpitSideSweep 5.2s ease-in-out infinite;
}

.cockpit-screen.pos-right .cockpit-screen-shell::after {
  animation-delay: 1.6s;
}

.cockpit-screen.pos-center .cockpit-screen-shell--center {
  animation: cockpitCenterGlow 4.2s ease-in-out infinite;
}

.cockpit-screen.pos-center .cockpit-screen-shell--center::before {
  border-color: rgba(71, 217, 255, 0.24);
  box-shadow: inset 0 0 34px rgba(78, 104, 255, 0.12);
}

.cockpit-screen.pos-center .cockpit-screen-shell--center::after {
  height: 2px;
  box-shadow: 0 0 14px rgba(170, 124, 255, 0.88), 0 0 34px rgba(71, 217, 255, 0.68);
  animation: cockpitTopBeam 3.2s ease-in-out infinite;
}

.cockpit-screen-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px 24px 20px;
}

.cockpit-side-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(132, 146, 224, 0.14);
}

.cockpit-side-head h3 {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: #eef1ff;
  font-family: var(--font-title);
  font-size: clamp(16px, 1.3vw, 22px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cockpit-side-hint {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(71, 217, 255, 0.35);
  border-radius: 50%;
  color: var(--cyan);
  background: rgba(2, 8, 28, 0.55);
  box-shadow: 0 0 16px rgba(71, 217, 255, 0.18);
  font-size: 20px;
  line-height: 1;
  opacity: 0.55;
  transition: opacity 180ms ease, transform 180ms ease;
}

.cockpit-screen.pos-left:hover .cockpit-side-hint,
.cockpit-screen.pos-right:hover .cockpit-side-hint,
.cockpit-screen.pos-left:focus-visible .cockpit-side-hint,
.cockpit-screen.pos-right:focus-visible .cockpit-side-hint {
  opacity: 1;
  transform: scale(1.08);
}

.cockpit-side-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
}

.cockpit-side-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 7px 8px;
  border: 1px solid rgba(133, 146, 219, 0.1);
  border-radius: 10px;
  background: rgba(16, 20, 48, 0.55);
}

.cockpit-side-list strong {
  display: none;
}

.cockpit-side-list li.is-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  grid-template-columns: 1fr;
}

.cockpit-side-list em {
  color: rgba(155, 166, 221, 0.55);
  font-family: var(--font-metric);
  font-size: 11px;
  font-style: normal;
}

.cockpit-side-list span {
  overflow: hidden;
  color: #dce2ff;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cockpit-side-list strong {
  color: #b9c6ff;
  font-family: var(--font-metric);
  font-size: 12px;
  font-weight: 560;
  white-space: nowrap;
}

.cockpit-screen.pos-center .active-board {
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.cockpit-screen.pos-center .active-board::after {
  display: none;
}

.cockpit-screen.pos-center::after {
  display: none;
}

.side-rail {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(128, 142, 220, 0.11);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(92, 69, 186, 0.055), transparent 24%, transparent 76%, rgba(48, 103, 210, 0.045)),
    rgba(9, 12, 31, 0.62);
  box-shadow: inset 0 0 45px rgba(74, 65, 168, 0.035), 0 0 28px rgba(49, 58, 137, 0.045);
  isolation: isolate;
}

.side-rail::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  opacity: 0.62;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 22%, rgba(142, 98, 255, 0.16), transparent 22%),
    radial-gradient(circle at 50% 78%, rgba(61, 132, 255, 0.13), transparent 24%),
    repeating-linear-gradient(0deg, transparent 0 44px, rgba(112, 128, 211, 0.035) 45px, transparent 46px);
  animation: railAmbient 6s ease-in-out infinite;
}

.side-rail--left {
  flex-direction: row;
}

.mini-board {
  position: relative;
  display: flex;
  flex: 1 1 0;
  min-width: 22px;
  padding: 0;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  border: 0;
  border-right: 1px solid rgba(133, 146, 219, 0.1);
  outline: 0;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(87, 76, 186, 0.055), rgba(20, 27, 68, 0.065)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(109, 125, 207, 0.025) 32px);
  transition: flex 320ms ease, background 220ms ease, box-shadow 220ms ease;
}

.mini-board:last-child {
  border-right: 0;
}

.mini-board::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  content: "";
  z-index: 1;
  opacity: 0.24;
  background: linear-gradient(transparent, var(--purple-bright), transparent);
  box-shadow: 0 0 7px rgba(154, 111, 255, 0.22);
  transition: opacity 220ms ease;
}

.mini-board::after {
  position: absolute;
  top: -90px;
  right: 0;
  left: 0;
  z-index: 0;
  height: 96px;
  content: "";
  opacity: 0.82;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent, rgba(135, 104, 255, 0.05) 42%, rgba(82, 177, 255, 0.28) 50%, rgba(135, 104, 255, 0.06) 58%, transparent),
    linear-gradient(90deg, transparent, rgba(71, 217, 255, 0.12) 50%, transparent);
  filter: drop-shadow(0 0 8px rgba(71, 155, 255, 0.32));
  animation: dataScan 4.8s ease-in-out infinite;
  animation-delay: var(--delay, 0ms);
}

.mini-board:hover,
.mini-board:focus-visible {
  flex-grow: 2.1;
  z-index: 2;
  background: linear-gradient(180deg, rgba(112, 81, 244, 0.17), rgba(37, 83, 171, 0.08));
  box-shadow: inset 0 0 32px rgba(102, 86, 230, 0.1);
}

.mini-board:hover::before,
.mini-board:focus-visible::before {
  opacity: 1;
}

.mini-board:nth-child(2n)::after { animation-duration: 6.4s; animation-delay: -2.1s; }
.mini-board:nth-child(3n)::after { animation-duration: 5.1s; animation-delay: -3.4s; }

.mini-board__index {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 2;
  color: #7180aa;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  transform: translateX(-50%);
  text-shadow: 0 0 8px rgba(111, 126, 220, 0.24);
}

.mini-board__index::after {
  position: absolute;
  top: 17px;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  content: "";
  transform: translateX(-50%);
  background: #7e74de;
  box-shadow: 0 0 8px rgba(126, 112, 234, 0.95);
  animation: nodeBlink 2.8s ease-in-out infinite;
}

.mini-board__title {
  position: relative;
  z-index: 2;
  writing-mode: vertical-rl;
  color: #a9b3d3;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-orientation: upright;
  text-shadow: 0 0 14px rgba(91, 105, 192, 0.18);
  transition: color 220ms ease, text-shadow 220ms ease;
}

.mini-board:hover .mini-board__title,
.mini-board:focus-visible .mini-board__title {
  color: #eef1ff;
  text-shadow: 0 0 12px rgba(139, 111, 255, 0.48);
}

.mini-board__score {
  position: absolute;
  bottom: 14px;
  left: 50%;
  z-index: 2;
  color: #7f8fbd;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  transform: translateX(-50%) rotate(-90deg);
  text-shadow: 0 0 10px rgba(69, 124, 224, 0.2);
  white-space: nowrap;
}

.active-board {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(141, 157, 255, 0.28);
  border-radius: 17px;
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.07), transparent 30%),
    linear-gradient(315deg, rgba(54, 115, 255, 0.06), transparent 35%),
    var(--panel-strong);
  box-shadow:
    0 22px 75px rgba(0, 0, 0, 0.32),
    inset 0 1px rgba(255, 255, 255, 0.04),
    inset 0 -18px 48px rgba(0, 0, 0, 0.08);
}

.active-board.is-switching {
  animation: openFromCenter 500ms cubic-bezier(0.22, 0.75, 0.24, 1) both;
}

.active-board::after {
  position: absolute;
  top: 0;
  left: 18%;
  width: 64%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--purple-bright), var(--cyan), transparent);
  box-shadow: 0 0 20px rgba(112, 121, 255, 0.72);
}

.board-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 0 0 auto;
  min-height: 64px;
  padding: 14px clamp(18px, 2vw, 30px);
  border-bottom: 1px solid rgba(132, 146, 224, 0.12);
}

.board-title-line {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  gap: 12px;
}

.board-head-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.board-number {
  color: rgba(155, 166, 221, 0.35);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.board-title {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-family: var(--font-title);
  font-size: clamp(16px, 1.25vw, 22px);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sort-rule {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid rgba(126, 111, 255, 0.22);
  border-radius: 6px;
  color: #9e92d4;
  background: rgba(121, 84, 224, 0.07);
  font-size: 9px;
  letter-spacing: 0.08em;
}

/* 榜头右侧：TOP 10 / 全量分段开关 */
.limit-switch {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  isolation: isolate;
  padding: 3px;
  border: 1px solid rgba(138, 156, 255, 0.28);
  border-radius: 999px;
  background: rgba(10, 14, 36, 0.72);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.limit-switch__glider {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  z-index: 0;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: var(--seg-nav-active);
  box-shadow: 0 6px 16px rgba(74, 92, 255, 0.28);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.limit-switch[data-mode="all"] .limit-switch__glider {
  transform: translateX(100%);
}

.limit-switch__opt {
  position: relative;
  z-index: 1;
  margin: 0;
  min-width: 72px;
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  color: #8b95b8;
  background: transparent;
  font-family: var(--font-tab);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 180ms ease;
}

.limit-switch__opt:hover,
.limit-switch__opt:focus-visible {
  color: #e4e9f8;
  outline: none;
}

.limit-switch__opt.is-active {
  color: #f4f7ff;
  background: transparent;
  box-shadow: none;
}

/* 表格内容切换动画（分页 / TOP10↔全量） */
.active-board.is-content-out .table-wrap,
.active-board.is-content-out > .rank-page-dots {
  animation: rankContentOut 160ms ease both;
}

.active-board.is-content-enter .table-wrap,
.active-board.is-content-enter > .rank-page-dots {
  animation: rankContentInNext 320ms cubic-bezier(0.22, 0.75, 0.24, 1) both;
}

.active-board.is-content-enter[data-enter="prev"] .table-wrap,
.active-board.is-content-enter[data-enter="prev"] > .rank-page-dots {
  animation-name: rankContentInPrev;
}

@keyframes rankContentOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-10px);
  }
}

@keyframes rankContentInNext {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes rankContentInPrev {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .limit-switch__glider {
    transition: none;
  }

  .active-board.is-content-out .table-wrap,
  .active-board.is-content-out > .rank-page-dots,
  .active-board.is-content-enter .table-wrap,
  .active-board.is-content-enter > .rank-page-dots {
    animation: none;
  }

  .rank-table tr.rank-row--1 td:last-child::after,
  .rank-table tr.rank-row--2 td:last-child::after,
  .rank-table tr.rank-row--3 td:last-child::after {
    animation: none;
    opacity: 0;
  }

  .rank-table tr.rank-row--1 td,
  .rank-table tr.rank-row--2 td,
  .rank-table tr.rank-row--3 td {
    transition: none;
  }
}

/* 兼容旧 section-stats toggle */
.board-limit-toggle {
  flex: 0 0 auto;
  margin: 0;
  padding: 5px 11px;
  border: 1px solid rgba(126, 111, 255, 0.28);
  border-radius: 6px;
  color: #c8bcff;
  background: rgba(121, 84, 224, 0.12);
  font: inherit;
  font-size: 10px;
  font-weight: 560;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
}

.board-limit-toggle:hover,
.board-limit-toggle:focus-visible {
  color: #fff;
  border-color: rgba(154, 140, 255, 0.55);
  background: rgba(121, 84, 224, 0.24);
  outline: none;
}

.board-limit-toggle[aria-pressed="false"] {
  color: #9eb8ff;
  border-color: rgba(110, 150, 255, 0.38);
  background: rgba(70, 125, 255, 0.14);
}

/* 线下 section-stats（线上已迁到榜头 toggle） */
.section-stats .limit-toggle {
  margin: 0;
  padding-left: 22px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.section-stats .limit-toggle strong {
  color: #d7ceff;
  letter-spacing: 0.04em;
}

.section-stats .limit-toggle span {
  color: #7782a3;
}

.section-stats .limit-toggle:hover strong,
.section-stats .limit-toggle:focus-visible strong {
  color: #fff;
  outline: none;
}

.section-stats .limit-toggle[aria-pressed="false"] strong {
  color: #9eb8ff;
}

.section-stats .limit-toggle:focus-visible {
  outline: 1px solid rgba(168, 148, 255, 0.55);
  outline-offset: 4px;
  border-radius: 6px;
}

.rank-table th.th-sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.rank-table th.th-sortable:hover {
  color: #d7ceff;
}

.rank-table th.th-sortable::after {
  content: '↕';
  margin-left: 4px;
  color: rgba(155, 166, 221, 0.45);
  font-weight: 400;
}

.rank-table th.th-sortable.sorted-asc::after {
  content: '↑';
  color: #b7a6ff;
  font-weight: 650;
}

.rank-table th.th-sortable.sorted-desc::after {
  content: '↓';
  color: #b7a6ff;
  font-weight: 650;
}

.rank-table th.th-sortable:focus-visible {
  outline: 1px solid rgba(168, 148, 255, 0.55);
  outline-offset: 2px;
}

.board-focus {
  display: flex;
  align-items: center;
  gap: 18px;
}

.leader-name {
  text-align: right;
}

.leader-name span,
.leader-name strong {
  display: block;
}

.leader-name span {
  margin-bottom: 5px;
  color: #6f7a9f;
  font-size: 9px;
  letter-spacing: 0.16em;
}

.leader-name strong {
  max-width: 150px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.focus-metric {
  min-width: 80px;
  padding-left: 18px;
  border-left: 1px solid rgba(132, 148, 226, 0.16);
}

.focus-metric span,
.focus-metric strong {
  display: block;
}

.focus-metric span {
  color: #7681a4;
  font-size: 9px;
  letter-spacing: 0.14em;
}

.focus-metric strong {
  margin-top: 2px;
  color: #c3b6ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.35);
}

.table-wrap {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  max-width: 100%;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(117, 97, 239, 0.42) transparent;
}

.table-wrap > .rank-table {
  flex: 0 0 auto;
  width: 100%;
}

.rank-table {
  width: 100%;
  border-spacing: 0;
  table-layout: fixed;
  border-collapse: collapse;
  /* 榜单正文：偏冷灰白，避免纯白刺眼，仍保持对比 */
  --rank-text: #c9d1e8;
  --rank-text-strong: #dde3f4;
  --rank-text-soft: #a7b1cd;
}

.rank-table thead {
  position: sticky;
  top: 0;
  z-index: 3;
  background: rgba(13, 16, 40, 0.96);
  backdrop-filter: blur(16px);
}

.rank-table th {
  height: 38px;
  padding: 0 9px;
  color: #8a94b0;
  font-family: var(--font-thead);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-align: left;
  white-space: nowrap;
}

.rank-table th:not(:nth-child(2)),
.rank-table td:not(:nth-child(2)) {
  text-align: center;
}

.rank-table th:first-child,
.rank-table td:first-child {
  width: 72px;
  padding-left: 10px;
  padding-right: 8px;
  /* 名次列禁用省略号，避免窄列把溢出裁成右侧 “…” 小点 */
  overflow: hidden;
  text-overflow: clip;
}

.rank-table th:nth-child(2),
.rank-table td:nth-child(2) {
  width: 22%;
}

.rank-table th:nth-child(3),
.rank-table td:nth-child(3) {
  width: 13%;
}

.rank-table th:nth-child(4),
.rank-table td:nth-child(4) {
  width: 11%;
}

/*
 * 线下四列表（TOP10 + 重点排名）：四列百分比之和=100%，覆盖多列榜默认列宽。
 * 旧规则会把剩余宽度灌进第1列，奖牌居中后左边像空了一大块。
 */
.rank-table.rank-table--offline {
  table-layout: fixed;
  width: 100%;
}

.rank-table.rank-table--offline .rank-table__col-rank,
.rank-table.rank-table--offline th:first-child,
.rank-table.rank-table--offline td:first-child {
  width: 6% !important;
  max-width: 96px;
  padding-left: 16px !important;
  padding-right: 8px !important;
}

.rank-table.rank-table--offline .rank-table__col-name,
.rank-table.rank-table--offline th:nth-child(2),
.rank-table.rank-table--offline td:nth-child(2) {
  width: 46% !important;
  text-align: left !important;
}

.rank-table.rank-table--offline .rank-table__col-metric,
.rank-table.rank-table--offline th:nth-child(3),
.rank-table.rank-table--offline td:nth-child(3) {
  width: 26% !important;
}

.rank-table.rank-table--offline .rank-table__col-meta,
.rank-table.rank-table--offline th:nth-child(4),
.rank-table.rank-table--offline td:nth-child(4) {
  width: 22% !important;
}

.rank-table.rank-table--offline tr.rank-row--1 td,
.rank-table.rank-table--offline tr.rank-row--2 td,
.rank-table.rank-table--offline tr.rank-row--3 td {
  border-color: transparent;
}

.rank-table tbody tr {
  position: relative;
  border-top: 1px solid rgba(125, 138, 206, 0.085);
  transition: background 180ms ease, transform 180ms ease;
}

.rank-table tbody tr.clickable-rank-row {
  cursor: pointer;
}

.rank-table tbody tr.clickable-rank-row:focus-visible {
  outline: 1px solid rgba(160, 172, 210, 0.45);
  outline-offset: -1px;
}

.rank-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.rank-table td {
  height: 47px;
  padding: 4px 11px;
  overflow: hidden;
  color: var(--rank-text);
  font-family: var(--font-body);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-pager {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 8px;
  padding: 0 clamp(14px, 2vw, 24px);
}

.rank-pager--summary {
  min-height: 28px;
}

.rank-pager__range {
  min-width: 120px;
  color: var(--muted-light);
  font-family: var(--font-metric);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.rank-pager__btn,
.rank-pager__autoplay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid rgba(126, 142, 220, 0.22);
  border-radius: 999px;
  color: #c8d0ea;
  background: rgba(12, 15, 36, 0.72);
  font-size: 11px;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.rank-pager__btn:hover:not(:disabled),
.rank-pager__autoplay:hover {
  border-color: rgba(143, 118, 255, 0.42);
  color: #eef1ff;
  box-shadow: 0 0 18px rgba(91, 76, 255, 0.12);
}

.rank-pager__btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.rank-pager__autoplay i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6f7898;
  box-shadow: 0 0 0 rgba(71, 217, 255, 0);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.rank-pager__autoplay.is-active {
  border-color: rgba(71, 217, 255, 0.38);
  color: #9feaff;
}

.rank-pager__autoplay.is-active i {
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(71, 217, 255, 0.55);
  animation: pulse 2s ease-in-out infinite;
}

/* 表格底部：分页轮播指示点 */
.rank-page-dots {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  min-height: 0;
  margin: 0;
  padding: 10px clamp(14px, 2vw, 24px) 14px;
  border-top: 1px solid rgba(132, 146, 224, 0.1);
}

.rank-page-dots--summary {
  justify-content: flex-start;
}

.rank-page-dots__range {
  color: var(--muted-light);
  font-family: var(--font-metric);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.rank-page-dots__list {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
}

.rank-page-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(138, 152, 210, 0.32);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.rank-page-dot:hover,
.rank-page-dot:focus-visible {
  background: rgba(170, 180, 235, 0.72);
  outline: none;
  transform: scale(1.2);
}

.rank-page-dot.is-active {
  width: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple-bright), var(--cyan));
  box-shadow: 0 0 12px rgba(112, 121, 255, 0.45);
  transform: none;
}

.rank-badge,
.rank-medal {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 28px;
  height: 28px;
  overflow: hidden;
  box-sizing: border-box;
}

/* 旧版星标 SVG 残留会溢出成右侧小点，强制彻底隐藏 */
.rank-medal svg,
.rank-table .rank-medal svg {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
}

.rank-medal em {
  position: relative;
  z-index: 1;
  font-family: var(--font-metric);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.rank-medal--gold {
  color: #f0c56a;
  background: none;
  box-shadow: none;
}

.rank-medal--silver {
  color: #d0d7eb;
  background: none;
  box-shadow: none;
}

.rank-medal--bronze {
  color: #e0a87a;
  background: none;
  box-shadow: none;
}

.rank-medal--plain {
  color: #7a84a8;
  background: transparent;
  box-shadow: none;
}

.rank-medal--plain em {
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-family: var(--font-metric);
}

/* 前三：字号一致；科技流光高光（整行一条，不按格扫）；品牌名纯白 */
@keyframes techRankShimmer {
  0% {
    background-position: -28% 0, 0 0;
  }
  32%, 100% {
    background-position: 128% 0, 0 0;
  }
}

.rank-table tr.rank-row--1 td,
.rank-table tr.rank-row--2 td,
.rank-table tr.rank-row--3 td {
  height: var(--rank-row-h-1, 58px);
  font-size: 13px;
  color: var(--rank-text);
  border-color: transparent;
  border-top: none;
  background-repeat: no-repeat;
  transition: box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.rank-table tr.rank-row--1 td {
  background: linear-gradient(180deg, rgba(255, 205, 75, 0.24) 0%, rgba(210, 145, 30, 0.08) 60%, rgba(20, 24, 45, 0.4) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 238, 175, 0.75),
    inset 0 2px 10px rgba(255, 185, 45, 0.15),
    inset 0 -1px 0 rgba(255, 190, 50, 0.15);
}

.rank-table tr.rank-row--1:hover td {
  background-color: rgba(255, 200, 60, 0.06);
  box-shadow:
    inset 0 1px 0 #fff2c8,
    inset 0 4px 18px rgba(255, 195, 60, 0.3),
    0 0 16px rgba(255, 180, 40, 0.15);
}

.rank-table tr.rank-row--2 td {
  height: var(--rank-row-h-2, 58px);
  background: linear-gradient(180deg, rgba(185, 210, 250, 0.2) 0%, rgba(130, 160, 220, 0.06) 60%, rgba(18, 22, 42, 0.4) 100%);
  box-shadow:
    inset 0 1px 0 rgba(225, 240, 255, 0.7),
    inset 0 2px 10px rgba(140, 185, 255, 0.12),
    inset 0 -1px 0 rgba(140, 185, 255, 0.12);
}

.rank-table tr.rank-row--2:hover td {
  background-color: rgba(180, 220, 255, 0.05);
  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 4px 18px rgba(150, 200, 255, 0.25),
    0 0 16px rgba(120, 180, 255, 0.12);
}

.rank-table tr.rank-row--3 td {
  height: var(--rank-row-h-3, 58px);
  background: linear-gradient(180deg, rgba(235, 145, 95, 0.18) 0%, rgba(180, 95, 55, 0.05) 60%, rgba(18, 22, 42, 0.4) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 215, 185, 0.65),
    inset 0 2px 10px rgba(230, 120, 60, 0.12),
    inset 0 -1px 0 rgba(230, 120, 60, 0.12);
}

.rank-table tr.rank-row--3:hover td {
  background-color: rgba(255, 140, 85, 0.05);
  box-shadow:
    inset 0 1px 0 #ffe0d0,
    inset 0 4px 18px rgba(235, 130, 75, 0.25),
    0 0 16px rgba(235, 120, 50, 0.12);
}

.rank-table tr.rank-row--1 td:last-child,
.rank-table tr.rank-row--2 td:last-child,
.rank-table tr.rank-row--3 td:last-child {
  position: relative;
  overflow: visible;
  z-index: 8;
}

.rank-table tr.rank-row--1 td:last-child::after,
.rank-table tr.rank-row--2 td:last-child::after,
.rank-table tr.rank-row--3 td:last-child::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: var(--cockpit-screen-width, 90vw);
  height: 100%;
  pointer-events: none;
  background-repeat: no-repeat;
  mix-blend-mode: screen;
}

.rank-table tr.rank-row--1 td:last-child::after {
  background-image:
    linear-gradient(115deg, transparent 38%, rgba(255, 235, 170, 0.42) 50%, transparent 62%),
    radial-gradient(ellipse at 8% 50%, rgba(255, 198, 55, 0.28) 0%, transparent 55%);
  background-size: 38% 100%, 100% 100%;
  animation: techRankShimmer 6s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.rank-table tr.rank-row--2 td:last-child::after {
  background-image:
    linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.4) 50%, transparent 62%),
    radial-gradient(ellipse at 8% 50%, rgba(160, 205, 255, 0.22) 0%, transparent 55%);
  background-size: 38% 100%, 100% 100%;
  animation: techRankShimmer 6s infinite cubic-bezier(0.4, 0, 0.2, 1) 0.8s;
}

.rank-table tr.rank-row--3 td:last-child::after {
  background-image:
    linear-gradient(115deg, transparent 38%, rgba(255, 215, 190, 0.38) 50%, transparent 62%),
    radial-gradient(ellipse at 8% 50%, rgba(255, 140, 85, 0.2) 0%, transparent 55%);
  background-size: 38% 100%, 100% 100%;
  animation: techRankShimmer 6s infinite cubic-bezier(0.4, 0, 0.2, 1) 1.6s;
}

.rank-table tr.rank-row--1 .merchant-name,
.rank-table tr.rank-row--1 .leader-name strong,
.rank-table tr.rank-row--2 .merchant-name,
.rank-table tr.rank-row--2 .leader-name strong,
.rank-table tr.rank-row--3 .merchant-name,
.rank-table tr.rank-row--3 .leader-name strong {
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 255, 255, 0.25);
}

.rank-table tr.rank-row--1 .metric-pill,
.rank-table tr.rank-row--1 .data-count,
.rank-table tr.rank-row--1 .score-plain {
  font-size: 13px;
  font-weight: 650;
  color: #ffdf85;
  text-shadow: 0 0 8px rgba(255, 200, 60, 0.35);
}

.rank-table tr.rank-row--2 .metric-pill,
.rank-table tr.rank-row--2 .data-count,
.rank-table tr.rank-row--2 .score-plain {
  font-size: 13px;
  font-weight: 650;
  color: #dbe4fc;
  text-shadow: 0 0 8px rgba(180, 215, 255, 0.35);
}

.rank-table tr.rank-row--3 .metric-pill,
.rank-table tr.rank-row--3 .data-count,
.rank-table tr.rank-row--3 .score-plain {
  font-size: 13px;
  font-weight: 650;
  color: #f7ba94;
  text-shadow: 0 0 8px rgba(245, 140, 85, 0.35);
}

.rank-table tr.rank-row--1 .metric-pill--zero,
.rank-table tr.rank-row--2 .metric-pill--zero,
.rank-table tr.rank-row--3 .metric-pill--zero {
  color: var(--rank-text-soft);
  font-weight: 500;
}

.rank-table tr.rank-row--1 .metric-pill--empty,
.rank-table tr.rank-row--2 .metric-pill--empty,
.rank-table tr.rank-row--3 .metric-pill--empty {
  color: #6b7694;
  font-weight: 500;
}

/* 前三：只留色号，去掉奖牌包边；第一名数字上方加皇冠 */
.rank-table tr.rank-row--1 .rank-medal,
.rank-table tr.rank-row--2 .rank-medal,
.rank-table tr.rank-row--3 .rank-medal {
  min-width: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  line-height: 1;
}

.rank-table tr.rank-row--1 .rank-medal {
  overflow: visible;
}

.rank-table tr.rank-row--1 td:first-child {
  overflow: visible;
}

.rank-table tr.rank-row--1 .rank-medal::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 1px);
  width: 18px;
  height: 11px;
  transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Cpath fill='%23ffe699' d='M2.4 14.2h19.2L19.2 5.8l-4.8 3.3L12 2.1 9.6 9.1 4.8 5.8 2.4 14.2z'/%3E%3Ccircle cx='12' cy='2.3' r='1.3' fill='%23fff4c2'/%3E%3Ccircle cx='4.8' cy='5.8' r='1.05' fill='%23ffd36a'/%3E%3Ccircle cx='19.2' cy='5.8' r='1.05' fill='%23ffd36a'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 5px rgba(255, 195, 50, 0.85));
}

.rank-table tr.rank-row--2 .rank-medal::before,
.rank-table tr.rank-row--3 .rank-medal::before {
  content: none;
  display: none;
}

.rank-table tr.rank-row--1 .rank-medal em,
.rank-table tr.rank-row--2 .rank-medal em,
.rank-table tr.rank-row--3 .rank-medal em {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
}

.rank-table tr.rank-row--1 .rank-medal em {
  color: #ffe699;
  text-shadow: 0 0 12px rgba(255, 195, 50, 0.75), 0 0 24px rgba(255, 180, 0, 0.35);
}

.rank-table tr.rank-row--2 .rank-medal em {
  color: #f0f5ff;
  text-shadow: 0 0 12px rgba(180, 220, 255, 0.75), 0 0 24px rgba(130, 180, 255, 0.35);
}

.rank-table tr.rank-row--3 .rank-medal em {
  color: #ffd8c0;
  text-shadow: 0 0 12px rgba(255, 145, 95, 0.75), 0 0 24px rgba(235, 110, 50, 0.35);
}

.merchant-cell {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.rank-table tr.is-unassigned-row .merchant-name {
  color: #ffffff;
}

.unassigned-tag {
  flex: 0 0 auto;
  padding: 1px 6px;
  border: 0;
  border-radius: 4px;
  color: #7e879f;
  background: rgba(120, 130, 170, 0.08);
  font-size: 9px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.merchant-avatar,
.merchant-cover {
  display: grid;
  flex: 0 0 auto;
  width: 48px;
  height: 27px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(137, 155, 238, 0.16);
  border-radius: 7px;
  color: #c9d1f1;
  background: rgba(18, 22, 40, 0.55);
  font-size: 10px;
}

/* 按名称哈希着色的字头像：覆盖默认底色 */
.merchant-avatar.is-letter-avatar,
.merchant-cover.is-letter-avatar {
  color: #fff;
  border-color: transparent;
  background: var(--entity-color, #6c5ce7);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}

.merchant-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.merchant-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.rank-table .merchant-name,
.rank-table .leader-name strong {
  color: #ffffff;
  font-family: var(--font-body);
}

.rank-table .leader-name span {
  color: var(--rank-text-soft);
}

.rank-table .data-count {
  color: var(--rank-text-soft);
}

/* 驾驶舱指标：纯数字，去掉紫色胶囊 */
.rank-table .metric-pill {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--rank-text-strong);
  background: none;
  box-shadow: none;
  font-family: var(--font-metric);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.rank-table .metric-pill--zero {
  color: var(--rank-text-soft);
  border: 0;
  background: none;
  box-shadow: none;
}

.rank-table .metric-pill--empty {
  color: #6b7694;
  border: 0;
  background: none;
  box-shadow: none;
  font-weight: 500;
}

.rank-table .parent-brand-link {
  color: #ffffff;
}

.parent-brand-link {
  display: block;
  overflow: hidden;
  color: #9ba5c5;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.parent-brand-link:hover,
.parent-brand-link:focus-visible {
  color: #b9adf2;
  outline: none;
}

.rank-table .parent-brand-link:hover,
.rank-table .parent-brand-link:focus-visible {
  color: #ffffff;
}

.merchant-name:hover,
.merchant-name:focus-visible {
  color: #eef2ff;
  outline: none;
  text-shadow: none;
}

.rank-table .merchant-name:hover,
.rank-table .merchant-name:focus-visible {
  color: #ffffff;
}

.region-tag {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--rank-text-soft, #a7b1cd);
}

.rank-table .region-tag::before,
.region-tag::before {
  display: none;
  content: none;
}

.score-pill,
.score-plain {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  min-width: 54px;
  gap: 2px;
  font-family: var(--font-metric);
  font-size: 12px;
  font-weight: 600;
}

.score-plain {
  color: #8fe6ff;
}

.poi-medal {
  display: inline-flex;
  min-width: 36px;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}

.poi-medal--gold {
  color: #b8a060;
  background: rgba(184, 160, 96, 0.08);
  border-color: rgba(184, 160, 96, 0.18);
}

.poi-medal--silver {
  color: #8a94a8;
  background: rgba(138, 148, 168, 0.08);
  border-color: rgba(138, 148, 168, 0.16);
}

.poi-medal--bronze {
  color: #a08068;
  background: rgba(160, 128, 104, 0.08);
  border-color: rgba(160, 128, 104, 0.16);
}

.poi-medal--plain {
  color: #7a8498;
  background: rgba(122, 132, 152, 0.06);
  border-color: rgba(122, 132, 152, 0.14);
}

.score-plain small,
.score-pill small {
  color: #6b7a9c;
  font-size: 8px;
  font-weight: 400;
}

.score-pill {
  padding: 5px 8px;
  border: 1px solid rgba(86, 192, 255, 0.2);
  border-radius: 9px;
  color: #79dfff;
  background: linear-gradient(135deg, rgba(70, 126, 255, 0.11), rgba(62, 220, 255, 0.06));
  box-shadow: inset 0 0 10px rgba(68, 151, 255, 0.04);
}

.metric-pill {
  display: inline-flex;
  min-width: 64px;
  align-items: center;
  justify-content: center;
  padding: 5px 7px;
  border: 1px solid rgba(148, 104, 255, 0.22);
  border-radius: 8px;
  color: #c4b6ff;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.13), rgba(64, 105, 255, 0.06));
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 600;
  box-shadow: inset 0 0 12px rgba(139, 92, 246, 0.04);
}

/* 0=有口径的零值；empty=null/无数据，二者不可混用 */
.metric-pill--zero {
  color: #9aa8d4;
  border-color: rgba(154, 168, 212, 0.28);
  background: rgba(154, 168, 212, 0.08);
  box-shadow: none;
}

.metric-pill--empty {
  color: #6b7694;
  border-color: rgba(107, 118, 148, 0.22);
  background: rgba(18, 22, 40, 0.45);
  box-shadow: none;
  font-weight: 500;
}

.data-count {
  color: #a4acc8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.data-count-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.15;
}

.estimate-hint {
  color: #6b7694;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0;
}

.focus-cell {
  color: #d9d3ff !important;
  text-shadow: 0 0 14px rgba(139, 92, 246, 0.24);
}

.page-dots {
  position: fixed;
  top: 50%;
  right: clamp(14px, 1.8vw, 34px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transform: translateY(-50%);
}

.page-dot {
  position: relative;
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(125, 139, 214, 0.15);
  border-radius: 10px;
  color: #596486;
  background: rgba(9, 11, 28, 0.56);
  font-family: var(--font-tab);
  font-size: 9px;
  transition: width 220ms ease, color 220ms ease, border-color 220ms ease, background 220ms ease;
  backdrop-filter: blur(12px);
}

.page-dot em {
  position: absolute;
  right: 42px;
  width: max-content;
  padding: 5px 8px;
  border: 1px solid rgba(126, 142, 220, 0.13);
  border-radius: 6px;
  opacity: 0;
  color: #99a3c2;
  background: rgba(8, 10, 26, 0.82);
  font-family: var(--font, inherit);
  font-size: 10px;
  font-style: normal;
  pointer-events: none;
  transform: translateX(6px);
  transition: 180ms ease;
}

.page-dot:hover em {
  opacity: 1;
  transform: translateX(0);
}

.page-dot.is-active {
  border-color: rgba(129, 105, 255, 0.42);
  color: #c6b8ff;
  background: rgba(111, 77, 218, 0.13);
  box-shadow: 0 0 20px rgba(104, 83, 224, 0.12);
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 100;
  padding: 10px 15px;
  border: 1px solid rgba(130, 145, 230, 0.2);
  border-radius: 10px;
  opacity: 0;
  color: #c9cee1;
  background: rgba(12, 15, 38, 0.92);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.28);
  font-size: 12px;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: 220ms ease;
  backdrop-filter: blur(16px);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.consultant-entry {
  position: fixed;
  right: clamp(18px, 2.3vw, 36px);
  bottom: clamp(18px, 2.5vw, 32px);
  z-index: 90;
  display: flex;
  min-width: 138px;
  align-items: center;
  gap: 10px;
  padding: 9px 13px 9px 9px;
  border: 1px solid rgba(130, 119, 238, 0.26);
  border-radius: 13px;
  color: #d9dcf1;
  background:
    linear-gradient(135deg, rgba(122, 78, 218, 0.2), rgba(47, 92, 194, 0.12)),
    rgba(9, 12, 31, 0.86);
  box-shadow: 0 13px 38px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.035), 0 0 22px rgba(95, 73, 198, 0.08);
  backdrop-filter: blur(18px);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  animation: entryGlow 3.6s ease-in-out infinite;
}

.consultant-entry::before {
  position: absolute;
  top: -1px;
  left: 20%;
  width: 58%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, #9f78ff, #52c8ff, transparent);
}

.consultant-entry:hover,
.consultant-entry:focus-visible {
  border-color: rgba(142, 129, 255, 0.48);
  outline: none;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.38), 0 0 30px rgba(109, 84, 223, 0.2);
  transform: translateY(-3px);
}

.consultant-entry__icon {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(138, 132, 245, 0.2);
  border-radius: 10px;
  background: rgba(113, 79, 212, 0.13);
}

.consultant-entry__icon svg {
  width: 19px;
  fill: none;
  stroke: #b7b5ee;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.consultant-entry small,
.consultant-entry strong {
  display: block;
}

.consultant-entry small {
  margin-bottom: 2px;
  color: #756e9f;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 7px;
  letter-spacing: 0.16em;
}

.consultant-entry strong {
  font-size: 11px;
  font-weight: 520;
  white-space: nowrap;
}

.profile-body {
  min-height: 100svh;
}

.profile-topbar {
  grid-template-columns: 1fr auto;
}

.profile-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(126, 145, 232, 0.18);
  border-radius: 9px;
  color: #aab3d2;
  background: rgba(66, 79, 151, 0.07);
  font-size: 11px;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.profile-back:hover,
.profile-back:focus-visible {
  border-color: rgba(117, 151, 255, 0.36);
  color: #eef1ff;
  outline: none;
  background: rgba(75, 101, 205, 0.12);
}

.profile-main {
  min-height: calc(100svh - var(--header-h));
  padding: clamp(24px, 4vw, 60px);
}

.profile-content {
  width: min(1680px, 100%);
  min-height: calc(100svh - var(--header-h) - clamp(48px, 8vw, 120px));
  margin: 0 auto;
}

@keyframes openFromCenter {
  0% {
    clip-path: inset(0 49% round 17px);
    opacity: 0.65;
  }
  100% {
    clip-path: inset(0 0 round 17px);
    opacity: 1;
  }
}

@keyframes brandMatrixPulse {
  0%, 100% { opacity: 0.62; }
  50% { opacity: 0.82; }
}

@keyframes dataScan {
  0% { transform: translateY(-24px) scaleX(0.92); opacity: 0; }
  10% { opacity: 0.85; }
  50% { transform: translateY(420px) scaleX(1.02); opacity: 0.95; }
  90% { opacity: 0.55; }
  100% { transform: translateY(820px) scaleX(0.96); opacity: 0; }
}

@keyframes waveFlow {
  0%, 100% { transform: translateX(-8%) skewX(-6deg); opacity: 0.35; }
  50% { transform: translateX(8%) skewX(6deg); opacity: 0.72; }
}

.leader-deck::before,
.leader-deck::after {
  animation: waveFlow 7s ease-in-out infinite;
}

.leader-deck::after {
  animation-delay: 1.4s;
}

@keyframes railAmbient {
  0%, 100% { opacity: 0.42; filter: saturate(90%); }
  50% { opacity: 0.78; filter: saturate(135%); }
}

@keyframes cockpitSideGlow {
  0%, 100% {
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.07), 0 0 32px rgba(70, 125, 255, 0.3);
  }
  50% {
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.12), 0 0 58px rgba(111, 82, 226, 0.46), 0 0 26px rgba(71, 217, 255, 0.28);
  }
}

@keyframes cockpitSideSweep {
  0%, 18% { top: -34%; left: -92%; opacity: 0; }
  28% { opacity: 0.96; }
  58% { top: 104%; left: 22%; opacity: 0.68; }
  68%, 100% { top: 118%; left: 38%; opacity: 0; }
}

@keyframes cockpitCenterGlow {
  0%, 100% {
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.44), inset 0 1px rgba(255, 255, 255, 0.055), 0 0 34px rgba(70, 125, 255, 0.22);
  }
  50% {
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.44), inset 0 1px rgba(255, 255, 255, 0.1), 0 0 62px rgba(93, 91, 255, 0.38), 0 0 28px rgba(71, 217, 255, 0.2);
  }
}

@keyframes cockpitTopBeam {
  0%, 100% { opacity: 0.58; filter: brightness(0.9); transform: scaleX(0.78); }
  50% { opacity: 1; filter: brightness(1.35); transform: scaleX(1.08); }
}

@keyframes cockpitAura {
  0%, 100% { opacity: 0.62; transform: scale(0.96); }
  50% { opacity: 0.94; transform: scale(1.035); }
}

@keyframes cockpitFloorBeam {
  0%, 100% { opacity: 0.48; transform: scaleX(0.84); }
  50% { opacity: 0.92; transform: scaleX(1.04); }
}

@keyframes nodeBlink {
  0%, 100% { opacity: 0.3; transform: translateX(-50%) scale(0.75); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.2); }
}

@keyframes entryGlow {
  0%, 100% { box-shadow: 0 13px 38px rgba(0, 0, 0, 0.34), 0 0 18px rgba(95, 73, 198, 0.06); }
  50% { box-shadow: 0 13px 38px rgba(0, 0, 0, 0.34), 0 0 28px rgba(81, 107, 223, 0.14); }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

@media (max-width: 1180px) {
  .topbar__center {
    display: none;
  }

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

  .leaderboard-section {
    padding-right: 54px;
    padding-left: 28px;
  }

  .leader-deck:not(.leader-deck--carousel) {
    grid-template-columns: 120px minmax(620px, 1fr) 105px;
    overflow-x: auto;
  }

  :root {
    --cockpit-screen-width: min(78vw, 1120px);
    --cockpit-side-width: min(18vw, 220px);
    --cockpit-pose-left: translate(-50%, -48%) translateX(calc(-0.5 * var(--cockpit-screen-width) - 40%)) translateZ(-210px) rotateY(34deg) scale(0.9);
    --cockpit-pose-right: translate(-50%, -48%) translateX(calc(0.5 * var(--cockpit-screen-width) + 40%)) translateZ(-210px) rotateY(-34deg) scale(0.9);
  }

  .rank-table th,
  .rank-table td {
    padding-right: 6px;
    padding-left: 6px;
  }
}

@media (max-height: 820px) and (min-width: 821px) {
  body:not(.online-page) .leaderboard-section {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  body:not(.online-page) .section-heading {
    margin-bottom: 14px;
  }

  body:not(.online-page) .section-kicker {
    margin-bottom: 5px;
  }

  body:not(.online-page) .section-heading h1,
  body:not(.online-page) .section-heading h2 {
    font-size: clamp(25px, 2.1vw, 34px);
  }

  body:not(.online-page) .leader-deck {
    height: calc(100svh - var(--header-h) - 126px);
    min-height: 580px;
  }

  body:not(.online-page) .leader-deck--carousel {
    --cockpit-screen-height: min(62vh, 640px);
  }

  body:not(.online-page) .board-head {
    min-height: 76px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  body:not(.online-page) .table-wrap {
    flex: 1 1 auto;
    min-height: 0;
  }

  body:not(.online-page) .rank-table th {
    height: 34px;
  }

  body:not(.online-page) .rank-table td {
    height: 39px;
  }
}

@media (max-width: 820px) {
  :root {
    --header-h: 62px;
  }

  html {
    scroll-snap-type: none;
  }

  .topbar {
    width: 100vw;
    max-width: 100vw;
  }

  .date-stamp {
    display: none;
  }

  .rank-comparison-filter {
    display: none;
  }

  .leaderboard-section {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    min-height: auto;
    padding: 30px 18px 46px;
    overflow-x: clip;
  }

  .section-inner,
  .section-heading {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .section-heading {
    display: block;
  }

  .section-stats {
    margin-top: 18px;
  }

  .leader-deck {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    padding: 8px;
    overflow: visible;
    flex-direction: column;
  }

  .leader-deck--carousel {
    height: auto;
    min-height: 0;
    padding: 0;
    overflow: visible;
  }

  .cockpit-board-rail {
    flex-wrap: nowrap;
    max-width: 100%;
    margin: 0 0 2px;
    justify-content: flex-start;
  }

  .cockpit-board-chip span {
    max-width: 8em;
  }

  /* 清理 3D/滤镜上下文，保证 sticky 可用；藏假侧屏 */
  .cockpit-viewer,
  .cockpit-carousel,
  .cockpit-screen {
    transform: none !important;
    perspective: none !important;
    filter: none !important;
  }

  .cockpit-viewer {
    height: auto;
  }

  .cockpit-carousel {
    position: relative;
    display: block;
    inset: auto;
  }

  .cockpit-screen,
  .cockpit-screen.pos-center {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto !important;
    min-height: 0;
    opacity: 1;
    transition: none;
  }

  .cockpit-screen.pos-left,
  .cockpit-screen.pos-right,
  .cockpit-side-hint {
    display: none !important;
  }

  .cockpit-screen.pos-center::after {
    display: none;
  }

  .cockpit-screen-shell {
    position: relative;
    inset: auto;
    min-height: 0;
    height: auto;
  }

  .active-board {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto !important;
    min-height: 400px;
    border-radius: 12px;
    box-shadow:
      0 12px 40px rgba(0, 0, 0, 0.4),
      inset 0 1px rgba(255, 255, 255, 0.04);
  }

  .cockpit-screen.pos-center .active-board {
    height: auto !important;
  }

  /* 表头：上下堆叠，左名称右指标 */
  .board-head {
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: auto;
    padding: 14px 16px;
  }

  .board-focus {
    justify-content: space-between;
    width: 100%;
  }

  .board-focus .leader-name,
  .rank-table .leader-name {
    display: block;
    text-align: left;
  }

  .focus-metric {
    border-left: 1px solid rgba(132, 148, 226, 0.16);
    padding-left: 18px;
  }

  .sort-rule {
    display: none;
  }

  .board-title {
    white-space: normal;
  }

  /* 原生表横滑 + 冻结前两列（破除卡片化） */
  .table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .table-wrap::-webkit-scrollbar {
    display: none;
  }

  .rank-table {
    display: table !important;
    table-layout: auto !important;
    min-width: 720px !important;
    width: 100%;
  }

  .rank-table--store,
  .rank-table.online-main-rank {
    min-width: 960px !important;
  }

  .rank-table thead {
    display: table-header-group !important;
  }

  .rank-table tbody {
    display: table-row-group !important;
  }

  .rank-table tr {
    display: table-row !important;
  }

  .rank-table th,
  .rank-table td {
    display: table-cell !important;
  }

  .rank-table th::before,
  .rank-table td::before {
    content: none !important;
    display: none !important;
  }

  .rank-table th:nth-child(2),
  .rank-table td:nth-child(2),
  .rank-table th:nth-child(3),
  .rank-table td:nth-child(3),
  .rank-table th:nth-child(4),
  .rank-table td:nth-child(4) {
    width: auto;
  }

  .rank-table th:nth-child(1),
  .rank-table td:nth-child(1) {
    position: sticky;
    left: 0;
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    padding-left: 4px;
    padding-right: 2px;
    background-color: #0d1028;
    z-index: 2;
    overflow: hidden !important;
    text-overflow: clip;
  }

  .rank-table th:nth-child(2),
  .rank-table td:nth-child(2) {
    position: sticky;
    left: 44px;
    width: 88px;
    min-width: 72px;
    max-width: 88px;
    padding-left: 6px;
    padding-right: 6px;
    background-color: #0d1028;
    z-index: 2;
    overflow: visible !important;
  }

  .rank-table .rank-medal {
    min-width: 22px;
    height: 22px;
    gap: 0;
  }

  .rank-table tr.rank-row--1 .rank-medal,
  .rank-table tr.rank-row--2 .rank-medal,
  .rank-table tr.rank-row--3 .rank-medal {
    min-width: 0;
    width: auto;
    height: auto;
    border-radius: 0;
  }

  .rank-table .rank-medal svg {
    display: none !important;
  }

  .rank-table .rank-medal em {
    font-size: 9px;
  }

  .rank-table tr.rank-row--1 .rank-medal::before {
    width: 14px;
    height: 9px;
  }

  .rank-table tr.rank-row--1 .rank-medal em,
  .rank-table tr.rank-row--2 .rank-medal em,
  .rank-table tr.rank-row--3 .rank-medal em {
    font-size: 14px;
  }

  .rank-table .merchant-name,
  .rank-table .leader-name strong {
    font-size: 11px;
  }

  .rank-table tr.rank-row--1 .merchant-name,
  .rank-table tr.rank-row--1 .leader-name strong,
  .rank-table tr.rank-row--2 .merchant-name,
  .rank-table tr.rank-row--2 .leader-name strong,
  .rank-table tr.rank-row--3 .merchant-name,
  .rank-table tr.rank-row--3 .leader-name strong {
    color: #ffffff;
    font-size: 13px;
  }

  .rank-table th:nth-child(2)::after,
  .rank-table td:nth-child(2)::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1px;
    content: "";
    background: rgba(132, 146, 224, 0.15);
    box-shadow: 4px 0 8px -2px rgba(0, 0, 0, 0.4);
    transform: translateX(100%);
    pointer-events: none;
  }

  .rank-table thead th:nth-child(1),
  .rank-table thead th:nth-child(2) {
    z-index: 5;
    background-color: #11142f;
  }

  .rank-table tbody tr {
    transition: background 150ms ease;
  }

  .rank-table tbody tr.clickable-rank-row {
    -webkit-tap-highlight-color: transparent;
  }

  .rank-table tbody tr.clickable-rank-row:active td {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.15), rgba(71, 217, 255, 0.1));
  }

  .rank-table tbody tr.clickable-rank-row:active td:nth-child(1),
  .rank-table tbody tr.clickable-rank-row:active td:nth-child(2) {
    background-color: #18193a;
  }

  .rank-table tbody tr:first-child td:nth-child(1),
  .rank-table tbody tr:first-child td:nth-child(2) {
    background-color: #151433;
  }

  .rank-table td {
    height: 48px;
    padding: 0 10px;
  }

  .rank-table th {
    height: 40px;
    padding: 0 10px;
  }

  .rank-pager {
    padding: 0 12px;
  }

  .rank-pager__btn {
    padding: 8px 16px;
    font-size: 12px;
  }

  .page-dots {
    display: none;
  }
}

@media (max-width: 520px) {
  .demo-badge {
    padding: 6px 8px;
    font-size: 9px;
  }

  .brand__mark {
    width: 36px;
    height: 36px;
  }

  .section-heading h1,
  .section-heading h2 {
    font-size: 25px;
  }

  .section-stats {
    gap: 14px;
  }

  .section-stat {
    padding-left: 14px;
  }

  .board-focus {
    gap: 8px;
  }

  .consultant-entry {
    right: 12px;
    bottom: 12px;
    min-width: 0;
    padding: 7px 10px 7px 7px;
  }

  .consultant-entry__icon {
    width: 30px;
    height: 30px;
  }

  .consultant-entry small {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .grid-noise::after {
    animation: none !important;
    opacity: 0.72;
  }

  .cockpit-screen,
  .cockpit-screen.pos-center,
  .cockpit-screen.pos-left,
  .cockpit-screen.pos-right {
    transition: none !important;
  }

  .cockpit-screen.pos-center {
    transform: translate(-50%, -48%) !important;
  }

  .cockpit-screen.pos-left {
    transform: translate(-50%, -48%) translateX(-58%) scale(0.86) !important;
  }

  .cockpit-screen.pos-right {
    transform: translate(-50%, -48%) translateX(58%) scale(0.86) !important;
  }

  .cockpit-screen.pos-center::after {
    display: none;
  }
}

/* ---- Pulse chrome: user menu, date picker, modal (dark) ---- */
.pulse-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(89, 225, 173, 0.18);
  border-radius: 99px;
  color: #96edcb;
  background: rgba(52, 197, 142, 0.07);
  font-size: 11px;
}

.pulse-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

.pulse-status.is-loading {
  border-color: rgba(138, 156, 255, 0.22);
  color: #9aa6d8;
  background: rgba(18, 22, 52, 0.72);
}

.pulse-status.is-loading i {
  background: #7b88c9;
  box-shadow: 0 0 8px rgba(123, 136, 201, 0.55);
}

.pulse-status.is-fail {
  border-color: rgba(255, 107, 129, 0.28);
  color: #ffb0bd;
  background: rgba(255, 77, 109, 0.08);
}

.pulse-status.is-fail i {
  background: #ff6b81;
  box-shadow: 0 0 10px rgba(255, 107, 129, 0.55);
  animation: none;
}

.pulse-user {
  position: relative;
}

.pulse-user__trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 4px 4px;
  border: 1px solid rgba(138, 156, 255, 0.16);
  border-radius: 999px;
  background: rgba(18, 22, 52, 0.72);
  color: var(--text);
  cursor: pointer;
}

.pulse-user__trigger:hover,
.pulse-user.is-open .pulse-user__trigger {
  border-color: rgba(142, 129, 255, 0.42);
}

.pulse-user__avatar {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.55), rgba(70, 125, 255, 0.55));
  font-size: 12px;
  font-weight: 700;
}

.pulse-user__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: none;
}

img.pulse-user__avatar {
  background: none;
}

.pulse-user__copy {
  display: none;
  min-width: 0;
  text-align: left;
}

.pulse-user__copy strong,
.pulse-user__copy span {
  display: block;
  line-height: 1.25;
}

.pulse-user__copy strong {
  font-size: 12px;
}

.pulse-user__copy span {
  color: var(--muted);
  font-size: 10px;
}

@media (min-width: 900px) {
  .pulse-user__copy { display: block; }
}

.pulse-user__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  min-width: 180px;
  padding: 8px;
  border: 1px solid rgba(138, 156, 255, 0.18);
  border-radius: 12px;
  background: rgba(12, 15, 38, 0.96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.pulse-user__panel[hidden] { display: none !important; }

.pulse-user__panel a,
.pulse-user__panel button {
  display: block;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-light);
  cursor: pointer;
  text-align: left;
  font-size: 12px;
}

.pulse-user__panel a:hover,
.pulse-user__panel button:hover {
  background: rgba(111, 77, 218, 0.16);
  color: var(--text);
}

.pulse-nav-links {
  display: none;
  align-items: center;
  gap: 10px;
  margin-right: 8px;
}

.pulse-nav-links a {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.pulse-nav-links a:hover,
.pulse-nav-links a.is-active {
  color: #c6b8ff;
}

@media (min-width: 820px) {
  .pulse-nav-links { display: inline-flex; }
}

.date-picker-host { position: relative; flex: 0 0 auto; }
.date-picker { position: relative; }
.date-picker-trigger {
  min-width: 190px;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid rgba(138, 156, 255, 0.18);
  border-radius: 10px;
  background: rgba(18, 22, 52, 0.72);
  color: var(--muted-light);
  cursor: pointer;
  text-align: left;
}
.date-picker-trigger:hover,
.date-picker.is-open .date-picker-trigger {
  border-color: rgba(142, 129, 255, 0.42);
}
.date-picker-trigger > svg:first-child {
  width: 16px; height: 16px; flex: 0 0 16px;
  fill: none; stroke: #9f78ff; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.date-picker-trigger > span { min-width: 0; flex: 1; }
.date-picker-trigger small,
.date-picker-trigger strong { display: block; }
.date-picker-trigger small { color: var(--muted); font-size: 9px; }
.date-picker-trigger strong { margin-top: 1px; color: var(--text); font-size: 12px; white-space: nowrap; }
.date-picker-chevron { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.date-picker.is-open .date-picker-chevron { transform: rotate(180deg); }
.date-picker-popover {
  position: absolute; top: calc(100% + 9px); right: 0; z-index: 120;
  width: min(420px, calc(100vw - 28px)); padding: 16px;
  border: 1px solid rgba(138, 156, 255, 0.2);
  border-radius: 12px;
  background: rgba(12, 15, 38, 0.98);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
}
.date-preset-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.date-preset-list button {
  min-height: 34px; padding: 0 8px; border: 1px solid transparent; border-radius: 7px;
  background: rgba(255, 255, 255, 0.04); color: var(--muted-light); cursor: pointer; font-size: 11.5px;
}
.date-preset-list button:hover,
.date-preset-list button.active {
  border-color: rgba(142, 129, 255, 0.35);
  background: rgba(111, 77, 218, 0.18);
  color: #c6b8ff;
}
.date-calendar {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid rgba(138, 156, 255, 0.12);
}
.date-calendar-toolbar {
  display: grid; grid-template-columns: 32px 1fr 32px;
  align-items: center; gap: 8px; margin-bottom: 10px;
}
.date-calendar-toolbar strong { color: var(--text); font-size: 13px; font-weight: 700; text-align: center; }
.date-calendar-nav {
  width: 32px; height: 32px; padding: 0;
  border: 1px solid rgba(138, 156, 255, 0.2); border-radius: 7px;
  background: rgba(255, 255, 255, 0.04); color: var(--muted-light);
  cursor: pointer; font-size: 20px; line-height: 1;
}
.date-calendar-nav:hover,
.date-calendar-nav:focus-visible { border-color: rgba(142, 129, 255, 0.42); color: #c6b8ff; outline: none; }
.date-calendar-nav:disabled { cursor: not-allowed; opacity: 0.35; }
.date-calendar-weekdays,
.date-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.date-calendar-weekdays { margin-bottom: 4px; }
.date-calendar-weekdays span { color: var(--muted); font-size: 10px; line-height: 24px; text-align: center; }
.date-calendar-day {
  position: relative; min-height: 34px; padding: 0;
  border: 1px solid transparent; border-radius: 7px;
  background: transparent; color: var(--muted-light); cursor: pointer;
  font-size: 11.5px; line-height: 32px; text-align: center;
}
.date-calendar-day:hover,
.date-calendar-day:focus-visible { border-color: rgba(142, 129, 255, 0.42); color: #c6b8ff; outline: none; }
.date-calendar-day.is-outside { color: var(--muted); opacity: 0.55; }
.date-calendar-day.is-today::after {
  position: absolute; right: 5px; bottom: 4px; width: 3px; height: 3px;
  border-radius: 50%; background: #9f78ff; content: '';
}
.date-calendar-day.is-in-range { border-radius: 0; background: rgba(111, 77, 218, 0.18); color: #c6b8ff; }
.date-calendar-day.is-start,
.date-calendar-day.is-end { border-color: #8e81ff; background: #7452d8; color: #fff; font-weight: 700; }
.date-calendar-day.is-start { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.date-calendar-day.is-end { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.date-calendar-day.is-start.is-end { border-radius: 7px; }
.date-calendar-day.is-disabled { cursor: not-allowed; opacity: 0.35; }
.date-range-summary {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: 8px; margin-top: 12px;
}
.date-range-summary > span { color: var(--muted); }
.date-range-summary button {
  min-width: 0; padding: 7px 9px;
  border: 1px solid rgba(138, 156, 255, 0.2); border-radius: 7px;
  background: rgba(255, 255, 255, 0.04); color: var(--muted-light);
  cursor: pointer; text-align: left;
}
.date-range-summary button:hover,
.date-range-summary button.is-active { border-color: rgba(142, 129, 255, 0.42); background: rgba(111, 77, 218, 0.18); }
.date-range-summary small,
.date-range-summary strong { display: block; }
.date-range-summary small { color: var(--muted); font-size: 9.5px; }
.date-range-summary strong { margin-top: 2px; color: var(--text); font-size: 11px; font-weight: 650; white-space: nowrap; }
.date-picker-error { min-height: 18px; margin-top: 7px; color: var(--danger); font-size: 11px; }
.date-picker-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; font-size: 12px;
}
.btn-sm { min-height: 30px; padding: 0 10px; font-size: 11.5px; }
.btn-ghost {
  border-color: rgba(138, 156, 255, 0.2);
  background: transparent; color: var(--muted-light);
}
.btn-ghost:hover { border-color: rgba(142, 129, 255, 0.4); color: var(--text); }
.btn-primary {
  border-color: rgba(142, 129, 255, 0.35);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.85), rgba(70, 125, 255, 0.85));
  color: #fff;
}
.btn-primary:hover { filter: brightness(1.06); }

.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(4, 6, 18, 0.72); backdrop-filter: blur(4px);
}
.modal-dialog {
  width: 100%; max-width: 390px;
  background: #121632; border: 1px solid rgba(138, 156, 255, 0.18);
  border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); overflow: hidden; color: var(--text);
}
.modal-header { padding: 16px 22px; border-bottom: 1px solid rgba(138, 156, 255, 0.12); }
.modal-header h3 { margin: 0; font-size: 16px; }
.modal-body { padding: 18px 22px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 22px 18px; }
.modal-error { margin: 6px 0 0; min-height: 18px; color: var(--danger); font-size: 13px; }
.modal-success { margin: 6px 0 0; color: var(--green); font-size: 13px; }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.form-control {
  width: 100%; min-height: 40px; padding: 8px 11px;
  border: 1px solid rgba(138, 156, 255, 0.2); border-radius: 8px;
  background: rgba(255, 255, 255, 0.04); color: var(--text); font: inherit; color-scheme: dark;
}
.form-control:focus { outline: none; border-color: rgba(142, 129, 255, 0.5); }

.cockpit-loading, .cockpit-error {
  display: grid; place-items: center;
  min-height: calc(100svh - var(--header-h));
  color: var(--muted); font-size: 14px; padding: 40px 24px; text-align: center;
}
.cockpit-error { color: #ff9ab4; }

.topbar__right .date-picker-host { margin-right: 4px; }

/* ---- Pulse login ---- */
body.pulse-login-body {
  min-height: 100svh;
  overflow-x: hidden;
  background-color: #04050c;
  background-image: url("../assets/login-bg.jpg");
  background-repeat: no-repeat;
  background-size: auto;
  background-position: left 5vw center;
}

body.pulse-login-body .ambient,
body.pulse-login-body .grid-noise {
  opacity: 0.1;
}

.pulse-login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
  min-height: 100svh;
}

.pulse-login-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(36px, 5vw, 72px);
  border-right: 0;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(4, 6, 16, 0.42) 0%, rgba(4, 6, 16, 0.08) 62%, transparent 100%);
}

.pulse-login-visual::before {
  display: none;
}

.pulse-login-brand {
  position: relative;
  z-index: 1;
}

.pulse-login-statement {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.pulse-login-statement h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.pulse-login-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: min(640px, 100%);
}

.pulse-login-metrics article {
  min-width: 0;
  padding: 14px 14px;
  border: 1px solid rgba(138, 156, 255, 0.14);
  border-radius: 14px;
  background: rgba(13, 16, 39, 0.55);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.pulse-login-metrics span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pulse-login-metrics strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 650;
  line-height: 1.3;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.pulse-login-panel {
  display: grid;
  place-items: center;
  padding: clamp(28px, 4vw, 48px);
  background: linear-gradient(90deg, transparent, rgba(5, 7, 18, 0.42) 36%, rgba(5, 7, 18, 0.62));
}

.pulse-login-card {
  width: min(420px, 100%);
  padding: clamp(28px, 4vw, 36px);
  border: 1px solid rgba(138, 156, 255, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(18, 22, 52, 0.72), rgba(8, 10, 28, 0.82));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35), inset 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(22px) saturate(140%);
}

.pulse-login-card > .eyebrow {
  color: #9aa4cb;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.pulse-login-card h2 {
  margin: 10px 0 8px;
  font-size: 28px;
  font-weight: 650;
}

.pulse-login-card > p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.pulse-login-card .auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 22px;
  padding: 5px;
  border: 1px solid rgba(138, 156, 255, 0.14);
  border-radius: 12px;
  background: rgba(7, 9, 24, 0.55);
}

.pulse-login-card .auth-tab {
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
}

.pulse-login-card .auth-tab:hover {
  color: var(--text);
}

.pulse-login-card .auth-tab.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.85), rgba(70, 125, 255, 0.85));
  box-shadow: 0 8px 22px rgba(95, 73, 198, 0.28);
}

.pulse-login-card .form-group {
  margin-bottom: 14px;
}

.pulse-login-card .form-group label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted-light);
  font-size: 12px;
}

.pulse-login-card .form-control {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(138, 156, 255, 0.18);
  border-radius: 10px;
  background: rgba(7, 9, 24, 0.55);
  color: var(--text);
  font: inherit;
  color-scheme: dark;
}

.pulse-login-card .form-control:focus {
  outline: none;
  border-color: rgba(142, 129, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(111, 77, 218, 0.18);
}

.pulse-login-card textarea.form-control {
  min-height: 72px;
  resize: vertical;
}

.pulse-login-card select.form-control {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #8f98b8 50%), linear-gradient(135deg, #8f98b8 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.pulse-login-card .btn-block {
  width: 100%;
  min-height: 46px;
  margin-top: 6px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(70, 125, 255, 0.95));
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 34px rgba(95, 73, 198, 0.28);
}

.pulse-login-card .btn-block:hover:not(:disabled) {
  filter: brightness(1.06);
}

.pulse-login-card .btn-block:disabled {
  opacity: 0.7;
  cursor: wait;
}

.pulse-login-card .login-error {
  min-height: 18px;
  margin-top: 10px;
  color: var(--danger);
  font-size: 12px;
}

.pulse-login-card .login-hint {
  min-height: 18px;
  margin-top: 8px;
  color: var(--green);
  font-size: 12px;
}

.pulse-login-card .login-hint:empty,
.pulse-login-card .login-error:empty {
  display: none;
}

@media (max-width: 920px) {
  .pulse-login-shell {
    grid-template-columns: 1fr;
  }

  .pulse-login-visual {
    min-height: auto;
    padding-bottom: 28px;
    border-right: 0;
    border-bottom: 0;
    background: linear-gradient(180deg, transparent, rgba(4, 6, 16, 0.45));
  }

  .pulse-login-statement h1 {
    font-size: 34px;
  }

  .pulse-login-metrics {
    grid-template-columns: 1fr;
  }

  .pulse-login-panel {
    padding-top: 28px;
    background: linear-gradient(180deg, rgba(5, 7, 18, 0.22), rgba(5, 7, 18, 0.48));
  }
}

@media (max-width: 520px) {
  .pulse-login-visual,
  .pulse-login-panel {
    padding-left: 20px;
    padding-right: 20px;
  }

  .pulse-login-card {
    padding: 22px;
    border-radius: 18px;
  }
}

/* 列表 / 线下 / 门店：与驾驶舱统一的暗色布局 */
body.online-cockpit-page .online-list-main,
body.online-cockpit-page .offline-dashboard,
body.online-cockpit-page .stores-main,
body.online-cockpit-page .market-main {
  width: min(1560px, calc(100% - clamp(28px, 5vw, 96px)));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.topbar {
  grid-template-columns: 1fr auto 1fr;
}

/* 工作台/详情页也强制使用 pulse 顶栏视觉，避免 style.css 浅色覆盖 */
body.pulse-workbench .topbar,
body.detail-body .topbar,
body.online-cockpit-page .topbar {
  border-bottom: 1px solid rgba(144, 157, 255, 0.12);
  background: rgba(6, 8, 24, 0.72);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(22px) saturate(140%);
}

.pulse-primary-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(138, 156, 255, 0.16);
  border-radius: 999px;
  background: rgba(12, 16, 40, 0.72);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  position: relative;
  isolation: isolate;
}

.pulse-primary-nav::before {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: var(--subnav-x, 4px);
  width: var(--subnav-w, 72px);
  border-radius: 999px;
  content: "";
  background: var(--seg-nav-active);
  box-shadow: 0 8px 20px rgba(74, 92, 255, 0.22);
  transition: none;
  z-index: 0;
}

.pulse-primary-nav.nav-indicator-ready::before {
  transition:
    left 280ms cubic-bezier(0.22, 1, 0.36, 1),
    width 280ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 200ms ease;
}

.pulse-primary-nav:not(:has(.is-active))::before {
  opacity: 0;
}

.pulse-primary-nav a,
.pulse-primary-nav > span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 34px;
  padding: 8px 16px;
  border-radius: 999px;
  color: #8b93b5;
  font-family: var(--font-tab);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: center;
  text-decoration: none;
  background: transparent;
  white-space: nowrap;
  transition: color 180ms ease, transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pulse-primary-nav a:hover {
  color: var(--text);
}

.pulse-primary-nav a.is-active,
.pulse-primary-nav > span.is-active {
  color: #fff;
  background: transparent;
  box-shadow: none;
  transform: scale(1.02);
}

.topbar__nav-stack {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  justify-self: center;
  position: relative;
  z-index: 1;
}

.topbar__nav-divider {
  flex: 0 0 1px;
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, transparent, rgba(138, 156, 255, 0.38), transparent);
}

.offline-view-nav,
.online-view-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(138, 156, 255, 0.16);
  border-radius: 999px;
  background: rgba(12, 16, 40, 0.72);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  position: relative;
  isolation: isolate;
}

.offline-view-nav::before,
.online-view-nav::before {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: var(--subnav-x, 4px);
  width: var(--subnav-w, 72px);
  border-radius: 999px;
  content: "";
  background: var(--seg-nav-active);
  box-shadow: 0 8px 20px rgba(74, 92, 255, 0.22);
  transition: none;
  z-index: 0;
}

.offline-view-nav.nav-indicator-ready::before,
.online-view-nav.nav-indicator-ready::before {
  transition:
    left 280ms cubic-bezier(0.22, 1, 0.36, 1),
    width 280ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 200ms ease;
}

.offline-view-nav button,
.offline-view-nav a,
.online-view-nav a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 34px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  color: #8b93b5;
  background: transparent;
  font-family: var(--font-tab);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 180ms ease, transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.offline-view-nav button:hover,
.offline-view-nav a:hover,
.online-view-nav a:hover {
  color: var(--text);
}

.offline-view-nav button.is-active,
.offline-view-nav a.is-active,
.online-view-nav a.is-active {
  color: #fff;
  background: transparent;
  box-shadow: none;
  transform: scale(1.02);
}

.view-stack {
  position: relative;
  width: 100%;
}

.view-pane {
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity 340ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 340ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 340ms;
  pointer-events: none;
}

.view-pane:not(.is-active):not(.is-leaving) {
  position: absolute;
  top: 0;
  left: 0;
  /* 避免隐藏页（核心/详情）继续撑高整页滚动区域 */
  height: 0;
  overflow: hidden;
}

.view-pane.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition-delay: 0s;
  z-index: 1;
}

.view-pane.is-leaving {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, -10px, 0);
  transition-delay: 0s;
  z-index: 0;
}

.view-pane.is-entering {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
}

body.page-enter:not(.page-enter-active) #app,
body.page-enter:not(.page-enter-active) .online-list-main {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
}

body.page-enter-active #app,
body.page-enter-active .online-list-main {
  opacity: 1;
  transform: none;
  transition:
    opacity 360ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .view-pane,
  .view-pane.is-leaving,
  .view-pane.is-entering,
  body.page-enter #app,
  body.page-enter .online-list-main,
  body.page-enter-active #app,
  body.page-enter-active .online-list-main,
  body.offline-page .offline-view-nav::before,
  body.online-page .online-view-nav::before,
  .offline-view-nav::before,
  .online-view-nav::before,
  .pulse-primary-nav::before {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }

  .pulse-primary-nav a.is-active,
  .offline-view-nav button.is-active,
  .offline-view-nav a.is-active,
  .online-view-nav a.is-active {
    background: var(--seg-nav-active);
    box-shadow: 0 8px 20px rgba(74, 92, 255, 0.22);
    transform: none;
  }

  .view-pane:not(.is-active) {
    display: none;
  }

  .view-pane.is-active {
    display: block;
    opacity: 1;
    visibility: visible;
  }
}

.offline-view[hidden] {
  display: none !important;
}

.detail-topbar .pulse-primary-nav,
.detail-topbar .topbar__nav-stack {
  justify-self: center;
}

.topbar__right {
  gap: 12px;
}

@media (max-width: 820px) {
  .pulse-primary-nav a {
    min-width: 56px;
    padding: 7px 11px;
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .topbar__nav-stack {
    gap: 8px;
  }

  .topbar__nav-divider {
    height: 22px;
  }

  .offline-view-nav button,
  .offline-view-nav a,
  .online-view-nav a {
    min-width: 56px;
    padding: 7px 10px;
    font-size: 11px;
    letter-spacing: 0.06em;
  }
}

/* Workbench pages reuse cockpit chrome */
body.pulse-workbench {
  min-height: 100svh;
}

.pulse-workbench-main {
  width: min(1560px, calc(100% - clamp(28px, 5vw, 96px)));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.pulse-workbench .page-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.pulse-workbench .page-title .eyebrow,
.pulse-workbench .section-kicker {
  color: #7b86a9;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pulse-workbench .page-title h2,
.pulse-workbench .section-heading h3,
.pulse-workbench .offline-ranking-header h3 {
  margin: 6px 0 4px;
  color: var(--text);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 600;
}

.pulse-workbench .page-title p,
.pulse-workbench .section-heading p,
.pulse-workbench .offline-ranking-header p,
.pulse-workbench .metric-footnote {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.pulse-workbench .toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.pulse-workbench .panel,
.pulse-workbench .section-band,
.pulse-workbench .offline-kpi-stage,
.pulse-workbench .offline-ranking-stage,
.pulse-workbench .offline-visual-grid > * {
  border: 1px solid rgba(138, 156, 255, 0.14);
  border-radius: 18px;
  background: rgba(13, 16, 39, 0.72);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.pulse-workbench .panel-body,
.pulse-workbench .section-band {
  padding: 0;
  overflow: hidden;
}

.pulse-workbench .section-band {
  padding: 18px;
}

.pulse-workbench .data-table {
  width: 100%;
  border-collapse: collapse;
}

.pulse-workbench .data-table th,
.pulse-workbench .data-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(138, 156, 255, 0.08);
  color: var(--muted-light);
  font-size: 12px;
  text-align: left;
}

.pulse-workbench .data-table th {
  color: #687394;
  font-size: 10px;
  letter-spacing: 0.08em;
  background: rgba(10, 13, 32, 0.92);
}

.pulse-workbench .data-table tbody tr:hover {
  background: rgba(95, 72, 186, 0.08);
}

.pulse-workbench .empty-cell {
  text-align: center;
  color: var(--muted);
  padding: 28px 12px !important;
}

.pulse-workbench .tabs:not(.tabs-multiline) {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pulse-workbench .tab,
.pulse-workbench .tabs .tab {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(138, 156, 255, 0.14);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}

.pulse-workbench .tab.active,
.pulse-workbench .tabs .tab.active {
  color: #fff;
  border-color: rgba(142, 129, 255, 0.4);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.75), rgba(70, 125, 255, 0.7));
}

.pulse-workbench .tabs-multiline {
  flex-wrap: nowrap;
  gap: 8px;
  padding: 0 0 2px;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.pulse-workbench .tabs-multiline::-webkit-scrollbar {
  display: none;
}

.pulse-workbench .tabs-multiline .tab,
.pulse-workbench .tabs-multiline .tabs .tab {
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(138, 156, 255, 0.16);
  background: rgba(10, 14, 32, 0.55);
}

.pulse-workbench .tabs-multiline .tab.active,
.pulse-workbench .tabs-multiline .tabs .tab.active {
  border-color: rgba(142, 129, 255, 0.45);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.82), rgba(70, 125, 255, 0.72));
}

.pulse-workbench .form-control,
.pulse-workbench select.form-control,
.pulse-workbench input.form-control {
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid rgba(138, 156, 255, 0.18);
  border-radius: 10px;
  background: rgba(7, 9, 24, 0.55);
  color: var(--text);
  color-scheme: dark;
}

.pulse-workbench .btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(138, 156, 255, 0.2);
  cursor: pointer;
  font-size: 12px;
}

.pulse-workbench .btn-ghost {
  background: transparent;
  color: var(--muted-light);
}

.pulse-workbench .btn-primary {
  border: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(70, 125, 255, 0.9));
  color: #fff;
}

.pulse-workbench .secondary-metrics,
.pulse-workbench .metric-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.pulse-workbench .metric-block,
.pulse-workbench .secondary-metrics > * {
  position: relative;
  overflow: hidden;
  padding: 14px 16px;
  border: 0.5px solid var(--chip-border);
  border-radius: 18px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 42%, rgba(255, 255, 255, 0.01) 100%),
    var(--chip-face);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 6px 18px rgba(0, 0, 0, 0.14);
  backdrop-filter: var(--chip-blur);
  -webkit-backdrop-filter: var(--chip-blur);
}

.pulse-workbench .metric-block span,
.pulse-workbench .secondary-metrics span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.pulse-workbench .metric-block strong,
.pulse-workbench .secondary-metrics strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 22px;
}

.pulse-workbench .full-list-table {
  max-height: min(70vh, 720px);
  overflow: auto;
}

.pulse-workbench .store-view-heading,
.pulse-workbench .offline-ranking-header,
.pulse-workbench .section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.pulse-workbench .alert-item {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 122, 158, 0.28);
  border-radius: 12px;
  color: #ffb3c5;
  background: rgba(255, 122, 158, 0.08);
}

.pulse-workbench .change-up { color: var(--green); }
.pulse-workbench .change-down { color: var(--danger); }
.pulse-workbench .change-flat { color: var(--muted); }

.pulse-workbench .offline-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.pulse-workbench .offline-visual-grid canvas {
  width: 100%;
  max-width: 100%;
}

.pulse-workbench .offline-dimension-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 14px 14px;
  padding: 0;
  border: 0;
  background: transparent;
}

.pulse-workbench .offline-dimension-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(138, 156, 255, 0.14);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: 160ms ease;
}

.pulse-workbench .offline-dimension-button::after {
  display: none;
}

.pulse-workbench .offline-dimension-button small {
  color: #687394;
  font-size: 10px;
}

.pulse-workbench .offline-dimension-button:hover,
.pulse-workbench .offline-dimension-button.active {
  color: #fff;
  border-color: rgba(142, 129, 255, 0.4);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.75), rgba(70, 125, 255, 0.7));
}

.pulse-workbench .offline-dimension-button.active small {
  color: rgba(255, 255, 255, 0.78);
}

.pulse-workbench .offline-ranking-stage {
  margin-top: 22px;
  padding: 18px 12px 16px;
  overflow: visible;
  border: none;
  background: transparent;
  box-shadow: none;
}

.pulse-workbench .offline-ranking-stage .section-inner {
  display: grid;
  gap: 14px;
}

.pulse-workbench .offline-ranking-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px 4px;
  background: transparent;
}

.pulse-workbench .offline-ranking-header .title-index {
  margin-right: 10px;
  color: #7b86a9;
  font-size: 0.72em;
  letter-spacing: 0.12em;
}

.pulse-workbench .offline-ranking-stage .leader-deck {
  height: clamp(560px, 66vh, 720px);
}

.pulse-workbench .offline-ranking-stage .active-board {
  min-width: 0;
}

.pulse-workbench .offline-ranking-table-wrap {
  margin: 0;
  padding: 0 4px 8px;
  max-height: none;
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(117, 97, 239, 0.42) transparent;
}

.pulse-workbench .offline-ranking-table.rank-table th,
.pulse-workbench .offline-ranking-table.rank-table td {
  text-align: center;
}

.pulse-workbench .offline-ranking-table.rank-table th:nth-child(2),
.pulse-workbench .offline-ranking-table.rank-table td:nth-child(2) {
  text-align: left;
  width: 28%;
}

.pulse-workbench .offline-ranking-table [data-metric-column].is-ranked {
  color: #d7ceff;
  font-size: 12px;
  font-weight: 650;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.12), rgba(70, 125, 255, 0.04));
}

.pulse-workbench .offline-ranking-table .leader-name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.pulse-workbench .offline-ranking-table .leader-name strong {
  color: #eef1ff;
  font-size: 12px;
  font-weight: 600;
}

.pulse-workbench .offline-ranking-table .leader-name span {
  color: #687394;
  font-size: 10px;
}

.pulse-workbench .online-main-rank-wrap {
  max-height: min(70vh, 720px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(117, 97, 239, 0.42) transparent;
}

.pulse-workbench .online-main-rank.rank-table th:nth-child(2),
.pulse-workbench .online-main-rank.rank-table td:nth-child(2) {
  text-align: left;
  width: 18%;
}

.pulse-workbench .online-main-rank .leader-name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.pulse-workbench .online-main-rank .leader-name strong {
  color: #eef1ff;
  font-size: 12px;
  font-weight: 600;
}

.pulse-workbench .online-main-rank .leader-name span {
  color: #687394;
  font-size: 10px;
}

.pulse-workbench .online-main-rank td.is-ranked,
.pulse-workbench .online-main-rank th.is-ranked {
  color: #d7ceff;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.12), rgba(70, 125, 255, 0.04));
}

.pulse-workbench .offline-audit-strip {
  border: 1px solid rgba(138, 156, 255, 0.14);
  border-radius: 14px;
  background: rgba(13, 16, 39, 0.72);
  color: var(--muted-light);
}

.pulse-workbench .offline-audit-strip span,
.pulse-workbench .offline-audit-strip p {
  color: var(--muted);
}

.pulse-workbench .offline-audit-strip strong {
  color: var(--text);
}

@media (max-width: 900px) {
  .pulse-workbench .offline-visual-grid { grid-template-columns: 1fr; }
}

/* 入口页 */
.entry-body {
  position: relative;
  min-height: 100svh;
  margin: 0;
  display: grid;
  place-items: center;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -15%, rgba(91, 76, 255, 0.2), transparent 35%),
    linear-gradient(180deg, #080a1b 0%, #060716 50%, #080918 100%);
}

.entry-state {
  display: grid;
  justify-items: center;
  gap: 14px;
  color: var(--muted);
}

.entry-state strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.entry-mark {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid rgba(138, 163, 255, 0.28);
  border-radius: 14px;
  background: rgba(13, 16, 39, 0.78);
}

.entry-mark svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #c8d4ff;
  stroke-width: 1.6;
}

/* 线下：顶栏品牌过滤 */
.offline-toolbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8b93b5;
  font-size: 12px;
}

.offline-toolbar-brand select {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(138, 156, 255, 0.18);
  border-radius: 999px;
  background: rgba(12, 16, 40, 0.72);
  color: var(--text);
  font-size: 12px;
}

.leader-deck--solo {
  grid-template-columns: minmax(0, 1fr);
}

.offline-embedded-board {
  margin: clamp(18px, 2.5vh, 28px) 0;
}

.offline-embedded-board .leader-deck--carousel {
  --cockpit-screen-width: min(74vw, 1240px);
  --cockpit-side-width: min(18vw, 230px);
  --cockpit-screen-height: min(58vh, 620px);
  height: clamp(600px, 64vh, 720px);
}

/*
 * 线下重点排名 / 详情：与线上首页驾驶舱同款 3D 转盘 + 表格尺寸
 * （上月 TOP10 门店仍用 .offline-plain-rank，不走本节）
 */
body.offline-page .offline-core-page #offlineCoreBoards .leaderboard-section,
body.offline-page .offline-detail-page .leaderboard-section {
  --cockpit-screen-width: min(88vw, 1480px);
  --cockpit-screen-height: var(--cockpit-fit-height);
}

body.offline-page .offline-core-page #offlineCoreBoards .leaderboard-section {
  align-items: flex-start;
  min-height: 0;
  padding:
    clamp(8px, 1vh, 14px)
    0
    clamp(16px, 2.5vh, 28px);
  scroll-snap-align: none;
}

body.offline-page .offline-core-page #offlineCoreBoards .section-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: visible;
}

body.offline-page .offline-core-page #offlineCoreBoards .section-heading {
  align-items: flex-start;
  margin-bottom: clamp(4px, 0.8vh, 10px);
}

body.offline-page .offline-core-page #offlineCoreBoards .leader-deck--carousel,
body.offline-page .offline-detail-page .leader-deck--carousel {
  --cockpit-screen-width: min(88vw, 1480px);
  --cockpit-side-width: min(18vw, 230px);
  --cockpit-screen-height: var(--cockpit-fit-height);
  gap: 4px;
  width: 100%;
  margin: 0 auto;
  height: calc(var(--cockpit-fit-height) + 44px);
  /* 与线上一致：左右 3D 侧屏必须可见 */
  overflow-x: visible;
  overflow-y: clip;
}

body.offline-page .offline-core-page #offlineCoreBoards .cockpit-board-rail,
body.offline-page .offline-detail-page .cockpit-board-rail {
  max-width: var(--cockpit-screen-width);
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 4px;
}

body.offline-page .offline-core-page #offlineCoreBoards .cockpit-viewer,
body.offline-page .offline-detail-page .cockpit-viewer {
  overflow: visible;
}

body.offline-page .offline-core-page #offlineCoreBoards .cockpit-screen,
body.offline-page .offline-detail-page .cockpit-screen {
  min-height: 0;
}

body.offline-page .offline-core-page #offlineCoreBoards .cockpit-screen.pos-center,
body.offline-page .offline-detail-page .cockpit-screen.pos-center {
  height: var(--cockpit-fit-height);
  min-height: var(--cockpit-fit-height);
}

body.offline-page .offline-core-page #offlineCoreBoards .cockpit-screen.pos-center .cockpit-screen-content,
body.offline-page .offline-detail-page .cockpit-screen.pos-center .cockpit-screen-content {
  padding-top: 14px;
  padding-bottom: 16px;
}

body.offline-page .offline-core-page #offlineCoreBoards .board-head,
body.offline-page .offline-detail-page .board-head {
  height: var(--board-head-h);
  min-height: var(--board-head-h);
  padding-top: 0;
  padding-bottom: 0;
}

body.offline-page .offline-core-page #offlineCoreBoards .rank-table th,
body.offline-page .offline-detail-page .rank-table th {
  height: var(--rank-thead-h);
}

body.offline-page .offline-core-page #offlineCoreBoards .rank-table td,
body.offline-page .offline-detail-page .rank-table td {
  height: var(--rank-row-h);
}

body.offline-page .offline-core-page #offlineCoreBoards .rank-table tr.rank-row--1 td,
body.offline-page .offline-detail-page .rank-table tr.rank-row--1 td {
  height: var(--rank-row-h-1);
}

body.offline-page .offline-core-page #offlineCoreBoards .rank-table tr.rank-row--2 td,
body.offline-page .offline-detail-page .rank-table tr.rank-row--2 td {
  height: var(--rank-row-h-2);
}

body.offline-page .offline-core-page #offlineCoreBoards .rank-table tr.rank-row--3 td,
body.offline-page .offline-detail-page .rank-table tr.rank-row--3 td {
  height: var(--rank-row-h-3);
}

body.offline-page .offline-core-page #offlineCoreBoards .active-board:not(.is-limit-all) .table-wrap,
body.offline-page .offline-detail-page .active-board:not(.is-limit-all) .table-wrap {
  overflow: hidden;
}

body.offline-page .offline-core-page #offlineCoreBoards .active-board > .rank-page-dots,
body.offline-page .offline-detail-page .active-board > .rank-page-dots {
  flex: 0 0 auto;
  margin-top: auto;
  padding: 10px clamp(14px, 2vw, 24px) 14px;
  border-top: 1px solid rgba(132, 146, 224, 0.1);
  background: transparent;
}

@media (min-width: 821px) {
  body.offline-page .offline-core-page #offlineCoreBoards .leader-deck--carousel,
  body.offline-page .offline-detail-page .leader-deck--carousel {
    --cockpit-pose-left: translate(-50%, -48%) translateX(calc(-0.52 * var(--cockpit-screen-width) - 42%)) translateZ(-200px) rotateY(32deg) scale(0.92);
    --cockpit-pose-right: translate(-50%, -48%) translateX(calc(0.52 * var(--cockpit-screen-width) + 42%)) translateZ(-200px) rotateY(-32deg) scale(0.92);
  }
}

@media (max-width: 820px) {
  body.offline-page .offline-core-page #offlineCoreBoards .leader-deck--carousel,
  body.offline-page .offline-detail-page .leader-deck--carousel {
    height: auto;
    overflow-x: clip;
  }

  body.offline-page .offline-core-page #offlineCoreBoards .cockpit-screen.pos-center,
  body.offline-page .offline-detail-page .cockpit-screen.pos-center {
    height: auto !important;
    min-height: 0 !important;
  }
}

.offline-embedded-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 14px;
}

.offline-embedded-head h2 {
  margin: 6px 0 0;
  font-family: var(--font-title);
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 700;
}

/* 时间维度：挂在当前榜标题行，非全局条 */
.offline-board-periods {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 3px;
  border: 1px solid rgba(138, 156, 255, 0.16);
  border-radius: 999px;
  background: rgba(12, 16, 40, 0.72);
}

.offline-period-chip {
  min-width: 44px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #8b93b5;
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: 160ms ease;
}

.offline-period-chip:hover,
.offline-period-chip:focus-visible {
  color: #fff;
}

.offline-period-chip.is-active {
  color: #fff;
  background: var(--seg-nav-active);
  box-shadow: 0 8px 20px rgba(74, 92, 255, 0.22);
}

.offline-core-section {
  min-height: auto;
  padding-bottom: clamp(12px, 2vh, 24px);
}

/* offline.md 核心展示：单页纵向四段，不做整屏 snap；转盘侧屏需可见 */
.offline-core-page {
  width: min(1680px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 3vh, 40px) clamp(28px, 5vw, 96px) clamp(48px, 6vh, 80px);
  overflow: visible;
}

.offline-core-page .offline-kpi-strip {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 clamp(28px, 4vh, 40px);
}

.offline-core-page #offlineStoreTop10 .offline-plain-rank {
  margin: 0 0 clamp(32px, 4vh, 48px);
}

.offline-plain-rank__title {
  margin: 0 0 16px;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 580;
  letter-spacing: 0.02em;
  color: #fff;
  text-align: center;
}

.offline-plain-rank .table-wrap {
  overflow: hidden;
  border: 0.5px solid var(--chip-border);
  border-radius: 22px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.025) 45%, rgba(255, 255, 255, 0.01) 100%),
    var(--chip-face);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 12px 32px rgba(0, 0, 0, 0.18);
  backdrop-filter: var(--chip-blur);
  -webkit-backdrop-filter: var(--chip-blur);
}

.offline-core-page #offlineCoreBoards.offline-core-cockpit {
  width: 100%;
  margin: 0 0 clamp(24px, 3vh, 40px);
  overflow: visible;
}

.offline-charts-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.offline-core-page .offline-charts-wrap .offline-charts-grid {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
}

.offline-detail-page {
  min-height: 0;
  padding-bottom: clamp(24px, 3vh, 40px);
}

/* 详情多段榜：不要每段撑满一屏，避免页尾大片空白 */
body.offline-page .offline-detail-page .leaderboard-section {
  min-height: 0;
  padding-top: clamp(22px, 3vh, 36px);
  padding-bottom: clamp(18px, 2.5vh, 28px);
  scroll-snap-align: none;
}

body.offline-page .offline-detail-page .leaderboard-section:last-child {
  padding-bottom: clamp(28px, 3.5vh, 44px);
}

body.offline-page .offline-detail-page .cockpit-screen.pos-center::after,
body.offline-page .offline-core-page #offlineCoreBoards .cockpit-screen.pos-center::after {
  display: none;
}

body.offline-page .offline-core-page {
  padding-bottom: clamp(28px, 4vh, 48px);
}

.offline-core-section .offline-kpi-strip {
  width: 100%;
  padding-top: 8px;
}

.offline-core-section .offline-charts-grid {
  width: 100%;
}

/* offline.md 第一子页面：KPI 三卡 + 双图 */
.offline-kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  width: min(1560px, calc(100% - clamp(28px, 5vw, 96px)));
  margin: 0 auto;
  padding: clamp(18px, 3vh, 28px) 0 8px;
}

/* 无财务利润时只保留回款/出货两卡，避免右侧留空位 */
.offline-kpi-strip.offline-kpi-strip--no-profit {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.offline-kpi-card {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 2.5vw, 28px);
  border: 0.5px solid var(--kpi-border);
  border-radius: 28px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.04) 40%, rgba(255, 255, 255, 0.015) 100%),
    var(--kpi-face);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.1),
    0 12px 28px rgba(0, 0, 0, 0.22),
    0 28px 56px rgba(0, 0, 0, 0.18);
  backdrop-filter: var(--kpi-blur);
  -webkit-backdrop-filter: var(--kpi-blur);
  transition:
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.offline-kpi-card::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  content: "";
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.16) 0%, transparent 42%);
  pointer-events: none;
}

.offline-kpi-card:hover {
  border-color: var(--kpi-border-hover);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.06) 40%, rgba(255, 255, 255, 0.02) 100%),
    var(--kpi-face-hover);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1),
    0 4px 10px rgba(0, 0, 0, 0.12),
    0 16px 36px rgba(0, 0, 0, 0.26),
    0 32px 64px rgba(0, 0, 0, 0.2);
  transform: translateY(-3px);
}

.offline-kpi-card--primary {
  border-color: var(--kpi-border);
}

.offline-kpi-label,
.offline-kpi-value,
.offline-kpi-detail {
  position: relative;
  z-index: 1;
}

.offline-kpi-label {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.04em;
}

.offline-kpi-value {
  display: block;
  margin: 12px 0 8px;
  font-family: var(--font-metric);
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 620;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.offline-kpi-detail {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.offline-block {
  margin-top: clamp(22px, 3vh, 36px);
}

.offline-block--priority {
  margin-top: clamp(28px, 4vh, 44px);
  padding-top: clamp(18px, 2.5vh, 28px);
  border-top: 1px solid rgba(138, 156, 255, 0.12);
}

#offlineHomeBoards .leaderboard-section:first-child {
  padding-top: clamp(18px, 3vh, 28px);
}

.offline-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  width: min(1560px, calc(100% - clamp(28px, 5vw, 96px)));
  margin: 0 auto;
  padding: clamp(18px, 3vh, 32px) 0 clamp(28px, 4vh, 48px);
}

.offline-chart-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 2.5vw, 28px);
  border: 0.5px solid var(--chip-border);
  border-radius: 24px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 45%, rgba(255, 255, 255, 0.015) 100%),
    var(--chip-face);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.12),
    0 12px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: var(--chip-blur);
  -webkit-backdrop-filter: var(--chip-blur);
}

.offline-chart-head h2 {
  margin: 8px 0 4px;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 580;
}

.offline-chart-head p {
  margin: 0;
  font-size: 12px;
  color: #8b93b5;
}

.offline-chart-body {
  position: relative;
  min-height: 240px;
  margin-top: 14px;
}

.offline-chart-body canvas {
  width: 100% !important;
  height: 240px !important;
}

.offline-chart-body .chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #8b93b5;
  font-size: 13px;
}

.offline-period-toolbar p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #8b93b5;
  max-width: 520px;
}

@media (max-width: 920px) {
  .offline-kpi-strip,
  .offline-charts-grid {
    grid-template-columns: 1fr;
  }

  .offline-kpi-card:hover {
    transform: none;
  }
}

/* Offline pages use a dedicated blue spectrum, including canvas chart tokens. */
html.offline-theme {
  --purple: #2f80ff;
  --purple-bright: #65b4ff;
  --blue: #2475ff;
  --cyan: #48cfff;
  --accent: #2f80ff;
  --info: #6cbfff;
  --warning: #52c7ff;
  --text-secondary: #9eb4d8;
  --chart-grid: rgba(74, 151, 255, 0.14);
  --border: rgba(82, 145, 255, 0.2);
  --kpi-face: rgba(24, 91, 205, 0.18);
  --kpi-face-hover: rgba(35, 111, 236, 0.25);
  --kpi-border: rgba(87, 158, 255, 0.42);
  --kpi-border-hover: rgba(104, 190, 255, 0.68);
  --chip-face: rgba(20, 73, 166, 0.15);
  --chip-border: rgba(75, 146, 255, 0.3);
  --chip-border-hover: rgba(84, 182, 255, 0.52);
  --liquid-shade: rgba(40, 119, 255, 0.12);
  --liquid-glow: rgba(51, 139, 255, 0.32);
}

body.offline-page {
  background:
    radial-gradient(circle at 50% -15%, rgba(42, 130, 255, 0.28), transparent 38%),
    linear-gradient(180deg, #070b1d 0%, #050a19 50%, #071022 100%);
}

body.offline-page .ambient--one {
  background: #167fff;
  opacity: 0.24;
}

body.offline-page .ambient--two {
  background: #0057e8;
  opacity: 0.22;
}

body.offline-page .grid-noise::after {
  background-image:
    radial-gradient(circle, rgba(72, 207, 255, 0.24) 1.35px, transparent 2.1px),
    radial-gradient(circle, rgba(47, 128, 255, 0.2) 1.1px, transparent 1.9px),
    radial-gradient(circle, rgba(182, 222, 255, 0.15) 1.25px, transparent 2px);
}

body.offline-page .brand__mark {
  border-color: rgba(76, 164, 255, 0.48);
  background: linear-gradient(145deg, rgba(30, 134, 255, 0.34), rgba(27, 92, 222, 0.2));
  box-shadow: inset 0 0 24px rgba(54, 166, 255, 0.2), 0 0 30px rgba(34, 119, 255, 0.2);
}

body.offline-page .offline-view-nav::before,
body.offline-page .offline-period-chip.is-active {
  background: linear-gradient(135deg, rgba(39, 124, 255, 0.96), rgba(45, 177, 255, 0.9));
  box-shadow: 0 8px 24px rgba(34, 126, 255, 0.34), 0 0 16px rgba(72, 207, 255, 0.18);
}

body.offline-page .offline-view-nav,
body.offline-page .offline-board-periods,
body.offline-page .offline-toolbar-brand select {
  border-color: rgba(74, 151, 255, 0.28);
  background: rgba(7, 23, 57, 0.82);
}

body.offline-page .cockpit-viewer::before {
  background:
    radial-gradient(ellipse at 50% 48%, rgba(38, 128, 255, 0.4), transparent 55%),
    radial-gradient(ellipse at 24% 52%, rgba(24, 102, 255, 0.22), transparent 48%),
    radial-gradient(ellipse at 78% 48%, rgba(72, 207, 255, 0.2), transparent 45%);
}

body.offline-page .cockpit-viewer::after {
  background: linear-gradient(90deg, transparent, rgba(39, 124, 255, 0.82), rgba(72, 207, 255, 0.96), transparent);
  box-shadow: 0 0 18px rgba(36, 117, 255, 0.82), 0 0 44px rgba(72, 207, 255, 0.46);
}

body.offline-page .cockpit-screen-shell,
body.offline-page .cockpit-screen-shell--center {
  border-color: rgba(75, 151, 255, 0.5);
  background:
    linear-gradient(145deg, rgba(29, 113, 255, 0.16), transparent 34%),
    linear-gradient(315deg, rgba(42, 173, 255, 0.1), transparent 38%),
    rgba(6, 14, 38, 0.98);
}

body.offline-page .cockpit-screen.pos-left .cockpit-screen-shell,
body.offline-page .cockpit-screen.pos-right .cockpit-screen-shell {
  animation-name: offlineCockpitSideGlow;
}

body.offline-page .cockpit-screen.pos-center .cockpit-screen-shell--center {
  animation-name: offlineCockpitCenterGlow;
}

body.offline-page .cockpit-screen.pos-left .cockpit-screen-shell::after,
body.offline-page .cockpit-screen.pos-right .cockpit-screen-shell::after {
  background: linear-gradient(180deg, transparent, rgba(40, 126, 255, 0.22), rgba(72, 207, 255, 0.64), transparent);
}

body.offline-page .side-rail {
  border-color: rgba(66, 143, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(29, 107, 238, 0.1), transparent 24%, transparent 76%, rgba(40, 173, 255, 0.08)),
    rgba(5, 16, 43, 0.72);
  box-shadow: inset 0 0 48px rgba(35, 113, 255, 0.08), 0 0 32px rgba(31, 104, 255, 0.1);
}

body.offline-page .offline-kpi-card,
body.offline-page .offline-chart-panel,
body.offline-page .offline-plain-rank .table-wrap {
  border-color: rgba(77, 151, 255, 0.38);
  background:
    linear-gradient(155deg, rgba(69, 155, 255, 0.18) 0%, rgba(31, 92, 200, 0.08) 46%, rgba(11, 39, 94, 0.06) 100%),
    rgba(8, 25, 60, 0.74);
  box-shadow: inset 0 1px rgba(183, 224, 255, 0.22), 0 14px 38px rgba(0, 45, 128, 0.22), 0 0 28px rgba(37, 126, 255, 0.1);
}

body.offline-page .offline-kpi-card:hover {
  border-color: rgba(98, 190, 255, 0.68);
  background:
    linear-gradient(155deg, rgba(82, 176, 255, 0.25) 0%, rgba(39, 111, 226, 0.12) 48%, rgba(12, 48, 111, 0.08) 100%),
    rgba(9, 31, 73, 0.82);
  box-shadow: inset 0 1px rgba(205, 235, 255, 0.3), 0 18px 42px rgba(0, 45, 128, 0.28), 0 0 34px rgba(48, 151, 255, 0.16);
}

body.offline-page .pulse-workbench .offline-dimension-button:hover,
body.offline-page .pulse-workbench .offline-dimension-button.active {
  background: linear-gradient(135deg, rgba(38, 126, 255, 0.26), rgba(54, 178, 255, 0.14));
}

body.offline-page .pulse-workbench .offline-ranking-table [data-metric-column].is-ranked,
body.offline-page .pulse-workbench .offline-ranking-table .rank-row--1 {
  background: linear-gradient(90deg, rgba(39, 128, 255, 0.16), rgba(45, 174, 255, 0.05));
}

@keyframes offlineCockpitSideGlow {
  0%, 100% {
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42), inset 0 1px rgba(201, 232, 255, 0.08), 0 0 34px rgba(38, 126, 255, 0.34);
  }
  50% {
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42), inset 0 1px rgba(218, 241, 255, 0.14), 0 0 62px rgba(37, 128, 255, 0.5), 0 0 28px rgba(72, 207, 255, 0.32);
  }
}

@keyframes offlineCockpitCenterGlow {
  0%, 100% {
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.44), inset 0 1px rgba(199, 230, 255, 0.07), 0 0 38px rgba(38, 126, 255, 0.28);
  }
  50% {
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.44), inset 0 1px rgba(220, 242, 255, 0.12), 0 0 68px rgba(38, 130, 255, 0.46), 0 0 30px rgba(72, 207, 255, 0.24);
  }
}

@media (prefers-reduced-motion: reduce) {
  .offline-kpi-card {
    transition: none;
  }

  .offline-kpi-card:hover {
    transform: none;
  }
}

/* 移动端榜单保留每页十条，但宽表必须在自身容器内横滑；覆盖桌面分页的裁切规则。 */
@media (max-width: 820px) {
  body.online-page .active-board:not(.is-limit-all) .table-wrap,
  body.offline-page .offline-core-page #offlineCoreBoards .active-board:not(.is-limit-all) .table-wrap,
  body.offline-page .offline-detail-page .active-board:not(.is-limit-all) .table-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
  }

  .rank-scroll-hint {
    display: flex;
  }

}

@media (min-width: 821px) {
  .rank-scroll-hint {
    display: none;
  }
}
