/* ============================================================
   宝宝电竞 —— 白色液态玻璃风格（iOS 质感）
   目录：色板 / 基础 / 背景 / 通用件 / 顶部 / 启动页 / 大厅 /
         陪玩师信息 / 服务·流程·联系 / 悬浮窗口 / 过场 / 弹窗 / 响应式
   ============================================================ */

:root {
  color-scheme: light;
  --bg: #f2f2f7;
  --ink: #1c1c1e;
  --ink-2: rgba(60, 60, 67, 0.74);
  --ink-3: rgba(60, 60, 67, 0.46);
  --sep: rgba(60, 60, 67, 0.12);
  --glass: rgba(255, 255, 255, 0.56);          /* 带背景模糊的玻璃面 */
  --glass-strong: rgba(255, 255, 255, 0.84);   /* 弹窗等需要更实的面 */
  --tile: rgba(255, 255, 255, 0.62);           /* 玻璃面上的卡片（不再叠模糊） */
  --solid: #ffffff;                            /* 完全不透明的面：弹窗、顶部资料卡的下半 */
  --tile-hover: rgba(255, 255, 255, 0.9);
  --fill: rgba(120, 120, 128, 0.1);
  --fill-2: rgba(120, 120, 128, 0.18);
  --edge: rgba(255, 255, 255, 0.9);
  --hi: rgba(255, 255, 255, 0.75);             /* 玻璃上沿的高光 */
  --shadow-sm: 0 1px 2px rgba(30, 20, 50, 0.04), 0 4px 14px rgba(40, 25, 70, 0.05);
  --shadow: 0 1px 2px rgba(30, 20, 50, 0.04), 0 14px 44px rgba(40, 25, 70, 0.1);
  --shadow-lg: 0 2px 6px rgba(30, 20, 50, 0.06), 0 34px 90px rgba(40, 25, 70, 0.2);
  --tint: #a3246e;                             /* 品牌色：取自 logo 底色里的洋红 */
  --tint-soft: rgba(163, 36, 110, 0.1);
  --acc: #a3246e;                              /* 折线图读取这个变量 */
  --primary: linear-gradient(135deg, #3d1436, #1e0a1b);   /* 主按钮：logo 的深梅紫 */
  --on-primary: #fff;
  --seg-on: #fff;
  --ok: #34c759;
  --warn: #ff9f0a;
  --bad: #ff3b30;
  --veil: rgba(20, 16, 30, 0.22);
  --warp-bg: radial-gradient(circle, #ffffff, #ece9f6 72%);
  --blur: blur(30px) saturate(1.8);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Segoe UI Variable Display", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ws: 1;
  font-family: var(--font);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0b0f;
  --ink: #f5f5f7;
  --ink-2: rgba(235, 235, 245, 0.7);
  --ink-3: rgba(235, 235, 245, 0.4);
  --sep: rgba(235, 235, 245, 0.12);
  --glass: rgba(48, 48, 58, 0.5);
  --glass-strong: rgba(34, 34, 40, 0.88);
  --tile: rgba(255, 255, 255, 0.07);
  --solid: #0c0c0e;
  --tile-hover: rgba(255, 255, 255, 0.12);
  --fill: rgba(120, 120, 128, 0.2);
  --fill-2: rgba(120, 120, 128, 0.32);
  --edge: rgba(255, 255, 255, 0.14);
  --hi: rgba(255, 255, 255, 0.16);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
  --shadow: 0 14px 44px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 34px 90px rgba(0, 0, 0, 0.62);
  --tint: #ff7ac4;
  --tint-soft: rgba(255, 122, 196, 0.16);
  --acc: #ff7ac4;
  --primary: linear-gradient(135deg, #ffffff, #e4e4ea);
  --on-primary: #1c1c1e;
  --seg-on: rgba(255, 255, 255, 0.18);
  --ok: #30d158;
  --warn: #ffb340;
  --veil: rgba(0, 0, 0, 0.5);
  --warp-bg: radial-gradient(circle, #1c1c24, #060608 72%);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; background: var(--bg); }
body { overflow: hidden; color: var(--ink); min-width: 320px; font-size: 15px; line-height: 1.5; }
button, input { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, dl, dd, ol, figure, blockquote { margin: 0; padding: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.face { display: block; width: 100%; height: 100%; stroke: none; fill: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--tint) 55%, transparent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--tint) 24%, transparent); }
.eyebrow, .win-top, .win-tab, .cursor, .card-holo { display: none; }   /* 旧版的装饰件，新风格不再显示 */

/* ---------- 背景：很淡的彩色流体，给玻璃一点可折射的东西 ---------- */
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block;
  background: radial-gradient(60% 50% at 18% 12%, rgba(196, 206, 255, 0.55), transparent 70%),
              radial-gradient(55% 50% at 86% 84%, rgba(255, 204, 228, 0.55), transparent 70%), var(--bg); }
#app { position: fixed; inset: 0; z-index: 4; transition: transform 0.6s var(--ease), opacity 0.4s; }
body.hud-overlay #app { transform: scale(0.96); opacity: 0.5; }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 50; pointer-events: none; }

/* ---------- 液态玻璃材质 ---------- */
.sysbar, .rail, .win, .hw, .ticker, .user-chip, .toast {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow), inset 0 1px 0 var(--hi);
}

/* ---------- 通用件 ---------- */
.logo { display: inline-block; flex: none; width: 46px; aspect-ratio: 1; border-radius: 26%; font-style: normal;
  background: #1c0a19 url("./assets/logo.png") 50% 48.4% / 166% no-repeat; box-shadow: 0 6px 18px rgba(60, 15, 50, 0.24); }
.logo-sm { width: 32px; box-shadow: 0 2px 8px rgba(60, 15, 50, 0.2); }
.logo-hero { display: block; width: clamp(72px, 6.6vw, 104px); margin: 0 auto 28px; box-shadow: 0 20px 50px rgba(60, 15, 50, 0.3), 0 2px 6px rgba(60, 15, 50, 0.2); }

.btn-primary { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px;
  background: var(--primary); color: var(--on-primary); font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden;
  box-shadow: 0 8px 22px rgba(40, 12, 36, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.22); transition: transform 0.3s var(--ease), box-shadow 0.3s, filter 0.3s; }
.btn-primary svg { width: 16px; height: 16px; stroke-width: 2.4; transition: transform 0.3s var(--ease); }
.btn-primary:hover { transform: translateY(-1px) scale(1.02); filter: brightness(1.14); box-shadow: 0 12px 30px rgba(40, 12, 36, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-primary:active { transform: scale(0.97); }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 999px; background: var(--fill); color: var(--ink); font-size: 15px; font-weight: 500; white-space: nowrap; transition: background 0.2s, transform 0.3s var(--ease); }
.btn-ghost:hover { background: var(--fill-2); }
.btn-ghost:active { transform: scale(0.97); }

.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.94) translateY(12px); } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--tile); border: 1px solid var(--edge); color: var(--ink); font-size: 14px; white-space: nowrap; box-shadow: var(--shadow-sm); transition: background 0.2s, color 0.2s, transform 0.3s var(--ease); }
.chip small { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.chip:hover { background: var(--tile-hover); }
.chip:active { transform: scale(0.96); }
.chip.is-on { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.chip.is-on small { color: inherit; opacity: 0.7; }
.chip:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; }

.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--fill); }
.seg button { padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: color 0.2s, background 0.25s, box-shadow 0.25s; }
.seg button:hover { color: var(--ink); }
.seg button.is-on { color: var(--ink); background: var(--seg-on); box-shadow: 0 1px 4px rgba(30, 20, 50, 0.14); }

