/* ============================================================
   SteamLens — Editorial Gaming Archive & Telemetry Observatory
   60-30-10 Deep Cosmos Obsidian System · Single-Elevation · Tabular Precision
   ============================================================ */

:root {
  /* 全站只有深色一套配色。显式声明 color-scheme 让浏览器把「原生」部件也按深色画：
     否则 <select> 的弹出列表、滚动条、日期选择器都会用 UA 默认的浅色皮肤，
     而选项文字继承了 --ink（近白），就成了白底白字。 */
  color-scheme: dark;

  /* 60% Dominant Neutral Canvas — Deep Cosmos Obsidian */
  --bg: #06090f;
  --bg-subtle: #0a0f18;

  /* 30% Structural Surfaces & Architectural Hairlines */
  --surface: rgba(15, 22, 35, 0.85);
  --surface-hover: rgba(21, 31, 48, 0.92);
  --surface-raised: rgba(25, 37, 56, 0.94);
  --surface-translucent: rgba(13, 19, 31, 0.82);

  --ink: #f8fafc;
  --ink-2: #b4c4d8;
  --muted: #6e829c;

  --line: rgba(148, 163, 184, 0.12);
  --line-soft: rgba(148, 163, 184, 0.065);
  --line-strong: rgba(148, 163, 184, 0.22);
  --line-accent: rgba(56, 189, 248, 0.46);
  --surface-shine:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 8px 28px -8px rgba(0, 0, 0, 0.42);
  --surface-grad: linear-gradient(
    165deg,
    rgba(27, 39, 60, 0.44) 0%,
    rgba(14, 21, 34, 0.86) 100%
  );

  /* 10% Accent & Semantic Telemetry Colors */
  --sky: #38bdf8;
  --sky-bright: #7dd3fc;
  --sky-dim: rgba(56, 189, 248, 0.13);
  --accent: #0ea5e9;
  --green: #10b981;
  --gold: #f59e0b;
  --red: #f43f5e;

  /* Steam 商店风格的折扣 / 名次走势语义色（v1.23.5 统一）：
     折扣块 = 深绿底亮绿字，折后价 = 深色块白字，原价 = 灰删除线；
     名次变化 = 实心三角 ▲绿升 / ▼橙降，与 Steam 榜单一致 */
  --steam-off-bg: #4c6b22;
  --steam-off-fg: #beee11;
  --steam-price-bg: #2a3442;
  --steam-orig: #8c9aa8;
  --trend-up: #3fbf46;
  --trend-down: #e2862d;

  /* Typography (2+1 Rule) */
  --font-display: "Outfit", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-sans: "Plus Jakarta Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Spatial & Radius Scale */
  --radius-lg: 18px;
  --radius: 12px;
  --radius-sm: 8px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

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

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

button, input {
  font-family: inherit;
}

::selection {
  background: rgba(56, 189, 248, 0.24);
  color: #ffffff;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.62;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* ---------------- Steam 风格斜向 2:3 游戏封面流动背景墙 + 聚光暗角遮罩 ---------------- */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background-color: #06090f;
  contain: strict;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* 斜向旋转 2:3 竖版海报网格容器：13 列紧凑海报阵列，单张约 175~230px 宽，避免巨型封面占满半屏 */
.bg-wall {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 134vmax;
  height: 134vmax;
  transform: translate3d(-50%, -50%, 0) rotate(-26deg);
  transform-style: preserve-3d;
  perspective: 1000px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: layout style;
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
  z-index: 1;
  opacity: 0.96;
  will-change: transform;
}

/* 单列轨道：内部包含两份完全一致的海报序列，位移 -50% 实现 GPU 合成线程无缝循环 */
.wall-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: layout style paint;
  will-change: transform;
  animation: wallScrollUp var(--wall-dur, 72s) linear infinite;
  animation-delay: var(--wall-delay, 0s);
}

.wall-col.is-even {
  animation-name: wallScrollDown;
}

.bg-wall.is-paused .wall-col {
  animation-play-state: paused;
  will-change: auto;
}

@keyframes wallScrollUp {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(0, -50%, 0);
  }
}

@keyframes wallScrollDown {
  0% {
    transform: translate3d(0, -50%, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

/* 2:3 竖版游戏海报磁贴 */
.wall-tile {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  overflow: hidden;
  contain: layout paint;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background:
    radial-gradient(120% 90% at 30% 18%, hsl(var(--h, 210) 58% 34% / 0.6), transparent 70%),
    linear-gradient(160deg, hsl(var(--h, 210) 44% 20%) 0%, hsl(var(--h2, 232) 48% 10%) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.68),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 10px;
  user-select: none;
}

/* 海报高光质感斜切覆层 */
.wall-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 42%,
    rgba(4, 7, 13, 0.24) 100%
  );
  pointer-events: none;
  z-index: 3;
}

/* 封面未就绪或离线演示模式下的精致海报底版 */
.wall-tile-badge {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(226, 232, 240, 0.46);
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(6, 9, 15, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wall-tile-fallback {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
}

.wall-tile-letter {
  font-family: var(--font-display);
  font-size: clamp(22px, 1.8vmax, 34px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.26);
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.55);
}

.wall-tile-title {
  font-family: var(--font-display);
  font-size: clamp(11px, 0.82vmax, 13.5px);
  font-weight: 600;
  line-height: 1.25;
  color: rgba(241, 245, 249, 0.82);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 真实游戏封面图层：加载完成后平滑淡入覆盖底版，淡入后释放 will-change */
.wall-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: opacity;
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}

.wall-tile img.is-loaded {
  opacity: 1;
  will-change: auto;
}

/* 通透暗角遮罩：保留全屏两侧与上下的清晰封面透出度（约 48%~62% 可见亮度），仅在四角与顶底收暗 */
.bg-wall-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background:
    /* 广域中心与两翼通透窗口：去掉原先三层叠加导致的死黑，让左右两翼与主视区的游戏海报清晰可见 */
    radial-gradient(
      ellipse 84% 78% at 52% 46%,
      rgba(6, 9, 15, 0.36) 0%,
      rgba(6, 9, 15, 0.46) 46%,
      rgba(6, 9, 15, 0.64) 74%,
      rgba(6, 9, 15, 0.88) 94%,
      rgba(6, 9, 15, 0.96) 100%
    ),
    /* 仅在最左侧边缘与顶底做柔和过渡，不压暗中间与两侧海报 */
    linear-gradient(
      90deg,
      rgba(6, 9, 15, 0.82) 0%,
      rgba(6, 9, 15, 0.32) 18%,
      rgba(6, 9, 15, 0.16) 52%,
      rgba(6, 9, 15, 0.24) 84%,
      rgba(6, 9, 15, 0.72) 100%
    ),
    linear-gradient(
      180deg,
      rgba(6, 9, 15, 0.72) 0%,
      rgba(6, 9, 15, 0.14) 14%,
      rgba(6, 9, 15, 0.18) 82%,
      rgba(6, 9, 15, 0.84) 100%
    );
}

/* 光学星轨刻度弱化为极低透明度的精致纹理点缀 */
.bg-observatory-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  opacity: 0.16;
  mask-image: radial-gradient(ellipse 88% 76% at 54% 34%, #000 20%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 88% 76% at 54% 34%, #000 20%, transparent 90%);
}

@media (max-width: 1180px) {
  .bg-wall {
    width: 148vmax;
    height: 148vmax;
    gap: 12px;
  }
  .wall-col {
    gap: 12px;
  }
}

@media (max-width: 680px) {
  .bg-wall {
    left: 50%;
    width: 175vmax;
    height: 175vmax;
    /* 列数由 app.js 的 WALL_LAYOUT_NARROW 决定，两边必须一致：
       多列少列都会让磁贴宽度错位，且移动端的解码内存随总张数线性上涨。
       手机档默认不建墙（app.js 里 wallLayout() 返回 null），这里只负责 ?wall=1 的对照档 */
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
  }
  .wall-col {
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wall-col {
    animation: none !important;
    will-change: auto;
  }
}

/* 排障开关：`?bg=off` 停掉全部装饰背景层。移动端白屏时要能一刀切掉这些，
   才能分清是「背景特效太重」还是「页面本身有问题」——否则只能靠猜。
   注意 scrim 留在 .bg-glow 里，一起停掉后背景退回纯色，不影响正文可读性。 */
html.bg-off .bg-glow {
  display: none !important;
}

/* ---------------- 顶部三区导航栏 (Top Bar Contract) ---------------- */
.nav {
  background: rgba(6, 9, 15, 0.8);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 24px -6px rgba(0, 0, 0, 0.5);
}

.nav-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.brand:hover {
  opacity: 0.92;
}

.brand-mark {
  width: 24px;
  height: 24px;
  color: var(--sky);
  display: flex;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.35));
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-text {
  font-size: 19px;
  color: var(--ink);
}

.brand-accent {
  color: var(--sky);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.16s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--sky);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.18s ease;
  opacity: 0;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a:hover::after {
  transform: scaleX(0.45);
  opacity: 0.45;
}

.nav-links a.active {
  color: var(--ink);
  font-weight: 600;
}

.nav-links a.active::after {
  transform: scaleX(1);
  opacity: 1;
  box-shadow: 0 -2px 12px rgba(56, 189, 248, 0.55);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-avatar {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  overflow: hidden;
  flex: none;
  position: relative;
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}

.nav-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-user-name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-loading-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 22, 35, 0.82);
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  cursor: wait;
  user-select: none;
}

.nav-loading-btn[disabled] {
  opacity: 1;
  cursor: wait;
}

.nav-spinner {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.75px solid rgba(56, 189, 248, 0.22);
  border-top-color: var(--sky);
  border-right-color: rgba(56, 189, 248, 0.65);
  box-sizing: border-box;
  flex-shrink: 0;
  animation: navSpin 0.72s linear infinite;
}

@keyframes navSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------------- 主体画布 ---------------- */
.app {
  flex: 1;
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 40px 32px 88px;
  position: relative;
  z-index: 1;
}

/* ---------------- 按钮体系 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.16s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    color 0.16s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

.btn-primary,
.btn-steam {
  background: linear-gradient(180deg, #52caf9 0%, #29b4f5 100%);
  color: #041019;
  border-color: rgba(125, 211, 252, 0.6);
  font-weight: 650;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 2px 14px rgba(56, 189, 248, 0.22);
}

.btn-primary:hover,
.btn-steam:hover {
  background: linear-gradient(180deg, #7dd3fc 0%, #38bdf8 100%);
  border-color: #bae6fd;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 6px 20px rgba(56, 189, 248, 0.34);
}

.btn-steam svg {
  width: 16px;
  height: 16px;
}

.btn-ghost {
  background: rgba(19, 28, 44, 0.78);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.btn-ghost:hover {
  background: var(--surface-raised);
  border-color: rgba(148, 163, 184, 0.34);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 12.5px;
  min-height: 34px;
}

/* ---------------- 无框元数据行 (Zero-Pill Metadata Discipline) ---------------- */
.meta-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
}

