/*!
 * 陪玩平台 · v5「App 化」设计系统
 * 左侧栏 + 顶栏 + 内容区的桌面 App 形态；深色科技感（KOOK 风格）
 */

/* ============================================================
   1. Tokens
   ============================================================ */
:root {
  --bg: #070910;
  --bg-2: #0b0e17;
  --surface: #101422;
  --surface-2: #151a2b;
  --surface-3: #1b2136;

  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);

  --text: #eef1fa;
  --text-2: #9aa4c0;
  --text-3: #6c7695;

  --brand: #7c5cff;
  --brand-2: #3ea6ff;
  --brand-soft: rgba(124, 92, 255, .16);
  --violet: #7c5cff;
  --violet-soft: rgba(124, 92, 255, .16);
  --pink: #ff5ca8;
  --pink-soft: rgba(255, 92, 168, .14);
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, .13);
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, .14);
  --gold: #fbbf24;
  --gold-soft: rgba(251, 191, 36, .14);
  --red: #f43f5e;
  --red-soft: rgba(244, 63, 94, .14);
  --blue: #3ea6ff;

  --muted: var(--text-2);
  --dim: var(--text-3);
  --bg-1: var(--surface);
  --bg-3: var(--surface-3);
  --line-soft: rgba(255, 255, 255, .045);
  --radius: 16px;
  --radius-s: 12px;

  --r-xs: 8px;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-full: 999px;

  --sh-1: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 4px 14px rgba(0, 0, 0, .3);
  --sh-2: 0 24px 50px -26px rgba(0, 0, 0, .85);
  --sh-brand: 0 12px 26px -14px rgba(124, 92, 255, .8);
  --shadow: var(--sh-2);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .18s;

  --side-w: 236px;
  --top-h: 64px;
  --maxw: 1200px;
  --tab-h: 64px;
}

