/* =========================================================
   愧梦电竞 · 多租户电竞俱乐部前端原型
   设计参考：粉福电竞 H5（颜色 / 间距 / 卡片节奏）
   ========================================================= */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: #111827;
  background: #0b1020;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; padding: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::-webkit-scrollbar { width: 0; height: 0; }

:root {
  --brand: #ec4899;
  --brand-2: #a855f7;
  --brand-deep: #be185d;
  --brand-soft: #fce7f3;
  --brand-softer: #fdf2f8;
  --grad: linear-gradient(100deg, #f472b6 0%, #ec4899 38%, #a855f7 100%);
  --grad-soft: linear-gradient(135deg, #fce7f3, #f3e8ff);
  --ink: #111827;
  --ink-2: #374151;
  --sub: #6b7280;
  --muted: #9ca3af;
  --line: #f1f5f9;
  --bg: #fdf2f8;
  --card: #ffffff;
  --danger: #ef4444;
  --ok: #10b981;
  --warn: #f59e0b;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(190, 24, 93, 0.08);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

/* ---------- 舞台 / 手机壳 ---------- */
.stage {
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(900px 600px at 15% 8%, rgba(236, 72, 153, 0.22), transparent 60%),
    radial-gradient(800px 600px at 85% 90%, rgba(168, 85, 247, 0.2), transparent 62%),
    linear-gradient(135deg, #090d19, #141021 55%, #0a0f1e);
  position: relative;
}
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  pointer-events: none;
}
.app {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 100dvh;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  color: var(--ink);
}
@media (min-width: 700px) and (min-height: 720px) {
  .app {
    height: min(900px, calc(100dvh - 44px));
    border-radius: 38px;
    box-shadow: 0 40px 120px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08), 0 0 0 9px rgba(255,255,255,.035);
  }
  .stage::after {
    content: "愧梦电竞 · 多租户俱乐部系统 · 前端原型";
    position: fixed;
    left: 28px;
    bottom: 24px;
    color: rgba(255,255,255,.32);
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 600;
  }
}

/* ---------- 水印 ---------- */
.watermark {
  position: absolute;
  inset: -25%;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-content: space-between;
  gap: 58px 8px;
  transform: rotate(-24deg);
  pointer-events: none;
  overflow: hidden;
  opacity: .05;
}
.watermark span {
  font-size: 12px;
  font-weight: 800;
  color: var(--brand-deep);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}
.watermark b { font-size: 13px; font-weight: 400; }

/* ---------- 页面容器 ---------- */
.screen {
  position: relative;
  z-index: 1;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}
.screen.has-tab { padding-bottom: calc(72px + var(--safe-b)); }
.screen.no-tab { padding-bottom: 0; }
.page { min-height: 100%; animation: pageIn .28s ease both; }
@keyframes pageIn { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- 通用 ---------- */
.hidden { display: none !important; }
.row { display: flex; align-items: center; }
.between { display: flex; align-items: center; justify-content: space-between; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price { color: var(--brand); font-weight: 900; }
.price small { font-size: .58em; font-weight: 800; margin-right: 1px; }
.origin { color: #c3c8d2; text-decoration: line-through; }
.muted { color: var(--muted); }
.sub { color: var(--sub); }
.dim { color: #b6bcc8; }
.ellipsis { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 22px; border-radius: 999px; font-weight: 800; font-size: 14px;
  background-color: var(--brand); background-image: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(236,72,153,.26);
  transition: transform .15s ease, opacity .15s;
}
.btn:active { transform: scale(.97); }
.btn.block { width: 100%; }
.btn.ghost { background: #fff; color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand-soft); }
.btn.dark { background: #111827; box-shadow: none; }
.btn.small { height: 32px; font-size: 12px; padding: 0 14px; }
.btn.gray { background: #f3f4f6; color: #374151; box-shadow: none; }
.btn:disabled { opacity: .45; box-shadow: none; }

.header {
  position: sticky; top: 0; z-index: 30;
  height: calc(52px + var(--safe-t));
  padding-top: var(--safe-t);
  display: grid; grid-template-columns: 52px 1fr 52px; align-items: center;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(241,245,249,.9);
}
.header .h-title { text-align: center; font-size: 16px; font-weight: 800; letter-spacing: .3px; }
.header .h-side { display: flex; align-items: center; justify-content: center; height: 100%; color: #1f2937; }
.back-btn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; margin-left: 4px; border-radius: 50%; }
.back-btn svg { width: 22px; height: 22px; }
.back-btn:active { background: #f3f4f6; }
.icon-btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:active { background: rgba(0,0,0,.05); }
.chev { display: flex; align-items: center; flex: none; }
.chev svg { width: 16px; height: 16px; }
.search-box > svg { width: 17px; height: 17px; flex: none; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px;
  border-radius: 999px; font-size: 10.5px; font-weight: 800; color: var(--brand);
  background: var(--brand-soft);
}
.chip.solid { background: var(--grad); color: #fff; }
.chip.green { background: #ecfdf5; color: #059669; }
.chip.dark { background: #111827; color: #fff; }
.tag-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: 0 2px 12px rgba(17,24,39,.035); }
.divider { height: 1px; background: var(--line); }
.empty { padding: 64px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.empty .empty-icon { width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 50%; background: var(--brand-softer); display: flex; align-items: center; justify-content: center; color: #f9a8d4; }
.empty h4 { margin: 0 0 6px; color: #374151; font-size: 15px; }
.empty p { margin: 0; line-height: 1.7; font-size: 12px; }
.notice { font-size: 11px; color: #9ca3af; line-height: 1.7; }

/* ---------- 底部导航 ---------- */
#dock {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 46; pointer-events: none;
}
#dock > * { pointer-events: auto; }
#dock .pd-bar, #dock .form-bar, #dock .chat-input-bar {
  position: relative; left: auto; right: auto; bottom: auto; width: 100%;
}
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 45;
  display: none;
  grid-template-columns: repeat(6, 1fr);
  height: calc(64px + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: rgba(255,255,255,.97);
  border-top: 1px solid #f1f5f9;
  box-shadow: 0 -8px 24px rgba(17,24,39,.04);
}
.tabbar.show { display: grid; }
.tab-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: #9aa1ad; font-size: 10px; font-weight: 600; position: relative; padding-top: 4px;
  transition: color .2s;
}
.tab-item svg { width: 23px; height: 23px; stroke-width: 1.7; }
.tab-item.active { color: var(--brand); font-weight: 800; }
.tab-item .tab-badge {
  position: absolute; top: 3px; right: 50%; margin-right: -20px;
  min-width: 14px; height: 14px; padding: 0 3px; border-radius: 8px; background: #ef4444;
  color: #fff; font-size: 8px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid #fff;
}

/* ---------- 启动页 ---------- */
.launch {
  position: absolute; inset: 0; z-index: 100; display: flex; flex-direction: column;
  background:
    radial-gradient(420px 300px at 85% 12%, rgba(244,114,182,.22), transparent 70%),
    radial-gradient(360px 320px at 8% 92%, rgba(168,85,247,.14), transparent 70%),
    linear-gradient(165deg, #ffffff 0%, #fff5f9 42%, #eef3f8 100%);
  padding: calc(42px + var(--safe-t)) 22px calc(18px + var(--safe-b));
  overflow: hidden;
}
.launch .particle { position: absolute; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fb7185, #ec4899); opacity: .55; filter: blur(.3px); animation: float 5s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-9px) } }
.launch-top { display: flex; flex-direction: column; align-items: center; padding-top: 7vh; position: relative; z-index: 1; }
.launch-logo {
  width: 102px; height: 102px; border-radius: 26px; padding: 2px;
  background: linear-gradient(145deg, #fff, #fce7f3 55%, #f5d0fe);
  box-shadow: 0 24px 46px rgba(190,24,93,.22), 0 0 0 10px rgba(255,255,255,.35);
  position: relative;
}
.launch-logo::before, .launch-logo::after {
  content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(244,114,182,.22);
}
.launch-logo::before { inset: -18px; }
.launch-logo::after { inset: -34px; opacity: .55; }
.launch-logo .brand-mark { width: 100%; height: 100%; border-radius: 24px; font-size: 32px; }
.launch-name { margin-top: 24px; font-size: 27px; font-weight: 900; letter-spacing: 3px; color: #111827; }
.launch-name em { font-style: normal; color: #111827; }
.launch-slogan { margin-top: 9px; font-size: 11px; letter-spacing: 4px; color: #9ca3af; font-weight: 600; }
.launch-bottom { margin-top: auto; position: relative; z-index: 2; }
.agree-card {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(255,255,255,.86); border: 1px solid rgba(255,255,255,.9);
  border-radius: 16px; padding: 15px 14px; box-shadow: 0 10px 32px rgba(190,24,93,.07);
  backdrop-filter: blur(10px);
}
.check {
  flex: none; width: 21px; height: 21px; border-radius: 7px; border: 1.5px solid #d1d5db;
  background: #fff; display: flex; align-items: center; justify-content: center; margin-top: 1px;
  transition: .18s; color: #fff;
}
.check.checked { background: var(--brand); border-color: var(--brand); }
.check svg { width: 13px; height: 13px; opacity: 0; }
.check.checked svg { opacity: 1; }
.agree-text { font-size: 13px; line-height: 1.65; color: #1f2937; font-weight: 600; letter-spacing: .2px; }
.agree-text .hl { color: var(--brand); }
.launch-btn {
  width: 100%; height: 52px; margin: 16px 0 13px; border-radius: 26px;
  background: var(--grad); color: #fff; font-size: 16px; font-weight: 800; letter-spacing: 2px;
  box-shadow: 0 14px 30px rgba(236,72,153,.32); transition: .2s;
}
.launch-btn:active { transform: scale(.985); }
.launch-btn.off { opacity: .96; }
.launch-legal { text-align: center; font-size: 10.5px; color: #a3a9b4; line-height: 1.7; }
.launch-legal a { color: #f472b6; }
.launch-support { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #9aa1ad; font-size: 10px; }
.launch-support .mini { width: 22px; height: 22px; border-radius: 6px; background: #111827; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 10px; font-weight: 900; }

/* ---------- 品牌标识 ---------- */
.brand-mark {
  position: relative; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 20%, #1f2937, #05070d 70%);
  color: #fff; font-weight: 900; font-style: italic; letter-spacing: -1px;
  border-radius: 12px; overflow: hidden; text-shadow: 0 0 16px rgba(96,165,250,.7);
}
.brand-mark::before {
  content: ""; position: absolute; width: 130%; height: 38%; left: -15%; top: 40%;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,.85), rgba(244,114,182,.8), transparent);
  transform: skewX(-22deg); opacity: .55; filter: blur(4px);
}
.brand-mark span { position: relative; z-index: 1; }
.brand-mark::after {
  content: ""; position: absolute; inset: 0;
  border: 1px solid rgba(255,255,255,.18); border-radius: inherit;
}

/* ---------- 首页 ---------- */
.home { padding-bottom: 18px; padding-top: calc(4px + var(--safe-t)); }
.notice-bar {
  margin: 9px 13px 0; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(90deg, #fce7f3, #f5e8ff 60%, #fce7f3);
  color: #9d174d; font-size: 11.5px; font-weight: 800; letter-spacing: .3px;
  border: 1px solid rgba(244,114,182,.16); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 10px;
}
.hero { margin: 9px 13px 0; border-radius: 15px; overflow: hidden; position: relative; aspect-ratio: 2.03 / 1; background: #1f2937; box-shadow: 0 10px 24px rgba(17,24,39,.15); }
.hero > img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 0; }
.hero-band {
  position: absolute; left: 0; right: 0; top: 36%; height: 32%; z-index: 1;
  background: linear-gradient(180deg, rgba(6,9,18,0), rgba(6,9,18,.34) 20%, rgba(6,9,18,.46) 50%, rgba(6,9,18,.34) 80%, rgba(6,9,18,0));
  backdrop-filter: blur(11px) saturate(.9);
  -webkit-backdrop-filter: blur(11px) saturate(.9);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  pointer-events: none;
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.06), transparent 40%, rgba(0,0,0,.18)); pointer-events: none; z-index: 3; }
.hero-plate {
  position: absolute; left: 50%; top: 47%; transform: translate(-50%,-50%); z-index: 4;
  display: flex; align-items: center; gap: 9px; padding: 7px 12px 7px 8px;
  border-radius: 13px; background: rgba(8,10,18,.5);
  border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(12px) saturate(1.1);
  box-shadow: 0 8px 30px rgba(0,0,0,.28); min-width: 168px;
}
.hero-plate .brand-mark { width: 34px; height: 34px; border-radius: 9px; font-size: 15px; }
.hero-plate .hp-name { font-size: 18px; font-weight: 900; letter-spacing: 2px; color: #fff; font-style: italic; }
.hero-plate .hp-sub { font-size: 8px; letter-spacing: 2.5px; color: rgba(255,255,255,.6); margin-top: 2px; font-weight: 600; white-space: nowrap; }
.hero-arrow { position: absolute; right: 10px; bottom: 9px; z-index: 2; display: flex; gap: 4px; }
.hero-arrow i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.4); }
.hero-arrow i.on { width: 12px; border-radius: 3px; background: #fff; }

.quick-grid {
  margin: 11px 13px 0; background: rgba(255,255,255,.92); border-radius: 15px;
  display: grid; grid-template-columns: repeat(4,1fr); padding: 13px 5px 11px;
  box-shadow: 0 4px 18px rgba(17,24,39,.045);
}
.quick-item { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 700; color: #374151; }
.quick-icon {
  width: 43px; height: 43px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  position: relative; box-shadow: inset 0 -2px 6px rgba(255,255,255,.8), 0 5px 12px rgba(17,24,39,.07);
  overflow: hidden;
}
.quick-icon::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.5); }
.quick-icon svg { width: 23px; height: 23px; position: relative; z-index: 1; }
.qi-1 { background: linear-gradient(145deg,#fff1f2,#fecdd3); color: #e11d48; }
.qi-2 { background: linear-gradient(145deg,#eff6ff,#dbeafe); color: #2563eb; }
.qi-3 { background: linear-gradient(145deg,#fffbeb,#fef3c7); color: #d97706; }
.qi-4 { background: linear-gradient(145deg,#f5f3ff,#ede9fe); color: #7c3aed; }

.zone-strip { display: flex; gap: 9px; overflow-x: auto; padding: 12px 13px 2px; scroll-snap-type: x mandatory; }
.zone-card {
  position: relative; flex: 0 0 146px; height: 94px; border-radius: 14px; overflow: hidden;
  padding: 13px 12px; color: #fff; text-align: left; scroll-snap-align: start;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 8px 18px rgba(168,85,247,.18);
}
.zone-card:nth-child(2) { background: linear-gradient(135deg,#f472b6,#a855f7); }
.zone-card:nth-child(3) { background: linear-gradient(135deg,#c084fc,#8b5cf6); }
.zone-card::before {
  content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%;
  right: -46px; top: -52px; border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 0 0 16px rgba(255,255,255,.05), 0 0 0 34px rgba(255,255,255,.04);
}
.zone-card::after {
  content: ""; position: absolute; left: 12px; top: 13px; width: 26px; height: 6px;
  background-image: radial-gradient(circle, rgba(255,255,255,.75) 1px, transparent 1.5px);
  background-size: 8px 6px;
}
.zone-card .zc-title { font-size: 17px; font-weight: 900; letter-spacing: .6px; margin-top: 21px; text-shadow: 0 2px 6px rgba(0,0,0,.12); }
.zone-card .zc-desc { font-size: 9.5px; opacity: .85; margin-top: 3px; }
.zone-card .zc-icon { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.22); }
.zone-card .zc-icon svg { width: 19px; height: 19px; }

.content-block { margin: 11px 13px 0; background: #fff; border-radius: 16px; padding: 14px 12px 13px; box-shadow: 0 4px 18px rgba(17,24,39,.04); }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.block-head h2 { margin: 0; font-size: 16.5px; font-weight: 900; letter-spacing: .2px; display: flex; align-items: center; gap: 6px; }
.block-head h2 .line { width: 3px; height: 15px; border-radius: 2px; background: var(--grad); display: none; }
.more-pill {
  display: inline-flex; align-items: center; gap: 2px; height: 24px; padding: 0 9px 0 11px;
  border-radius: 999px; background: var(--grad); color: #fff; font-size: 10px; font-weight: 700;
  box-shadow: 0 4px 10px rgba(236,72,153,.22); white-space: nowrap;
}
.more-pill svg { width: 11px; height: 11px; }
.block-sub { margin: 9px 0 10px; display: flex; align-items: center; justify-content: space-between; }
.sub-chip {
  display: inline-flex; align-items: center; height: 22px; padding: 0 11px; border-radius: 999px;
  background: linear-gradient(90deg, #f472b6, #c084fc); color: #fff; font-size: 10px; font-weight: 800;
  letter-spacing: .2px; box-shadow: 0 3px 8px rgba(192,132,252,.2);
}
.sub-note { font-size: 9.5px; color: #b6bcc8; }

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.p-card { position: relative; background: #fff; border-radius: 11px; overflow: hidden; box-shadow: 0 2px 10px rgba(17,24,39,.055); text-align: left; display: block; width: 100%; }
.p-cover { position: relative; aspect-ratio: 1 / .96; background: #111827; overflow: hidden; }
.p-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.p-card:active .p-cover img { transform: scale(1.03); }
.p-badge {
  position: absolute; left: 0; top: 6px; z-index: 2; height: 18px; padding: 0 8px 0 7px;
  display: flex; align-items: center; border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, #f9a8d4, #c084fc); color: #fff; font-size: 9px; font-weight: 800;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.p-badge.new { background: linear-gradient(90deg,#f472b6,#a855f7); }
.p-badge.hot { background: linear-gradient(90deg,#fb7185,#f43f5e); }
.p-body { padding: 8px 8px 9px; }
.p-title { font-size: 13px; font-weight: 700; line-height: 1.35; height: 35px; color: #1f2937; }
.p-desc { margin-top: 3px; font-size: 9.5px; line-height: 1.5; color: #9ca3af; height: 28px; }
.p-bottom { margin-top: 5px; display: flex; align-items: baseline; justify-content: space-between; gap: 3px; }
.p-price { font-size: 17px; font-weight: 900; color: var(--brand); letter-spacing: -.5px; }
.p-price small { font-size: 10px; margin-right: 1px; }
.p-origin { font-size: 9px; color: #c3c8d2; text-decoration: line-through; margin-left: 2px; }
.p-sold { font-size: 8.5px; color: #b6bcc8; white-space: nowrap; }
.p-grid-wrap { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.p-grid-wrap .p-title { font-size: 11.5px; height: 31px; }
.p-grid-wrap .p-desc { display: none; }
.p-grid-wrap .p-price { font-size: 14px; }
.p-grid-wrap .p-cover { aspect-ratio: 1 / 1; }
.p-grid-wrap .p-sold { display: none; }
.p-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 31.4%; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.p-scroll .p-title { font-size: 12px; }
.p-scroll .p-desc { display: none; }
.p-scroll .p-cover { aspect-ratio: 1/1; }
.p-scroll .p-price { font-size: 15px; }
.p-scroll .p-origin, .p-scroll .p-sold { display: none; }

.fun-list { display: flex; flex-direction: column; gap: 0; }
.fun-item { padding: 12px 2px; border-bottom: 1px dashed #f1f5f9; text-align: left; display: flex; gap: 10px; align-items: flex-start; }
.fun-item:last-child { border-bottom: 0; padding-bottom: 4px; }
.fun-item .fi-main { flex: 1; min-width: 0; }
.fun-item h4 { margin: 0 0 4px; font-size: 14.5px; font-weight: 800; color: #1f2937; line-height: 1.35; }
.fun-item p { margin: 0; font-size: 10.5px; color: #9ca3af; line-height: 1.6; }
.fun-item .fi-foot { margin-top: 7px; display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.fun-item .fi-price { font-size: 19px; font-weight: 900; color: var(--brand); }
.fun-item .fi-price small { font-size: 10px; }
.fun-item .fi-origin { font-size: 10px; color: #c3c8d2; text-decoration: line-through; margin-left: 4px; }
.fun-item .fi-sold { font-size: 9px; color: #b6bcc8; background: #f8fafc; border-radius: 10px; padding: 2px 7px; }
.fun-item .fi-badge { margin-bottom: 5px; }
.fun-thumb { flex: none; width: 54px; height: 54px; border-radius: 10px; overflow: hidden; background: #111827; margin-top: 2px; }
.fun-thumb img { width: 100%; height: 100%; object-fit: cover; }

.home-footer { margin: 16px 13px 0; text-align: center; padding: 14px 0 4px; }
.home-footer .brand-line { display: inline-flex; align-items: center; gap: 8px; color: #9ca3af; font-size: 10.5px; }
.home-footer .brand-line .brand-mark { width: 26px; height: 26px; border-radius: 7px; font-size: 12px; }
.home-footer .brand-line b { color: #6b7280; font-size: 11px; }
.home-footer .brand-line em { font-style: normal; color: #c084fc; }

/* ---------- 分类页 ---------- */
.cat-top { background: linear-gradient(180deg, #fff1f6 0%, rgba(253,242,248,.85) 65%, rgba(253,242,248,0) 100%); padding: calc(8px + var(--safe-t)) 10px 0; }
.zone-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.zone-tab { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px 6px; color: #6b7280; font-size: 11px; font-weight: 700; }
.zone-tab .zt-icon { width: 45px; height: 45px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; box-shadow: 0 4px 10px rgba(17,24,39,.12); transition: .2s; }
.zone-tab .zt-icon img { width: 100%; height: 100%; object-fit: cover; }
.zone-tab.active { color: var(--brand); font-weight: 900; }
.zone-tab.active .zt-icon { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 6px 14px rgba(236,72,153,.3); }
.collapse-pill {
  margin: 5px auto 7px; height: 23px; padding: 0 12px; border-radius: 999px; display: flex; align-items: center; gap: 3px;
  width: max-content; white-space: nowrap;
  background: #fff; color: var(--brand); font-size: 10px; font-weight: 700; box-shadow: 0 2px 8px rgba(17,24,39,.05);
}
.collapse-pill svg { width: 12px; height: 12px; flex: none; }
.cat-pills { display: flex; gap: 8px; overflow-x: auto; padding: 5px 13px 11px; }
.cat-pill { flex: none; height: 29px; padding: 0 15px; border-radius: 999px; background: #fff; color: #6b7280; font-size: 11.5px; font-weight: 700; box-shadow: 0 2px 8px rgba(17,24,39,.04); }
.cat-pill.active { background: var(--grad); color: #fff; box-shadow: 0 5px 12px rgba(168,85,247,.24); }
.cat-body { display: grid; grid-template-columns: 86px minmax(0,1fr); align-items: start; }
.cat-side { position: sticky; top: 0; background: #f8f5fa; border-radius: 0 12px 12px 0; padding: 3px 0; min-height: calc(100vh - 210px); }
.cat-side-item { position: relative; display: block; width: 100%; padding: 15px 5px; font-size: 11.5px; color: #6b7280; font-weight: 600; line-height: 1.35; text-align: center; overflow: hidden; }
.cat-side-item.active { background: #fff; color: var(--brand); font-weight: 900; border-radius: 0 10px 10px 0; }
.cat-side-item.active::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 20px; border-radius: 0 3px 3px 0; background: var(--grad); }
.cat-list { padding: 0 10px 10px; }
.cat-product {
  display: flex; gap: 9px; background: #fff; border-radius: 11px; padding: 9px; margin-bottom: 9px;
  box-shadow: 0 2px 9px rgba(17,24,39,.05); text-align: left; width: 100%; position: relative;
}
.cat-product .cp-cover { flex: none; width: 66px; height: 66px; border-radius: 9px; overflow: hidden; background: #111827; position: relative; }
.cat-product .cp-cover img { width: 100%; height: 100%; object-fit: cover; }
.cat-product .cp-main { flex: 1; min-width: 0; padding-right: 30px; }
.cat-product h4 { margin: 1px 0 3px; font-size: 13px; font-weight: 800; line-height: 1.3; color: #1f2937; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-product p { margin: 0 0 2px; font-size: 9.5px; color: #b0b6c1; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-product .cp-foot { display: flex; align-items: baseline; gap: 3px; margin-top: 3px; }
.cat-product .cp-price { font-size: 16px; font-weight: 900; color: var(--brand); }
.cat-product .cp-origin { font-size: 9px; color: #c3c8d2; text-decoration: line-through; }
.cat-product .cp-sold { font-size: 8.5px; color: #b6bcc8; margin-left: auto; }
.cart-fab {
  position: absolute; right: 8px; bottom: 9px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center;
}
.cart-fab svg { width: 15px; height: 15px; }
.list-end { text-align: center; padding: 18px 0 8px; font-size: 11px; color: #b6bcc8; }
.list-end::before, .list-end::after { content: ""; display: inline-block; width: 22px; height: 1px; background: #eee; vertical-align: middle; margin: 0 8px; }
.cat-bar { position: sticky; bottom: 0; }

/* ---------- 商品详情 ---------- */
.pd-cover { position: relative; aspect-ratio: 1.22 / 1; background: #0f172a; overflow: hidden; }
.pd-cover img { width: 100%; height: 100%; object-fit: cover; }
.pd-back {
  position: absolute; top: calc(12px + var(--safe-t)); left: 12px; z-index: 5;
  width: 34px; height: 34px; border-radius: 50%; background: rgba(17,24,39,.55); color: #fff;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.pd-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 4px; z-index: 3; }
.pd-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.45); }
.pd-dots i.on { background: #fff; width: 11px; border-radius: 3px; }
.pd-body { position: relative; z-index: 2; margin-top: -16px; border-radius: 18px 18px 0 0; background: #fff; padding: 16px 13px 10px; }
.pd-price-row { display: flex; align-items: baseline; gap: 6px; }
.pd-price { font-size: 25px; font-weight: 900; color: var(--brand); letter-spacing: -1px; }
.pd-price small { font-size: 13px; font-weight: 800; }
.pd-price-row .pd-save { font-size: 10px; color: var(--brand); background: var(--brand-softer); padding: 3px 7px; border-radius: 6px; font-weight: 700; }
.pd-title { margin: 10px 0 5px; font-size: 16.5px; font-weight: 900; line-height: 1.45; color: #111827; display: flex; align-items: flex-start; gap: 6px; flex-wrap: wrap; }
.pd-title .chip { flex: none; height: 20px; margin-top: 1px; }
.pd-desc { font-size: 11.5px; line-height: 1.7; color: #6b7280; white-space: pre-line; }
.pd-stats { margin-top: 8px; font-size: 10.5px; color: #9ca3af; display: flex; gap: 8px; align-items: center; }
.pd-stats b { color: var(--brand); font-size: 12px; }
.pd-stats .sep { width: 1px; height: 10px; background: #e5e7eb; }
.pd-gift { margin-top: 12px; border-radius: 12px; border: 1px solid #fce7f3; background: linear-gradient(180deg,#fff7fa,#fff); padding: 10px; }
.pd-gift-head { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; font-weight: 800; color: #374151; }
.pd-gift-head .left { display: flex; align-items: center; gap: 5px; color: var(--brand); white-space: nowrap; flex: none; }
.pd-gift-head .left svg { width: 14px; height: 14px; }
.pd-gift-head .right { color: var(--brand); font-size: 10px; white-space: nowrap; }
.pd-gift-scroll { display: flex; gap: 7px; overflow-x: auto; margin-top: 8px; }
.gift-item { flex: 0 0 69px; height: 82px; border-radius: 8px; background: #fff; border: 1px solid #f6e7ef; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.gift-item .gi-box { width: 32px; height: 32px; border-radius: 8px; background: #fdf2f8; display: flex; align-items: center; justify-content: center; color: #f9a8d4; }
.gift-item b { font-size: 9.5px; color: #374151; }
.gift-item span { font-size: 8.5px; color: #b6bcc8; }
.pd-safe { margin-top: 10px; border-radius: 9px; background: #f0fdf4; border: 1px solid #dcfce7; color: #15803d; font-size: 10px; line-height: 1.65; padding: 8px 10px; display: flex; gap: 6px; }
.pd-safe svg { flex: none; width: 14px; height: 14px; margin-top: 1px; color: #22c55e; }
.pd-tabs { display: flex; gap: 22px; margin-top: 14px; border-bottom: 1px solid #f1f5f9; }
.pd-tab { position: relative; padding: 8px 0 9px; font-size: 13px; color: #6b7280; font-weight: 600; }
.pd-tab.active { color: #111827; font-weight: 900; }
.pd-tab.active::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 20px; height: 3px; border-radius: 3px; background: var(--grad); }
.pd-tab .num { font-size: 9px; color: #b6bcc8; margin-left: 2px; }
.pd-panel { padding: 12px 1px 6px; }
.spec-table { border-radius: 10px; overflow: hidden; border: 1px solid #f1f5f9; }
.spec-row { display: flex; font-size: 11.5px; line-height: 1.65; }
.spec-row + .spec-row { border-top: 1px solid #f1f5f9; }
.spec-row .k { flex: 0 0 76px; padding: 9px 10px; background: #fafafa; color: #9ca3af; }
.spec-row .v { flex: 1; padding: 9px 10px; color: #374151; }
.rating-summary { display: flex; align-items: center; gap: 12px; padding: 2px 2px 12px; }
.rating-big { font-size: 30px; font-weight: 900; color: var(--brand); line-height: 1; }
.rating-stars { color: #fbbf24; font-size: 11px; letter-spacing: 2px; }
.rating-meta { font-size: 10px; color: #9ca3af; margin-top: 4px; }
.review { padding: 10px 0; border-top: 1px solid #f8fafc; }
.review-head { display: flex; align-items: center; gap: 7px; }
.review-head .avatar { width: 24px; height: 24px; font-size: 10px; }
.review-head b { font-size: 11px; color: #374151; }
.review-head .stars { margin-left: auto; color: #fbbf24; font-size: 9px; letter-spacing: 1px; }
.review p { margin: 5px 0 0; font-size: 11px; color: #6b7280; line-height: 1.65; }
.pd-info p { margin: 0 0 9px; font-size: 11.5px; color: #4b5563; line-height: 1.8; }
.pd-info h5 { margin: 13px 0 6px; font-size: 12px; color: #111827; }
.pd-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 35;
  height: calc(66px + var(--safe-b)); padding: 0 12px var(--safe-b);
  background: rgba(255,255,255,.97); border-top: 1px solid #f1f5f9;
  display: flex; align-items: center; gap: 12px; box-shadow: 0 -8px 24px rgba(17,24,39,.05);
}
.pd-bar .kefu { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 9px; color: #6b7280; width: 42px; }
.pd-bar .kefu svg { width: 21px; height: 21px; }
.pd-bar .buy { flex: 1; height: 44px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 900; font-size: 15px; letter-spacing: 1px; box-shadow: 0 8px 20px rgba(236,72,153,.28); }
.pd-bar .fav { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 9px; color: #6b7280; width: 38px; }

/* ---------- 表单 / 创建订单 ---------- */
.form-page { padding-bottom: calc(84px + var(--safe-b)); }
.form-card { margin: 10px 12px 0; background: #fff; border-radius: 14px; padding: 13px 13px 5px; box-shadow: 0 2px 12px rgba(17,24,39,.04); }
.form-card-title { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 900; color: #111827; margin-bottom: 10px; }
.form-card-title svg { width: 17px; height: 17px; color: #6b7280; }
.form-row { padding: 10px 0; border-bottom: 1px solid #f8fafc; }
.form-row:last-child { border-bottom: 0; }
.form-label { display: flex; align-items: center; gap: 2px; font-size: 12px; color: #374151; font-weight: 700; margin-bottom: 8px; }
.form-label .req { color: var(--brand); font-size: 13px; }
.form-input { width: 100%; height: 41px; border-radius: 9px; border: 1px solid #eef2f7; background: #f8fafc; padding: 0 12px; font-size: 12.5px; outline: none; transition: .2s; }
.form-input:focus { border-color: #f9a8d4; background: #fff; box-shadow: 0 0 0 3px #fdf2f8; }
.form-input::placeholder { color: #b6bcc8; }
.region-row { display: flex; gap: 8px; }
.region-chip { flex: 1; height: 38px; border-radius: 9px; background: #f8fafc; border: 1px solid #eef2f7; color: #6b7280; font-size: 12px; font-weight: 700; }
.region-chip.active { background: var(--brand-softer); border-color: #f9a8d4; color: var(--brand); }
.pick-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.pick-card { border: 1px solid #eef2f7; background: #fff; border-radius: 11px; padding: 11px 8px; display: flex; flex-direction: column; align-items: center; gap: 5px; color: #6b7280; }
.pick-card svg { width: 23px; height: 23px; color: #9ca3af; }
.pick-card b { font-size: 11.5px; font-weight: 700; }
.pick-card small { font-size: 8.5px; color: #b6bcc8; }
.pick-card.active { border-color: #f9a8d4; background: var(--brand-softer); color: var(--brand); }
.pick-card.active svg { color: var(--brand); }
.select-row { display: flex; align-items: center; gap: 9px; background: #fafafa; border: 1px solid #f1f5f9; border-radius: 10px; padding: 9px 10px; width: 100%; text-align: left; }
.select-row .avatar { width: 34px; height: 34px; font-size: 12px; }
.select-row .sr-main { flex: 1; min-width: 0; }
.select-row .sr-main b { font-size: 11.5px; display: block; }
.select-row .sr-main span { font-size: 9px; color: #b6bcc8; }
.select-row .chev { color: #c3c8d2; }
.pay-list { display: flex; flex-direction: column; gap: 4px; }
.pay-row { display: flex; align-items: center; gap: 9px; padding: 8px 0; font-size: 12px; width: 100%; text-align: left; }
.pay-icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.pay-icon.green { background: #ecfdf5; color: #10b981; }
.pay-icon.wechat { background: #eff6ff; color: #22c55e; }
.radio { margin-left: auto; width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid #d1d5db; display: flex; align-items: center; justify-content: center; }
.radio.on { border-color: var(--brand); }
.radio.on::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
.fee-row { display: flex; justify-content: space-between; font-size: 11px; color: #6b7280; padding: 6px 0; }
.fee-row.total { border-top: 1px dashed #f1f5f9; margin-top: 4px; padding-top: 10px; font-size: 12px; color: #111827; font-weight: 800; }
.fee-row.total b { color: var(--brand); font-size: 16px; }
.product-mini { display: flex; gap: 9px; padding: 2px 0 10px; }
.product-mini .pm-cover { width: 56px; height: 56px; border-radius: 9px; overflow: hidden; flex: none; background: #111827; }
.product-mini .pm-cover img { width: 100%; height: 100%; object-fit: cover; }
.product-mini .pm-main { flex: 1; min-width: 0; }
.product-mini .pm-main h4 { margin: 1px 0 3px; font-size: 12.5px; font-weight: 800; line-height: 1.35; }
.product-mini .pm-main p { margin: 0; font-size: 9px; color: #b6bcc8; }
.product-mini .pm-price { font-size: 14px; font-weight: 900; color: var(--brand); text-align: right; }
.product-mini .pm-price span { display: block; font-size: 9px; color: #b6bcc8; font-weight: 400; margin-top: 3px; }
.form-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 35;
  height: calc(66px + var(--safe-b)); padding: 0 13px var(--safe-b);
  background: rgba(255,255,255,.97); border-top: 1px solid #f1f5f9; display: flex; align-items: center; gap: 12px;
}
.form-bar .total { flex: 1; }
.form-bar .total span { font-size: 10px; color: #6b7280; display: block; }
.form-bar .total b { font-size: 20px; color: var(--brand); }
.form-bar .submit { width: 168px; height: 44px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 800; font-size: 14px; box-shadow: 0 8px 18px rgba(236,72,153,.25); }
.form-tip { margin: 9px 16px 4px; font-size: 9.5px; color: #b6bcc8; line-height: 1.7; }

/* ---------- 订单列表 ---------- */
.orders-page { padding-bottom: 12px; }
.order-tabs { display: flex; gap: 7px; overflow-x: auto; padding: 10px 12px 8px; position: sticky; top: calc(52px + var(--safe-t)); z-index: 20; background: rgba(253,242,248,.96); backdrop-filter: blur(10px); }
.order-tab { flex: none; height: 29px; padding: 0 13px; border-radius: 999px; background: #fff; color: #6b7280; font-size: 11.5px; font-weight: 700; box-shadow: 0 2px 7px rgba(17,24,39,.04); }
.order-tab.active { background: var(--grad); color: #fff; box-shadow: 0 5px 12px rgba(168,85,247,.22); }
.order-card { margin: 0 12px 10px; background: #fff; border-radius: 14px; padding: 12px; box-shadow: 0 3px 12px rgba(17,24,39,.045); }
.order-card-head { display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: #9ca3af; padding-bottom: 9px; border-bottom: 1px solid #f8fafc; }
.order-card-head .status { font-size: 11px; font-weight: 800; }
.st-pay { color: var(--brand); }
.st-wait { color: #f59e0b; }
.st-run { color: #3b82f6; }
.st-done { color: #10b981; }
.st-aftersale { color: #f97316; }
.order-card-body { display: flex; gap: 9px; padding: 10px 0 8px; }
.order-card-body .oc-cover { width: 62px; height: 62px; border-radius: 9px; overflow: hidden; flex: none; background: #111827; }
.order-card-body .oc-cover img { width: 100%; height: 100%; object-fit: cover; }
.order-card-body .oc-main { flex: 1; min-width: 0; }
.order-card-body h4 { margin: 1px 0 4px; font-size: 12.5px; font-weight: 800; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.order-card-body p { margin: 0; font-size: 9.5px; color: #b6bcc8; line-height: 1.5; }
.order-card-body .oc-amount { text-align: right; flex: none; font-size: 14px; font-weight: 900; color: #111827; }
.order-card-body .oc-amount span { display: block; font-size: 9px; color: #b6bcc8; font-weight: 400; margin-top: 3px; }
.order-card-foot { display: flex; align-items: center; justify-content: flex-end; gap: 7px; padding-top: 9px; border-top: 1px solid #f8fafc; }
.order-btn { height: 28px; padding: 0 11px; border-radius: 999px; font-size: 10.5px; font-weight: 700; color: #6b7280; border: 1px solid #e5e7eb; background: #fff; }
.order-btn.primary { background: var(--grad); color: #fff; border-color: transparent; }
.order-progress { display: flex; align-items: center; gap: 6px; font-size: 10px; color: #3b82f6; background: #eff6ff; border-radius: 7px; padding: 6px 8px; margin-bottom: 2px; }
.order-progress svg { width: 13px; height: 13px; }
.order-search { margin: 10px 12px 0; }

/* ---------- 选择选手 ---------- */
.choose-hero { background: linear-gradient(160deg,#fff1f6,#fdf2f8 65%,rgba(253,242,248,0)); padding: calc(9px + var(--safe-t)) 16px 5px; }
.choose-title { display: flex; align-items: center; justify-content: space-between; }
.choose-title h2 { margin: 0; font-size: 18px; font-weight: 900; }
.choose-title .online { font-size: 10px; color: #10b981; background: #ecfdf5; border-radius: 999px; padding: 4px 9px; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.online-dot { width: 5px; height: 5px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,.12); }
.choose-title p { margin: 4px 0 0; font-size: 10.5px; color: #9ca3af; }
.rank-link { font-size: 10.5px; color: #6b7280; display: flex; align-items: center; gap: 2px; }
.search-box { display: flex; align-items: center; gap: 7px; height: 39px; margin-top: 11px; border-radius: 999px; background: #fff; padding: 0 13px; box-shadow: 0 3px 12px rgba(17,24,39,.06); color: #b6bcc8; }
.search-box input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 12px; color: #111827; }
.search-box input::placeholder { color: #b6bcc8; }
.player-tabs { display: flex; gap: 18px; padding: 12px 16px 2px; border-bottom: 1px solid #f8e8f0; }
.player-tab { position: relative; padding: 4px 0 9px; font-size: 12.5px; color: #9ca3af; font-weight: 700; }
.player-tab.active { color: #111827; font-weight: 900; }
.player-tab.active::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 17px; height: 3px; border-radius: 3px; background: var(--grad); }
.player-list { padding: 10px 12px; display: flex; flex-direction: column; gap: 9px; }
.player-card { background: #fff; border-radius: 14px; padding: 12px; box-shadow: 0 3px 12px rgba(17,24,39,.05); display: flex; gap: 10px; }
.player-avatar { width: 54px; height: 54px; border-radius: 16px; flex: none; position: relative; }
.player-avatar .avatar { width: 100%; height: 100%; border-radius: 16px; font-size: 19px; }
.player-avatar .on { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #10b981; border: 2px solid #fff; }
.player-main { flex: 1; min-width: 0; }
.player-name { display: flex; align-items: center; gap: 5px; }
.player-name b { font-size: 14px; font-weight: 900; }
.player-name .lv { height: 16px; padding: 0 5px; border-radius: 4px; background: linear-gradient(90deg,#fbbf24,#f59e0b); color: #fff; font-size: 8px; font-weight: 800; display: inline-flex; align-items: center; }
.player-meta { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 9.5px; color: #9ca3af; }
.player-meta .star { color: #f59e0b; font-weight: 800; }
.player-tags { display: flex; gap: 4px; margin-top: 6px; }
.player-tags span { font-size: 8.5px; color: #7c3aed; background: #f5f3ff; border-radius: 4px; padding: 2px 5px; }
.player-side { flex: none; text-align: right; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.player-side .pp { font-size: 15px; font-weight: 900; color: var(--brand); }
.player-side .pp small { font-size: 8px; font-weight: 600; }
.player-side .choose-btn { height: 27px; padding: 0 11px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 10px; font-weight: 800; margin-top: 6px; }
.player-stats { display: flex; gap: 12px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed #f5e8ef; font-size: 9px; color: #b6bcc8; }
.player-stats b { color: #4b5563; font-size: 10.5px; }

/* ---------- 聊天 ---------- */
.chat-page { padding: 4px 0 10px; }
.chat-tabs { display: flex; gap: 18px; padding: 8px 16px 4px; border-bottom: 1px solid #fff1f6; }
.chat-tab { padding: 6px 0 8px; font-size: 12px; color: #9ca3af; font-weight: 700; position: relative; }
.chat-tab.active { color: #111827; font-weight: 900; }
.chat-tab.active::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 16px; height: 3px; border-radius: 3px; background: var(--grad); }
.chat-list { margin: 10px 12px; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 3px 14px rgba(17,24,39,.045); }
.chat-item { display: flex; gap: 10px; padding: 13px 13px; align-items: center; width: 100%; text-align: left; border-bottom: 1px solid #fbf7f9; }
.chat-item:last-child { border-bottom: 0; }
.chat-item .avatar { width: 47px; height: 47px; font-size: 16px; border-radius: 13px; }
.chat-main { flex: 1; min-width: 0; }
.chat-main .top { display: flex; align-items: baseline; gap: 5px; }
.chat-main .top b { font-size: 13.5px; font-weight: 800; }
.chat-main .top .official { height: 15px; padding: 0 4px; border-radius: 4px; background: #eff6ff; color: #3b82f6; font-size: 8px; font-weight: 700; display: inline-flex; align-items: center; }
.chat-main .top time { margin-left: auto; font-size: 8.5px; color: #c3c8d2; font-weight: 400; }
.chat-main .msg { margin-top: 4px; font-size: 10.5px; color: #9ca3af; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding-right: 12px; }
.chat-item .unread { flex: none; min-width: 17px; height: 17px; border-radius: 9px; background: #ef4444; color: #fff; font-size: 8.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.chat-room { background: #f7f8fa; min-height: 100%; padding-bottom: 74px; }
.chat-room-head { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-bottom: 1px solid #f1f5f9; }
.chat-room-status { text-align: center; font-size: 9px; color: #10b981; padding: 5px 0 7px; background: #fff; border-bottom: 1px solid #f1f5f9; }
.chat-day { text-align: center; font-size: 9px; color: #b6bcc8; padding: 14px 0 8px; }
.chat-msg { display: flex; gap: 8px; padding: 0 13px 13px; align-items: flex-start; }
.chat-msg .avatar { width: 33px; height: 33px; font-size: 11px; border-radius: 10px; flex: none; }
.chat-msg .bubble { max-width: 72%; background: #fff; border-radius: 3px 13px 13px 13px; padding: 9px 11px; font-size: 11.5px; line-height: 1.65; color: #374151; box-shadow: 0 2px 6px rgba(17,24,39,.04); }
.chat-msg.me { flex-direction: row-reverse; }
.chat-msg.me .bubble { background: linear-gradient(135deg, #f9a8d4, #c084fc); color: #fff; border-radius: 13px 3px 13px 13px; box-shadow: 0 4px 12px rgba(236,72,153,.15); }
.chat-msg .name { font-size: 8px; color: #b6bcc8; margin-bottom: 3px; }
.chat-input-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 40; padding: 8px 10px calc(8px + var(--safe-b)); background: #fff; border-top: 1px solid #f1f5f9; display: flex; align-items: center; gap: 7px; }
.chat-input-bar .ci { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: #9ca3af; flex: none; }
.chat-input-bar input { flex: 1; height: 36px; border-radius: 18px; border: 0; background: #f3f4f6; padding: 0 13px; font-size: 12px; outline: 0; }
.chat-send { height: 32px; padding: 0 14px; border-radius: 16px; background: var(--grad); color: #fff; font-size: 11px; font-weight: 700; }

/* ---------- 我的 ---------- */
.profile-page { padding-bottom: 20px; }
.profile-hero {
  position: relative; overflow: hidden; padding: calc(20px + var(--safe-t)) 16px 44px;
  background:
    radial-gradient(280px 180px at 88% 8%, rgba(255,255,255,.14), transparent 65%),
    radial-gradient(240px 200px at 10% 100%, rgba(244,114,182,.35), transparent 70%),
    linear-gradient(135deg, #2b0a1e 0%, #4c0d35 45%, #79144e 100%);
  color: #fff;
}
.profile-hero::before { content: ""; position: absolute; right: -58px; top: -64px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 0 0 28px rgba(255,255,255,.035), 0 0 0 58px rgba(255,255,255,.025); }
.profile-hero::after { content: "KM"; position: absolute; right: 18px; bottom: 18px; font-size: 64px; font-style: italic; font-weight: 900; color: rgba(255,255,255,.035); letter-spacing: -4px; }
.profile-user { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.profile-avatar { width: 62px; height: 62px; border-radius: 19px; border: 2px solid rgba(255,255,255,.45); padding: 2px; background: rgba(255,255,255,.08); }
.profile-avatar .avatar { width: 100%; height: 100%; border-radius: 15px; font-size: 22px; }
.profile-user-main { flex: 1; min-width: 0; }
.profile-user-main h3 { margin: 0; font-size: 20px; font-weight: 900; letter-spacing: .5px; display: flex; align-items: center; gap: 7px; }
.member-tag { height: 18px; padding: 0 7px; border-radius: 5px; background: linear-gradient(90deg,#f7d78a,#d4a43a); color: #442800; font-size: 8px; font-weight: 900; display: inline-flex; align-items: center; letter-spacing: .5px; }
.profile-user-main p { margin: 5px 0 0; font-size: 10px; color: rgba(255,255,255,.58); display: flex; align-items: center; gap: 6px; }
.profile-user-main p .id { background: rgba(255,255,255,.1); padding: 2px 6px; border-radius: 4px; font-family: ui-monospace, monospace; font-size: 8.5px; }
.profile-login-btn { height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); color: #fff; font-size: 10.5px; font-weight: 700; background: rgba(255,255,255,.08); backdrop-filter: blur(4px); }
.profile-gear { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); }
.balance-card { position: relative; z-index: 3; margin: -30px 13px 0; background: #fff; border-radius: 16px; padding: 14px 14px 12px; box-shadow: 0 10px 28px rgba(17,24,39,.08); }
.balance-top { display: flex; align-items: center; gap: 8px; }
.balance-icon { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(145deg,#dcfce7,#bbf7d0); color: #16a34a; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(22,163,74,.14); }
.balance-main { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 7px; }
.balance-main .num { font-size: 25px; font-weight: 900; letter-spacing: -.5px; }
.balance-main .num small { font-size: 12px; margin-right: 2px; }
.balance-main .label { font-size: 9.5px; color: #9ca3af; margin-top: 2px; }
.balance-actions { display: flex; gap: 6px; }
.balance-actions button { height: 28px; padding: 0 12px; border-radius: 999px; font-size: 10.5px; font-weight: 800; }
.balance-actions .recharge { background: var(--grad); color: #fff; box-shadow: 0 4px 10px rgba(236,72,153,.18); }
.balance-actions .detail { background: #f8fafc; color: #6b7280; }
.profile-stats { display: grid; grid-template-columns: repeat(3,1fr); padding: 10px 0 2px; margin-top: 8px; border-top: 1px solid #f8fafc; }
.profile-stat { text-align: center; position: relative; }
.profile-stat + .profile-stat::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 17px; background: #f1f5f9; }
.profile-stat b { display: block; font-size: 15px; font-weight: 900; }
.profile-stat span { font-size: 9px; color: #9ca3af; }
.profile-section { margin: 14px 13px 0; }
.profile-section-title { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 9px; }
.profile-section-title h4 { margin: 0; font-size: 14px; font-weight: 900; }
.profile-section-title a { font-size: 9.5px; color: #b6bcc8; display: flex; align-items: center; gap: 2px; }
.action-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; }
.action-tile { position: relative; height: 51px; border-radius: 11px; color: #fff; display: flex; align-items: center; gap: 7px; padding: 0 11px; font-size: 12.5px; font-weight: 800; overflow: hidden; box-shadow: 0 4px 12px rgba(17,24,39,.07); }
.action-tile::after { content: ""; position: absolute; right: -14px; top: -20px; width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,.12); }
.action-tile svg { width: 18px; height: 18px; }
.action-tile .lock { position: absolute; right: 7px; top: 6px; opacity: .8; width: 10px; height: 10px; }
.at-coral { background: linear-gradient(120deg,#fb7185,#f43f5e); }
.at-green { background: linear-gradient(120deg,#34d399,#10b981); }
.at-amber { background: linear-gradient(120deg,#fbbf24,#f59e0b); }
.at-yellow { background: linear-gradient(120deg,#fcd34d,#fbbf24); }
.at-white { background: #fff; color: #374151; box-shadow: 0 2px 10px rgba(17,24,39,.05); }
.at-white svg { color: var(--brand); }
.at-gray { background: linear-gradient(120deg,#64748b,#475569); }
.at-red { background: linear-gradient(120deg,#f87171,#ef4444); }
.profile-list { background: #fff; border-radius: 13px; overflow: hidden; box-shadow: 0 2px 10px rgba(17,24,39,.04); }
.profile-row { display: flex; align-items: center; gap: 9px; width: 100%; padding: 12px 12px; text-align: left; border-bottom: 1px solid #f8fafc; font-size: 12px; }
.profile-row:last-child { border-bottom: 0; }
.profile-row .pr-icon { width: 27px; height: 27px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.profile-row .pr-icon svg { width: 15px; height: 15px; }
.pr-icon.pink { background: #fdf2f8; color: #ec4899; }
.pr-icon.purple { background: #f5f3ff; color: #8b5cf6; }
.pr-icon.amber { background: #fffbeb; color: #f59e0b; }
.pr-icon.blue { background: #eff6ff; color: #3b82f6; }
.pr-icon.green { background: #ecfdf5; color: #10b981; }
.profile-row .pr-main { flex: 1; min-width: 0; }
.profile-row .pr-main b { display: block; font-size: 12px; font-weight: 700; }
.profile-row .pr-main span { display: block; font-size: 9px; color: #b6bcc8; margin-top: 2px; }
.profile-row .pr-extra { font-size: 9.5px; color: #b6bcc8; }
.profile-row .chev { color: #d1d5db; }
.profile-footer { text-align: center; padding: 18px 20px 6px; }
.profile-footer .brand-line { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; color: #9ca3af; }
.profile-footer .brand-mark { width: 25px; height: 25px; border-radius: 7px; font-size: 11px; }
.profile-footer .dev-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 9px; color: #c084fc; font-size: 10px; font-weight: 700; }
.profile-footer .copy { font-size: 8.5px; color: #d1d5db; margin-top: 7px; letter-spacing: .5px; }

/* ---------- 邀请 / 代理 ---------- */
.agent-hero { position: relative; overflow: hidden; min-height: 128px; padding: calc(10px + var(--safe-t)) 16px 58px; background: linear-gradient(150deg,#312e81 0%,#4c1d95 45%,#7e22ce 100%); color: #fff; }
.agent-hero::before { content: ""; position: absolute; width: 170px; height: 170px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; right: -40px; top: -20px; box-shadow: 0 0 0 24px rgba(255,255,255,.04), 0 0 0 48px rgba(255,255,255,.03); }
.agent-hero::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #fbbf24; right: 40px; top: 30px; box-shadow: 0 0 18px #fbbf24, -120px 50px 0 -2px rgba(255,255,255,.4), 100px 120px 0 -3px rgba(255,255,255,.35); }
.agent-user { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; position: relative; z-index: 1; }
.agent-user .avatar { width: 30px; height: 30px; font-size: 11px; border-radius: 9px; }
.agent-card { position: relative; z-index: 3; margin: -45px 13px 0; background: #fff; border-radius: 17px; padding: 15px 14px; box-shadow: 0 10px 30px rgba(49,46,129,.14); }
.agent-balance-top { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: #6b7280; font-weight: 700; }
.realtime { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 999px; background: #ecfdf5; color: #10b981; font-size: 9px; font-weight: 700; }
.agent-amount { margin: 8px 0 10px; font-size: 32px; font-weight: 900; letter-spacing: -1px; }
.agent-amount small { font-size: 15px; }
.agent-total { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid #f8fafc; font-size: 10px; color: #9ca3af; }
.agent-total b { color: #374151; font-size: 13px; }
.withdraw-btn { height: 30px; padding: 0 13px; border-radius: 999px; background: #eef2ff; color: #6366f1; font-size: 10px; font-weight: 800; display: flex; align-items: center; gap: 2px; }
.agent-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; margin: 12px 13px 0; }
.agent-stat { background: #fff; border-radius: 12px; padding: 12px; box-shadow: 0 2px 9px rgba(17,24,39,.04); }
.agent-stat .as-top { display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: #9ca3af; }
.agent-stat .as-top svg { width: 15px; height: 15px; color: #c084fc; }
.agent-stat b { display: block; font-size: 20px; font-weight: 900; margin: 5px 0 2px; }
.agent-stat span { font-size: 9px; color: #b6bcc8; }
.agent-rows { margin: 12px 13px 0; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(17,24,39,.04); }
.agent-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 13px; text-align: left; border-bottom: 1px solid #f8fafc; }
.agent-row:last-child { border-bottom: 0; }
.agent-row .ar-icon { width: 33px; height: 33px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.agent-row .ar-icon.violet { background: #f5f3ff; color: #8b5cf6; }
.agent-row .ar-icon.amber { background: #fffbeb; color: #f59e0b; }
.agent-row .ar-icon.green { background: #ecfdf5; color: #10b981; }
.agent-row .ar-main { flex: 1; }
.agent-row .ar-main b { display: block; font-size: 12.5px; font-weight: 800; }
.agent-row .ar-main span { display: block; font-size: 9px; color: #b6bcc8; margin-top: 2px; }
.agent-invite { margin: 12px 13px 0; border-radius: 14px; padding: 15px; background: linear-gradient(120deg,#faf5ff,#fdf2f8); border: 1px solid #f3e8ff; display: flex; align-items: center; gap: 10px; }
.agent-invite .ai-main { flex: 1; }
.agent-invite h4 { margin: 0 0 4px; font-size: 13px; font-weight: 900; }
.agent-invite p { margin: 0; font-size: 9.5px; color: #9ca3af; }
.agent-invite button { height: 32px; padding: 0 14px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 10.5px; font-weight: 800; }

/* ---------- 排行榜 ---------- */
.rank-top { padding: 8px 13px 14px; background: linear-gradient(180deg,#4a0d33,#6b1049 55%,#7e1b53); color: #fff; border-radius: 0 0 18px 18px; position: relative; overflow: hidden; }
.rank-top::before { content: ""; position: absolute; inset: 0; background: radial-gradient(240px 140px at 50% 0%, rgba(255,255,255,.12), transparent 70%); }
.rank-title { text-align: center; font-size: 21px; font-weight: 900; letter-spacing: 5px; margin: 4px 0 3px; position: relative; }
.rank-sub { text-align: center; font-size: 8px; letter-spacing: 4px; color: rgba(255,255,255,.45); position: relative; }
.rank-seg { display: flex; background: rgba(0,0,0,.22); border-radius: 999px; padding: 3px; margin-top: 13px; position: relative; }
.rank-seg button { flex: 1; height: 31px; border-radius: 999px; color: rgba(255,255,255,.55); font-size: 11px; font-weight: 700; }
.rank-seg button.active { background: #f3e8ff; color: #6b1049; font-weight: 900; box-shadow: 0 2px 6px rgba(0,0,0,.1); }
.rank-time { display: flex; justify-content: center; gap: 26px; margin-top: 11px; font-size: 10px; color: rgba(255,255,255,.5); position: relative; }
.rank-time button { position: relative; padding: 2px 0; color: rgba(255,255,255,.5); font-size: 10px; }
.rank-time button.active { color: #f5d0a0; font-weight: 800; }
.rank-tip { margin-top: 9px; text-align: center; font-size: 8.5px; color: rgba(255,255,255,.38); position: relative; }
.rank-body { padding: 0 12px 16px; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 7px; padding: 18px 2px 4px; }
.podium-item { flex: 1; max-width: 112px; text-align: center; }
.podium-avatar { width: 48px; height: 48px; border-radius: 50%; margin: 0 auto; position: relative; }
.podium-avatar .avatar { width: 100%; height: 100%; font-size: 17px; border-radius: 50%; border: 2px solid rgba(255,255,255,.75); }
.podium-avatar .crown { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-size: 15px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.2)); }
.podium-item.first .podium-avatar { width: 58px; height: 58px; }
.podium-name { font-size: 10.5px; font-weight: 800; margin-top: 7px; }
.podium-val { font-size: 9px; color: #b45309; margin-top: 2px; }
.podium-base { margin-top: 7px; height: 34px; border-radius: 8px 8px 0 0; background: linear-gradient(180deg,#fef3c7,#fde68a); border: 1px solid rgba(245,158,11,.2); border-bottom: 0; display: flex; align-items: flex-start; justify-content: center; padding-top: 5px; font-size: 14px; font-weight: 900; color: #b45309; }
.podium-item.first .podium-base { height: 48px; background: linear-gradient(180deg,#fef9c3,#fcd34d); }
.podium-item.third .podium-base { height: 26px; }
.rank-list { margin-top: 8px; }
.rank-row { display: flex; align-items: center; gap: 9px; padding: 10px 4px; border-bottom: 1px solid #f8fafc; }
.rank-row .no { width: 20px; text-align: center; font-size: 13px; font-weight: 900; color: #c3c8d2; font-style: italic; }
.rank-row .avatar { width: 33px; height: 33px; font-size: 12px; border-radius: 10px; }
.rank-row .rr-main { flex: 1; min-width: 0; }
.rank-row .rr-main b { font-size: 11.5px; display: flex; align-items: center; gap: 4px; }
.rank-row .rr-main span { font-size: 9px; color: #b6bcc8; }
.rank-row .rr-val { font-size: 12px; font-weight: 900; color: var(--brand); }
.rank-row .rr-val small { font-size: 8px; color: #b6bcc8; font-weight: 400; display: block; text-align: right; }
.rank-hero-note { text-align: center; font-size: 9px; color: #b6bcc8; padding: 10px; }

/* ---------- N单有礼 ---------- */
.lucky-rule { margin: 10px 12px 0; border-radius: 12px; background: #fffdf2; border: 1px solid #fef3c7; padding: 11px 12px; }
.lucky-rule-head { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 900; color: #92400e; }
.lucky-rule-head .ri { width: 19px; height: 19px; border-radius: 50%; background: #f59e0b; color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.lucky-rule-head button { margin-left: auto; color: #b45309; font-size: 9px; display: flex; align-items: center; gap: 2px; }
.lucky-rule p { margin: 7px 0 0; font-size: 9.5px; color: #a16207; line-height: 1.7; }
.lucky-banner { margin: 10px 12px 0; border-radius: 14px; padding: 14px; color: #fff; background: linear-gradient(120deg,#f472b6,#c084fc 55%,#8b5cf6); box-shadow: 0 8px 20px rgba(168,85,247,.2); position: relative; overflow: hidden; }
.lucky-banner::after { content: "🎁"; position: absolute; right: 12px; bottom: -12px; font-size: 66px; opacity: .16; transform: rotate(-12deg); }
.lucky-banner .lb-title { display: flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 900; }
.lucky-banner .lb-title .gift { width: 32px; height: 32px; border-radius: 9px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; }
.lucky-banner .lb-sub { font-size: 9.5px; opacity: .8; margin-top: 3px; }
.lucky-banner .lb-desc { font-size: 9px; opacity: .72; margin-top: 10px; line-height: 1.6; }
.lucky-progress { margin: 10px 12px 0; background: #fff; border-radius: 14px; padding: 14px; box-shadow: 0 3px 12px rgba(17,24,39,.045); }
.lp-head { display: flex; justify-content: space-between; align-items: center; }
.lp-head b { font-size: 13px; font-weight: 900; }
.lp-head span { font-size: 9.5px; color: #b6bcc8; }
.progress-track { height: 7px; border-radius: 4px; background: #fdf2f8; margin: 11px 0 12px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 4px; background: var(--grad); width: 30%; position: relative; }
.progress-fill::after { content: ""; position: absolute; right: 0; top: 0; width: 8px; height: 100%; background: rgba(255,255,255,.55); }
.milestones { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.milestone { border: 1px solid #f1f5f9; border-radius: 9px; padding: 8px 6px; text-align: center; background: #fafafa; }
.milestone .ms-icon { width: 30px; height: 30px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 5px; font-size: 15px; filter: grayscale(.4); }
.milestone b { display: block; font-size: 10px; color: #374151; }
.milestone span { font-size: 8px; color: #b6bcc8; }
.milestone.done { background: #fdf2f8; border-color: #fbcfe8; }
.milestone.done .ms-icon { filter: none; background: #fff; box-shadow: 0 2px 8px rgba(236,72,153,.14); }
.lucky-empty { margin: 12px 12px 0; background: #fff; border-radius: 14px; padding: 30px 12px; text-align: center; box-shadow: 0 3px 12px rgba(17,24,39,.04); }
.lucky-empty .le-icon { width: 56px; height: 56px; border-radius: 50%; background: #fdf2f8; color: #f472b6; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.lucky-empty h4 { margin: 0 0 5px; font-size: 13px; }
.lucky-empty p { margin: 0; font-size: 10px; color: #b6bcc8; }

/* ---------- 弹层 / 通用 sheet ---------- */
.overlay { position: absolute; inset: 0; z-index: 90; background: rgba(17,24,39,.45); display: flex; align-items: flex-end; animation: fadeIn .2s ease both; backdrop-filter: blur(1px); }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.sheet {
  width: 100%; background: #fff; border-radius: 22px 22px 0 0; max-height: 88%;
  padding: 0 16px calc(16px + var(--safe-b)); overflow-y: auto; animation: sheetUp .28s cubic-bezier(.22,.8,.25,1) both;
  position: relative;
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
.sheet-handle { width: 38px; height: 4px; border-radius: 2px; background: #e5e7eb; margin: 9px auto 13px; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 10px; }
.sheet-head h3 { margin: 0; font-size: 18px; font-weight: 900; letter-spacing: .3px; }
.sheet-head p { margin: 4px 0 0; font-size: 10.5px; color: #9ca3af; line-height: 1.6; }
.sheet-close { width: 30px; height: 30px; border-radius: 50%; background: #f3f4f6; color: #9ca3af; display: flex; align-items: center; justify-content: center; flex: none; margin-top: -3px; }
.sheet-body { padding-top: 2px; }
.sheet-footer { padding-top: 14px; }

/* 选择游戏 */
.zone-sheet { background: linear-gradient(180deg,#fff1f2,#ffe4e6); }
.zone-sheet .sheet-head h3 { font-size: 20px; }
.zone-sheet .sheet-head p { font-size: 11px; }
.zone-grid { position: relative; display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin: 24px 0 14px; }
.zone-pick { position: relative; background: #fff; border: 1.5px solid transparent; border-radius: 13px; height: 64px; display: flex; align-items: center; gap: 8px; padding: 0 10px; text-align: left; box-shadow: 0 3px 10px rgba(190,24,93,.04); }
.zone-pick img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.zone-pick b { font-size: 12.5px; font-weight: 800; }
.zone-pick .zr { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid #e5e7eb; background: #fff; }
.zone-pick.active { border-color: var(--brand); background: #fff7fa; box-shadow: 0 4px 14px rgba(236,72,153,.12); }
.zone-pick.active .zr { border-color: var(--brand); }
.zone-pick.active .zr::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--brand); }
.zone-badge { position: absolute; right: 0; top: -58px; width: 44px; height: 44px; border-radius: 50%; background: #fff; padding: 4px; box-shadow: 0 4px 12px rgba(190,24,93,.14); border: 1px solid #fce7f3; }
.zone-badge img { width: 100%; height: 100%; border-radius: 50%; }

/* 登录 */
.login-sheet { border-radius: 24px 24px 0 0; }
.login-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 5px; }
.login-brand .brand-mark { width: 38px; height: 38px; border-radius: 11px; font-size: 16px; }
.login-brand b { font-size: 18px; font-weight: 900; }
.login-brand span { display: block; font-size: 8px; color: #b6bcc8; letter-spacing: 2px; margin-top: 1px; }
.login-form { margin-top: 13px; }
.login-input { display: flex; align-items: center; gap: 7px; height: 46px; border-radius: 12px; background: #f8fafc; border: 1px solid #eef2f7; padding: 0 12px; margin-bottom: 9px; }
.login-input svg { color: #b6bcc8; flex: none; }
.login-input input { flex: 1; border: 0; background: transparent; outline: 0; font-size: 13px; }
.login-input .code-btn { flex: none; font-size: 10px; color: var(--brand); font-weight: 700; padding: 5px 0 5px 8px; border-left: 1px solid #e5e7eb; }
.login-agree { display: flex; gap: 7px; align-items: flex-start; margin: 10px 0 13px; font-size: 9.5px; color: #9ca3af; line-height: 1.6; }
.login-agree > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.login-agree .check { width: 16px; height: 16px; border-radius: 5px; margin-top: 1px; }
.login-agree .check svg { width: 10px; height: 10px; }
.login-alt { display: flex; align-items: center; gap: 8px; margin: 14px 0; color: #d1d5db; font-size: 9px; }
.login-alt::before, .login-alt::after { content: ""; flex: 1; height: 1px; background: #f1f5f9; }
.login-demo { width: 100%; height: 40px; border-radius: 999px; background: #f5f3ff; color: #7c3aed; font-size: 11.5px; font-weight: 800; margin-top: 8px; }
.login-note { text-align: center; font-size: 8.5px; color: #c3c8d2; margin-top: 10px; line-height: 1.6; }

/* 租户 / 开发者 */
.tenant-list { display: flex; flex-direction: column; gap: 8px; }
.tenant-item { display: flex; align-items: center; gap: 10px; padding: 11px; border-radius: 12px; border: 1.5px solid #f1f5f9; background: #fff; text-align: left; }
.tenant-item.active { border-color: var(--brand); background: #fff7fa; }
.tenant-item .t-mark { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; font-style: italic; font-size: 16px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.tenant-item .t-main { flex: 1; }
.tenant-item .t-main b { display: block; font-size: 13px; font-weight: 800; }
.tenant-item .t-main span { display: block; font-size: 9px; color: #b6bcc8; margin-top: 2px; }
.tenant-item .t-radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #e5e7eb; }
.tenant-item.active .t-radio { border-color: var(--brand); background: radial-gradient(circle, var(--brand) 0 4px, #fff 5px); }
.dev-sheet { max-height: 92%; }
.dev-card { border-radius: 12px; background: #f8fafc; padding: 12px; margin-bottom: 10px; }
.dev-card .dc-head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 800; color: #374151; }
.dev-kv { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 10px; color: #6b7280; border-bottom: 1px dashed #e5e7eb; }
.dev-kv:last-child { border-bottom: 0; }
.dev-kv code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #7c3aed; font-size: 9.5px; word-break: break-all; text-align: right; }
.seg-toggle { display: flex; background: #eef2f7; border-radius: 8px; padding: 2px; margin-top: 8px; }
.seg-toggle button { flex: 1; height: 28px; border-radius: 6px; font-size: 10px; font-weight: 700; color: #6b7280; }
.seg-toggle button.active { background: #fff; color: #111827; box-shadow: 0 1px 4px rgba(17,24,39,.1); }
.endpoint-group { margin-bottom: 9px; }
.endpoint-group h5 { margin: 8px 0 5px; font-size: 10px; color: #9ca3af; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.endpoint { display: flex; align-items: center; gap: 7px; padding: 5px 0; font-size: 9.5px; border-bottom: 1px solid #f8fafc; }
.endpoint .method { flex: none; width: 34px; height: 17px; border-radius: 4px; font-size: 8px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.method.get { background: #ecfdf5; color: #059669; }
.method.post { background: #eff6ff; color: #2563eb; }
.method.put { background: #fffbeb; color: #d97706; }
.endpoint code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #4b5563; font-size: 9px; flex: 1; word-break: break-all; }
.endpoint .mock { font-size: 7.5px; color: #c084fc; background: #f5f3ff; border-radius: 3px; padding: 1px 4px; }
.dev-note { font-size: 9px; color: #9ca3af; line-height: 1.7; margin: 2px 0 10px; }
.dev-actions { display: flex; gap: 8px; }
.dev-actions .btn { flex: 1; height: 38px; font-size: 11px; }

/* 通用信息弹层 */
.info-body { font-size: 12px; color: #4b5563; line-height: 1.8; }
.info-body h4 { margin: 14px 0 5px; font-size: 13px; color: #111827; }
.info-body h4:first-child { margin-top: 0; }
.info-body p { margin: 0 0 7px; }
.info-body ul { margin: 4px 0 8px; padding-left: 17px; }
.info-body li { margin-bottom: 4px; }
.info-body .note-box { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 9px; padding: 9px 10px; font-size: 10.5px; line-height: 1.7; margin: 9px 0; }
.info-form { display: flex; flex-direction: column; gap: 9px; margin-top: 10px; }
.info-form textarea { min-height: 88px; border: 1px solid #eef2f7; background: #f8fafc; border-radius: 10px; padding: 10px; font-size: 12px; outline: 0; resize: vertical; }
.recharge-amounts { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 10px 0; }
.recharge-amount { height: 58px; border-radius: 10px; border: 1px solid #eef2f7; background: #fafafa; font-size: 17px; font-weight: 900; color: #374151; }
.recharge-amount.active { border-color: var(--brand); background: var(--brand-softer); color: var(--brand); }
.recharge-amount span { display: block; font-size: 8px; font-weight: 400; color: #b6bcc8; margin-top: 2px; }
.coupon-card { display: flex; border-radius: 12px; overflow: hidden; margin-bottom: 8px; border: 1px solid #fce7f3; background: #fff; }
.coupon-left { width: 86px; background: linear-gradient(160deg,#fdf2f8,#fce7f3); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--brand); border-right: 1px dashed #fbcfe8; }
.coupon-left b { font-size: 21px; font-weight: 900; }
.coupon-left b small { font-size: 10px; }
.coupon-left span { font-size: 8px; color: #c084fc; }
.coupon-main { flex: 1; padding: 10px; }
.coupon-main h5 { margin: 0 0 4px; font-size: 11.5px; }
.coupon-main p { margin: 0; font-size: 8.5px; color: #b6bcc8; }
.coupon-main .expire { margin-top: 6px; font-size: 8px; color: #d1d5db; }

/* 规格选择 / 主播 */
.option-list { display: flex; flex-direction: column; gap: 8px; }
.option-item { display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid #eef2f7; border-radius: 10px; background: #fff; text-align: left; }
.option-item.active { border-color: var(--brand); background: #fff7fa; }
.option-item .avatar { width: 34px; height: 34px; font-size: 12px; }
.option-item .om { flex: 1; }
.option-item .om b { display: block; font-size: 11.5px; }
.option-item .om span { font-size: 9px; color: #b6bcc8; }

/* Toast */
.toast {
  position: absolute; left: 50%; bottom: calc(92px + var(--safe-b)); transform: translate(-50%, 8px);
  z-index: 200; max-width: 82%; padding: 10px 17px; border-radius: 999px;
  background: rgba(17,24,39,.9); color: #fff; font-size: 11.5px; font-weight: 600;
  text-align: center; opacity: 0; pointer-events: none; transition: .22s ease; backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Avatar */
.avatar {
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  color: #fff; font-weight: 900; background: linear-gradient(135deg, #f472b6, #a855f7);
  overflow: hidden; flex: none; letter-spacing: -1px;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.av-1 { background: linear-gradient(135deg,#fb7185,#f43f5e); }
.av-2 { background: linear-gradient(135deg,#60a5fa,#6366f1); }
.av-3 { background: linear-gradient(135deg,#34d399,#0ea5e9); }
.av-4 { background: linear-gradient(135deg,#fbbf24,#f97316); }
.av-5 { background: linear-gradient(135deg,#c084fc,#7c3aed); }
.av-6 { background: linear-gradient(135deg,#f9a8d4,#db2777); }

/* Icon sizing safety */
.sheet-close svg { width: 16px; height: 16px; }
.pd-bar .fav svg { width: 20px; height: 20px; }
.login-input > svg { width: 18px; height: 18px; flex: none; }
.balance-icon svg { width: 15px; height: 15px; }
.rank-link svg { width: 14px; height: 14px; }
.player-side .choose-btn svg { width: 12px; height: 12px; }
.lucky-banner .gift svg { width: 18px; height: 18px; }
.lucky-empty .le-icon svg { width: 28px; height: 28px; }
.profile-row .chev svg, .agent-row .chev svg { width: 15px; height: 15px; }
.withdraw-btn svg { width: 12px; height: 12px; }
.pay-icon svg { width: 16px; height: 16px; }
.quick-icon svg, .gift-item .gi-box svg { width: 22px; height: 22px; }
.chat-input-bar .ci svg { width: 21px; height: 21px; }
.lucky-rule-head button svg { width: 12px; height: 12px; }
.agent-invite button svg { width: 12px; height: 12px; }
.dev-link svg { width: 13px; height: 13px; }

/* 底部安全区占位 */
.safe-bottom { height: var(--safe-b); }

/* ---------- 打手工作台 ---------- */
.dasher-page { padding-bottom: calc(24px + var(--safe-b)); }
.dasher-online {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px;
  border-radius: 999px; background: #f3f4f6; color: #9ca3af; font-size: 9.5px; font-weight: 700;
}
.dasher-online i { width: 6px; height: 6px; border-radius: 50%; background: #9ca3af; }
.dasher-online.on { background: #ecfdf5; color: #10b981; }
.dasher-online.on i { background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,.12); }
.dasher-hero {
  margin: 10px 12px 0; padding: 16px 14px 14px; border-radius: 16px; color: #fff;
  background: radial-gradient(300px 160px at 90% 0, rgba(244,114,182,.32), transparent 70%), linear-gradient(135deg,#1f0a21,#4c0d35 55%,#831843);
  position: relative; overflow: hidden; box-shadow: 0 10px 26px rgba(76,13,53,.18);
}
.dasher-hero::after { content: "DASHER"; position: absolute; right: 10px; bottom: 4px; font-size: 38px; font-weight: 900; font-style: italic; color: rgba(255,255,255,.04); letter-spacing: -2px; }
.dh-user { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.dh-user .avatar { width: 48px; height: 48px; font-size: 18px; border-radius: 14px; border: 1px solid rgba(255,255,255,.3); }
.dh-user h3 { margin: 0; font-size: 16px; font-weight: 900; display: flex; align-items: center; gap: 5px; }
.dh-user h3 .chip { height: 16px; font-size: 8px; }
.dh-user p { margin: 4px 0 0; font-size: 9.5px; color: rgba(255,255,255,.55); }
.dh-chat { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: flex; align-items: center; justify-content: center; }
.dh-chat svg { width: 17px; height: 17px; }
.dh-stats { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); position: relative; z-index: 1; }
.dh-stats div { text-align: center; }
.dh-stats div + div { border-left: 1px solid rgba(255,255,255,.1); }
.dh-stats b { display: block; font-size: 17px; font-weight: 900; }
.dh-stats span { display: block; font-size: 8.5px; color: rgba(255,255,255,.45); margin-top: 3px; }
.dasher-tabs { display: flex; gap: 22px; margin: 12px 14px 0; border-bottom: 1px solid #f7e9f1; }
.dasher-tab { position: relative; padding: 5px 0 9px; color: #9ca3af; font-size: 12px; font-weight: 700; }
.dasher-tab.active { color: #111827; font-weight: 900; }
.dasher-tab.active::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 17px; height: 3px; border-radius: 3px; background: var(--grad); }
.dasher-section { margin: 12px 12px 0; }
.ds-title { display: flex; align-items: baseline; justify-content: space-between; padding: 0 2px 8px; }
.ds-title h4 { margin: 0; font-size: 14px; font-weight: 900; }
.ds-title span { font-size: 9.5px; color: #b6bcc8; }
.ds-tip { margin-bottom: 9px; padding: 8px 10px; border-radius: 8px; background: #fdf2f8; color: #be185d; font-size: 9.5px; line-height: 1.6; }
.dasher-order { background: #fff; border-radius: 13px; padding: 12px; margin-bottom: 9px; box-shadow: 0 3px 12px rgba(17,24,39,.05); }
.do-head { display: flex; align-items: center; justify-content: space-between; }
.do-tag { height: 18px; padding: 0 7px; border-radius: 4px; background: #f5f3ff; color: #7c3aed; font-size: 8.5px; font-weight: 700; display: inline-flex; align-items: center; }
.do-tag.team { background: #fff7ed; color: #c2410c; }
.do-time { font-size: 8.5px; color: #c3c8d2; }
.dasher-order h4 { margin: 8px 0 3px; font-size: 13.5px; font-weight: 800; line-height: 1.4; }
.dasher-order p { margin: 0; font-size: 9.5px; color: #9ca3af; }
.do-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 10px; padding-top: 9px; border-top: 1px dashed #f5e8ef; }
.do-foot b { color: var(--brand); font-size: 18px; }
.do-foot span { display: block; font-size: 8.5px; color: #b6bcc8; margin-top: 1px; }
.do-btn { height: 29px; padding: 0 12px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 10px; font-weight: 800; }
.do-btn.ghost { background: #fff; color: var(--brand); border: 1px solid #fbcfe8; }
.do-btn + .do-btn { margin-left: 5px; }
.do-wait { font-size: 9.5px; color: #f59e0b; }
.do-team { margin-top: 8px; font-size: 9px; color: #c084fc; }
.wallet-card { border-radius: 15px; padding: 16px; color: #fff; background: linear-gradient(120deg,#4c1d95,#7e22ce 55%,#db2777); box-shadow: 0 10px 24px rgba(126,34,206,.18); }
.wallet-card span { font-size: 9.5px; opacity: .65; }
.wallet-card b { display: block; font-size: 29px; font-weight: 900; margin: 5px 0 10px; }
.wallet-card button { height: 30px; padding: 0 13px; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; font-size: 10px; font-weight: 700; border: 1px solid rgba(255,255,255,.25); }
.wallet-logs { background: #fff; border-radius: 13px; overflow: hidden; box-shadow: 0 2px 10px rgba(17,24,39,.04); }
.wallet-log { display: flex; align-items: center; justify-content: space-between; padding: 12px; border-bottom: 1px solid #f8fafc; }
.wallet-log:last-child { border-bottom: 0; }
.wallet-log b { display: block; font-size: 11.5px; }
.wallet-log span { display: block; font-size: 8.5px; color: #b6bcc8; margin-top: 2px; }
.wallet-log strong { font-size: 13px; }
.wallet-log strong.in { color: #10b981; }
.wallet-log strong.out { color: #6b7280; }
.evidence-order { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; background: #fafafa; border-radius: 10px; margin-bottom: 12px; }
.evidence-order b { font-size: 12.5px; }
.evidence-order span { font-size: 9.5px; color: #9ca3af; }
.evidence-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.evidence-slot { height: 92px; border: 1px dashed #f0d9e6; border-radius: 10px; background: #fff7fa; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: #c084fc; font-size: 9px; overflow: hidden; position: relative; }
.evidence-slot.filled { border-style: solid; border-color: #fbcfe8; }
.evidence-slot img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: .8; }
.evidence-slot span { position: relative; z-index: 1; background: rgba(255,255,255,.88); padding: 2px 5px; border-radius: 3px; }
.evidence-slot svg { width: 20px; height: 20px; }

@media (max-width: 360px) {
  .block-head h2 { font-size: 15px; }
  .p-title { font-size: 12px; }
  .quick-grid { padding: 11px 0 9px; }
  .quick-item { font-size: 9.5px; }
}


/* ================= 聚合收银台 ================= */
.cashier { padding: 2px 0 6px; }
.cashier-amount { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 16px; margin-bottom: 16px; border-radius: 14px; background: linear-gradient(135deg, #fff1f7, #f5edff); }
.cashier-amount span { font-size: 12px; color: #7d6b82; }
.cashier-amount b { font-size: 30px; color: var(--brand); letter-spacing: -1px; }
.cashier-amount small { font-size: 14px; margin-right: 2px; }
.cashier-label { font-size: 12px; color: #8b7f90; margin: 0 2px 8px; }
.pay-channels { display: flex; flex-direction: column; gap: 9px; }
.pay-channel { display: flex; align-items: center; gap: 11px; width: 100%; padding: 12px; border: 1px solid #f0e6f2; border-radius: 12px; background: #fff; text-align: left; }
.pay-channel.active { border-color: var(--brand); background: #fff7fb; box-shadow: 0 0 0 2px rgba(236, 72, 153, .08); }
.pc-logo { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800; }
.pc-logo.wechat { background: #22c55e; }
.pc-logo.alipay { background: #1677ff; }
.pc-logo.aggregate { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.pc-main { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pc-main b { font-size: 13px; color: #2f2435; }
.pc-main span { font-size: 10px; color: #a092a6; }
.pc-check { color: var(--brand); font-weight: 800; font-size: 16px; }

.cashier .note-box { font-size: 11px; line-height: 1.65; padding: 10px 12px; margin-top: 14px; }

/* ================= 打手收款码 ================= */
.payout-card { margin-top: 12px; padding: 13px; border: 1px solid #f0e6f2; border-radius: 14px; background: #fff; }
.payout-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.payout-head b { display: block; font-size: 13px; color: #3b2d42; }
.payout-head span { display: block; margin-top: 3px; font-size: 10px; color: #a092a6; }
.payout-head button { flex: none; height: 30px; padding: 0 12px; border: 1px solid var(--brand); color: var(--brand); background: #fff; border-radius: 999px; font-size: 11px; }
.payout-preview { display: flex; align-items: center; gap: 12px; margin-top: 11px; padding: 10px; border-radius: 10px; background: #fcf7fd; }
.payout-preview img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid #f1e3ef; background: #fff; }
.payout-preview b { font-size: 12px; color: #3b2d42; }
.payout-preview span { display: block; margin-top: 3px; font-size: 10px; color: #8b7f90; }
.payout-preview em { display: block; margin-top: 5px; font-style: normal; font-size: 10px; color: #10b981; }
.payout-empty { margin-top: 11px; padding: 12px; border-radius: 10px; background: #fff7ed; color: #c2410c; font-size: 11px; }
.payout-form { padding-bottom: 4px; }
.payout-upload { text-align: center; margin-bottom: 14px; }
.payout-img { width: 168px; height: 168px; margin: 0 auto 10px; border-radius: 12px; border: 1px dashed #e9d5e7; display: grid; place-items: center; background: #fcf7fd; color: #b6a8bb; font-size: 11px; overflow: hidden; }
.payout-img img { width: 100%; height: 100%; object-fit: contain; }
.payout-upload-btn { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; }
.payout-upload p { margin: 7px 0 0; font-size: 10px; color: #a092a6; }
.pc-logo.epay { background: #0ea5e9; }
.pc-logo.chpay { background: #06b6d4; }

/* 首页分类切换 */
.zone-card { border: 0; text-align: left; font-family: inherit; cursor: pointer; }
.zone-card.active { box-shadow: 0 0 0 2px rgba(236,72,153,.35), 0 10px 24px rgba(168,85,247,.18); transform: translateY(-1px); }
.home-cat-head { display: flex; align-items: center; justify-content: space-between; margin: 14px 2px 4px; padding: 10px 12px; border-radius: 12px; background: #fff7fb; border: 1px solid #fbe4f1; }
.home-cat-head span { font-size: 12px; font-weight: 700; color: var(--brand); }
.home-cat-head button { border: 0; background: transparent; color: #a855f7; font-size: 11px; }

/* ================= 余额明细 / 代理明细 / 订单详情 ================= */
.balance-detail-hero { margin: 14px 16px; padding: 20px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 12px 28px rgba(168,85,247,.2); position: relative; }
.balance-detail-hero > span { font-size: 11px; opacity: .75; }
.balance-detail-hero > b { display: block; font-size: 34px; letter-spacing: -1px; margin: 4px 0 8px; }
.balance-detail-hero > div { display: flex; gap: 14px; font-size: 10px; opacity: .75; }
.balance-detail-hero > div em { font-style: normal; }
.balance-detail-hero > button { position: absolute; right: 16px; bottom: 18px; height: 30px; padding: 0 14px; border-radius: 999px; background: #fff; color: var(--brand); font-size: 11px; font-weight: 800; }
.balance-tabs { display: flex; gap: 8px; padding: 0 16px 10px; overflow-x: auto; }
.balance-tabs button { flex: none; height: 30px; padding: 0 13px; border-radius: 999px; background: #fff; color: #8b7f90; font-size: 11px; border: 1px solid #f1e6f3; }
.balance-tabs button.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.balance-list { margin: 0 16px; background: #fff; border-radius: 16px; overflow: hidden; }
.balance-row { display: flex; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid #f8f3f9; }
.balance-row:last-child { border-bottom: 0; }
.bl-icon { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.bl-icon.recharge { background: #ecfdf5; color: #059669; }
.bl-icon.consume { background: #fff7ed; color: #ea580c; }
.bl-icon.refund { background: #eff6ff; color: #2563eb; }
.bl-icon.withdraw { background: #fdf2f8; color: #db2777; }
.bl-icon.other { background: #f3f4f6; color: #6b7280; }
.bl-main { flex: 1; min-width: 0; }
.bl-main b { display: block; font-size: 12px; color: #3b2d42; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-main span { display: block; margin-top: 3px; font-size: 9px; color: #b0a4b6; }
.bl-amount { font-size: 14px; font-weight: 900; text-align: right; }
.bl-amount.in { color: #059669; }
.bl-amount.out { color: #3b2d42; }
.bl-amount span { display: block; font-size: 9px; color: #b0a4b6; font-weight: 500; margin-top: 2px; }

.agent-detail-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 16px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, #fff1f7, #f5edff); }
.agent-detail-summary div { text-align: center; }
.agent-detail-summary span { display: block; font-size: 9px; color: #9a8ba0; }
.agent-detail-summary b { display: block; margin-top: 4px; font-size: 16px; color: var(--brand); }
.agent-detail-list { margin: 0 16px; display: flex; flex-direction: column; gap: 9px; }
.agent-detail-row { padding: 13px; border-radius: 12px; background: #fff; border: 1px solid #f6edf8; }
.adr-top { display: flex; align-items: center; justify-content: space-between; }
.adr-top b { font-size: 13px; }
.agent-detail-row p { margin: 5px 0; font-size: 10px; color: #9a8ba0; }
.adr-bottom { display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: #b0a4b6; }
.adr-bottom strong { color: var(--brand); font-size: 13px; }
.agent-withdraw-card { margin: 0 16px 12px; padding: 16px; border-radius: 14px; background: #fff; }
.agent-withdraw-card > span { font-size: 10px; color: #9a8ba0; }
.agent-withdraw-card > b { display: block; font-size: 28px; color: var(--brand); margin: 3px 0 10px; }
.agent-withdraw-form { display: flex; gap: 8px; }
.agent-withdraw-form input { flex: 1; height: 38px; border-radius: 9px; border: 1px solid #f1e6f3; padding: 0 12px; font-size: 12px; background: #fcf9fd; }
.agent-withdraw-form button { height: 38px; padding: 0 15px; border-radius: 9px; background: var(--grad); color: #fff; font-size: 11px; font-weight: 700; }
.agent-withdraw-card em { display: block; margin-top: 8px; font-style: normal; font-size: 9px; color: #b0a4b6; }

.order-detail-card { margin: 14px 16px; padding: 16px; border-radius: 16px; background: #fff; }
.od-top { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: #b0a4b6; }
.order-detail-card h3 { margin: 10px 0 4px; font-size: 16px; }
.order-detail-card p { margin: 0; font-size: 10px; color: #9a8ba0; }
.od-amount { margin-top: 10px; font-size: 24px; font-weight: 900; color: var(--brand); }
.order-timeline { margin: 0 16px 12px; padding: 15px; }
.timeline-row { display: flex; gap: 10px; position: relative; padding-bottom: 16px; }
.timeline-row:last-child { padding-bottom: 0; }
.timeline-row .dot { width: 10px; height: 10px; border-radius: 50%; background: #e5e7eb; margin-top: 3px; flex: none; position: relative; z-index: 1; }
.timeline-row.on .dot { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.timeline-row:not(:last-child)::before { content: ""; position: absolute; left: 4px; top: 12px; bottom: 0; width: 2px; background: #f1e6f3; }
.timeline-row.on:not(:last-child)::before { background: var(--brand-soft); }
.timeline-row b { font-size: 12px; }
.timeline-row p { margin: 2px 0 0; font-size: 10px; color: #9a8ba0; }
.order-detail-info { margin: 0 16px; padding: 14px; }
.order-detail-info div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 11px; }
.order-detail-info span { color: #9a8ba0; }
.order-detail-info b { font-weight: 600; color: #3b2d42; text-align: right; }
.order-detail-actions { margin: 14px 16px 24px; }
.member-plans { display: flex; flex-direction: column; gap: 9px; margin: 12px 0; }
.member-plan { padding: 13px; border-radius: 12px; border: 1px solid #f1e6f3; background: #fff; text-align: left; display: flex; align-items: center; gap: 12px; }
.member-plan b { width: 50px; font-size: 13px; }
.member-plan span { flex: 1; font-size: 12px; color: var(--brand); font-weight: 800; }
.member-plan em { font-style: normal; font-size: 9px; color: #9a8ba0; }
.member-plan.active { border-color: var(--brand); background: var(--brand-softer); }

/* 抢单验证 / 打手搜索 / 下拉刷新 */
.slide-verify { padding: 6px 2px 2px; }
.slide-verify-text { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #3b2d42; margin-bottom: 16px; }
.slide-verify-text svg { color: var(--brand); }
.slide-verify input[type="range"] { width: 100%; height: 38px; accent-color: var(--brand); cursor: grab; }
.slide-verify input[type="range"]:active { cursor: grabbing; }
.slide-verify-hint { margin-top: 8px; font-size: 10px; color: #a092a6; }
.slide-verify + .sheet-footer .btn:disabled { opacity: .45; box-shadow: none; }
.player-search-wrap { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 11px; margin-bottom: 9px; border-radius: 10px; background: #fcf7fd; border: 1px solid #f1e3ef; color: #b0a4b6; }
.player-search-wrap input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 11px; color: #3b2d42; }
.ds-pull { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; margin-bottom: 9px; border-radius: 10px; background: #fcf7fd; color: var(--brand); font-size: 10px; }
.ds-pull em { font-style: normal; color: #b0a4b6; font-size: 9px; }
.wallet-card em { font-style: normal; font-size: 9px; opacity: .65; margin-left: 8px; }

/* 自定义抢单滑块 */
.slide-track { position: relative; height: 48px; margin: 8px 0 4px; border-radius: 999px; background: #f5f0f7; border: 1px solid #eadff0; overflow: hidden; touch-action: none; user-select: none; }
.slide-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 27px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); opacity: .16; border-radius: 999px; transition: width .06s linear; }
.slide-track-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #9b8ca1; letter-spacing: .5px; pointer-events: none; }
.slide-thumb { position: absolute; left: 3px; top: 3px; width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 1px solid #f3d9ea; box-shadow: 0 4px 12px rgba(236,72,153,.2); display: grid; place-items: center; color: var(--brand); cursor: grab; z-index: 2; transition: transform .06s linear; }
.slide-thumb:active { cursor: grabbing; }
.slide-thumb svg { width: 18px; height: 18px; }
.slide-verify-text { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #3b2d42; margin-bottom: 6px; }
.slide-verify-text svg { color: var(--brand); }
.slide-verify-hint { margin-top: 8px; font-size: 10px; color: #a092a6; }
.option-item.offline { opacity: .55; } .option-item.offline .offline-tag { font-size: 8px; color: #9ca3af; border: 1px solid #e5e7eb; border-radius: 999px; padding: 1px 5px; margin-left: 4px; }
.home-popup-body { font-size: 12px; line-height: 1.8; color: #3b2d42; max-height: 56vh; overflow-y: auto; }
.home-popup-body h1, .home-popup-body h2, .home-popup-body h3 { margin: 2px 0 8px; font-size: 19px; line-height: 1.35; }
.home-popup-body p { margin: 6px 0; }
.home-popup-body img { max-width: 100%; border-radius: 10px; margin: 8px 0; }
.home-popup-body a { color: var(--brand); text-decoration: underline; }
.home-popup-body ul { padding-left: 18px; margin: 6px 0; }
.login-register { display: block; width: 100%; margin: 10px 0 2px; color: var(--brand); font-size: 11px; font-weight: 700; text-align: center; }