/* 父级是 flex 时 UA 的 [hidden]{display:none} 可能被 flex 布局规则吃掉，
   这里显式兜一道（.stat-card[hidden] 踩过同一个坑） */
.meta-inline > [hidden] {
  display: none !important;
}

.meta-inline .sep {
  color: var(--muted);
  user-select: none;
}

.meta-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.text-sky { color: var(--sky); }
.text-green { color: var(--green); }
.text-gold { color: var(--gold); }
.text-red { color: var(--red); }
.text-ink { color: var(--ink); }

/* ---------------- 未登录首页：双栏建筑感展台 ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  background-image:
    radial-gradient(760px 380px at 0% 0%, rgba(56, 189, 248, 0.11), transparent 70%),
    radial-gradient(640px 360px at 100% 100%, rgba(16, 185, 129, 0.06), transparent 70%),
    var(--surface-grad);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--surface-shine);
  padding: 52px;
  margin-bottom: 52px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.45), transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 52px;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--sky);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.16;
  margin: 0 0 18px;
  font-weight: 700;
  letter-spacing: -0.028em;
  color: var(--ink);
  text-wrap: balance;
}

.hero p {
  margin: 0 0 30px;
  color: var(--ink-2);
  font-size: 15.5px;
  max-width: 56ch;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

/* 右侧实时预览账本 */
.hero-ledger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(8, 12, 20, 0.56);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-ledger-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.hero-ledger-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.hero-ledger-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--sky);
}

.hero-ledger-rows {
  display: grid;
  gap: 16px;
  margin: auto 0;
}

.hero-sample-row {
  display: grid;
  grid-template-columns: 26px 1fr 68px;
  align-items: center;
  gap: 12px;
}

.hero-sample-rank {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.hero-sample-row:first-child .hero-sample-rank {
  color: var(--sky);
}

.hero-sample-main {
  min-width: 0;
}

.hero-sample-name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-sample-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.065);
  border-radius: 999px;
  overflow: hidden;
}

.hero-sample-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sky), #7dd3fc);
}

.hero-sample-val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.hero-ledger-foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.hero-ledger-foot b {
  font-family: var(--font-mono);
  color: var(--ink);
  font-weight: 600;
}

/* ---------------- 通用章节与单层容器 ---------------- */
.card {
  background: var(--surface);
  background-image: var(--surface-grad);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--surface-shine);
}

.section {
  margin-top: 52px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.section-head-left {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.section-index {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--sky);
  font-variant-numeric: tabular-nums;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 21px;
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-head .sub {
  font-size: 13px;
  color: var(--muted);
}

/* ---------------- 个人资料档案头 ---------------- */
.profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 36px;
  background: var(--surface);
  background-image:
    radial-gradient(680px 320px at 0% 0%, rgba(56, 189, 248, 0.08), transparent 70%),
    var(--surface-grad);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--surface-shine);
  /* 背景图要贴着圆角裁掉，否则四个角会漏出方角 */
  position: relative;
  overflow: hidden;
}

.profile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.38), transparent);
  z-index: 2;
  pointer-events: none;
}

.profile-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.profile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* 资料背景（Steam 个人主页那张大图）。
   默认整层不渲染：没设背景、或图片 404 时，卡片就是原来的纯色面。 */
.profile-bg,
.profile-scrim {
  display: none;
}

.profile.has-bg .profile-bg,
.profile.has-bg .profile-scrim {
  display: block;
}

.profile.has-bg {
  border-color: rgba(255, 255, 255, 0.16);
}

.profile-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.profile-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 背景图多为 3:1 宽幅，卡片更扁，取中心偏上能留住主体、少切脸 */
  object-position: center 38%;
  display: block;
}

/* 动态背景：铺在静态图上面，播起来才淡入。
   两层都留着是有意的——视频没加载完、解码失败、或用户开了省流量，
   底下那张静态图就是兜底，任何时候都不会出现空白。 */
.profile-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.profile-bg-video.is-ready {
  opacity: 1;
}

/* 暗化蒙版。不用模糊：这类图是插画，一虚就只剩色块，辨识度反而没了。
   横向左重右轻（文字都在左侧），纵向上下各压一点，让边缘和卡片圆角收得住。 */
.profile-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    /* 纵向：上沿压一点点收住边缘，下沿加重给进度条和输入框一个稳的底 */
    linear-gradient(
      180deg,
      rgba(6, 9, 15, 0.42) 0%,
      rgba(6, 9, 15, 0.5) 52%,
      rgba(6, 9, 15, 0.82) 100%
    ),
    /* 横向：以文字区为圆心的柔光渐晕。用 radial 而不是线性渐变，
       是为了让右半边的插画还能看清——线性渐变会把整张图压成一条灰带 */
    radial-gradient(
      112% 150% at 2% 42%,
      rgba(6, 9, 15, 0.88) 0%,
      rgba(6, 9, 15, 0.64) 34%,
      rgba(6, 9, 15, 0.28) 62%,
      rgba(6, 9, 15, 0.08) 84%
    );
  backdrop-filter: saturate(0.94);
}

/* 有背景时，压在图上的一切都得改成半透明，否则一块块实心色块把图切碎 */
.profile.has-bg .avatar-lg {
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45),
    0 12px 28px rgba(0, 0, 0, 0.55);
}

/* 蒙版是渐晕、不是实心遮罩，所以文字还要一层自身阴影兜底：
   换一张亮底背景（比如偏白的插画）也不会读不清。 */
.profile.has-bg .profile-name h1,
.profile.has-bg .profile-meta {
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
}

/* --muted 是为「深色纯色面」挑的，#6e829c 压在照片上就糊了。
   这类小字在图上必须提亮一档，不能沿用卡片的默认灰。 */
.profile.has-bg .stat .k,
.profile.has-bg .stat .k-code,
.profile.has-bg .stat-sub {
  color: #b4c4d8;
}

.profile.has-bg .lookup-input::placeholder {
  color: #9fb0c6;
}

.profile.has-bg .btn-ghost {
  background: rgba(8, 12, 20, 0.62);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.profile.has-bg .btn-ghost:hover {
  background: rgba(8, 12, 20, 0.78);
  border-color: rgba(255, 255, 255, 0.34);
}

.profile.has-bg .lookup-bar {
  border-top-color: rgba(255, 255, 255, 0.14);
}

/* 统计条现在住在资料卡里、压在背景图上：实心 --surface 会变成一块把图切碎的砖，
   所以转成半透明 + 毛玻璃，让底下的画透一点上来。 */
.profile.has-bg .stats {
  background: rgba(6, 9, 15, 0.54);
  border-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
}

/* 用 border-color 覆盖四边：手机上统计条会折成两行，届时下边框也得跟着变浅 */
.profile.has-bg .stat {
  border-color: rgba(255, 255, 255, 0.1);
}

.profile.has-bg .lookup-input-wrap {
  background: rgba(6, 9, 15, 0.58);
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
  flex: 1;
}

.avatar-lg {
  width: 76px;
  height: 76px;
  border-radius: var(--radius);
  overflow: hidden;
  flex: none;
  position: relative;
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 22px -6px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
}

.avatar-lg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-main {
  min-width: 0;
  flex: 1;
}

.profile-name {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-name h1 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 27px);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--ink);
}

.profile-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.profile-meta .sep {
  color: var(--muted);
}

.profile-meta a {
  color: var(--sky);
  font-weight: 500;
}

.profile-meta a:hover {
  text-decoration: underline;
}

.profile-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ---------------- 4 列结构化指标矩阵 (KPI Ledger Strip) ----------------
   住在资料卡内部（身份区之下、查询框之上），所以上间距就是和身份区的呼吸。 */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(8, 12, 20, 0.62);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 26px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.stat {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* 1fr 的最小宽度默认是 min-content，长标签会把格子顶宽、整页横向溢出 */
  min-width: 0;
  transition: background-color 0.16s ease;
}

.stat:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.stat:last-child {
  border-right: none;
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.stat .k {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
}

.stat .k-code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--sky);
  opacity: 0.82;
}

.stat .v {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat .v small {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 6px;
  letter-spacing: 0;
}

.stat-sub {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* 加载中：三点脉冲占位，避免「—」被误读成「真的是 0」 */
.stat-loading {
  display: inline-block;
  width: 26px;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--line) 25%, var(--line-strong) 50%, var(--line) 75%);
  background-size: 200% 100%;
  animation: statLoadingSweep 1.1s linear infinite;
}

@keyframes statLoadingSweep {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}

.stat-empty {
  font-size: 20px;
  color: var(--muted);
  letter-spacing: 0;
}

/* /* ---------------- 全球销量排行（榜单页 01 段） ---------------- */
/* 从详情页跳过来会 scrollIntoView，别让吸顶导航盖住段标题 */
#salesSection,
#trendingSection,
#dealsSection,
#radarSection {
  scroll-margin-top: 96px;
}

.sales-board {
  padding: 8px 8px 12px;
  overflow: hidden;
}

.sales-head,
.sales-row {
  display: grid;
  /* 名次 · 封面 · 游戏 · 售价 · 走势 */
  grid-template-columns: 34px 52px minmax(0, 1fr) 140px 56px;
  align-items: center;
  gap: 12px;
}

.sales-head {
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  border-radius: 6px 6px 0 0;
}

/* 「名次」两字与下面的数字同轴居中，右对齐时 1 位数和 2 位数会各偏一边 */
.sales-head span:nth-child(1) {
  text-align: center;
}

.sales-head span:nth-child(4),
.sales-head span:nth-child(5) {
  text-align: right;
}

.sales-row {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(148, 163, 184, 0.05);
  transition: background-color 0.14s ease, box-shadow 0.14s ease, color 0.14s ease;
}

.sales-row:last-of-type {
  border-bottom: none;
}

.sales-row:hover {
  background: var(--surface-hover);
  color: var(--ink);
  box-shadow: inset 3px 0 0 var(--sky);
}

.sales-row:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: -2px;
}

.sales-no {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.sales-row:nth-of-type(-n+3) .sales-no {
  color: var(--sky);
}

/* 一行高的小封面：渐变底 + 首字母兜底，图片挂了就露出底下这层，不会有空洞 */
.sales-cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 24px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, hsl(var(--h) 32% 16%), hsl(var(--h2) 42% 26%));
  flex-shrink: 0;
}