/* ============================================================
   2. Reset
   ============================================================ */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "tnum" 1;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(820px 520px at 14% -10%, rgba(124, 92, 255, .18), transparent 62%),
    radial-gradient(700px 460px at 92% 0%, rgba(62, 166, 255, .12), transparent 64%),
    radial-gradient(760px 540px at 50% 112%, rgba(255, 92, 168, .08), transparent 66%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
p { margin: 0; }
::selection { background: rgba(124, 92, 255, .35); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #232a40; border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #33405f; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

:focus-visible { outline: 2px solid rgba(124, 92, 255, .65); outline-offset: 2px; border-radius: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ============================================================
   3. App 外壳
   ============================================================ */
.pw-app { min-height: 100vh; display: flex; background: var(--bg); }

/* 左侧栏 */
.pw-side {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--side-w);
  z-index: 80;
  display: flex;
  flex-direction: column;
  padding: 14px 12px 14px;
  background: linear-gradient(180deg, #0b0e17, #090b12);
  border-right: 1px solid var(--line);
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 10px;
  margin-bottom: 10px;
  font-size: 15.5px;
  font-weight: 750;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.side-brand img { width: 30px; height: 30px; border-radius: 10px; box-shadow: var(--sh-brand); }

.side-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }

.side-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.side-link .si { display: grid; place-items: center; width: 20px; height: 20px; color: var(--text-3); transition: color var(--dur) var(--ease); }
.side-link .si svg { width: 19px; height: 19px; }
.side-link:hover { background: rgba(255, 255, 255, .045); color: var(--text); }
.side-link:hover .si { color: var(--text-2); }

.side-link.on {
  color: #fff;
  background: linear-gradient(135deg, rgba(124, 92, 255, .9), rgba(62, 166, 255, .75));
  box-shadow: 0 10px 24px -14px rgba(124, 92, 255, .95);
}
.side-link.on .si { color: #fff; }

.side-link .sdot {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.side-tip {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(124, 92, 255, .18), rgba(62, 166, 255, .10));
  border: 1px solid rgba(124, 92, 255, .22);
}
.side-tip .st-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: rgba(124, 92, 255, .25); color: #c9bcff; flex: none; }
.side-tip .st-ico svg { width: 16px; height: 16px; }
.side-tip b { display: block; font-size: 12px; font-weight: 700; }
.side-tip i { display: block; font-size: 10.5px; color: var(--text-3); font-style: normal; }
.side-tip .st-go { margin-left: auto; font-size: 11px; font-weight: 700; color: #c9bcff; white-space: nowrap; }

.side-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.side-user { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 12px; transition: background var(--dur) var(--ease); }
.side-user:hover { background: rgba(255, 255, 255, .045); }
.side-user .su-txt { min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.side-user .su-txt b { font-size: 13px; font-weight: 650; }
.side-user .su-txt i { font-size: 10.5px; color: var(--text-3); font-style: normal; }

/* 主体 */
.pw-shell { flex: 1; min-width: 0; margin-left: var(--side-w); display: flex; flex-direction: column; }

.pw-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--top-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  background: rgba(8, 10, 16, .72);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}

.tb-title { display: flex; flex-direction: column; min-width: 0; }
.tb-title h1 { font-size: 18px; font-weight: 750; letter-spacing: -.02em; white-space: nowrap; }
.tb-sub { font-size: 11.5px; color: var(--text-3); white-space: nowrap; }

.tb-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: auto;
  width: min(320px, 28vw);
}
.tb-search .ts-ico { position: absolute; left: 12px; display: flex; color: var(--text-3); pointer-events: none; }
.tb-search .ts-ico svg { width: 16px; height: 16px; }
.tb-search input {
  width: 100%;
  height: 38px;
  padding: 0 14px 0 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: all var(--dur) var(--ease);
}
.tb-search input:focus { border-color: rgba(124, 92, 255, .5); background: rgba(255, 255, 255, .06); }
.tb-search input::placeholder { color: var(--text-3); }

.tb-actions { display: flex; align-items: center; gap: 4px; }

.pw-icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  color: var(--text-2);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.pw-icon-btn svg { width: 19px; height: 19px; }
.pw-icon-btn:hover { background: rgba(255, 255, 255, .06); color: var(--text); }

.pw-icon-btn .dot {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px #0a0d15;
}

.pw-avatar-btn { width: 36px; height: 36px; border-radius: 50%; padding: 2px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); margin-left: 4px; }
.pw-avatar-btn img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--surface-2); }

.pw-main {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 24px 48px;
}
.pw-wrap { width: 100%; }

/* 移动端底栏 */
.pw-tabbar {
  display: none;
  position: fixed;
  left: 50%;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 90;
  width: min(560px, calc(100vw - 24px));
  height: var(--tab-h);
  padding: 6px;
  gap: 2px;
  border-radius: 22px;
  background: rgba(14, 18, 28, .92);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--line-2);
  box-shadow: var(--sh-2);
}
.pw-tab { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 16px; color: var(--text-3); font-size: 10.5px; font-weight: 600; }
.pw-tab .ic { display: grid; place-items: center; width: 22px; height: 22px; }
.pw-tab .ic svg { width: 21px; height: 21px; }
.pw-tab.active { color: #fff; background: linear-gradient(135deg, rgba(124, 92, 255, .85), rgba(62, 166, 255, .7)); }
.pw-tab .dot { position: absolute; top: 4px; right: 50%; margin-right: -22px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 999px; background: var(--pink); color: #fff; font-size: 9.5px; font-weight: 700; line-height: 15px; text-align: center; }

/* ============================================================
   4. 排版 / 工具
   ============================================================ */
.sec { margin-top: 30px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-head h2 { display: flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 750; letter-spacing: -.02em; }
.sec-head h2::before { content: ""; width: 4px; height: 17px; border-radius: 999px; background: linear-gradient(180deg, var(--brand), var(--brand-2)); }
.sec-head .more { font-size: 12.5px; color: var(--text-3); display: inline-flex; align-items: center; gap: 4px; }
.sec-head .more:hover { color: var(--brand-2); }

.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.tiny { font-size: 12px; }
.small { font-size: 13px; }
.center { text-align: center; }
.row { display: flex; align-items: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.col { display: flex; flex-direction: column; }
.grow { flex: 1; min-width: 0; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-10 { gap: 10px; } .gap-12 { gap: 12px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ============================================================
   5. 卡片 / 标签 / 按钮 / 表单
   ============================================================ */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; }
.card-pad { padding: 18px; }

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  height: 23px; padding: 0 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: var(--text-2); font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.tag-brand, .tag-pink { background: var(--pink-soft); color: #ff9ec4; }
.tag-green, .tag-ok { background: var(--green-soft); color: #6ee7a8; }
.tag-gold { background: var(--gold-soft); color: #ffd27a; }
.tag-cyan { background: var(--cyan-soft); color: #6fe6f5; }
.tag-blue { background: var(--violet-soft); color: #bfb2ff; }
.st-warn { background: var(--gold-soft); color: #ffd27a; }
.st-ok { background: var(--green-soft); color: #6ee7a8; }
.st-danger { background: var(--red-soft); color: #ff9db0; }
.st-mute { background: rgba(255, 255, 255, .06); color: var(--text-3); }
.st-info { background: var(--violet-soft); color: #bfb2ff; }
.tag.st-warn, .tag.st-ok, .tag.st-danger, .tag.st-mute, .tag.st-info { font-weight: 700; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; padding: 0 20px; border-radius: 12px;
  font-size: 14.5px; font-weight: 650; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: var(--sh-brand);
  transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease);
  white-space: nowrap; border: 0;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.btn-pink { background: linear-gradient(135deg, #ff5ca8, #ff7a5c); box-shadow: 0 10px 24px -12px rgba(255, 92, 168, .8); }
.btn-ghost { background: rgba(255, 255, 255, .055); border: 1px solid var(--line); color: var(--text); box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); }
.btn-line { background: transparent; border: 1px solid var(--line-2); color: var(--text-2); box-shadow: none; }
.btn-line:hover { color: var(--text); border-color: rgba(255, 255, 255, .24); }
.btn-danger { background: linear-gradient(135deg, #f43f5e, #fb7185); box-shadow: 0 10px 24px -12px rgba(244, 63, 94, .8); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn-lg { height: 50px; padding: 0 26px; font-size: 15.5px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn:disabled, .btn.disabled { opacity: .45; pointer-events: none; box-shadow: none; }

.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 7px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }

.input, .textarea, .select {
  display: block; width: 100%; height: 44px; padding: 0 14px;
  color: var(--text); background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line); border-radius: 12px;
  font-size: 14.5px; outline: none;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  -webkit-appearance: none; appearance: none;
}
.select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236c7695' stroke-width='2.4' stroke-linecap='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.textarea { height: auto; min-height: 96px; padding: 12px 14px; line-height: 1.6; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { border-color: rgba(124, 92, 255, .6); box-shadow: 0 0 0 4px rgba(124, 92, 255, .12); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input-code { letter-spacing: .35em; font-weight: 700; }
.input-code:disabled { opacity: .55; }
.input-row { display: flex; gap: 8px; }
.input-row .input { flex: 1; }

.ava { position: relative; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.ava img { width: 100%; height: 100%; object-fit: cover; }
.ava-28 { width: 28px; height: 28px; }
.ava-36 { width: 36px; height: 36px; }
.ava-44 { width: 44px; height: 44px; }
.ava-56 { width: 56px; height: 56px; }
.ava-72 { width: 72px; height: 72px; }

.seg { display: flex; gap: 3px; overflow-x: auto; scrollbar-width: none; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; height: 30px; padding: 0 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--text-3); transition: all var(--dur) var(--ease); white-space: nowrap; }
.seg button:hover { color: var(--text-2); }
.seg button.on { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 6px 14px -8px rgba(124, 92, 255, .9); }

.hscroll { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex: none; }

.chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; height: 34px; padding: 0 15px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--text-2); font-size: 13px; font-weight: 550; cursor: pointer; transition: all var(--dur) var(--ease); }
.chip:hover { color: #fff; border-color: rgba(124, 92, 255, .45); background: var(--brand-soft); }

/* ============================================================
   6. 状态
   ============================================================ */
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 56px 0; color: var(--text-3); font-size: 13.5px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .12); border-top-color: var(--brand); animation: pw-spin .7s linear infinite; }
@keyframes pw-spin { to { transform: rotate(360deg); } }
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 64px 20px; text-align: center; color: var(--text-3); }
.empty .ico { display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 4px; border-radius: 50%; background: rgba(255, 255, 255, .04); border: 1px dashed var(--line-2); }
.empty .ico svg { width: 26px; height: 26px; }
.empty .t { color: var(--text-2); font-size: 14px; font-weight: 600; }
.offline-note { margin: 10px 0; padding: 10px 14px; border-radius: 12px; background: var(--gold-soft); color: #ffd27a; font-size: 12.5px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 22px; flex-wrap: wrap; }
.pager button { min-width: 36px; height: 36px; padding: 0 12px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--text-2); font-size: 13px; transition: all var(--dur) var(--ease); }
.pager button:hover { color: #fff; border-color: rgba(255, 255, 255, .2); }
.pager button.on { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-color: transparent; }
.pager button:disabled { opacity: .35; pointer-events: none; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.list-item:last-child { border-bottom: 0; }
.list-item:hover { background: rgba(255, 255, 255, .025); }

/* ============================================================
   7. 弹窗 / Toast / Sheet
   ============================================================ */
.pw-mask { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(4, 5, 9, .66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: pw-fade .16s var(--ease); }
@keyframes pw-fade { from { opacity: 0; } to { opacity: 1; } }
.pw-modal { width: min(420px, 100%); padding: 22px; border-radius: 22px; background: linear-gradient(180deg, var(--surface-2), #0f1320); border: 1px solid var(--line-2); box-shadow: var(--sh-2); animation: pw-pop .2s var(--ease); }
@keyframes pw-pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.pw-modal h3 { font-size: 17px; margin-bottom: 8px; }
.pw-modal .body { color: var(--text-2); font-size: 14px; line-height: 1.7; }
.pw-modal .acts { display: flex; gap: 10px; margin-top: 20px; }
.pw-modal .acts .btn { flex: 1; height: 42px; }

.pw-toast-host { position: fixed; top: 22px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.pw-toast { padding: 11px 16px; border-radius: 12px; background: rgba(22, 27, 42, .96); border: 1px solid var(--line-2); color: var(--text); font-size: 13.5px; text-align: center; box-shadow: var(--sh-2); opacity: 0; transform: translateY(-8px); transition: opacity .2s var(--ease), transform .2s var(--ease); }
.pw-toast.in { opacity: 1; transform: none; }
.pw-toast-success { border-color: rgba(34, 197, 94, .45); color: #8ef0b8; }
.pw-toast-error { border-color: rgba(244, 63, 94, .45); color: #ff9db0; }
.pw-toast-warn { border-color: rgba(251, 191, 36, .45); color: #ffd98f; }

.sheet-mask { position: fixed; inset: 0; z-index: 180; background: rgba(4, 5, 9, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 190; width: min(560px, 100%); max-height: 76vh; overflow-y: auto; padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px)); border-radius: 24px 24px 0 0; background: linear-gradient(180deg, var(--surface-2), #0d1018); border: 1px solid var(--line-2); border-bottom: 0; box-shadow: 0 -30px 60px -30px rgba(0, 0, 0, .9); animation: pw-up .22s var(--ease); }
@keyframes pw-up { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
.sheet h3 { font-size: 16px; margin-bottom: 14px; }
.sheet .close { position: absolute; top: 16px; right: 16px; color: var(--text-3); font-size: 20px; }

/* ============================================================
   8. 页面头 / 筛选
   ============================================================ */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 18px; flex-wrap: wrap; }

@media (min-width: 1025px) {
  .page-head { display: none; }
}
.page-head h1 { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.page-sub { margin-top: 6px; font-size: 12.5px; color: var(--text-3); }

.filter-bar { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 18px; }
.filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-bar .filter-row { display: contents; }
.filter-bar .seg { flex: 0 1 auto; align-self: center; }
.filter-bar .btn { height: 40px; }

.search-box { position: relative; flex: 1 1 300px; max-height: 40px; display: flex; align-items: center; }
.search-box .search-ico { position: absolute; left: 13px; display: flex; color: var(--text-3); pointer-events: none; }
.search-box .search-ico svg { width: 16px; height: 16px; }
.search-box .input { padding-left: 38px; height: 40px; background: rgba(255, 255, 255, .04); border-color: transparent; }
.search-box .input:focus { background: rgba(255, 255, 255, .06); border-color: rgba(124, 92, 255, .5); }

.fb-select { width: 150px; height: 40px; flex: 0 0 auto; font-size: 13px; background: rgba(255, 255, 255, .04); border-color: transparent; }
.fb-check { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 6px; font-size: 13px; color: var(--text-2); white-space: nowrap; cursor: pointer; }
.fb-check input { width: 16px; height: 16px; accent-color: var(--brand); }

/* ============================================================
   9. Hero
   ============================================================ */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: 30px;
  align-items: center;
  padding: 34px 34px;
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(620px 320px at 6% -16%, rgba(255, 255, 255, .2), transparent 60%),
    radial-gradient(620px 420px at 98% 118%, rgba(255, 92, 168, .55), transparent 62%),
    linear-gradient(120deg, #4b2bd6 0%, #7c5cff 46%, #ff4d8d 100%);
  box-shadow: 0 30px 70px -34px rgba(124, 92, 255, .75);
  color: #fff;
}
.hero::after { content: ""; position: absolute; right: -120px; top: -140px; width: 380px; height: 380px; border-radius: 50%; border: 56px solid rgba(255, 255, 255, .08); pointer-events: none; }
.hero-copy { position: relative; z-index: 1; }
.hero-kicker { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: 11px; letter-spacing: .16em; font-weight: 650; }
.hero h1 { margin: 18px 0 12px; font-size: 40px; line-height: 1.15; font-weight: 800; letter-spacing: -.035em; }
.hero-sub { font-size: 14px; color: rgba(255, 255, 255, .82); }
.hero-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.hero-actions .btn-primary { background: #fff; color: #4b2bd6; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5); font-weight: 750; }
.hero-actions .btn-primary:hover { filter: none; background: #f3efff; }
.hero-actions .btn-ghost { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .26); color: #fff; }
.hero-actions .btn-ghost:hover { background: rgba(255, 255, 255, .22); }
.hero-stats { display: flex; gap: 30px; margin-top: 28px; }
.hero-stats .hs b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.hero-stats .hs span { font-size: 11.5px; color: rgba(255, 255, 255, .74); }

.hero-card { position: relative; z-index: 1; padding: 20px; border-radius: 22px; background: rgba(12, 14, 24, .55); border: 1px solid rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); cursor: pointer; transition: transform var(--dur) var(--ease); }
.hero-card:hover { transform: translateY(-3px); }
.hero-card .live-badge { position: static; display: inline-flex; height: 24px; padding: 0 10px; border-radius: 999px; background: rgba(34, 197, 94, .18); color: #8ef0b8; font-size: 11.5px; font-weight: 700; }
.hero-card .hc-title { margin-top: 14px; font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.hero-card .hc-meta { margin-top: 6px; font-size: 12px; color: rgba(255, 255, 255, .62); }
.hero-card .hc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 20px; }
.hero-card .hc-owner { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12px; color: rgba(255, 255, 255, .78); }
.hero-card .hc-enter { flex: none; color: #fff; font-weight: 750; font-size: 13px; }

/* ============================================================
   10. 分类 / 公告
   ============================================================ */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.cat-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: all var(--dur) var(--ease); cursor: pointer; }
.cat-item:hover { transform: translateY(-2px); border-color: rgba(124, 92, 255, .4); background: var(--surface-2); }
.cat-item .em { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; font-size: 21px; background: linear-gradient(135deg, rgba(124, 92, 255, .22), rgba(62, 166, 255, .14)); }
.cat-item .em svg { width: 22px; height: 22px; }
.cat-item .nm { font-size: 12px; color: var(--text-2); white-space: nowrap; }

.notice-bar { display: flex; align-items: center; gap: 9px; margin-top: 16px; padding: 10px 14px; border-radius: 12px; background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .16); color: #ffd98f; font-size: 12.5px; cursor: pointer; }
.notice-bar .em { flex: none; display: flex; color: #fbbf24; }
.notice-bar .em svg { width: 16px; height: 16px; }

/* 闲聊房入口 */
.chat-entry {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 18px;
  background:
    radial-gradient(420px 160px at 100% 0%, rgba(255, 92, 168, .18), transparent 70%),
    linear-gradient(120deg, rgba(124, 92, 255, .22), rgba(62, 166, 255, .12));
  border: 1px solid rgba(124, 92, 255, .28);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.chat-entry:hover { border-color: rgba(124, 92, 255, .55); transform: translateY(-2px); box-shadow: var(--sh-2); }
.chat-entry .ce-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; flex: none; box-shadow: var(--sh-brand); }
.chat-entry .ce-ico svg { width: 22px; height: 22px; }
.chat-entry .ce-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.chat-entry .ce-txt b { font-size: 15.5px; font-weight: 750; }
.chat-entry .ce-txt span { font-size: 12px; color: var(--text-3); }
.chat-entry .ce-go { flex: none; font-size: 13px; font-weight: 700; color: #cfc4ff; }

/* ============================================================
   11. 陪玩卡片
   ============================================================ */
.cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 14px; }
.cp-grid .cp-card { width: auto; }

.cp-card { width: 172px; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.cp-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: rgba(124, 92, 255, .45); }
.cp-card .cover { position: relative; aspect-ratio: 1 / 1.02; overflow: hidden; background: var(--surface-2); }
.cp-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.cp-card:hover .cover img { transform: scale(1.04); }
.cp-card .cover .cv-initial { position: absolute; inset: 0; display: grid; place-items: center; font-size: 70px; font-weight: 800; letter-spacing: -.05em; color: rgba(255, 255, 255, .34); text-shadow: 0 6px 24px rgba(0, 0, 0, .25); pointer-events: none; }

.cp-card .cover .cp-ava {
  position: absolute;
  left: 12px;
  bottom: 10px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-2);
  border: 2px solid rgba(16, 20, 34, .92);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .45);
}
.cp-card .cover .cp-ava img { width: 100%; height: 100%; object-fit: cover; }
.cp-card .cover .on-dot { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 999px; background: rgba(6, 10, 14, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #8ef0b8; font-size: 10.5px; font-weight: 700; }
.cp-card .cover .on-dot::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.cp-card .cover .price { position: absolute; right: 10px; bottom: 10px; padding: 5px 10px; border-radius: 999px; background: rgba(6, 8, 12, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 12.5px; font-weight: 750; }
.cp-card .cover .price .cp-unit { font-weight: 550; opacity: .7; font-size: 11px; margin-left: 2px; }

.cpc-body { padding: 11px 13px 14px; display: flex; flex-direction: column; gap: 5px; }
.cpc-name { display: flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 700; min-width: 0; }
.cpc-meta { font-size: 11.5px; color: var(--text-3); }
.cpc-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }

.cp-card .nm { padding: 10px 12px 2px; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-card .sub { padding: 0 12px 12px; font-size: 11.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cp-row { display: flex; gap: 14px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: all var(--dur) var(--ease); }
.cp-row:hover { border-color: rgba(124, 92, 255, .4); }
.cp-row .cover { position: relative; width: 92px; height: 92px; flex: none; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.cp-row .cover img { width: 100%; height: 100%; object-fit: cover; }
.cp-row .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cp-row .nm { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 700; min-width: 0; }
.cp-row .tags { display: flex; flex-wrap: wrap; gap: 5px; }
.cp-row .price { color: #ff9ec4; font-size: 16px; font-weight: 750; white-space: nowrap; }

/* ============================================================
   12. 房间
   ============================================================ */
.room-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.room-card { width: auto; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; cursor: pointer; transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.room-card:hover { transform: translateY(-3px); border-color: rgba(124, 92, 255, .45); box-shadow: var(--sh-2); }
.room-card .cv { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.room-card .cv img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.room-card:hover .cv img { transform: scale(1.05); }
.room-card .cv .grad { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 6, 10, 0) 55%, rgba(5, 6, 10, .38)); }
.cv-ico { position: absolute; right: 14px; bottom: 12px; display: inline-flex; color: rgba(255, 255, 255, .92); opacity: .6; }
.cv-ico svg { width: 28px; height: 28px; }
.live-badge { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; background: rgba(6, 10, 14, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #8ef0b8; font-size: 11.5px; font-weight: 700; }
.live-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: pw-live 1.8s infinite; }
@keyframes pw-live { 50% { opacity: .3; } }
.price-badge { position: absolute; right: 12px; top: 12px; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: rgba(6, 8, 12, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 11.5px; font-weight: 700; }
.price-badge.free { color: #8ef0b8; }

.rc-body { padding: 14px 15px 15px; display: flex; flex-direction: column; gap: 7px; }
.rc-title { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.rc-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); }
.rc-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .55; }
.rc-foot { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.rc-owner { flex: 1; min-width: 0; font-size: 12px; color: var(--text-2); }

.room-card .price { position: absolute; right: 10px; top: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(6, 8, 12, .6); font-size: 11.5px; font-weight: 700; }
.room-card .ti { position: absolute; left: 12px; right: 12px; bottom: 10px; color: #fff; }
.room-card .ti .t { font-size: 14px; font-weight: 700; }
.room-card .ti .m { margin-top: 2px; font-size: 11.5px; color: rgba(255, 255, 255, .72); }

/* ============================================================
   13. 陪玩主页 / 服务
   ============================================================ */
.cp-hero { display: flex; gap: 18px; align-items: center; padding: 22px; border-radius: 22px; background: radial-gradient(420px 200px at 0% 0%, rgba(124, 92, 255, .18), transparent 70%), var(--surface); border: 1px solid var(--line); }
.cp-hero .info { flex: 1; min-width: 0; }
.cp-hero .nm { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.cp-hero .stats { display: flex; gap: 18px; margin-top: 10px; flex-wrap: wrap; }
.cp-hero .stats b { display: block; font-size: 16px; font-weight: 750; }
.cp-hero .stats span { font-size: 11.5px; color: var(--text-3); }
.svc-item { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 10px; transition: all var(--dur) var(--ease); }
.svc-item:hover { border-color: rgba(124, 92, 255, .35); }
.svc-item .cover { width: 68px; height: 68px; flex: none; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.svc-item .cover img { width: 100%; height: 100%; object-fit: cover; }
.review-item { padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.review-item:last-child { border-bottom: 0; }
.stars { color: var(--gold); letter-spacing: 1px; font-size: 13px; }

/* ============================================================
   14. 订单
   ============================================================ */
.bottom-bar { position: sticky; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-top: 18px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-radius: 18px 18px 0 0; background: rgba(13, 16, 26, .94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--line); border-bottom: 0; }
.order-card { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; margin-bottom: 12px; }
.order-card:hover { border-color: rgba(124, 92, 255, .32); }
.order-card .hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; color: var(--text-3); }
.order-card .bd { display: flex; gap: 13px; padding: 14px 16px; }
.order-card .bd .cover { width: 64px; height: 64px; flex: none; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.order-card .bd .cover img { width: 100%; height: 100%; object-fit: cover; }
.order-card .ft { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.order-card .amt { color: var(--text-3); font-size: 12.5px; }
.order-card .amt b { color: #ff9ec4; font-size: 17px; font-weight: 750; }

/* ============================================================
   15. 语音房
   ============================================================ */
.room-page { display: block; }
.room-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.room-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: 20px; background: radial-gradient(520px 220px at 92% -20%, rgba(255, 92, 168, .18), transparent 70%), linear-gradient(120deg, rgba(124, 92, 255, .18), rgba(13, 16, 26, .9) 62%); border: 1px solid var(--line); margin-bottom: 14px; }
.room-top .t { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.room-top .m { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 7px; font-size: 12.5px; color: var(--text-3); }
.room-notice { margin-top: 12px; padding: 9px 13px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); }

.seat-area { padding: 18px 18px 8px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.seat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.seat { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 8px 14px; border-radius: 16px; background: rgba(255, 255, 255, .035); border: 1px solid transparent; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.seat:hover { background: rgba(255, 255, 255, .06); }
.seat.on-mic { background: linear-gradient(180deg, rgba(124, 92, 255, .18), rgba(255, 255, 255, .02)); border-color: rgba(124, 92, 255, .35); }
.seat .ava { width: 62px; height: 62px; }
.seat .nm { font-size: 12.5px; font-weight: 600; max-width: 100%; }
.seat .badges { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; }
.seat .sb { padding: 1px 7px; border-radius: 999px; background: rgba(124, 92, 255, .25); color: #cfc4ff; font-size: 9.5px; font-weight: 700; }
.seat .mic-ind { position: absolute; right: calc(50% - 40px); top: 62px; width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #04160a; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--surface); }
.seat .mic-ind.off { background: #39415c; color: var(--text-3); }
.seat .mic-ind svg { width: 11px; height: 11px; }
.seat-plus { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; border: 1px dashed var(--line-2); background: rgba(255, 255, 255, .03); color: var(--text-3); font-size: 22px; }
.seat .ring { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 66px; height: 66px; border-radius: 50%; border: 2px solid transparent; pointer-events: none; }
.seat.speaking .ring { border-color: var(--green); animation: pw-pulse 1.4s var(--ease) infinite; }
@keyframes pw-pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .4); } 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

.room-msg { height: 220px; overflow-y: auto; margin-top: 14px; padding: 14px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 9px; }
.msg-row { display: flex; align-items: flex-start; gap: 8px; }
.msg-row .content { max-width: 78%; }
.msg-row .who { margin-bottom: 3px; font-size: 10.5px; color: var(--text-3); }
.bubble { display: inline-block; padding: 8px 13px; border-radius: 16px 16px 16px 4px; background: rgba(255, 255, 255, .06); font-size: 13.5px; line-height: 1.55; word-break: break-word; }
.msg-row.mine { flex-direction: row-reverse; }
.msg-row.mine .content { text-align: right; }
.msg-row.mine .bubble { border-radius: 16px 16px 4px 16px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; text-align: left; }
.msg-row.sys { justify-content: center; }
.msg-row.sys .sys-txt { padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .04); color: var(--text-3); font-size: 11.5px; }
.gift-msg { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(251, 191, 36, .12); border: 1px solid rgba(251, 191, 36, .2); color: #ffd98f; font-size: 12.5px; }
.gift-msg .em { font-size: 16px; }

.room-bottom { margin-top: 12px; padding: 12px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.room-tools { display: flex; align-items: center; gap: 8px; }
.tool-btn { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid transparent; color: var(--text-2); transition: all var(--dur) var(--ease); }
.tool-btn svg { width: 19px; height: 19px; }
.tool-btn:hover { background: rgba(255, 255, 255, .09); color: var(--text); }
.tool-btn.active { background: var(--brand-soft); color: #cfc4ff; }
.tool-btn.mic-off { background: var(--red-soft); color: #ff9db0; }
.chat-input { flex: 1; min-width: 0; height: 42px; padding: 0 15px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid transparent; color: var(--text); font-size: 13.5px; outline: none; }
.chat-input:focus { background: rgba(255, 255, 255, .07); border-color: rgba(124, 92, 255, .45); }
.chat-input::placeholder { color: var(--text-3); }

.mic-meter { width: 52px; height: 6px; flex: none; border-radius: 999px; background: rgba(255, 255, 255, .09); overflow: hidden; }
.mic-meter i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #22c55e, #7c5cff); transition: width .14s linear; }
.mic-meter.silent i { background: #39415c; }
.mic-tip { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.solo-hint { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px dashed var(--line-2); color: var(--text-3); font-size: 12px; }
.audio-resume { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 120; height: 42px; padding: 0 20px; border-radius: 999px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 700; font-size: 13.5px; box-shadow: var(--sh-brand); }

@media (max-width: 560px) {
  .mic-meter { width: 40px; }
  .mic-tip { display: none; }
}

.room-right { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; position: sticky; top: calc(var(--top-h) + 14px); max-height: calc(100vh - 190px); overflow-y: auto; }
.room-right .member-item { padding: 9px 14px; }
.room-right .member-item + .member-item { border-top: 1px solid var(--line-soft); }
.member-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.member-item .info { flex: 1; min-width: 0; }
.member-item .nm { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-item .rl { font-size: 11px; color: var(--text-3); }

.gift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.gift-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid transparent; transition: all var(--dur) var(--ease); }
.gift-item:hover { background: rgba(255, 255, 255, .07); }
.gift-item .em { font-size: 24px; line-height: 1.2; }
.gift-item .nm { font-size: 11.5px; color: var(--text-2); }
.gift-item .pr { font-size: 11px; color: #ff9ec4; font-weight: 700; }
.gift-item.sel { border-color: rgba(124, 92, 255, .5); background: var(--brand-soft); }

.gift-fly-layer { position: fixed; inset: 0; pointer-events: none; z-index: 150; overflow: hidden; }
.gift-fly { position: absolute; font-size: 30px; animation: pw-fly 2.4s var(--ease) forwards; }
@keyframes pw-fly { 0% { opacity: 0; transform: translateY(0) scale(.6); } 15% { opacity: 1; transform: translateY(-10px) scale(1); } 100% { opacity: 0; transform: translateY(-46vh) scale(1.25); } }

/* ============================================================
   16. 私聊
   ============================================================ */
.im-page { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; height: calc(100vh - var(--top-h) - 74px); min-height: 460px; }
.im-list { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow-y: auto; }
.conv-item { display: flex; align-items: center; gap: 11px; padding: 13px 14px; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.conv-item:hover { background: rgba(255, 255, 255, .03); }
.conv-item .info { flex: 1; min-width: 0; }
.conv-item .nm { font-size: 14px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-item .last { margin-top: 2px; font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-item .cnt { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--pink); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center; }
.im-chat { display: flex; flex-direction: column; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.im-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); font-weight: 700; }
.im-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.im-foot { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line-soft); }

/* ============================================================
   17. 钱包 / 我的 / 工作台
   ============================================================ */
.wallet-hero { position: relative; overflow: hidden; padding: 26px; border-radius: 22px; background: radial-gradient(420px 240px at 88% -10%, rgba(255, 255, 255, .26), transparent 66%), linear-gradient(120deg, #5b3df5, #7c5cff 52%, #ff4d8d); box-shadow: 0 26px 60px -30px rgba(124, 92, 255, .8); color: #fff; }
.wallet-hero::after { content: ""; position: absolute; right: -40px; bottom: -70px; width: 200px; height: 200px; border-radius: 50%; border: 28px solid rgba(255, 255, 255, .1); }
.wallet-hero .lb { font-size: 12.5px; opacity: .86; letter-spacing: .04em; }
.wallet-hero .bal { margin: 8px 0 18px; font-size: 36px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.wallet-hero .acts { display: flex; gap: 10px; position: relative; z-index: 1; }
.wallet-hero .acts .btn { background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .26); box-shadow: none; height: 38px; border-radius: 12px; font-size: 13.5px; color: #fff; }
.wallet-hero .acts .btn:hover { background: rgba(255, 255, 255, .26); }
.wallet-hero .acts .btn.main { background: #fff; color: #4b2bd6; border-color: #fff; font-weight: 750; }
.wallet-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.wallet-grid .it { padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.wallet-grid .it .v { font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.wallet-grid .it .k { margin-top: 2px; font-size: 11.5px; color: var(--text-3); }
.log-amt { font-size: 14.5px; font-weight: 750; white-space: nowrap; }
.log-amt.pos { color: #6ee7a8; }
.log-amt.neg { color: #ff9ec4; }
.amount-input { position: relative; display: flex; align-items: center; }
.amount-input .suf { position: absolute; right: 16px; color: var(--text-3); font-size: 13px; pointer-events: none; }
.amount-input .input { height: 54px; padding-right: 44px; font-size: 22px; font-weight: 750; letter-spacing: -.02em; }

.profile-hero { display: flex; gap: 16px; align-items: center; padding: 22px; border-radius: 22px; background: radial-gradient(420px 220px at 96% -10%, rgba(124, 92, 255, .2), transparent 70%), var(--surface); border: 1px solid var(--line); }
.profile-hero .nm { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.profile-hero .sub { margin-top: 3px; font-size: 12.5px; color: var(--text-3); }
.menu-list { border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border-bottom: 1px solid var(--line-soft); font-size: 14px; font-weight: 550; cursor: pointer; }
.menu-item:last-child { border-bottom: 0; }
.menu-item:hover { background: rgba(255, 255, 255, .03); }
.menu-item .ic { width: 20px; text-align: center; color: var(--text-3); display: flex; justify-content: center; }
.menu-item .ic svg { width: 18px; height: 18px; }
.menu-item .arrow { color: var(--text-3); font-size: 16px; }

.wb-hero { padding: 22px; border-radius: 22px; background: radial-gradient(420px 220px at 0% -10%, rgba(34, 197, 94, .12), transparent 68%), var(--surface); border: 1px solid var(--line); }
.wb-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.wb-stat { padding: 13px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); text-align: center; }
.wb-stat .v { font-size: 18px; font-weight: 750; letter-spacing: -.02em; }
.wb-stat .k { margin-top: 2px; font-size: 11px; color: var(--text-3); }
.sw { position: relative; width: 44px; height: 26px; border-radius: 999px; background: #2a3148; transition: background var(--dur) var(--ease); cursor: pointer; flex: none; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform var(--dur) var(--ease); }
.sw.on { background: var(--brand); }
.sw.on::after { transform: translateX(18px); }

/* ============================================================
   18. 后台
   ============================================================ */
.admin-tabs { display: flex; gap: 3px; overflow-x: auto; scrollbar-width: none; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); margin-bottom: 14px; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tabs button { flex: none; height: 30px; padding: 0 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--text-3); white-space: nowrap; }
.admin-tabs button:hover { color: var(--text); }
.admin-tabs button.on { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 680px; }
.admin-table th, .admin-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.admin-table th { position: sticky; top: 0; background: var(--surface-2); font-size: 11.5px; font-weight: 700; color: var(--text-3); letter-spacing: .03em; }
.admin-table tbody tr:hover td { background: rgba(255, 255, 255, .025); }
.admin-table td b { font-weight: 700; }

/* 后台概览 */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .5fr); gap: 16px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 190px; padding-top: 8px; }
.bar-item { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; }
.bar-wrap { width: 100%; flex: 1; display: flex; align-items: flex-end; }
.bar-wrap i { display: block; width: 100%; min-height: 6px; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, #3ea6ff, #7c5cff); box-shadow: 0 6px 16px -8px rgba(124, 92, 255, .8); }
.bar-item .bl { font-size: 10.5px; color: var(--text-3); }
.bar-item .bv { font-size: 11px; font-weight: 700; color: var(--text-2); }
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.quick { height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--text-2); font-size: 12.5px; font-weight: 600; transition: all var(--dur) var(--ease); }
.quick:hover { color: #fff; border-color: rgba(124, 92, 255, .45); background: var(--brand-soft); }

@media (max-width: 900px) {
  .dash-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   19. 登录
   ============================================================ */
.auth-page { display: grid; place-items: center; min-height: calc(100vh - var(--top-h) - 40px); padding: 20px 0; }
.auth-box { width: min(420px, 100%); padding: 30px 26px; border-radius: 22px; background: radial-gradient(380px 200px at 50% -10%, rgba(124, 92, 255, .22), transparent 70%), linear-gradient(180deg, var(--surface-2), #0d1018); border: 1px solid var(--line-2); box-shadow: var(--sh-2); }
.auth-box .logo-big { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--pink)); box-shadow: var(--sh-brand); }
.auth-box .logo-big img { width: 30px; height: 30px; border-radius: 9px; }
.auth-box h1 { text-align: center; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.auth-box .sub { margin: 6px 0 22px; text-align: center; font-size: 12.5px; color: var(--text-3); }
.auth-switch { margin-top: 16px; text-align: center; font-size: 13px; color: var(--text-3); }
.auth-switch a { color: #cfc4ff; font-weight: 650; margin-left: 4px; }
.auth-switch a:hover { text-decoration: underline; }
.agree { display: flex; align-items: flex-start; gap: 7px; margin: 14px 0 4px; font-size: 12px; color: var(--text-3); line-height: 1.5; }
.agree .box { flex: none; width: 16px; height: 16px; margin-top: 1px; border-radius: 5px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); cursor: pointer; }
.agree .box.on { background: var(--brand); border-color: var(--brand); }
.agree .box.on::after { content: "✓"; display: block; color: #fff; font-size: 10px; line-height: 14px; text-align: center; }

/* ============================================================
   20. 响应式
   ============================================================ */
@media (max-width: 1180px) {
  :root { --side-w: 212px; }
  .tb-search { width: min(260px, 24vw); }
}

@media (max-width: 1024px) {
  .pw-side { display: none; }
  .pw-shell { margin-left: 0; }
  .pw-tabbar { display: flex; }
  .pw-main { padding-bottom: calc(var(--tab-h) + 34px); }
  .pw-topbar { height: 58px; padding: 0 16px; gap: 10px; }
  .tb-sub { display: none; }
  .tb-search { display: none; }
  .room-body { grid-template-columns: minmax(0, 1fr); }
  .room-right { position: static; max-height: none; }
}

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; padding: 26px; gap: 20px; }
  .hero h1 { font-size: 32px; }
  .hero-card { display: none; }
  .im-page { grid-template-columns: 1fr; height: auto; }
  .im-chat { min-height: 62vh; }
  .wb-stats { grid-template-columns: repeat(2, 1fr); }
  .room-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
  .cp-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
}

@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .pw-main { padding: 14px 14px calc(var(--tab-h) + 30px); }
  .tb-title h1 { font-size: 16px; }
  .hero { padding: 20px 18px; border-radius: 20px; }
  .hero h1 { font-size: 26px; margin: 14px 0 10px; }
  .hero-sub { font-size: 12.5px; }
  .hero-actions .btn { flex: 1; }
  .hero-stats { gap: 20px; margin-top: 20px; }
  .hero-stats .hs b { font-size: 18px; }
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .cat-item { padding: 10px 4px; border-radius: 14px; }
  .cat-item .em { width: 38px; height: 38px; font-size: 18px; border-radius: 11px; }
  .cp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cp-card .cover .cv-initial { font-size: 54px; }
  .room-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .room-card { border-radius: 14px; }
  .rc-body { padding: 9px 10px 11px; gap: 5px; }
  .rc-title { font-size: 13px; }
  .rc-meta { font-size: 10.5px; gap: 5px; }
  .rc-foot { display: none; }
  .live-badge { left: 8px; bottom: 8px; height: 19px; font-size: 10px; }
  .price-badge { right: 8px; top: 8px; height: 19px; font-size: 10px; }
  .filter-bar { padding: 8px; gap: 8px; }
  .page-head h1 { font-size: 21px; }
  .room-top { padding: 14px 15px; border-radius: 16px; }
  .room-top .t { font-size: 16px; }
  .seat-area { padding: 14px 12px 6px; border-radius: 16px; }
  .seat-grid { gap: 8px; }
  .seat { padding: 14px 4px 10px; border-radius: 13px; }
  .seat .ava { width: 48px; height: 48px; }
  .seat .mic-ind { top: 48px; right: calc(50% - 32px); width: 17px; height: 17px; }
  .seat-plus { width: 48px; height: 48px; font-size: 18px; }
  .seat .nm { font-size: 11px; }
  .room-msg { height: 200px; border-radius: 14px; }
  .wallet-hero { padding: 20px; border-radius: 18px; }
  .wallet-hero .bal { font-size: 30px; }
  .auth-box { padding: 24px 18px; border-radius: 18px; }
  .pw-modal { border-radius: 18px; }
}

@media (hover: none) {
  ::-webkit-scrollbar { width: 0; height: 0; }
}