.st { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--fill); font-size: 12px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.st.on { color: var(--ink); }
.st.on::before { background: var(--ok); }

/* 圆形小头像 */
.bub { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; padding: 0; overflow: visible;
  background: var(--fill-2); box-shadow: 0 0 0 2px var(--glass-strong), 0 2px 6px rgba(30, 20, 50, 0.14); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.bub img, .bub svg { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.bub.on::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px var(--glass-strong); }
button.bub { transition: transform 0.3s var(--ease); }
button.bub:hover { transform: translateY(-3px) scale(1.12); z-index: 1; }
.bubs { display: inline-flex; align-items: center; }
.bubs .bub + .bub { margin-left: -8px; }

/* 角标：柔和的浅色胶囊 */
.bdg { --bc: #b25e00; display: inline-block; font-style: normal; font-size: 11px; font-weight: 600; line-height: 1.6; padding: 1px 8px; margin-left: 8px; border-radius: 999px; white-space: nowrap; vertical-align: middle;
  color: var(--bc); background: color-mix(in srgb, var(--bc) 14%, transparent); -webkit-text-fill-color: currentColor; letter-spacing: 0; }
.bdg-top { --bc: #d70f55; }
.bdg-coach { --bc: #0a66d8; }
.bdg-new { --bc: #14883b; }
.bdg-night { --bc: #5046d0; }
[data-theme="dark"] .bdg { color: color-mix(in srgb, var(--bc) 55%, white); background: color-mix(in srgb, var(--bc) 30%, transparent); }

.quote { position: relative; font-size: 14.5px; line-height: 1.7; color: var(--ink); padding: 10px 14px; border-radius: 6px 16px 16px 16px; background: var(--fill); }
.traits { display: flex; flex-wrap: wrap; gap: 6px; }
.traits i { font-style: normal; font-size: 12.5px; color: var(--ink-2); padding: 2px 10px; border-radius: 999px; background: var(--fill); }
.tags, .card-games { display: flex; flex-wrap: wrap; gap: 6px; }
.tags i, .card-games i { font-style: normal; font-size: 12px; color: var(--tint); padding: 2px 9px; border-radius: 999px; background: var(--tint-soft); }
/* 游戏标签里的小图标（官方 logo 图片或原创线条图标） */
.gi { flex: none; width: 14px; height: 14px; stroke-width: 2; }
img.gi { border-radius: 4px; object-fit: cover; }
.tags i, .card-games i, .pc-games i { display: inline-flex; align-items: center; gap: 4px; }
.chip .gi { width: 15px; height: 15px; }
.price { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price small { font-size: 12px; font-weight: 400; color: var(--ink-3); margin-left: 2px; letter-spacing: 0; }

/* ---------- 顶部：品牌 / 分段导航 / 系统按钮 ---------- */
.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; letter-spacing: 0.02em; }
.sysbar { position: fixed; top: 20px; right: 28px; z-index: 20; display: flex; gap: 2px; padding: 4px; border-radius: 999px; }
.sys-btn { position: relative; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); transition: background 0.2s, color 0.2s, transform 0.3s var(--ease); }
.sys-btn:hover { background: var(--fill); color: var(--ink); }
.sys-btn:active { transform: scale(0.92); }
.sys-btn svg { width: 18px; height: 18px; grid-area: 1 / 1; transition: opacity 0.3s, transform 0.4s var(--ease); }
.ic-moon, .ic-off { opacity: 0; transform: rotate(-90deg) scale(0.5); }
[data-theme="dark"] .ic-moon { opacity: 1; transform: none; }
[data-theme="dark"] .ic-sun { opacity: 0; transform: rotate(90deg) scale(0.5); }
#btn-sound[aria-pressed="false"] .ic-off { opacity: 1; transform: none; }
#btn-sound[aria-pressed="false"] .ic-on { opacity: 0; }
.sys-hud[aria-pressed="true"] { color: var(--tint); background: var(--tint-soft); }
.sys-fx span { font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.sys-fx b { position: absolute; right: 5px; top: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
[data-fx="low"] .sys-fx b { background: var(--ink-3); }

/* ---------- 场景切换 ---------- */
.scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.5s, visibility 0s 0.5s; }
.scene.is-active { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.5s; }
.scene.is-active .rise { animation: rise 0.8s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 80ms + 80ms); }
@keyframes rise { from { opacity: 0; translate: 0 18px; filter: blur(6px); } }

/* ============================================================
   启动页
   ============================================================ */
.entry { display: grid; place-items: center; overflow: hidden; }
.entry > .brand { position: absolute; top: 20px; left: 28px; height: 44px; }
.entry-body { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 24px; }
.entry-title { font-size: clamp(46px, 6.4vw, 104px); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; white-space: nowrap; }
.entry-title em { font-style: normal; background: linear-gradient(100deg, #a3246e 10%, #d2408f 50%, #7a4be0 95%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
[data-theme="dark"] .entry-title em { background-image: linear-gradient(100deg, #ff8fd0 10%, #ff6ab8 50%, #a98bff 95%); }
.entry-desc { margin-top: 18px; font-size: clamp(16px, 1.3vw, 20px); color: var(--ink-2); }
.start-btn { margin-top: 40px; display: inline-flex; align-items: center; gap: 14px; height: 62px; padding: 0 12px 0 34px; border-radius: 999px; background: var(--primary); color: var(--on-primary);
  font-size: 19px; font-weight: 600; letter-spacing: 0.04em; box-shadow: 0 16px 40px rgba(40, 12, 36, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.24); transition: transform 0.35s var(--ease), box-shadow 0.35s, filter 0.3s; }
.start-btn:hover { transform: translateY(-2px) scale(1.03); filter: brightness(1.14); box-shadow: 0 22px 54px rgba(40, 12, 36, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.24); }
.start-btn:active { transform: scale(0.97); }
.start-arrow { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.16); transition: transform 0.35s var(--ease); }
[data-theme="dark"] .start-arrow { background: rgba(0, 0, 0, 0.08); }
.start-arrow svg { width: 17px; height: 17px; stroke-width: 2.4; }
.start-btn:hover .start-arrow { transform: translateX(4px); }
.entry-online { display: flex; align-items: center; gap: 12px; margin-top: 26px; min-height: 34px; font-size: 14px; color: var(--ink-2); }
.entry-online b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.entry-foot { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-size: 12px; color: var(--ink-3); }

/* ============================================================
   大厅
   ============================================================ */
.home { display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-rows: 44px minmax(0, 1fr) auto auto;
  grid-template-areas: "bar bar" "main side" "tick tick" "foot foot"; gap: 16px 20px; padding: 20px 28px 12px; }
.home-bar { grid-area: bar; display: flex; align-items: center; justify-content: space-between; margin-right: 190px; }
.user-chip { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500; max-width: 180px; cursor: default; }
.user-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 导航：分段控件 */
.rail { grid-area: bar; justify-self: center; align-self: center; z-index: 2; display: flex; gap: 2px; padding: 4px; border-radius: 999px; }
.node { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: color 0.2s, background 0.3s, box-shadow 0.3s, transform 0.3s var(--ease); }
.node svg { width: 17px; height: 17px; }
.node:hover { color: var(--ink); }
.node:active { transform: scale(0.96); }
.node.is-on { color: var(--ink); background: var(--seg-on); box-shadow: 0 1px 6px rgba(30, 20, 50, 0.14); }

.win { position: relative; border-radius: 32px; padding: 24px; }
.content-win { grid-area: main; display: flex; flex-direction: column; min-height: 0; padding: 8px 8px 8px 32px; }
.view-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 24px 24px 24px 0; scrollbar-width: thin; scrollbar-color: var(--fill-2) transparent; }
.view.is-on { animation: viewin 0.5s var(--ease); }
@keyframes viewin { from { opacity: 0; transform: translateY(14px); } }
.view-head { margin-bottom: 22px; }
.view-head h1 { font-size: 32px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.view-head p { margin-top: 4px; font-size: 15px; color: var(--ink-2); max-width: 60ch; }
.view-head p b { color: var(--ink); font-weight: 600; }
.view-head-tools { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.view-head-tools > div:first-child { flex: 1 1 220px; min-width: 0; }
.sec-head.view-head-tools > .head-main { flex: 1 1 220px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }   /* 滑条固定在标题下面，任何宽度都不会跑到标题右边 */
.view-head-tools > .tool-right { margin-left: auto; }
/* 带滑块的两段切换：选中的白色滑块会滑过去 */
.seg-slide { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 2px; }
.seg-slide::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--seg-on); box-shadow: 0 1px 5px rgba(30, 20, 50, 0.16);
  transition: transform 0.45s var(--ease); }
.seg-slide[data-on="1"]::before { transform: translateX(100%); }
.seg-slide button { position: relative; z-index: 1; min-width: 78px; padding: 7px 18px; font-size: 14.5px; font-weight: 600; text-align: center; }
.seg-slide button[aria-selected="true"] { color: var(--ink); }
/* 趣味单的空格子 */
.ph-card { border-style: dashed; border-color: var(--fill-2); box-shadow: none; cursor: default; }
.ph-card:hover { transform: none; background: var(--tile); box-shadow: none; }
.ph-card .ava { display: grid; place-items: center; background: var(--fill); }
.ph-card .ava em { font-style: normal; font-size: 13px; color: var(--ink-3); }
.ph-line { display: block; height: 12px; margin: 14px 6px 0; border-radius: 6px; background: var(--fill); }
.ph-line.s { width: 58%; margin-top: 10px; }
.ph-line.xs { width: 34%; margin: 0; height: 16px; }
.ph-card .card-foot { margin-top: 18px; }
.fun-card { cursor: default; }
.tool-right { display: flex; flex-wrap: wrap; gap: 8px; }
.empty { color: var(--ink-2); padding: 48px 0; text-align: center; }

/* ---------- 顶部滚动资料卡 ----------
   上半：品牌横幅（宝宝电竞 logo）；圆头像压在分界线上；下半：白底（深色主题为黑底），写游戏与特点 */
.deck-sec { margin: -4px 0 8px; }
.deck-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 4px 16px; margin-bottom: 10px; }
.deck-head h1 { font-size: 32px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.deck-head p { font-size: 12.5px; color: var(--ink-3); padding-bottom: 5px; }
.hint-touch { display: none; }
@media (hover: none) { .hint-mouse { display: none; } .hint-touch { display: inline; } }
.deck { --pw: 440px; --ph: 300px; position: relative; height: calc(var(--ph) + 58px); margin: 0 -24px 0 -8px; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
  overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.deck.is-drag, .deck.is-drag .pc { cursor: grabbing; }
.deck-track { position: absolute; left: 0; top: 26px; }
.pc { position: absolute; left: 0; top: 0; width: var(--pw); height: var(--ph); padding: 0; border-radius: 28px; transform-origin: 50% 50%; will-change: transform; }
.pc.is-up { z-index: 999 !important; }
.pc-in { position: absolute; inset: 0; display: flex; flex-direction: column; border-radius: inherit; overflow: hidden; background: var(--solid);
  box-shadow: 0 0 0 1px var(--sep), 0 16px 40px rgba(30, 18, 50, 0.2); transition: transform 0.5s var(--ease), box-shadow 0.4s; }
.pc-in::after { content: ""; position: absolute; inset: 0; background: var(--bg); opacity: var(--dim, 0); pointer-events: none; }   /* 被压在下面的牌逐渐变淡 */
/* 抽起：从牌堆里提起来一点、略微歪一下 */
.pc.is-up .pc-in { transform: translateY(-18px) rotate(-1.4deg); box-shadow: 0 0 0 1px var(--sep), 0 32px 70px rgba(30, 18, 50, 0.34); }
.pc.is-up .pc-in::after { opacity: 0; }
.pc-banner { position: relative; flex: none; height: 39%; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 16px 18px; color: #fff; overflow: hidden;
  background: radial-gradient(130% 150% at 0% 100%, #8f2476 0%, #4d1743 36%, #1b0b19 76%); }
.pc-banner::after { content: ""; position: absolute; right: -34px; top: -56px; width: 250px; aspect-ratio: 1; border-radius: 26%; opacity: 0.2; mix-blend-mode: screen; pointer-events: none;
  background: url("./assets/logo.png") 50% 48.4% / 166% no-repeat; -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent); }
.pc-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; text-align: left; }
.pc-brand .logo { width: 40px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 6px 16px rgba(0, 0, 0, 0.3); }
.pc-brand b { display: block; font-size: 17px; font-weight: 700; letter-spacing: 0.06em; line-height: 1.25; }
.pc-brand small { display: block; font-size: 10px; font-weight: 500; letter-spacing: 0.2em; opacity: 0.66; }
.pc-banner .st { position: relative; z-index: 1; background: rgba(255, 255, 255, 0.16); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pc-banner .st:not(.on) { color: rgba(255, 255, 255, 0.78); }
.pc-banner .st:not(.on)::before { background: rgba(255, 255, 255, 0.55); }
.pc-ava { position: absolute; z-index: 1; left: 50%; top: 39%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; overflow: hidden; background: var(--fill-2);
  box-shadow: 0 0 0 5px var(--solid), 0 10px 24px rgba(0, 0, 0, 0.22); }
.pc-ava img, .pc-ava svg { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.pc-body { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 56px 18px 14px; text-align: center; }
.pc-body strong { font-size: 20px; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.pc-games { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pc-games i { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--tint); padding: 2px 10px; border-radius: 9px; border: 1.5px solid color-mix(in srgb, var(--tint) 70%, transparent); }
.pc-traits { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pc-foot { margin-top: auto; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; font-variant-numeric: tabular-nums; }
.pc-foot b { font-size: 16px; font-weight: 700; color: var(--ink); }
.pc.is-off .pc-ava img, .pc.is-off .pc-ava svg { filter: saturate(0.5); }

/* ---------- 服务（并入陪玩页） ---------- */
.sec-head { margin: 30px 0 14px; }
.sec-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.sec-head p { margin-top: 2px; font-size: 14px; color: var(--ink-2); }
.svcs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.svc { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 16px 18px; border-radius: 24px; background: var(--tile); border: 1px solid var(--edge); box-shadow: var(--shadow-sm);
  transition: background 0.25s, box-shadow 0.3s, transform 0.3s var(--ease); }
.svc:hover { background: var(--tile-hover); box-shadow: var(--shadow); transform: translateY(-3px); }
.svc:active { transform: scale(0.98); }
.svc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.svc strong { font-size: 17px; font-weight: 600; white-space: nowrap; }
.svc b { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.svc b small { font-size: 12px; font-weight: 400; color: var(--ink-3); letter-spacing: 0; margin-left: 1px; }
.svc p { flex: 1; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.svc .row-team { margin-top: 4px; }
.discounts { margin-top: 12px; }

/* ---------- 今日主推 ---------- */
.spot { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 22px; padding: 14px; margin-bottom: 22px; border-radius: 28px; background: var(--tile); border: 1px solid var(--edge); box-shadow: var(--shadow-sm); }
.ava { position: relative; display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 1; background: var(--fill); }
.ava img, .ava svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.spot .ava { border-radius: 20px; align-self: start; }
.spot-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 4px 6px 4px 0; }
.spot-kicker { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.spot-kicker b { font-weight: 600; color: var(--tint); background: var(--tint-soft); padding: 2px 10px; border-radius: 999px; }
.spot h2 { font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.spot-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.spot-facts { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.spot-facts dt { font-size: 12px; color: var(--ink-3); }
.spot-facts dd { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.spot-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 2px; }
.spot-actions .btn-primary, .spot-actions .btn-ghost { min-height: 40px; padding: 0 18px; font-size: 14px; }
.spot.is-swap .ava, .spot.is-swap .spot-body { animation: viewin 0.45s var(--ease); }

/* ---------- 卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 16px; margin-top: 18px; }
.card { position: relative; display: flex; flex-direction: column; text-align: left; padding: 10px 10px 14px; border-radius: 26px; background: var(--tile); border: 1px solid var(--edge); box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, background 0.25s; animation: cardin 0.55s var(--ease) backwards; animation-delay: calc(var(--n, 0) * 45ms); }
@keyframes cardin { from { opacity: 0; translate: 0 16px; } }
.card:hover { transform: translateY(-5px); background: var(--tile-hover); box-shadow: var(--shadow); }
.card:active { transform: translateY(-2px) scale(0.99); }
.card .ava img { transition: transform 0.6s var(--ease); }
.card:hover .ava img { transform: scale(1.05); }
.card-top { position: absolute; z-index: 2; top: 18px; left: 18px; right: 18px; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.card-top .st, .card-top .bdg { background: rgba(255, 255, 255, 0.88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 1px 4px rgba(30, 20, 50, 0.12); margin: 0; }
.card-top .st { color: #1c1c1e; }
.card-top .st:not(.on) { color: rgba(60, 60, 67, 0.74); }
[data-theme="dark"] .card-top .bdg { color: var(--bc); }
.card-no { display: none; }
.card-name { margin: 12px 6px 0; font-size: 17px; font-weight: 600; line-height: 1.3; }
.card-tag { margin: 2px 6px 0; font-size: 13px; color: var(--ink-2); }
.card-quote { margin: 8px 6px 0; font-size: 13px; line-height: 1.55; color: var(--ink-3); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 40px; }
.card-games { margin: 10px 6px 12px; }
.card-foot { margin: auto 6px 0; padding-top: 12px; border-top: 1px solid var(--sep); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card-foot em { font-style: normal; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.card.is-off .ava img, .card.is-off .ava svg { filter: saturate(0.5) opacity(0.82); }

/* ---------- 列表 / 排行 ---------- */
.rows { display: grid; gap: 10px; }
.roster-list, .roster-rank { margin-top: 18px; }
.lrow { display: flex; align-items: stretch; gap: 8px; animation: cardin 0.5s var(--ease) backwards; animation-delay: calc(var(--n, 0) * 40ms); }
.lrow-main { flex: 1; min-width: 0; display: grid; grid-template-columns: auto minmax(130px, 1.4fr) minmax(0, 1.5fr) auto auto; align-items: center; gap: 16px; padding: 12px 18px 12px 12px; text-align: left;
  border-radius: 20px; background: var(--tile); border: 1px solid var(--edge); box-shadow: var(--shadow-sm); transition: background 0.25s, box-shadow 0.3s, transform 0.3s var(--ease); }
.lrow-main:hover, .rrow:hover { background: var(--tile-hover); box-shadow: var(--shadow); transform: translateY(-2px); }
.lrow .bub, .rrow .bub { width: 46px; height: 46px; }
.lrow-name, .rrow-name, .lrow-col { min-width: 0; }
.lrow-name strong, .rrow-name strong { display: block; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow small, .rrow small { display: block; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow-col b { display: block; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow-stat b { font-variant-numeric: tabular-nums; }
.lrow-st b.ok { color: var(--ok); }
.lrow-buy { flex: none; width: 92px; border-radius: 20px; background: var(--primary); color: var(--on-primary); box-shadow: 0 6px 18px rgba(40, 12, 36, 0.2); transition: transform 0.3s var(--ease), filter 0.3s; }
.lrow-buy:hover { transform: translateY(-2px); filter: brightness(1.14); }
.lrow-buy b { display: block; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lrow-buy small { color: inherit; opacity: 0.75; text-align: center; }
.lrow.is-off .lrow-main { opacity: 0.7; }

.rank-head { font-size: 13.5px; color: var(--ink-2); margin-bottom: 2px; }
.rank-head b { color: var(--ink); font-weight: 600; }
.rrow { --w: 50%; display: grid; grid-template-columns: 34px auto minmax(120px, 1fr) minmax(60px, 1.2fr) 78px; align-items: center; gap: 14px; width: 100%; padding: 10px 18px 10px 12px; text-align: left;
  border-radius: 20px; background: var(--tile); border: 1px solid var(--edge); box-shadow: var(--shadow-sm); transition: background 0.25s, box-shadow 0.3s, transform 0.3s var(--ease); animation: cardin 0.5s var(--ease) backwards; animation-delay: calc(var(--n, 0) * 40ms); }
.rrow-no { font-size: 20px; font-weight: 700; color: var(--ink-3); text-align: center; font-variant-numeric: tabular-nums; }
.rrow.top-1 .rrow-no { color: #d99a00; }
.rrow.top-2 .rrow-no { color: #8e8e93; }
.rrow.top-3 .rrow-no { color: #b9743f; }
.rrow-bar { height: 8px; border-radius: 4px; background: var(--fill); overflow: hidden; }
.rrow-bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--tint) 55%, transparent), var(--tint)); animation: barin 0.9s var(--ease) backwards; animation-delay: calc(var(--n, 0) * 40ms + 150ms); }
@keyframes barin { from { width: 0; } }
.rrow-val { text-align: right; white-space: nowrap; }
.rrow-val b { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rrow-val small { display: inline; margin-left: 3px; color: var(--ink-3); }

/* ---------- 服务 / 流程 / 联系 ---------- */
.row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 18px; width: 100%; text-align: left; padding: 18px 22px; border-radius: 24px;
  background: var(--tile); border: 1px solid var(--edge); box-shadow: var(--shadow-sm); transition: background 0.25s, box-shadow 0.3s, transform 0.3s var(--ease); }
.row:hover { background: var(--tile-hover); box-shadow: var(--shadow); transform: translateY(-2px); }
.row-no { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--tint-soft); color: var(--tint); font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.row small { font-size: 12px; color: var(--ink-3); }
.row strong { display: block; font-size: 18px; font-weight: 600; }
.row p { font-size: 14px; color: var(--ink-2); }
.row-team { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.row-team .bub { width: 28px; height: 28px; }
.row-team em { font-style: normal; font-size: 12.5px; color: var(--ink-3); }
.row-price { text-align: right; white-space: nowrap; }
.row-price b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.row-price span { font-size: 12px; color: var(--ink-3); }
.discounts { display: flex; flex-wrap: wrap; gap: 8px; }
.discounts span { font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: 999px; color: #b25e00; background: rgba(255, 159, 10, 0.14); }
[data-theme="dark"] .discounts span { color: #ffc56b; }

.flow { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.flow li { padding: 20px 18px; border-radius: 24px; background: var(--tile); border: 1px solid var(--edge); box-shadow: var(--shadow-sm); }
.flow b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--tint-soft); color: var(--tint); font-size: 15px; font-weight: 700; }
.flow strong { display: block; font-size: 17px; font-weight: 600; margin: 14px 0 4px; }
.flow p { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.rules { margin-top: 16px; padding: 4px 22px; border-radius: 24px; background: var(--tile); border: 1px solid var(--edge); box-shadow: var(--shadow-sm); }
.rules p { display: flex; gap: 14px; font-size: 14.5px; color: var(--ink); padding: 14px 0; border-top: 1px solid var(--sep); }
.rules p:first-child { border-top: 0; }
.rules b { flex: none; font-size: 12px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; padding-top: 2px; }

.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.contact { position: relative; text-align: left; padding: 20px 22px; border-radius: 24px; background: var(--tile); border: 1px solid var(--edge); box-shadow: var(--shadow-sm); transition: background 0.25s, box-shadow 0.3s, transform 0.3s var(--ease); }
.contact:hover { background: var(--tile-hover); box-shadow: var(--shadow); transform: translateY(-2px); }
.contact small { font-size: 13px; color: var(--ink-2); }
.contact strong { display: block; font-size: 20px; font-weight: 600; margin: 4px 0 2px; word-break: break-all; }
.contact span { font-size: 13px; color: var(--ink-3); }
.contact em { position: absolute; right: 18px; top: 18px; font-style: normal; font-size: 12px; font-weight: 600; color: var(--tint); background: var(--tint-soft); padding: 2px 10px; border-radius: 999px; }

/* ---------- 侧栏（收起悬浮窗口时 / 手机上出现） ---------- */
.side { grid-area: side; display: flex; flex-direction: column; gap: 16px; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.side .win { padding: 20px; border-radius: 28px; }
.player-win { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.player-win strong { font-size: 17px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-win small { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.shop-win { text-align: center; }
.shop-win .logo { width: 64px; margin-bottom: 10px; }
.shop-win > strong { display: block; font-size: 19px; font-weight: 700; }
.shop-sub { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 14px; }
.shop-win dl { text-align: left; }
.shop-win dl div { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--sep); font-size: 14px; }
.shop-win dt { color: var(--ink-2); }
.shop-win dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.btn-quick { width: 100%; margin-top: 14px; }

.ticker { grid-area: tick; display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px 0 6px; border-radius: 999px; font-size: 13px; overflow: hidden; box-shadow: var(--shadow-sm), inset 0 1px 0 var(--hi); }
.ticker > b { flex: none; font-size: 12px; font-weight: 600; color: var(--tint); background: var(--tint-soft); padding: 3px 10px; border-radius: 999px; }
.ticker-track { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.ticker-run { display: inline-flex; white-space: nowrap; animation: ticker 60s linear infinite; color: var(--ink-2); }
.ticker-run span { padding-right: 48px; }
.ticker-run span::before { content: "•"; color: var(--ink-3); margin-right: 12px; }
.ticker:hover .ticker-run { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.home-foot { grid-area: foot; text-align: center; font-size: 12px; color: var(--ink-3); }

/* ============================================================
   悬浮窗口：像桌面小组件一样常驻在两侧，轻微立体倾斜 + 漂浮，可拖动
   ============================================================ */
.hud { --hx: 0; --hy: 0; position: fixed; inset: 0; z-index: 14; pointer-events: none; perspective: 1400px; visibility: hidden; opacity: 0; transition: opacity 0.4s, visibility 0s 0.4s; }
body.hud-on .hud { visibility: visible; opacity: 1; transition: opacity 0.4s; }
.hud-veil { display: none; position: fixed; inset: 0; width: 100%; background: var(--veil); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); cursor: default; pointer-events: auto; }
body.hud-overlay .hud-veil { display: block; animation: fade 0.3s; }
.hud-core { display: none; }

.hw { --dx: 0px; --dy: 0px; --ry: 0deg; --pd: 14; position: absolute; width: 268px; padding: 14px 17px; border-radius: 26px; pointer-events: auto; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; opacity: 0;
  transform: translate3d(calc(var(--dx) + var(--hx) * var(--pd) * -1px), calc(var(--dy) + var(--hy) * var(--pd) * -0.7px), 0)
             rotateY(calc(var(--ry) + var(--hx) * 5deg)) rotateX(calc(var(--hy) * -4deg)) scale(var(--ws));
  transition: box-shadow 0.3s; }
.hw[data-side="l"] { --ry: 8deg; left: 28px; transform-origin: 0 50%; }
.hw[data-side="r"] { --ry: -8deg; right: 28px; transform-origin: 100% 50%; }
body.hud-on .hw { opacity: 1; animation: hw-in 0.8s var(--ease) calc(var(--n) * 90ms + 150ms) backwards, hw-float calc(7s + var(--n) * 0.8s) ease-in-out calc(var(--n) * -1.3s) infinite; }
@keyframes hw-in { from { opacity: 0; scale: 0.86; filter: blur(10px); } }
@keyframes hw-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.hw::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(135deg, var(--hi), transparent 42%); opacity: 0.6; }
.hw > * { position: relative; }
.hw:hover { box-shadow: var(--shadow-lg), inset 0 1px 0 var(--hi); }
.hw.is-drag { cursor: grabbing; z-index: 3; animation-play-state: paused, paused; }
.hw-perf { top: 11.5%; }
.hw-session { top: 42%; --pd: 20; }
.hw-rings { bottom: 5%; --pd: 10; }
.hw-net { top: 11.5%; --pd: 18; }
.hw-notice { top: 33.5%; --pd: 10; }
.notices-view { height: 196px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent, #000 10%, #000 88%, transparent); mask-image: linear-gradient(180deg, transparent, #000 10%, #000 88%, transparent); }
.notices { list-style: none; margin: 0; padding: 0; animation: notice-roll 36s linear infinite; }
.hw-notice:hover .notices { animation-play-state: paused; }
@keyframes notice-roll { to { transform: translateY(-50%); } }
.notices li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--sep); font-size: 13px; line-height: 1.5; color: var(--ink); }
.notices li b { flex: none; width: 20px; height: 20px; border-radius: 7px; display: grid; place-items: center; background: var(--tint-soft); color: var(--tint); font-size: 11.5px; font-weight: 700; margin-top: 1px; }
.hw-lobby { bottom: 4.5%; --pd: 18; }

.kicker { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.kicker i { font-style: normal; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.kicker .dot { color: var(--ok); }
.kicker .dot::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 5px; vertical-align: 1px; }
.kicker .is-bad { color: var(--bad); }
.metrics { display: flex; gap: 22px; }
.metrics small { display: block; font-size: 12px; color: var(--ink-3); }
.metrics strong { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.spark { display: block; width: 100%; height: 52px; margin: 6px 0 8px; }
.footline { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); }
.footline b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.hw dl div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-top: 1px solid var(--sep); font-size: 13px; }
.hw dl div:first-child { border-top: 0; padding-top: 0; }
.hw dt { color: var(--ink-2); white-space: nowrap; }
.hw dd { font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 设备小组件：两列的"标签在上、数值在下"格子 */
.hw dl.cells { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 14px; }
.hw dl.cells div { display: block; padding: 0; border: 0; min-width: 0; }
.hw dl.cells dt { font-size: 12px; color: var(--ink-3); }
.hw dl.cells dd { text-align: left; font-size: 13.5px; font-weight: 600; }
.hw dl.cells .span { grid-column: 1 / -1; }
.session-clock { margin-bottom: 10px; }
.session-clock strong { display: block; font-size: 36px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.session-clock span { font-size: 12.5px; color: var(--ink-3); }
.rings { display: flex; justify-content: space-between; padding: 2px 4px 0; }
.ring { --p: 0; --rc: var(--tint); text-align: center; }
.ring:nth-child(2) { --rc: var(--warn); }
.ring:nth-child(3) { --rc: var(--ok); }
.ring div { position: relative; width: 62px; aspect-ratio: 1; display: grid; place-items: center; }
.ring div::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--rc) calc(var(--p) * 1%), var(--fill-2) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px)); mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px)); }
.ring span { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ring figcaption { margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.ring.is-na { --rc: var(--ink-3); }
.hw-note { margin-top: 10px; font-size: 11.5px; color: var(--ink-3); text-align: center; }
.net-main span { display: block; font-size: 12px; color: var(--ink-3); }
.net-main strong { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.net-row { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--sep); }
.net-row small { display: block; font-size: 12px; color: var(--ink-3); }
.net-row b { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hw dl .hw-team { justify-content: flex-start; padding: 6px 0; }
.hw-team .bub { width: 30px; height: 30px; }
.hw-quick { display: none; width: 100%; min-height: 38px; margin-top: 8px; font-size: 14px; }
body[data-scene="home"] .hw-quick { display: inline-flex; }

/* ============================================================
   过场
   ============================================================ */
.warp { position: fixed; inset: 0; z-index: 30; opacity: 0; visibility: hidden; pointer-events: none; background: var(--warp-bg); transition: opacity 0.35s, visibility 0s 0.35s; }
.warp.is-on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.35s; }
#warp-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.warp-text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: var(--ink); }
.warp-logo { justify-self: center; width: 84px; margin-bottom: 26px; opacity: 0; }
.warp-text small { font-size: 14px; font-weight: 500; letter-spacing: 0.3em; margin-right: -0.3em; color: var(--ink-2); opacity: 0; }
.warp-text strong { font-size: clamp(34px, 6vw, 84px); font-weight: 700; letter-spacing: 0.04em; opacity: 0; }
.warp.is-on .warp-logo, .warp.is-on .warp-text small { animation: warpsub var(--warp-ms, 2400ms) linear both; }
.warp.is-on .warp-text strong { animation: warpmain var(--warp-ms, 2400ms) var(--ease) both; }
@keyframes warpsub { 8% { opacity: 1; } 52% { opacity: 1; } 60%, 100% { opacity: 0; } }
@keyframes warpmain { 0%, 56% { opacity: 0; transform: scale(0.8); filter: blur(14px); } 72% { opacity: 1; transform: scale(1); filter: none; } 90% { opacity: 1; transform: scale(1.04); } 100% { opacity: 0; transform: scale(2.6); filter: blur(10px); } }
.warp-flash { position: absolute; inset: 0; background: var(--bg); opacity: 0; }
.warp.is-on .warp-flash { animation: warpflash var(--warp-ms, 2400ms) ease-in both; }
@keyframes warpflash { 0%, 84% { opacity: 0; } 100% { opacity: 1; } }

/* ============================================================
   弹窗
   ============================================================ */
.overlay { position: fixed; inset: 0; z-index: 25; display: grid; place-items: center; padding: 24px; animation: fade 0.3s; }
.overlay-bg { position: absolute; inset: 0; width: 100%; background: var(--veil); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); cursor: default; }
/* position + z-index 必须有：否则弹窗会被带模糊的遮罩盖在下面，出现"先清晰、动画一结束就变成半透明发糊"的现象 */
.modal { position: relative; z-index: 1; width: min(900px, 100%); max-height: calc(100dvh - 48px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--fill-2) transparent; padding: 28px; border-radius: 34px;
  background: var(--solid); box-shadow: var(--shadow-lg), 0 0 0 1px var(--sep); animation: modalin 0.5s var(--ease); }
@keyframes modalin { from { transform: translateY(40px) scale(0.96); } }
.x { position: absolute; top: 18px; right: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--fill-2); transition: background 0.2s, transform 0.3s var(--ease); z-index: 2; }
.x::before, .x::after { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 1.8px; margin-top: -0.9px; border-radius: 1px; background: var(--ink-2); transform: rotate(45deg); }
.x::after { transform: rotate(-45deg); }
.x:hover { background: color-mix(in srgb, var(--ink) 22%, transparent); }
.x:active { transform: scale(0.9); }

.detail-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 30px; }
.detail-left .ava { border-radius: 26px; box-shadow: var(--shadow-sm); }
.detail-left .st { margin-top: 14px; }
.radar { display: block; width: 100%; max-width: 280px; margin: 14px auto 0; overflow: visible; }
.radar .grid { stroke: var(--sep); stroke-width: 1; }
.radar .shape { fill: var(--tint-soft); stroke: var(--tint); stroke-width: 2; transform-origin: 110px 110px; animation: radar 0.8s var(--ease) 0.15s backwards; }
@keyframes radar { from { transform: scale(0); opacity: 0; } }
.radar text { fill: var(--ink-2); stroke: none; font-size: 11.5px; text-anchor: middle; }
.detail-right { display: flex; flex-direction: column; min-width: 0; padding-right: 30px; }
.detail-right h2 { font-size: 32px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.detail-right .sub { margin-top: 2px; font-size: 14.5px; color: var(--ink-2); }
.detail-right .quote { margin-top: 16px; }
.detail-right .intro { margin: 14px 0 12px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.detail-right .traits { margin-bottom: 8px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.facts div { padding: 10px 14px; border-radius: 16px; background: var(--fill); }
.facts dt { font-size: 12px; color: var(--ink-3); }
.facts dd { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.facts dd.zh { font-size: 14.5px; }
.hours { margin-top: 18px; }
.hours-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.hours-head b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.hours-bar { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; height: 12px; }
.hours-bar i { border-radius: 3px; background: var(--fill); }
.hours-bar i.on { background: var(--tint); }
.hours-bar i.now { outline: 2px solid var(--ink); outline-offset: 1.5px; }
.hours-axis { display: flex; justify-content: space-between; margin-top: 5px; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.reviews { display: grid; gap: 8px; margin-top: 18px; }
.reviews h3 { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.review { font-size: 14px; line-height: 1.65; color: var(--ink); padding: 10px 14px; border-radius: 6px 16px 16px 16px; background: var(--fill); }
.review b { font-weight: 600; margin-right: 8px; }
.review small { font-size: 12px; color: var(--ink-3); margin-right: 8px; }
.detail-buy { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 22px; }
.detail-buy .price { font-size: 30px; }

.order { width: min(560px, 100%); }
.order h2, .order-done h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 20px; }
.o-field { display: block; margin-bottom: 18px; }
.o-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.o-row { display: flex; align-items: center; justify-content: space-between; }
.o-row .o-label { margin: 0; }
.pick { display: flex; gap: 8px; overflow-x: auto; padding: 4px 4px 10px; margin: -4px -4px 0; scrollbar-width: thin; scrollbar-color: var(--fill-2) transparent; }
.pick-item { flex: none; display: flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px; background: var(--fill); border: 1.5px solid transparent; transition: background 0.2s, border-color 0.2s; }
.pick-item b { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--fill-2); }
.pick-item span { font-size: 14px; font-weight: 500; white-space: nowrap; }
.pick-item small { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pick-item:hover { background: var(--fill-2); }
.pick-item.is-on { background: var(--tint-soft); border-color: var(--tint); }
.pick-info { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--fill); }
.pick-info .bub { width: 46px; height: 46px; }
.pick-info > span:last-child { min-width: 0; }
.pick-info strong { display: block; font-size: 16px; font-weight: 600; }
.pick-info small { display: block; font-size: 12.5px; color: var(--ink-2); }
.pick-info em { display: block; font-style: normal; font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.stepper { display: flex; align-items: center; gap: 10px; padding: 4px; border-radius: 999px; background: var(--fill); }
.stepper button { width: 34px; height: 34px; border-radius: 50%; background: var(--seg-on); box-shadow: 0 1px 4px rgba(30, 20, 50, 0.14); font-size: 19px; line-height: 1; transition: transform 0.2s var(--ease); }
.stepper button:active { transform: scale(0.9); }
.stepper output { font-size: 20px; font-weight: 700; min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; }
.stepper small { font-size: 13px; color: var(--ink-2); margin: 0 4px 0 -6px; }
.o-field input[type="text"] { width: 100%; height: 46px; padding: 0 16px; border-radius: 14px; border: 1.5px solid transparent; background: var(--fill); font-size: 15px; outline: 0; transition: border-color 0.2s, background 0.2s; }
.o-field input[type="text"]:focus { border-color: var(--tint); background: transparent; }
.o-field input::placeholder { color: var(--ink-3); }
.total { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 16px 0; margin-bottom: 16px; border-top: 1px solid var(--sep); }
.total-math { font-size: 13px; line-height: 1.7; color: var(--ink-2); }
.total-sum { text-align: right; white-space: nowrap; }
.total-sum small { display: block; font-size: 12.5px; color: var(--ink-3); }
.total-sum strong { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.order-form .btn-primary { width: 100%; min-height: 54px; font-size: 17px; }
.o-hint { font-size: 12px; color: var(--ink-3); margin-top: 12px; text-align: center; }
.order-done { text-align: center; animation: pop 0.5s var(--ease); }
.emblem { width: 64px; height: 64px; margin: 6px auto 16px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; box-shadow: 0 10px 26px color-mix(in srgb, var(--ok) 40%, transparent); }
.emblem i { display: none; }
.emblem b { width: 15px; height: 27px; margin-top: -6px; border: solid #fff; border-width: 0 4px 4px 0; border-radius: 2px; transform: rotate(42deg); }
.receipt { text-align: left; font-family: var(--mono), var(--font); font-size: 13.5px; line-height: 1.9; padding: 16px 18px; border-radius: 18px; background: var(--fill); white-space: pre-wrap; margin: 0 0 18px; }
.done-actions { display: flex; gap: 10px; }
.done-actions .btn-primary { flex: 1; }

.toast { position: fixed; left: 50%; bottom: 72px; z-index: 40; transform: translate(-50%, 20px) scale(0.96); opacity: 0; pointer-events: none; padding: 11px 22px; border-radius: 999px; font-size: 14.5px; font-weight: 500; max-width: 90vw;
  background: var(--glass-strong); box-shadow: var(--shadow-lg), inset 0 1px 0 var(--hi); transition: opacity 0.35s, transform 0.45s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.noscript { position: fixed; inset: 0; z-index: 99; display: grid; place-items: center; background: var(--bg); color: var(--ink); }

/* ---------- 省电模式：去掉模糊与常驻动画 ---------- */
[data-fx="low"] .sysbar, [data-fx="low"] .rail, [data-fx="low"] .win, [data-fx="low"] .hw, [data-fx="low"] .ticker, [data-fx="low"] .user-chip, [data-fx="low"] .toast, [data-fx="low"] .modal {
  -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--glass-strong); }
[data-fx="low"] .overlay-bg, [data-fx="low"] .hud-veil { -webkit-backdrop-filter: none; backdrop-filter: none; }
[data-fx="low"] body.hud-on .hw { animation: none; }
[data-fx="low"] .ticker-run, [data-fx="low"] .pulse { animation: none; }
[data-fx="low"] .notices { animation: none; }
[data-fx="low"] .notices-view { overflow-y: auto; }
[data-fx="low"] .ticker-track { overflow-x: auto; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   响应式
   ============================================================ */
/* 悬浮窗口常驻时：两侧各留一条边栏，内容居中；侧栏的信息已由悬浮窗口承担 */
@media (min-width: 861px) {
  :root { --gut: calc(var(--ws) * 268px + 22px); }
  body.hud-on .home { grid-template-columns: var(--gut) minmax(0, 1fr) var(--gut); grid-template-areas: "bar bar bar" ". main ." ". tick ." "foot foot foot"; }
  body.hud-on .home .side, body.hud-on .home .ticker { display: none; }
  body.hud-on .entry-body { max-width: calc(100vw - var(--gut) * 2 - 80px); }
}
@media (max-width: 1240px) {
  .svcs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 230px minmax(0, 1fr); gap: 22px; }
  .lrow-main { grid-template-columns: auto minmax(120px, 1.4fr) minmax(0, 1.2fr) auto; }
  .lrow-st { display: none; }
  .spot { grid-template-columns: 170px minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 1100px) { .user-chip { display: none; } .home-bar .brand span { display: none; } }
@media (max-height: 520px) {
  .logo-hero { display: none; }
  .entry-title { font-size: clamp(34px, 8vw, 60px); }
  .entry-desc { margin-top: 8px; }
  .start-btn { margin-top: 18px; height: 52px; }
  .entry-online { margin-top: 14px; }
}

@media (max-width: 860px) {
  .sysbar { top: 12px; right: 12px; }
  .scene { overflow-y: auto; overscroll-behavior: contain; }
  .entry > .brand { top: 12px; left: 16px; }
  .entry-title { white-space: normal; font-size: clamp(44px, 13.5vw, 76px); }
  .entry-title em { display: block; }
  .entry-desc { font-size: 16px; padding: 0 8px; }

  .home { display: flex; flex-direction: column; gap: 14px; padding: 12px 12px calc(96px + env(safe-area-inset-bottom, 0px)); }
  .home-bar { margin: 0; height: 44px; flex: none; padding-left: 4px; }
  .home-bar .brand span { display: inline; }
  .content-win { min-height: auto; padding: 22px 18px 18px; overflow: visible; border-radius: 28px; }
  .view-scroll { overflow: visible; padding: 0; }
  .view-head h1 { font-size: 28px; }
  .deck-head h1 { font-size: 28px; }
  .deck { margin: 0 -18px; }
  .pc { border-radius: 24px; }
  .pc-body { padding: 54px 12px 12px; gap: 6px; }
  .notices-view { height: auto; -webkit-mask-image: none; mask-image: none; }
  .notices { animation: none; }
  .notices li:nth-child(n + 6) { display: none; }
  .svcs { gap: 10px; }
  .svc { padding: 14px; border-radius: 22px; }
  .svc-top { flex-direction: column; gap: 0; }
  .sec-head { margin-top: 24px; }
  .tool-right { width: 100%; justify-content: space-between; }
  .spot { grid-template-columns: 1fr; gap: 14px; padding: 12px; border-radius: 24px; }
  .spot .ava { aspect-ratio: 16 / 10; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { padding: 8px 8px 12px; border-radius: 22px; }
  .card-top { top: 14px; left: 14px; right: 14px; }
  .card-top .bdg { display: none; }
  .card-name { font-size: 16px; }
  .card-foot { flex-direction: column; gap: 2px; }
  .card:hover, .row:hover, .lrow-main:hover, .rrow:hover, .contact:hover { transform: none; }
  .lrow-main { grid-template-columns: auto minmax(0, 1fr) auto; padding: 10px 14px 10px 10px; gap: 12px; }
  .lrow-games, .lrow-st { display: none; }
  .lrow-buy { width: 76px; }
  .rrow { grid-template-columns: 26px auto minmax(0, 1fr) 70px; gap: 10px; padding: 10px 14px 10px 10px; }
  .rrow-bar { display: none; }
  .row { grid-template-columns: minmax(0, 1fr) auto; padding: 16px; gap: 12px; }
  .row-no { display: none; }
  .flow { grid-template-columns: 1fr 1fr; gap: 10px; }
  .side { overflow: visible; }
  /* 导航变成底部标签栏 */
  .rail { position: fixed; z-index: 12; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); justify-self: stretch; align-self: auto; justify-content: space-around; padding: 6px; border-radius: 30px; box-shadow: var(--shadow-lg), inset 0 1px 0 var(--hi); }
  .scene.is-active .rail.rise { animation: none; }
  .node { flex: 1; flex-direction: column; gap: 2px; height: 52px; padding: 0; border-radius: 24px; font-size: 11.5px; }
  .node svg { width: 22px; height: 22px; }
  .node.is-on { color: var(--tint); }
  .toast { bottom: 100px; }

  /* 悬浮窗口：按钮呼出的面板 */
  .hud { perspective: none; overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; align-content: start; padding: 68px 12px 28px; }
  body.hud-overlay .hud { pointer-events: auto; }
  .hw { position: relative; inset: auto; left: auto; right: auto; width: auto; transform: none; cursor: default; touch-action: auto; z-index: 1; }
  body.hud-on .hw { animation: hw-in 0.6s var(--ease) calc(var(--n) * 60ms + 80ms) backwards; }
  .hud-core { display: none; position: relative; grid-column: 1 / -1; text-align: center; z-index: 1; padding: 4px 0 6px; color: #fff; }
  body.hud-overlay .hud-core { display: block; }
  .hud-core i, .hud-core small { display: none; }
  .hud-core strong { display: block; font-size: 44px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
  .hud-core span { font-size: 13px; opacity: 0.8; }
  .hud-core em { display: block; margin-top: 6px; font-style: normal; font-size: 12.5px; opacity: 0.7; }
  .hud-core em b { display: none; }

  .overlay { padding: 10px; align-items: end; }
  .modal { max-height: calc(100dvh - 20px); padding: 22px 18px; border-radius: 30px; }
  .detail-grid { grid-template-columns: 1fr; gap: 16px; }
  .detail-left { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; }
  .detail-left .ava { border-radius: 22px; }
  .detail-left .st { margin: 0; justify-self: start; }
  .detail-left .radar { grid-column: 1 / -1; max-width: 240px; margin-top: 4px; }
  .detail-right { padding-right: 0; }
  .detail-right h2 { font-size: 26px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .detail-buy { flex-direction: column; align-items: stretch; }
  .done-actions { flex-direction: column; }
}