.sales-cover-letter {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
}

.sales-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sales-row:hover .sales-cover img {
  transform: scale(1.06);
}

/* v1.29.0：名字与徽章拆开——名字自己省略/折行，徽章永远完整可见。
   原来徽章在同一个被 line-clamp 的容器里，名字一长就把徽章整块裁掉，
   等于「加了类型标注但看不见」，比不加更糟。 */
.sales-name {
  display: flex;
  align-items: center;
  min-width: 0;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.14s ease;
}

.sales-name-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.sales-row:hover .sales-name {
  color: var(--sky-bright);
}

.sales-low {
  margin-left: 8px;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  background: var(--green-dim);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
}

.sales-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-height: 28px;
  gap: 1px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sales-price-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ink);
}

/* 销量榜价格块：定宽 76px + 内部右对齐，保证各行价格块左右都成一条列 */
.sales-price-stack {
  width: 76px;
  align-items: flex-end;
}

.sales-price.has-tip {
  position: relative;
  cursor: help;
}

.sales-price.has-tip::after {
  content: attr(data-tip);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  translate: 0 -50%;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 11.5px;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(3px);
  transition: opacity 0.12s ease, transform 0.12s ease;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  z-index: 6;
  pointer-events: none;
}

.sales-price.has-tip:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* ---------------- Steam 商店式价格块（全站共用） ----------------
   结构：<span class="price-block"><s>原价</s><b>折后价</b></span>
   原价删除线在块内上方、折后价大字在下，深蓝灰底 —— 参照 Steam 商店价签 */
.price-block {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  box-sizing: border-box;
  padding: 2px 8px;
  border-radius: 2px;
  background: var(--steam-price-bg);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.price-block > s {
  color: var(--steam-orig);
  font-size: 11px;
  line-height: 1.2;
  text-decoration: line-through;
  white-space: nowrap;
}

.price-block > b {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

/* 折扣标签：Steam 商店同款——深绿底 + 亮绿粗体，直角感更强；
   定宽让所有行的折扣块左缘成一条线（-5% 和 -72% 一样宽） */
.sales-off {
  min-width: 44px;
  box-sizing: border-box;
  text-align: center;
  padding: 3px 7px;
  border-radius: 2px;
  background: var(--steam-off-bg);
  color: var(--steam-off-fg);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
}

.sales-trend-cell {
  text-align: right;
}

.sales-trend {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* 三角与数字间距：用户偏好更大的三角，字号与数字一致（1em） */
.sales-trend .tri {
  font-size: 1em;
  margin-right: 2px;
  line-height: 1;
}

.sales-trend.is-up {
  color: var(--trend-up);
}

.sales-trend.is-down {
  color: var(--trend-down);
}

.sales-trend.is-new {
  color: var(--sky);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.sales-trend.is-flat {
  color: var(--muted);
}

.sales-note {
  margin: 10px 12px 2px;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------------- 降价雷达（本站采样的价格变动） ---------------- */
.radar-board {
  padding: 8px;
}

.radar-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 168px 196px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink-2);
  border-bottom: 1px solid rgba(148, 163, 184, 0.05);
  transition: background-color 0.14s ease, box-shadow 0.14s ease;
}

.radar-row:last-of-type {
  border-bottom: none;
}

.radar-row:hover {
  background: var(--surface-hover);
  box-shadow: inset 3px 0 0 var(--green);
}

/* 价格条：现价占降价前价的宽度，越短越便宜 */
.radar-bar {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  overflow: hidden;
}

.radar-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), #10b981);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.radar-cover {
  position: relative;
  display: block;
  width: 56px;
  height: 26px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(52, 211, 153, 0.1));
}

.radar-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.radar-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.radar-name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radar-row:hover .radar-name {
  color: var(--sky-bright);
}

.radar-tag {
  flex: none;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.5;
}

.radar-tag.is-new {
  background: var(--green-dim);
  border-color: rgba(52, 211, 153, 0.28);
  color: var(--green);
}

.radar-meta {
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radar-prices {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.radar-prices .radar-off {
  flex: none;
}

.radar-price {
  width: 76px;
  align-items: flex-end;
}

.radar-off {
  padding: 3px 7px;
  border-radius: 2px;
  background: var(--steam-off-bg);
  color: var(--steam-off-fg);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
}

.radar-note {
  margin: 8px 12px 4px;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.6;
}

.radar-empty {
  padding: 28px 18px;
  text-align: center;
}

.radar-empty p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-2);
}

.radar-empty .radar-note {
  margin-top: 8px;
  font-size: 11.5px;
}

@media (max-width: 640px) {
  .radar-row {
    grid-template-columns: 44px minmax(0, 1fr) 124px;
    gap: 9px;
    padding: 8px;
  }
  .radar-cover {
    width: 44px;
    height: 21px;
  }
  .radar-bar {
    display: none;
  }
  .radar-name {
    font-size: 12.5px;
  }
  .radar-prices {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
  }
  .radar-prices s {
    display: none;
  }
  .radar-prices b {
    font-size: 13px;
  }
  .radar-note {
    margin: 8px 8px 2px;
  }
}

@media (max-width: 640px) {
  .sales-head,
  .sales-row {
    grid-template-columns: 24px 38px minmax(0, 1fr) 96px 40px;
    gap: 8px;
  }
  .sales-cover {
    width: 38px;
    height: 18px;
  }
  .sales-cover-letter {
    font-size: 10px;
  }
  .sales-row {
    padding: 8px;
    font-size: 12.5px;
  }
  /* 窄屏游戏名列只剩约 144px，单行省略号会把「The Witcher 3」「ELDEN RING」全截掉，
     连中文名都看不到。放开两行，多数名字能完整显示。 */
  /* v1.29.0：两行省略号只作用在名字上。名字独占整行，类型徽章轮到下一行——
     窄屏这一列只有 80 多像素，徽章挤在同一行会把名字压成一条竖线。 */
  .sales-name {
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 2px;
  }
  .sales-name-text {
    flex: 1 1 100%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    white-space: normal;
    line-height: 1.35;
  }
  .sales-name .kind-badge {
    margin-left: 0;
  }
  /* 窄屏下价格列只有 88px：折扣块放开定宽、叠层压到 48px 才塞得下 */
  .sales-price-main {
    gap: 4px;
  }
  .sales-off {
    min-width: 0;
    padding: 1px 4px;
    font-size: 10px;
  }
  .sales-price-stack {
    width: 56px;
  }
  /* 窄屏下的价格块整体压缩，别把折扣块挤出列宽 */
  .price-block {
    padding: 1px 5px;
  }
  .price-block > b {
    font-size: 12px;
  }
  .price-block > s {
    font-size: 9.5px;
  }
  .radar-price {
    width: 56px;
  }
  .sales-note {
    margin: 8px 8px 0;
  }
}

/* ---------------- 今日在线数据带（v1.27.0） ---------------- */
/* 左边官方 30 分钟序列柱状图，右边两个大数字。数字用等宽 + tabular-nums：
   每次刷新位数会变，不等宽的话整块会左右跳。 */
.online-band {
  display: flex;
  align-items: stretch;
  gap: 20px;
  padding: 16px 18px;
  margin-bottom: 18px;
  background: var(--surface);
  background-image: var(--surface-grad);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--surface-shine);
}

.online-band.is-empty {
  display: block;
}

.ol-empty {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}

.ol-chart {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.ol-chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.ol-chart-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.ol-when {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.ol-spark {
  display: block;
  width: 100%;
  height: 112px;
}

/* 悬停读数：竖线 + 跟着柱子走的小标签（v1.27.2） */
.ol-plot {
  position: relative;
}

.ol-cursor {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(226, 232, 240, 0.5);
  pointer-events: none;
}

.ol-tip {
  position: absolute;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink);
  background: rgba(9, 14, 24, 0.94);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 3;
}

.ol-cursor[hidden],
.ol-tip[hidden] {
  display: none;
}

.ol-numbers {
  display: flex;
  flex: none;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 170px;
  padding-left: 20px;
  border-left: 1px solid var(--line-soft);
}

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

.ol-k {
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.ol-v {
  font-family: var(--font-mono);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.ol-v.is-now {
  font-size: 20px;
  font-weight: 600;
  color: var(--sky-bright);
}

@media (max-width: 720px) {
  .online-band {
    flex-direction: column;
    gap: 14px;
    padding: 14px;
  }
  .ol-spark {
    height: 96px;
  }
  .ol-numbers {
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 20px;
    min-width: 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--line-soft);
    border-left: none;
  }
  .ol-v {
    font-size: 22px;
  }
  .ol-v.is-now {
    font-size: 19px;
  }
}

/* ---------------- 条目类型徽章与详情页说明 (v1.29.0) ----------------

   榜单里混着 DLC 和捆绑包：它们没有独立在线人数，点进详情页只有 1-2 张卡。
   徽章的作用是「点之前先有个预期」，所以做得很轻——只在非普通条目上出现，
   普通游戏一行一个徽章会把 100 行变成全是标签的墙。 */

.kind-badge {
  display: inline-block;
  flex: 0 0 auto;
  margin-left: 7px;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
  vertical-align: 1px;
  white-space: nowrap;
  color: var(--ink-2);
  background: rgba(148, 163, 184, 0.16);
  border: 1px solid var(--line-strong);
}

/* 三种类型三个色相：DLC 偏金（追加内容，还值钱）、捆绑包偏灰（打包出售）、
   未发售偏蓝（等它）。颜色只是辅助，文字才是信息本身。 */
.kind-badge.is-dlc {
  color: var(--gold);
  background: rgba(245, 158, 11, 0.13);
  border-color: rgba(245, 158, 11, 0.34);
}
.kind-badge.is-bundle {
  color: var(--muted);
  background: rgba(148, 163, 184, 0.1);
}
.kind-badge.is-unreleased {
  color: var(--sky-bright);
  background: var(--sky-dim);
  border-color: var(--line-accent);
}

/* 详情页顶部说明条：回答「为什么这里的卡片比别的游戏少」 */
.kind-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  line-height: 1.6;
}

.kind-notice.is-dlc {
  border-color: rgba(245, 158, 11, 0.28);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.07), rgba(245, 158, 11, 0.02));
}
.kind-notice.is-unreleased {
  border-color: var(--line-accent);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.07), rgba(56, 189, 248, 0.02));
}

.kind-notice-tag {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: rgba(148, 163, 184, 0.2);
}

.kind-notice.is-dlc .kind-notice-tag {
  color: #1a1205;
  background: var(--gold);
}
.kind-notice.is-unreleased .kind-notice-tag {
  color: #04121c;
  background: var(--sky);
}

.kind-notice-text {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ink-2);
}

.kind-notice-text b {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
}

.kind-notice-go {
  flex: 0 0 auto;
  align-self: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--sky);
  white-space: nowrap;
}

.kind-notice-go:hover {
  color: var(--sky-bright);
  text-decoration: underline;
}

@media (max-width: 640px) {
  /* 手机上一行放不下「标签 + 两行说明 + 链接」，链接掉到下一行，右对齐 */
  .kind-notice {
    flex-wrap: wrap;
    gap: 8px 10px;
    padding: 12px 13px;
  }
  .kind-notice-go {
    align-self: flex-end;
    margin-left: auto;
  }
}

/* ---------------- 高密度时长与排行账本 (Tabular Data Ledger) ---------------- */
.bars {
  overflow: hidden;
}

.ledger-head {
  display: grid;
  grid-template-columns: 44px 76px 1fr 104px 104px;
  align-items: center;
  gap: 16px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.015);
}

.ledger-head .right {
  text-align: right;
}

.bar-row {
  display: grid;
  grid-template-columns: 44px 76px 1fr 104px 104px;
  align-items: center;
  gap: 16px;
  padding: 13px 22px;
  border-bottom: 1px solid var(--line-soft);
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.bar-row:last-child {
  border-bottom: none;
}

.bar-row:hover {
  background-color: var(--surface-hover);
  box-shadow: inset 3px 0 0 var(--sky);
}

.bar-rank {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.bar-row:nth-child(-n+3) .bar-rank {
  color: var(--sky);
}

.bar-thumb {
  width: 76px;
  aspect-ratio: 16 / 9;
  border-radius: 5px;
  overflow: hidden;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  display: block;
}

.bar-thumb .art {
  width: 100%;
  height: 100%;
}

.bar-thumb .art-letter {
  font-size: 15px;
}

.bar-body {
  min-width: 0;
}

.bar-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.bar-title {
  display: flex;
  align-items: center;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.15s ease;
}

/* v1.29.0：名字单独一层承载省略号，徽章作为兄弟节点永远不会被裁掉 */
.bar-title-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.bar-row:hover .bar-title,
.bar-label a:hover {
  color: var(--sky-bright);
}

.bar-share {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.bar-track {
  height: 5px;
  background: rgba(148, 163, 184, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, var(--sky));
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.bar-row:nth-child(1) .bar-fill {
  background: linear-gradient(90deg, var(--sky), var(--sky-bright));
}

.bar-val {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

.bar-val small {
  color: var(--muted);
  font-weight: 400;
  font-size: 11.5px;
  margin-left: 2px;
}

/* 今日采样没覆盖到的行：退回官方 24h 峰值，用淡色和正常行区分开 */
.bar-val.is-24h {
  color: var(--muted);
  font-weight: 500;
}

/* v1.28.0：榜单按当前在线排序，两列数值给不同权重——
   「当前玩家人数」是主排序依据（亮白），「今日峰值」是参照（偏灰）。
   反过来会让人以为表格是按峰值排的。 */
.bar-val.is-now {
  color: var(--sky-bright);
}

.bar-val.is-peak {
  color: var(--muted);
  font-weight: 500;
}

/* ---------------- 游戏卡片画廊网格 ---------------- */
.grid {
  display: grid;
  gap: 20px;
}

.grid.recent,
.grid.catalog {
  grid-template-columns: repeat(4, 1fr);
}

.game-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  background-image: var(--surface-grad);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--surface-shine);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.22s ease, background-color 0.2s ease;
  position: relative;
  will-change: transform;
}

.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.55);
  background: var(--surface-hover);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(56, 189, 248, 0.18),
    0 16px 34px -10px rgba(2, 6, 16, 0.72);
  z-index: 2;
}

.art {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, hsl(var(--h) 34% 15%), hsl(var(--h2) 44% 25%));
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line-soft);
}

.art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(6, 9, 15, 0.68) 100%);
  z-index: 3;
  pointer-events: none;
}

.art-letter {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
  position: relative;
  z-index: 1;
}

.art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.game-card:hover .art img {
  transform: scale(1.045);
}

.game-card-body {
  padding: 15px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  flex: 1;
  justify-content: space-between;
}

.game-card-title {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.game-card:hover .game-card-title {
  color: var(--sky-bright);
}

.game-card-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.game-card-meta b {
  font-family: var(--font-mono);
  color: var(--ink-2);
  font-weight: 600;
}

.game-card-meta .sep {
  color: var(--muted);
}

/* 目录卡片：上线时间与价格（v1.5.2 起取代原来那行 AppID） */
.game-card-meta .meta-store {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.game-card-meta .meta-store:empty {
  display: none;
}

.game-card-meta .meta-date {
  color: var(--muted);
}

.game-card-meta .meta-price {
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 600;
}

.game-card-meta .meta-cut {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 2px;
  background: var(--steam-off-bg);
  color: var(--steam-off-fg);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
}

.game-card-meta .meta-was {
  color: var(--steam-orig);
  font-family: var(--font-mono);
  text-decoration: line-through;
}

.game-card-meta .meta-free {
  color: var(--green);
  font-weight: 600;
}

.game-card-meta .meta-soon {
  color: var(--sky);
  font-weight: 600;
}

/* 详情页 kicker 的 Steam 式价格行（折扣块复用 .sales-off） */
.kick-price-block {
  vertical-align: middle;
}

.kick-price .kick-now {
  font-size: 14px;
}

/* ---------------- 搜索与交互筛选工具栏 ---------------- */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

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

.toolbar-search {
  width: 240px;
}

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--surface);
  background-image: var(--surface-grad);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 5px 15px;
  margin-bottom: 16px;
  box-shadow: var(--surface-shine);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.search-bar:focus-within {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px var(--sky-dim), var(--surface-shine);
}

.search-icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex: none;
  margin-right: 12px;
  transition: color 0.16s ease;
}

.search-bar:focus-within .search-icon {
  color: var(--sky);
}

.search-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 14.5px;
  padding: 10px 0;
  background: transparent;
  color: var(--ink);
}

.search-input::placeholder {
  color: var(--muted);
}

.search-kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  background: var(--bg-subtle);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  padding: 2px 7px;
  margin-left: 8px;
  user-select: none;
}

.search-clear {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--surface-raised);
  color: var(--ink-2);
  cursor: pointer;
  display: none;
  margin-left: 8px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.search-clear.visible {
  display: inline-flex;
}

.search-clear:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

/* 交互式分段筛选器 (Interactive Segmented Filter Controls) */
.segmented {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  min-height: 38px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.segmented::-webkit-scrollbar {
  display: none;
}

.seg-btn {
  padding: 6px 13px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.seg-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}

.seg-btn.active {
  background: var(--surface-raised);
  color: var(--ink);
  border-color: var(--line-strong);
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 1px 3px rgba(0, 0, 0, 0.35);
}

.quick-queries {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  font-size: 12.5px;
  color: var(--muted);
}

.quick-btn {
  background: transparent;
  border: none;
  padding: 2px 5px;
  font-size: 12.5px;
  color: var(--ink-2);
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.quick-btn:hover {
  color: var(--sky-bright);
  background: var(--sky-dim);
}

/* ---------------- 提示横幅 (Clean Hairline Callout, No Thick Left Border) ---------------- */
.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  background-image: var(--surface-grad);
  border: 1px solid rgba(251, 191, 36, 0.28);
  box-shadow: var(--surface-shine);
  color: var(--ink-2);
  font-size: 13.5px;
  margin-top: 18px;
}

.notice.blue {
  border-color: var(--line);
}

.notice b {
  font-weight: 600;
  color: var(--ink);
}

.notice code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--sky);
}

.notice-icon {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--sky);
}

/* ---------------- 游戏详情页 (Editorial Split Header & Spec Strip) ---------------- */
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 20px;
  transition: color 0.15s ease, transform 0.15s ease;
}

.back:hover {
  color: var(--sky-bright);
  transform: translateX(-2px);
}

.detail-head {
  position: relative;
  background: var(--surface);
  background-image: var(--surface-grad);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--surface-shine);
  overflow: hidden;
}

.detail-head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.42), transparent);
  pointer-events: none;
}

.detail-main {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 32px;
  padding: 32px;
  align-items: start;
}

.detail-art {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, hsl(var(--h) 35% 18%), hsl(var(--h2) 45% 28%));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.55);
}

.detail-art .art-letter {
  font-size: 44px;
}

.detail-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

.detail-body {
  min-width: 0;
}

.detail-body h1 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 31px);
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}

.detail-kicker {
  margin-bottom: 12px;
}

/* 属性条（v1.6.0）：一行答完「这游戏是什么」。
   采用现代低圆角技术标牌（6px radius），避免药丸胶囊感 */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  font-size: 12px;
  line-height: 1.5;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink-2);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip-good {
  border-color: rgba(52, 211, 153, 0.32);
  background: var(--green-dim);
  color: #6ee7b7;
}

.chip-info {
  border-color: rgba(56, 189, 248, 0.28);
  background: var(--sky-dim);
  color: #7dd3fc;
}

.chip-warn {
  border-color: rgba(251, 191, 36, 0.3);
  background: var(--gold-dim);
  color: #fcd34d;
}

.chip-mute {
  color: var(--muted);
  background: transparent;
}

.chip-rank {
  border-color: transparent;
  background: linear-gradient(135deg, #fbbf24, #f43f5e);
  color: #1a0b02;
  font-weight: 700;
}

.chip-tag {
  border-style: dashed;
  background: transparent;
  color: var(--muted);
}

.detail-desc {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.75;
  max-width: 68ch;
  margin: 0;
}

/* 详情页底部 4 列规格参数条 */
.detail-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  background: rgba(6, 9, 15, 0.42);
}

.spec-cell {
  padding: 16px 24px;
  border-right: 1px solid var(--line);
  min-width: 0;
}

.spec-cell:last-child {
  border-right: none;
}

.spec-label {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 4px;
}

.spec-val {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spec-zh {
  display: flex;
  align-items: center;
  gap: 5px;
}

.spec-zh-mark {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.spec-zh.is-off {
  color: var(--muted);
  font-weight: 500;
}

/* 指标八宫格与底部玩家统计通栏（2×4 矩阵） */
.detail-stats-block {
  margin-top: 18px;
}

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

.stat-card[hidden] {
  display: none !important;
}

.stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--surface);
  background-image: var(--surface-grad);
  box-shadow: var(--surface-shine);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 14px 16px;
  min-height: 90px;
  min-width: 0;
}

.stat-rank {
  position: absolute;
  top: 8px;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.stat-card .stat-v {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-steam-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  color: var(--ink-2);
  transform: translateY(2px);
  flex-shrink: 0;
}

.stat-steam-ico svg {
  width: 100%;
  height: 100%;
}

.stat-card .stat-v small {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 2px;
  letter-spacing: 0;
}

.stat-card .stat-v small.unit-wan {
  font-size: 18px;
  font-weight: 600;
  color: inherit;
  margin-left: 1px;
}

.stat-card .stat-v small.pct {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  color: inherit;
  margin-left: 0;
}

.stat-card .stat-v.text-green {
  color: var(--green);
}

.stat-card .stat-v.text-gold {
  color: var(--gold);
}

.stat-card .stat-v.text-red {
  color: var(--red);
}

.stat-card .stat-k {
  margin-top: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-caret {
  font-size: 11px;
  line-height: 1;
  color: var(--muted);
  transition: color 0.14s ease, transform 0.14s ease;
}

.stat-card .stat-sub {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.stat-card .stat-spark {
  display: block;
  width: 88%;
  height: 30px;
  margin: 0 auto;
}

/* ---------------------------------------------------------- 史低价格浮层与可点卡片 */

.stat-card.is-clickable {
  position: relative;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease,
    box-shadow 0.16s ease;
}

.stat-card.is-clickable::before {
  content: '';
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--sky);
  opacity: 0;
  transition: opacity 0.16s ease;
}

.stat-card.is-clickable:hover,
.stat-card.is-clickable:focus-visible {
  border-color: var(--line-accent);
  background: var(--surface-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.45);
}

.stat-card.is-clickable:hover::before,
.stat-card.is-clickable:focus-visible::before,
.stat-card.is-clickable.is-active::before {
  opacity: 0.9;
}

@media (hover: none) {
  .stat-card.is-clickable::before {
    opacity: 0.4;
  }
  .stat-card.is-clickable:hover {
    transform: none;
  }
}

.stat-card.is-clickable:hover .stat-caret {
  color: var(--sky);
  transform: translateX(2px);
}

.stat-card[data-stat="lowest"].is-clickable:hover .stat-caret {
  color: var(--gold);
}

.price-pop {
  position: fixed;
  inset: 0;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease;
}

.price-pop.open {
  opacity: 1;
  pointer-events: auto;
}

.price-pop-panel {
  position: absolute;
  width: min(352px, calc(100vw - 16px));
  max-height: calc(100vh - 16px);
  overflow-y: auto;
  padding: 15px 17px 16px;
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 52px -12px rgba(0, 0, 0, 0.82);
  transform: translateY(-4px) scale(0.985);
  transform-origin: top center;
  transition: transform 0.14s ease;
}

.price-pop.open .price-pop-panel {
  transform: none;
}

.price-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.price-pop-title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.price-pop-close {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 12px;
  line-height: 1;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.price-pop-close:hover {
  background: var(--surface-hover);
  border-color: var(--line-strong);
  color: var(--ink);
}

.price-pop-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.price-pop-value {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.price-pop-rows {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.price-pop-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
}

.price-pop-row .k {
  color: var(--muted);
  white-space: nowrap;
}

.price-pop-row .v {
  color: var(--ink-2);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.price-chart {
  margin-top: 12px;
}

.price-chart svg {
  display: block;
  width: 100%;
  height: 56px;
}

.price-chart-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.price-pop-note {
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------------------------------------------------------- 玩家统计详情弹窗（#playerStatsModal） */
@media (prefers-reduced-motion: reduce) {
  .stats-drawer {
    animation: none;
  }
  .stat-loading {
    animation: none;
  }
}

/* ---------------- 统计面板：弹出式（v1.30.0） ----------------

   原来是卡片下方的原地展开面板，会把下面的内容整个推下去，还要 scrollIntoView。
   现在桌面端是贴着卡片弹出的锚定浮层（空间不足向上翻），手机端是从底部上拉的
   半屏面板。内容渲染函数（renderPlayerStatsPanels 的四个区块）一行没改，
   改的只是容器与开关交互。 */

.stats-drawer {
  position: fixed;
  z-index: 95; /* 价格浮层 90 / 截图灯箱 100 之间，别压住灯箱 */
  width: min(520px, calc(100vw - 24px));
  max-height: min(640px, calc(100vh - 24px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  background-image: var(--surface-grad);
  box-shadow: 0 18px 48px rgba(2, 6, 16, 0.55), var(--surface-shine);
  animation: statsPopIn 0.16s ease-out;
}

.stats-drawer[hidden] {
  display: none;
}

.stats-drawer-body {
  overflow: auto;
  overscroll-behavior: contain;
  padding: 18px 20px;
  outline: none;
}

/* 关闭钮挂在容器上而不是滚动内容里，内容滚多远它都在右上角 */
.stats-pop-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface-raised);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.14s ease, border-color 0.14s ease;
}

.stats-pop-close:hover {
  color: var(--ink);
  border-color: var(--line-accent);
}

@keyframes statsPopIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.stats-pop-backdrop {
  position: fixed;
  inset: 0;
  z-index: 94; /* 面板 95 之下 */
  background: rgba(3, 7, 15, 0.62);
}

/* 桌面不用幕布：点外部关闭走监听，保持背后页面可悬停可滚（滚了就关面板） */
@media (min-width: 721px) {
  .stats-pop-backdrop {
    display: none;
  }
}

/* 手机端打开面板时锁背景滚动（面板内部照常滚） */
html.stats-locked,
html.stats-locked body {
  overflow: hidden;
}

@media (max-width: 720px) {
  .stats-drawer {
    left: 0 !important;
    right: 0;
    bottom: 0;
    top: auto !important;
    width: auto;
    max-height: 84vh;
    border-radius: 16px 16px 0 0;
    border-bottom: none;
    animation: statsSheetUp 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .stats-drawer-body {
    padding: 16px 14px calc(16px + env(safe-area-inset-bottom));
  }
}

@keyframes statsSheetUp {
  from {
    transform: translateY(35%);
    opacity: 0.4;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stats-drawer,
  .stats-pop-backdrop {
    animation: none;
  }
}

.stat-card.is-active {
  border-color: var(--sky);
  box-shadow: 0 0 0 1px var(--sky) inset;
}

.stats-dialog {
  width: min(760px, 94vw);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
}

.stats-dialog-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stats-modal-tabs {
  align-self: flex-start;
}

.stats-modal-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stats-modal-sec {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.stats-modal-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.stats-modal-sec-head h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.stats-modal-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.stats-modal-kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stats-modal-kpi .k {
  font-size: 11.5px;
  color: var(--muted);
}

.stats-modal-kpi .v {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stats-modal-kpi .v small {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
}

.stats-modal-chart svg {
  display: block;
  width: 100%;
  height: 84px;
}

.stats-review-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stats-review-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.stats-review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.stats-review-lang {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.stats-review-desc {
  font-size: 12px;
  font-weight: 600;
}

.stats-review-num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  margin-top: 4px;
}

.stats-review-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.stats-pt-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stats-pt-row {
  display: grid;
  grid-template-columns: 96px 1fr 48px;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
}

.stats-pt-label {
  color: var(--ink-2);
}

.stats-pt-pct {
  text-align: right;
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .price-pop,
  .price-pop-panel,
  .stat-card.is-clickable,
  .stat-caret {
    transition: none;
  }
}

@media (max-width: 720px) {
  .detail-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .stat-card {
    padding: 15px 12px 13px;
    min-height: 78px;
  }
  .stat-card .stat-v {
    font-size: 22px;
  }
  .stats-modal-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats-review-compare {
    grid-template-columns: 1fr;
  }
}

.panel {
  padding: 28px;
  margin-top: 24px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.panel h2 {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0;
  font-weight: 650;
  color: var(--ink);
}

.panel .hint {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0;
}

/* ---------------- 成就墙与进度账本 ---------------- */
.ach-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.ach-row {
  display: grid;
  grid-template-columns: 1fr 180px 72px;
  align-items: center;
  gap: 20px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line-soft);
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.ach-row:hover {
  background: var(--surface-hover);
  box-shadow: inset 3px 0 0 var(--sky);
}

.ach-row:last-child {
  border-bottom: none;
}

.ach-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.ach-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
}

.ach-desc {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
}

.ach-track {
  height: 5px;
  background: rgba(148, 163, 184, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.ach-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0284c7, var(--sky));
}

.ach-pct {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-2);
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* ---------------- 空状态 ---------------- */
.empty {
  padding: 64px 24px;
  text-align: center;
  border-radius: var(--radius);
  background: var(--surface);
  background-image: var(--surface-grad);
  box-shadow: var(--surface-shine);
  border: 1px solid var(--line);
}

.empty .mark {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sky-dim);
  border: 1px solid var(--line-accent);
  color: var(--sky);
}

.empty h3 {
  font-family: var(--font-display);
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 650;
  color: var(--ink);
}

.empty p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  max-width: 42ch;
  margin-inline: auto;
}

.empty .btn {
  margin-top: 22px;
}

/* ---------------- 骨架屏动画与结构化占位体系 (Skeleton Loading System) ---------------- */
.skel {
  position: relative;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.045);
  background-image: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.055) 42%,
    rgba(56, 189, 248, 0.075) 50%,
    rgba(255, 255, 255, 0.055) 58%,
    rgba(255, 255, 255, 0) 80%
  );
  background-size: 260% 100%;
  animation: skelShimmer 1.65s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: var(--skel-delay, 0ms);
  border-radius: 6px;
}

@keyframes skelShimmer {
  0% { background-position: 130% 0; }
  100% { background-position: -130% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .skel,
  .art.img-loading::before,
  .detail-art.img-loading::before,
  .shot.img-loading::before {
    animation: none !important;
  }
}

.skel-line {
  height: 13px;
  margin: 8px 0;
  border-radius: 4px;
}

.skel-line.sm {
  height: 10px;
  margin: 4px 0;
}

.skel-line.lg {
  height: 22px;
  margin: 6px 0;
  border-radius: 6px;
}

.skel-inline {
  display: inline-block;
  vertical-align: middle;
  height: 12px;
  border-radius: 4px;
}

.skel-pill {
  height: 26px;
  border-radius: var(--radius-sm);
}

.skel-card {
  pointer-events: none;
  user-select: none;
}

.skel-art {
  background: var(--bg-subtle);
}

.skel-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.045) 45%,
    rgba(56, 189, 248, 0.07) 50%,
    rgba(255, 255, 255, 0.045) 55%,
    rgba(255, 255, 255, 0) 80%
  );
  background-size: 260% 100%;
  animation: skelShimmer 1.65s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: var(--skel-delay, 0ms);
}

.skel-art-glyph {
  width: 28px;
  height: 28px;
  color: rgba(148, 163, 184, 0.18);
  position: relative;
  z-index: 1;
}

.skel-bar-row,
.skel-ach-row {
  pointer-events: none;
  user-select: none;
}

.skel-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--sky);
}

.skel-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 8px var(--sky);
  animation: skelPulseDot 1.2s ease-in-out infinite alternate;
}

@keyframes skelPulseDot {
  0% { opacity: 0.35; transform: scale(0.88); }
  100% { opacity: 1; transform: scale(1.12); }
}

/* 真实游戏封面与截图网络加载期间的流光骨架遮罩 */
.art.img-loading::before,
.detail-art.img-loading::before,
.shot.img-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background-color: rgba(14, 18, 25, 0.55);
  background-image: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0) 22%,
    rgba(255, 255, 255, 0.06) 46%,
    rgba(56, 189, 248, 0.08) 50%,
    rgba(255, 255, 255, 0.06) 54%,
    rgba(255, 255, 255, 0) 78%
  );
  background-size: 250% 100%;
  animation: skelShimmer 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* ---------------- 截图画廊与全屏灯箱 ---------------- */
.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.shot {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  cursor: zoom-in;
  transition: border-color 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.shot:hover {
  border-color: var(--line-accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -8px rgba(0, 0, 0, 0.6);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.shot:hover img {
  transform: scale(1.045);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 7, 13, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(1240px, 92vw);
  max-height: 86vh;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  box-shadow: 0 28px 64px -16px rgba(0, 0, 0, 0.85);
}

#lightboxImg {
  opacity: 0;
  transition: opacity 0.16s ease;
}

#lightboxImg.is-ready {
  opacity: 1;
}

.lightbox-status {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  padding: 22px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: rgba(15, 22, 35, 0.92);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.lightbox-status[hidden],
.lightbox-spinner[hidden],
.lightbox-retry[hidden] {
  display: none !important;
}

.lightbox-spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  border-top-color: var(--sky);
  animation: lbSpin 0.75s linear infinite;
}

@keyframes lbSpin {
  to {
    transform: rotate(360deg);
  }
}

.lightbox-status-text {
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
}

.lightbox-status[data-kind="error"] .lightbox-status-text {
  max-width: 280px;
  color: var(--ink);
}

.lightbox-retry {
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-accent);
  background: var(--sky-dim);
  color: var(--sky);
  font-family: var(--font-mono);
  font-size: 12.5px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.lightbox-retry:hover {
  background: rgba(56, 189, 248, 0.22);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.lightbox-close:hover {
  background: var(--surface-hover);
  border-color: var(--line-accent);
  color: var(--sky-bright);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(15, 22, 35, 0.88);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.lightbox-nav:hover {
  background: var(--surface-hover);
  border-color: var(--line-accent);
  color: var(--sky);
}

.lightbox-nav.prev {
  left: 24px;
}

.lightbox-nav.next {
  right: 24px;
}

.lightbox-nav[hidden],
.lightbox-counter[hidden] {
  display: none !important;
}

.lightbox-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  background: rgba(15, 22, 35, 0.88);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  z-index: 2;
  pointer-events: none;
}

/* ---------------- 分页加载 ---------------- */
.load-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 36px 0 8px;
}

.load-more .btn[disabled] {
  opacity: 0.5;
  cursor: default;
}

.load-more .sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------------- 页脚与 Toast ---------------- */
.foot {
  border-top: 1px solid var(--line);
  background: rgba(6, 9, 15, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  z-index: 1;
}

.foot-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-weight: 500;
}

.foot-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
}

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

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 14px);
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  box-shadow: 0 16px 38px -8px rgba(0, 0, 0, 0.7);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 120;
  max-width: 88vw;
}

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

/* ---------------- 玩家档案查询条 (SteamID / Vanity Lookup) ---------------- */
.lookup-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.lookup-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0 13px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lookup-input-wrap:focus-within {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px var(--sky-dim);
}

.lookup-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  padding: 9px 0;
}

.lookup-input::placeholder {
  color: var(--muted);
}

/* ---------------- 原生下拉框皮肤（v1.5.15） ---------------- */
select.select-input {
  appearance: none;
  -webkit-appearance: none;
  width: auto;
  max-width: 100%;
  padding: 9px 30px 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background-color: var(--bg-subtle);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%239ba9be' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 8px;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

select.select-input:hover {
  border-color: var(--line-accent);
}

select.select-input:focus-visible {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px var(--sky-dim);
}

select.select-input option,
select.select-input optgroup {
  background-color: var(--surface-raised);
  color: var(--ink);
}

select.select-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ---------------- 时长金字塔与吃灰轮盘双栏布局 ---------------- */
.insights-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 20px;
  margin-top: 22px;
  align-items: stretch;
}

.pyramid-card,
.roulette-card {
  background: var(--surface);
  background-image: var(--surface-grad);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--surface-shine);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.insight-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.insight-title {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 650;
  color: var(--ink);
  margin: 0;
}

.insight-sub {
  font-size: 12px;
  color: var(--muted);
}

/* 5 段式时长金字塔比例条 */
.tier-stack {
  display: flex;
  height: 10px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-subtle);
  gap: 2px;
  margin-bottom: 20px;
}

.tier-seg {
  height: 100%;
  transition: width 0.3s ease;
}

.tier-seg-100h { background: #38bdf8; }
.tier-seg-20h  { background: #0284c7; }
.tier-seg-2h   { background: #34d399; }
.tier-seg-sub2h { background: #fbbf24; }
.tier-seg-0h   { background: #334155; }

.tier-matrix {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(6, 9, 15, 0.35);
}

.tier-cell {
  padding: 13px 14px;
  border: none;
  border-right: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.tier-cell:hover {
  background: var(--surface-hover);
}

.tier-cell.active {
  background: var(--sky-dim);
  box-shadow: inset 0 -2px 0 var(--sky);
}

.tier-cell:last-child {
  border-right: none;
}

.tier-dot-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.tier-swatch {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: none;
}

.tier-range {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}

.tier-count {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.tier-count small {
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 3px;
}

.tier-pct {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

/* 吃灰唤醒器 (Backlog Roulette) */
.roulette-pick {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  transition: border-color 0.15s ease;
}

.roulette-pick:hover {
  border-color: var(--line-strong);
}

.roulette-art {
  width: 120px;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.roulette-art .art {
  width: 100%;
  height: 100%;
}

.roulette-info {
  min-width: 0;
}

.roulette-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  margin-bottom: 4px;
  transition: color 0.15s ease;
}

.roulette-name:hover {
  color: var(--sky-bright);
}

.roulette-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.roulette-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------------- 生涯名片 Canvas 弹窗 ---------------- */
.poster-dialog {
  width: min(860px, 94vw);
  background: var(--surface);
  background-image: var(--surface-grad);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 64px -16px rgba(0, 0, 0, 0.85);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.poster-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.poster-dialog-head h3 {
  font-family: var(--font-display);
  margin: 0 0 4px;
  font-size: 18px;
  color: var(--ink);
}

.poster-dialog-head p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

.poster-close-inline {
  position: static;
  width: 34px;
  height: 34px;
  flex: none;
}

.poster-canvas-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.poster-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.poster-dialog-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------------- 时光胶囊遥测 ---------------- */
.capsule-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  background: var(--surface);
  background-image: var(--surface-grad);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--surface-shine);
  overflow: hidden;
  margin-top: 22px;
}

.capsule-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 20px 26px;
  border-right: 1px solid var(--line);
}

.capsule-cell:last-child {
  border-right: none;
}

.capsule-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sky);
}

.capsule-cell-deck .capsule-kicker {
  color: var(--green);
}

.capsule-main {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
}

.capsule-game-link {
  font-weight: 600;
  color: var(--ink);
  transition: color 0.15s ease;
}

.capsule-game-link:hover {
  color: var(--sky-bright);
}

.capsule-sub {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.capsule-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-2);
  transition: color 0.15s ease;
}

.capsule-tag:hover {
  color: var(--sky-bright);
}

/* ---------------- 好友动态摘要 (GetFriendList) ---------------- */
.friends-summary-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 13px 18px;
  background: var(--surface);
  background-image: var(--surface-grad);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--surface-shine);
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--ink-2);
}

.friends-Summary-strip .sep,
.friends-summary-strip .sep {
  color: var(--muted);
}

.friends-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 20px;
  align-items: start;
}

.friends-hot-card {
  padding: 22px;
}

.friend-hot-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.friend-hot-row {
  display: grid;
  grid-template-columns: 28px 80px 1fr;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.friend-hot-row:hover {
  border-color: var(--line-accent);
  background: var(--surface-hover);
}

.friend-hot-art {
  width: 80px;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  display: block;
}

.friend-hot-art .art {
  width: 100%;
  height: 100%;
}

.friend-hot-body {
  min-width: 0;
}

.friend-hot-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friend-hot-row:hover .friend-hot-title {
  color: var(--sky-bright);
}

.friend-hot-sub {
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.friend-hot-players {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friends-cards-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.friend-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background: var(--surface);
  background-image: var(--surface-grad);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--surface-shine);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.friend-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.friend-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.friend-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.friend-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--sky);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.friend-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.friend-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
}

.friend-identity:hover .friend-name {
  color: var(--sky-bright);
}

.friend-since {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

.friend-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 500;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.friend-status.playing {
  color: var(--green);
}

.friend-status.online {
  color: var(--sky);
}

.friend-status.offline {
  color: var(--muted);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  flex-shrink: 0;
}

.friend-games-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

.friend-game-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  padding: 5px 8px;
  border-radius: 5px;
  background: var(--bg-subtle);
  transition: background-color 0.15s ease;
}

.friend-game-chip:hover {
  background: var(--surface-hover);
}

.friend-game-name {
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.friend-game-chip:hover .friend-game-name {
  color: var(--sky-bright);
}

.friend-games-empty {
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--muted);
}

/* ---------------- 左下角访客窗口（v1.26.0） ---------------- */
/* 层级刻意取 55：高于 .page-rail(40)，低于 .price-pop(90) / .lightbox(100)，
   打开遮罩时自动被压在下面，不需要额外 JS 去 hide。 */
.visitor-chip {
  position: fixed;
  left: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: min(300px, calc(100vw - 32px));
  padding: 9px 11px;
  border-radius: 13px;
  background: var(--surface-translucent);
  border: 1px solid var(--line-strong);
  box-shadow:
    0 12px 30px -14px rgba(0, 0, 0, 0.8),
    var(--surface-shine);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.4;
  animation: vc-in 0.28s ease both;
}

@keyframes vc-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.visitor-chip .vc-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.visitor-chip .vc-main {
  font-size: 12.5px;
  color: var(--ink);
}

/* 数字用等宽 + tabular-nums：位数变化时不会左右跳动 */
.visitor-chip .vc-main b,
.visitor-chip .vc-sub b {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--sky-bright);
}

.visitor-chip .vc-sub {
  font-size: 11px;
  color: var(--muted);
}

.visitor-chip .vc-login {
  font-size: 11px;
  color: var(--sky);
  text-decoration: none;
}

.visitor-chip .vc-login:hover {
  text-decoration: underline;
}

/* 收起后只留一个小徽标（#88 或总人数） */
.visitor-chip .vc-mini {
  display: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--sky-bright);
  font-variant-numeric: tabular-nums;
}

.visitor-chip .vc-toggle {
  flex: none;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.visitor-chip .vc-toggle:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.visitor-chip.is-collapsed {
  padding: 7px 9px;
  gap: 6px;
}

.visitor-chip.is-collapsed .vc-text {
  display: none;
}

.visitor-chip.is-collapsed .vc-mini {
  display: inline-flex;
}

/* 窄屏：抬到 toast 之上——toast 固定 bottom:28px 居中，窄屏下单行也会横向铺开 */
@media (max-width: 640px) {
  .visitor-chip {
    left: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 24px);
    font-size: 11.5px;
  }
  .visitor-chip .vc-main {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .visitor-chip {
    animation: none;
  }
}

/* ---------------- 右侧快速跳转（长页面目录） ---------------- */
.page-rail {
  position: fixed;
  top: 50%;
  right: 12px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: 40px;
  padding: 10px 0;
  border-radius: 14px;
  background: var(--surface-translucent);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transform: translateY(-50%);
  transition: width 0.24s cubic-bezier(0.4, 0, 0.2, 1) 0.18s;
}

.page-rail:hover,
.page-rail:focus-within,
.page-rail.is-hint {
  width: 154px;
  background: rgba(15, 22, 35, 0.96);
  border-color: var(--line-strong);
  box-shadow: 0 16px 38px -10px rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transition: width 0.24s cubic-bezier(0.4, 0, 0.2, 1) 0s,
    background 0.24s ease 0s, border-color 0.24s ease 0s;
}

.rail-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 28px;
  padding: 0 14px;
  border: 0;
  background: none;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.14s ease;
}

.rail-item:hover {
  color: var(--ink);
}

.rail-item:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: -4px;
  border-radius: 8px;
}

.rail-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.26);
  transition: background 0.18s ease, width 0.18s ease, height 0.18s ease,
    border-radius 0.18s ease;
}

.rail-item.is-active .rail-dot {
  width: 6px;
  height: 20px;
  border-radius: 3px;
  background: var(--sky);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.45);
}

.rail-item:hover .rail-dot {
  background: var(--ink-2);
}

.rail-item.is-active:hover .rail-dot {
  background: var(--sky-bright);
}

.rail-label {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  opacity: 0;
  pointer-events: none;
  font-size: 12.5px;
  line-height: 1;
  white-space: nowrap;
  transition: opacity 0.16s ease, transform 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-rail:hover .rail-label,
.page-rail:focus-within .rail-label,
.page-rail.is-hint .rail-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.rail-item.is-active .rail-label {
  color: var(--ink);
  font-weight: 600;
}

.rail-sep {
  flex: none;
  height: 1px;
  margin: 8px 14px;
  background: var(--line);
}

.rail-item.rail-top .rail-dot {
  width: 5px;
  height: 5px;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--muted);
}

.rail-item.rail-top:hover .rail-dot {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

[data-toc] {
  scroll-margin-top: 96px;
}

#profileTop {
  scroll-margin-top: 0;
}

@media (max-width: 1360px) {
  .page-rail {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-rail,
  .rail-label,
  .rail-dot {
    transition: none;
  }
}

/* ---------------- 今日特惠精选卡片 ---------------- */
.deals-dup-note {
  margin: 0 0 12px;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.6;
}

.deal-card {
  position: relative;
}

.deal-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  padding: 3px 8px;
  border-radius: 2px;
  background: var(--steam-off-bg);
  color: var(--steam-off-fg);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
}

.deal-owned-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(6, 9, 15, 0.88);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line-accent);
  color: var(--sky);
  font-size: 11px;
  font-weight: 600;
}

.deal-price {
  /* 卡片内的价格块：宽度随内容，卡片本身不追求列对齐 */
  align-items: flex-end;
}

.deal-low-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.36);
  background: var(--sky-dim);
  color: var(--sky);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.35;
  margin-left: auto;
  flex-shrink: 0;
}

.deal-low-tag.is-new {
  border-color: rgba(251, 191, 36, 0.42);
  background: var(--gold-dim);
  color: var(--gold);
}

/* ---------------- 游戏详情：官方新闻与动态 ---------------- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.news-row:hover {
  border-color: var(--line-accent);
  background: var(--surface-hover);
  box-shadow: inset 3px 0 0 var(--sky);
}

.news-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.news-feed-tag {
  font-family: var(--font-mono);
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--sky-dim);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: var(--sky);
  font-size: 11px;
  font-weight: 600;
}

.news-tr-tag {
  flex: none;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  cursor: help;
}

.news-title {
  font-size: 14.5px;
  font-weight: 650;
  color: var(--ink);
  transition: color 0.15s ease;
}

.news-row:hover .news-title {
  color: var(--sky-bright);
}

.news-excerpt {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}

.news-meta {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---------------- 响应式断点 ---------------- */
@media (max-width: 980px) {
  .capsule-strip {
    grid-template-columns: 1fr;
  }
  .capsule-cell {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .capsule-cell:last-child {
    border-bottom: none;
  }
  .friends-grid,
  .friends-cards-col {
    grid-template-columns: 1fr;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-ledger {
    padding: 22px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(2) {
    border-right: none;
  }
  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
  .insights-grid {
    grid-template-columns: 1fr;
  }
  .grid.recent,
  .grid.catalog {
    grid-template-columns: repeat(3, 1fr);
  }
  .detail-main {
    grid-template-columns: 1fr;
  }
  .detail-specs {
    grid-template-columns: repeat(2, 1fr);
  }
  .spec-cell:nth-child(2) {
    border-right: none;
  }
  .spec-cell:nth-child(1),
  .spec-cell:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .app {
    padding: 20px 16px 56px;
  }
  .nav-inner {
    padding: 8px 16px;
    height: auto;
    flex-wrap: wrap;
    gap: 6px;
  }
  .nav-links {
    order: 3;
    width: 100%;
    border-top: 1px solid var(--line-soft);
    padding-top: 6px;
    gap: 2px;
  }
  /* 手机上四项等分，文字居中：原来 space-between 会让首尾两项贴着屏幕边缘，
     中间两项自己找位置，字号小时看着像被挤成一排（真机反馈）。 */
  .nav-links a {
    flex: 1 1 0;
    justify-content: center;
    padding: 8px 4px;
    font-size: 13px;
  }
  /* 等分后每格约 90px，整格宽的下划线过于松散；收成居中的小横条 */
  .nav-links a::after {
    left: 50%;
    right: auto;
    width: 24px;
    transform: translateX(-50%) scaleX(0);
  }
  .nav-links a:hover::after {
    transform: translateX(-50%) scaleX(0.6);
  }
  .nav-links a.active::after {
    transform: translateX(-50%) scaleX(1);
  }
  .hero {
    padding: 26px 20px;
  }
  .hero-ledger {
    padding: 18px 16px;
  }
  .profile {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
  .profile-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .profile-identity {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }
  .avatar-lg {
    width: 60px;
    height: 60px;
    font-size: 22px;
  }
  .profile-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .profile-actions .btn {
    flex: 1;
  }
  .toolbar-right {
    width: 100%;
  }
  .toolbar-search {
    flex: 1;
    width: auto;
    min-width: 150px;
  }
  /* 档位/筛选 chip 在窄屏改成换行铺开：原来靠 overflow-x:auto 横滑，
     但滚动条已经隐藏（scrollbar-width: none），用户只会看到「标准 2–20」被切一半，
     以为排版坏了。换行后 7 个档位一次看全，也不用先猜「能不能滑」。 */
  .segmented {
    flex-wrap: wrap;
    overflow-x: visible;
    row-gap: 3px;
    max-width: 100%;
  }
  .seg-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
  .stat {
    padding: 15px 16px;
  }
  .stat .k-code {
    display: none;
  }
  .stat .v {
    font-size: 23px;
  }
  .tier-matrix {
    grid-template-columns: repeat(2, 1fr);
  }
  .tier-cell {
    border-bottom: 1px solid var(--line);
  }
  .tier-cell:nth-child(2),
  .tier-cell:nth-child(4) {
    border-right: none;
  }
  .tier-cell:nth-child(5) {
    grid-column: 1 / -1;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }
  .tier-cell:nth-child(5) .tier-range {
    margin-bottom: 0;
  }
  .grid.recent,
  .grid.catalog {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .shots {
    grid-template-columns: repeat(2, 1fr);
  }
  .ledger-head {
    display: none;
  }
  .bar-row {
    grid-template-columns: 28px 56px 1fr 72px 72px;
    gap: 10px;
    padding: 10px 14px;
  }
  .ach-row {
    grid-template-columns: 1fr 70px;
    grid-template-areas: "name pct" "bar bar";
    row-gap: 8px;
  }
  .ach-row > div:first-child { grid-area: name; }
  .ach-row .ach-pct { grid-area: pct; }
  .ach-row > div:nth-child(2) { grid-area: bar; }
}

@media (max-width: 520px) {
  .nav-user-name {
    display: none;
  }
  .bar-thumb {
    display: none;
  }
  .bar-row {
    grid-template-columns: 24px 1fr 62px 62px;
    gap: 8px;
    /* 游戏名可能折两行，此时若仍垂直居中，名次和两列数字会飘到行中间、
       与标题第一行对不上。改成顶部对齐，并给名次前面留一点视觉基线补偿。 */
    align-items: start;
  }
  .bar-rank,
  .bar-val {
    align-self: start;
    padding-top: 1px;
  }
  /* 两列数值并排后列宽只有 62px，13.5px 的等宽字会溢出，缩到 11.5px */
  .bar-val {
    font-size: 11.5px;
  }
  .bar-val small {
    font-size: 9.5px;
    margin-left: 1px;
  }
  /* 窄屏下「占全库 x% · 上次启动 …」这类长文案会把同行游戏名挤成 0 宽（真机反馈：
     游戏名整条消失）。改成两行：游戏名独立一行，附加信息换行显示。 */
  .bar-label {
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    margin-bottom: 8px;
  }
  .bar-title {
    width: 100%;
    /* 两列数值占掉 ~124px 后，游戏名在 390px 上只剩 156px：单行省略会把中文名整段吃掉。
       开两行后「ELDEN RING 艾尔登法环」这类中英双名能完整显示（与销量榜同策略）。
       v1.29.0：两行只作用于名字本身（.bar-title-text），类型徽章作为兄弟节点留在右边，
       否则 line-clamp 会把徽章一起裁掉，等于标了没人看得见。 */
    align-items: flex-start;
  }
  .bar-title-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
    overflow: hidden;
    line-height: 1.35;
  }
  .bar-share {
    flex-shrink: 1;
    min-width: 0;
    font-size: 10.5px;
    letter-spacing: -0.1px;
    line-height: 1.5;
    white-space: normal;
  }
  .roulette-pick {
    grid-template-columns: 1fr;
  }
  .roulette-art {
    width: 100%;
  }
}

/* ---------------- 光标与选中策略（v1.5.4） ---------------- */
body {
  cursor: default;
}

a[href],
button,
summary,
[role='button'],
label[for] {
  cursor: pointer;
}

input,
textarea {
  cursor: text;
  caret-color: var(--sky);
}

select {
  cursor: pointer;
  caret-color: var(--sky);
}

.detail-desc,
.news-body,
.prose,
code,
pre,
[data-copyable] {
  cursor: text;
  user-select: text;
}

.section-head,
.section-head > .sub,
.section-index,
.meta-inline,
.meta-inline > span,
.profile-meta,
.profile-meta > span,
.stats,
.stat,
.stat-top,
.stat-sub,
.news-meta,
.roulette-meta,
.friend-status,
.quick-queries,
.quick-queries *,
.load-more,
.load-more > .sub,
footer,
footer * {
  cursor: default;
  user-select: none;
}

.game-card-title,
.game-card-meta,
.deal-badge {
  user-select: none;
}

/* ---------------- 移动端横向溢出收口（v1.5.5） ---------------- */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

.stats > *,
.grid > *,
.hero-grid > *,
.hero-ledger-rows > *,
.ledger-head > *,
.bar-row > *,
.ach-row > *,
.shots > *,
.insights-grid > *,
.tier-matrix > *,
.detail-main > *,
.detail-specs > *,
.capsule-strip > *,
.friends-grid > *,
.friends-cards-col > *,
.friend-hot-row > *,
.roulette-pick > *,
.meta-inline > *,
.profile-meta > *,
.section-head-left > *,
.game-card-meta > *,
.friend-game-chip > *,
.news-row > *,
.toolbar > * {
  min-width: 0;
}

.nav-links,
.meta-inline,
.profile-meta,
.friends-summary-strip,
.hero-actions,
.profile-actions {
  flex-wrap: wrap;
}

.game-card-title,
.game-card-meta,
.friend-game-name,
.bar-name,
.news-title {
  overflow-wrap: anywhere;
}

@media (max-width: 520px) {
  .game-card-meta {
    flex-wrap: wrap;
    white-space: normal;
    row-gap: 2px;
  }
  .game-card-meta .meta-was {
    display: none;
  }
}

/* ===== 别名众包（v1.5.8）：详情页的「补充中文名 / 俗称」 ===== */
.alias-suggest {
  padding: 16px 18px;
  margin-top: 14px;
}

.alias-suggest-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.alias-suggest-label {
  min-width: 0;
}

.alias-suggest-hint {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.alias-suggest-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.alias-suggest-input {
  width: 168px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.alias-suggest-input:focus {
  border-color: var(--sky);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--sky-dim);
}

.alias-suggest-input::placeholder {
  color: var(--muted);
}

.empty-tip {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
}

@media (max-width: 560px) {
  .alias-suggest-form {
    width: 100%;
  }
  .alias-suggest-input {
    flex: 1;
    width: auto;
    min-width: 0;
  }
}

/* ===== 目录卡片名称与元信息收口（v1.5.12） ===== */
.game-card-meta .meta-store {
  flex: 0 0 auto;
}

.game-card-meta .meta-rest {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== 成就页页签（v1.5.14） ===== */
.tabbar {
  display: flex;
  gap: 8px;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.tab-btn {
  padding: 7px 15px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  border: 1px solid transparent;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.tab-btn:hover {
  color: var(--ink);
  background: var(--surface-hover);
}

.tab-btn.active {
  color: var(--ink);
  font-weight: 600;
  background: var(--surface-raised);
  border-color: var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ===== 解锁时间轴（v1.5.17） ===== */
.tl-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tl-month {
  position: relative;
  padding-left: 18px;
}

.tl-month::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 14px;
  bottom: -16px;
  width: 1px;
  background: var(--line);
}

.tl-month:last-child::before {
  bottom: 0;
}

.tl-month-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 0 8px;
}

.tl-month-head::before {
  content: '';
  position: absolute;
  left: -17px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--sky);
  box-shadow: 0 0 6px var(--sky-dim);
}

.tl-month-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.tl-month-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.tl-month-bar {
  display: block;
  flex: 1;
  max-width: 200px;
  height: 3px;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
}

.tl-month-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--line-strong);
  transition: background-color 0.15s ease;
}

.tl-month:hover .tl-month-bar i {
  background: var(--sky);
}

.tl-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 148px 56px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color 0.13s ease, box-shadow 0.13s ease;
}

.tl-item:hover {
  background: var(--surface-hover);
  box-shadow: inset 2px 0 0 var(--sky);
}

.tl-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.tl-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tl-item:hover .tl-name {
  color: var(--sky-bright);
}

.tl-game {
  font-size: 11.5px;
  color: var(--muted);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tl-pct {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  text-align: right;
  color: var(--muted);
}

.tl-pct.is-lt1 {
  color: var(--red);
}

.tl-pct.is-p1 {
  color: var(--gold);
}

.tl-pct.is-p5 {
  color: var(--sky);
}

.tl-extra {
  display: none;
}

.tl-month.is-open .tl-extra {
  display: block;
}

.tl-more {
  margin: 4px 0 0 8px;
  padding: 2px 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 11.5px;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.13s ease;
}

.tl-more:hover {
  color: var(--sky);
}

.tl-chip-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  margin-left: 2px;
}

.seg-btn.active .tl-chip-num {
  color: var(--ink-2);
}

@media (max-width: 720px) {
  .tl-item {
    grid-template-columns: 42px minmax(0, 1fr) 50px;
    gap: 8px;
  }
  .tl-game {
    display: none;
  }
  .tl-month {
    padding-left: 14px;
  }
  .tl-month::before {
    left: 3px;
  }
  .tl-month-head::before {
    left: -14px;
  }
}

/* 从时间轴跳转过来时，高亮命中的那一行 2.4 秒 */
.ach-jump {
  background: var(--sky-dim);
  box-shadow: inset 2px 0 0 var(--sky);
  transition: background-color 0.3s ease;
}

/* ===== 404 独立页面样式（移除 server.js 内联 <style>） ===== */
body.not-found-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--ink);
}

.not-found-wrap {
  text-align: center;
  padding: 40px 24px;
}

.not-found-code {
  font-family: var(--font-display);
  font-size: 88px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--sky);
}

.not-found-title {
  margin: 18px 0 8px;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}

.not-found-desc {
  margin: 0 0 26px;
  color: var(--ink-2);
  font-size: 14px;
}

/* ---------------- 减少动态效果补全（review P1-28） ----------------
   既有 4 个 reduce 块分别在统计抽屉 / 价格浮层 / 骨架 / 侧栏附近，这里只补它们没覆盖的
   「位移与无限动画」。原则：停掉会动的（transform 位移 / 放大 / 旋转 / 流光），
   保留颜色、边框、阴影、透明度的微交互——不做全站 * { transition: none } 的粗暴覆盖。
   刻意保留：.nav-links a::after 的下划线 scaleX（悬停可见性提示，不是位移）、
   .brand/.sales-name/.tab-btn 等纯颜色/透明度过渡。 */
@media (prefers-reduced-motion: reduce) {
  /* 星空底板第二层：22s 呼吸漂移 + filter: blur(72px)，动起来整屏都在晃；静态色场保留 */
  .bg-glow::after {
    animation: none;
  }
  /* 无限旋转的加载指示器：停转；静态圆环仍在，不影响「正在加载」的可见性 */
  .nav-spinner,
  .lightbox-spinner {
    animation: none;
  }
  /* 骨架脉冲点（scale 0.88→1.12 呼吸）与 .skel-art 流光；
     .skel / .art.img-loading::before 等已在原有 reduce 块里禁用 */
  .skel-pulse-dot,
  .skel-art::before {
    animation: none;
  }
  /* 过渡里去掉 transform：悬停时颜色/阴影照旧渐变，但不再位移 */
  .btn {
    transition-property: background-color, border-color, box-shadow, color;
  }
  .game-card {
    transition-property: border-color, box-shadow, background-color;
  }
  .shot,
  .back,
  .friend-card,
  .stat-card.is-clickable {
    transition-property: border-color, background-color, box-shadow, color;
  }
  .art img,
  .shot img,
  .sales-cover img {
    transition-property: none;
  }
  .sales-price.has-tip::after {
    transition-property: opacity;
  }
  /* 悬停/按下时的位移与放大：直接归零（.page-rail/.rail-* 已在原有块处理） */
  .btn:hover,
  .btn:active,
  .game-card:hover,
  .game-card:focus-visible,
  .game-card:hover .art img,
  .shot:hover,
  .shot:hover img,
  .back:hover,
  .friend-card:hover,
  .stat-card.is-clickable:hover,
  .stat-card.is-clickable:active,
  .stat-card.is-clickable:hover .stat-caret,
  .sales-row:hover .sales-cover img,
  .sales-price.has-tip::after {
    transform: none;
  }
}

/* 手机端导航去掉毛玻璃。
   sticky + backdrop-filter 意味着滚动时每一帧都要重新采样它身后的内容；身后是发光原画
   这类大图层时，iOS 合成器会成为滚动卡顿甚至整页白屏的来源。实色 0.94 和不透明肉眼看
   不出差别。这条必须放在文件末尾——.nav 的基础规则在前面，同优先级下会被它覆盖回去。 */
@media (max-width: 680px) {
  .nav {
    background: rgba(6, 9, 15, 0.94);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
