:root {
  --red: #e51d34;
  --pink1: #fff1ec;
  --pink2: #ffe2e5;
  --pink3: #ffd6de;
  --ink: #1c1c1e;
  --muted: #8e8e93;
  --line: #f2f2f7;
  --bg: #f2f2f7;
  --card: #ffffff;
  --blue: #2f6bff;
  --green: #1aad19;
  --orange: #ff7a1a;
  --radius: 14px;
  --shadow: 0 4px 16px rgba(15, 23, 42, .06);
  font-family: "PingFang SC", "SF Pro Text", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  -webkit-tap-highlight-color: transparent;
}
* { box-sizing: border-box; }
html {
  margin: 0;
  font-size: 14px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-size: 13px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; object-fit: cover; }
#app { min-height: 100vh; }
.phone {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
}
.page { padding-bottom: calc(56px + env(safe-area-inset-bottom)); min-height: 100vh; }

.login-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 36px 16px 48px;
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(212,175,55,.28), transparent 60%),
    radial-gradient(800px 420px at 10% 20%, rgba(229,29,52,.18), transparent 55%),
    radial-gradient(700px 380px at 90% 15%, rgba(255,140,66,.16), transparent 50%),
    linear-gradient(165deg, #140c10 0%, #24141a 38%, #f3f0ea 38.2%, #f7f5f1 100%);
}
.login-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 42%);
}
.login-mesh {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: min(920px, 140%); height: 42%; pointer-events: none;
  background:
    radial-gradient(circle at 30% 40%, rgba(255,215,128,.2), transparent 42%),
    radial-gradient(circle at 70% 35%, rgba(229,29,52,.22), transparent 40%);
  filter: blur(8px);
}
.login-orb {
  position: absolute; border-radius: 50%; pointer-events: none; filter: blur(1px);
}
.login-orb-a {
  width: 220px; height: 220px; left: -50px; top: 4%;
  background: radial-gradient(circle, rgba(255,196,90,.35), transparent 68%);
  animation: login-float 8s ease-in-out infinite;
}
.login-orb-b {
  width: 160px; height: 160px; right: -36px; top: 10%;
  background: radial-gradient(circle, rgba(255,90,95,.3), transparent 68%);
  animation: login-float 10s ease-in-out infinite reverse;
}
.login-orb-c {
  width: 120px; height: 120px; left: 18%; top: 22%;
  background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%);
  animation: login-float 11s ease-in-out infinite;
}
@keyframes login-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(14px); }
}
.login-card {
  position: relative; z-index: 1; width: min(100%, 400px);
  margin-top: 28px; background: rgba(255,255,255,.96);
  border-radius: 24px; padding: 28px 24px 22px;
  box-shadow: 0 28px 70px rgba(20, 12, 16, .22), 0 0 0 1px rgba(255,255,255,.7);
  backdrop-filter: blur(10px);
}
.login-brand {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  margin: -58px 0 18px;
}
.login-mark {
  width: 88px; height: 88px; border-radius: 50%; margin-bottom: 12px;
  padding: 3px; background: linear-gradient(145deg, #f6d58a, #c9962d 45%, #8a6118);
  box-shadow: 0 16px 36px rgba(180, 120, 30, .35), 0 0 0 6px rgba(255,255,255,.55);
}
.login-mark img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block;
  background: #1a1410;
}
.login-brand-name {
  margin: 0; font-size: 26px; font-weight: 800; letter-spacing: .5px;
  color: #1a1a1a; line-height: 1.2;
}
.login-brand-sub {
  margin: 6px 0 0; color: #8b919a; font-size: 13px; line-height: 1.5; max-width: 16em;
}
.tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px;
  background: #f1f2f5; border-radius: 14px; margin-bottom: 4px; border: 0;
}
.tabs button {
  border: 0; background: transparent; padding: 11px 12px; color: #8a8f98;
  border-radius: 11px; font-weight: 650; font-size: 14px; transition: .18s ease;
}
.tabs button.on {
  color: #111; background: #fff; box-shadow: 0 6px 16px rgba(15,23,42,.08);
}
.login-fields { display: grid; gap: 12px; margin-top: 16px; }
.login-card .field { display: block; margin: 0; }
.login-card .field > span {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; margin-bottom: 6px; color: #4b5563; font-weight: 600;
}
.login-card .field .opt {
  font-size: 11px; font-weight: 500; color: #9aa0a8;
  background: #f3f4f6; border-radius: 999px; padding: 1px 7px;
}
.login-card input {
  width: 100%; border: 1px solid #e8eaef; background: #f7f8fa; border-radius: 14px;
  padding: 13px 14px; outline: none; font-size: 15px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.login-card input:focus {
  border-color: #ff9aa0; background: #fff;
  box-shadow: 0 0 0 4px rgba(229,29,52,.1);
}
label { display: block; font-size: 13px; margin: 12px 0 6px; color: #333; }
input, textarea, select { width: 100%; border: 1px solid #ddd; background: #fff; border-radius: 4px; padding: 11px 12px; outline: none; }
textarea { min-height: 140px; resize: vertical; }
.btn {
  width: 100%; border: 0; border-radius: 14px; height: 48px; color: #fff;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  margin-top: 14px; font-size: 15px; font-weight: 700;
  box-shadow: 0 10px 20px rgba(37, 99, 235, .22);
  transition: transform .15s ease, filter .15s ease;
}
.btn:active { transform: translateY(1px); filter: brightness(.98); }
.btn.green {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 10px 20px rgba(22, 163, 74, .22);
}
.btn.red {
  background: linear-gradient(135deg, #ff5a4a, #e51d34);
  box-shadow: 0 10px 20px rgba(229, 29, 52, .25);
}
.btn.ghost {
  background: #fff; color: #333; border: 1px solid #e8e8e8;
  box-shadow: 0 6px 14px rgba(15, 23, 42, .04);
}
.login-primary {
  margin-top: 18px; height: 48px; border-radius: 14px; font-weight: 750; font-size: 16px; letter-spacing: .5px;
  background: linear-gradient(135deg, #ff5f65, #e51d34 55%, #d01228);
  box-shadow: 0 12px 26px rgba(229,29,52,.28);
}
.login-primary:active { transform: translateY(1px); }
.split { display: flex; align-items: center; gap: 10px; color: #b0b4bc; font-size: 12px; margin: 20px 0 12px; }
.split::before, .split::after { content: ""; height: 1px; background: #eceef2; flex: 1; }
.btn-wx {
  width: 100%; height: 48px; border: 0; border-radius: 14px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #19d463, #07c160);
  color: #fff; font-size: 15px; font-weight: 750;
  box-shadow: 0 10px 22px rgba(7,193,96,.24);
}
.btn-wx .wx-ico { width: 22px; height: 22px; display: block; }
.btn-wx:active { transform: translateY(1px); }
.login-tip { margin: 14px 0 0; text-align: center; color: #9aa0a8; font-size: 12px; line-height: 1.55; }

.invite-page { padding: 12px; background: linear-gradient(180deg, #fff5f4, #f7f7f7 120px); }
.invite-hero {
  background: linear-gradient(135deg, #1a0f12, #4a1d28 60%, #e51d34);
  color: #fff; border-radius: 18px; padding: 20px; text-align: center;
  box-shadow: 0 14px 30px rgba(229,29,52,.2);
}
.invite-code-lab { opacity: .8; font-size: 12px; }
.invite-code { margin: 8px 0 6px; font-size: 34px; font-weight: 800; letter-spacing: 4px; }
.invite-rate { font-size: 13px; opacity: .9; }
.invite-actions { display: grid; gap: 8px; margin: 12px 0; }
.invite-actions .btn { margin-top: 0; border-radius: 12px; }
.invite-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px;
}
.invite-stats > div {
  background: #fff; border-radius: 14px; padding: 14px; text-align: center;
  box-shadow: 0 6px 16px rgba(15,23,42,.04);
}
.invite-stats b { display: block; font-size: 20px; color: #e51d34; }
.invite-stats span { color: #999; font-size: 12px; }
.invite-poster-card {
  background: transparent; border-radius: 18px; padding: 0; text-align: center;
  box-shadow: none; border: 0;
}
.invite-poster-card.pro .poster-stage {
  position: relative; overflow: hidden; border-radius: 22px; padding: 22px 16px 18px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,214,160,.28), transparent 36%),
    radial-gradient(circle at 88% 12%, rgba(229,29,52,.35), transparent 40%),
    linear-gradient(165deg, #14080c 0%, #3b1018 42%, #7a1d2a 78%, #1a0d10 100%);
  color: #fff; box-shadow: 0 16px 36px rgba(80, 16, 28, .28);
  border: 1px solid rgba(255,214,160,.25);
}
.poster-orb {
  position: absolute; border-radius: 50%; pointer-events: none; filter: blur(2px);
}
.poster-orb.o1 {
  width: 160px; height: 160px; left: -40px; top: 40px;
  background: radial-gradient(circle, rgba(255,196,120,.35), transparent 70%);
}
.poster-orb.o2 {
  width: 180px; height: 180px; right: -50px; top: 10px;
  background: radial-gradient(circle, rgba(229,29,52,.4), transparent 70%);
}
.invite-poster-card .poster-brand { position: relative; }
.invite-poster-card .poster-logo {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 10px; object-fit: cover;
  box-shadow: 0 0 0 3px rgba(255,214,160,.55), 0 10px 24px rgba(0,0,0,.25);
}
.invite-poster-card .poster-title { font-size: 22px; font-weight: 800; color: #fff7e8; letter-spacing: .5px; }
.invite-poster-card .poster-sub { color: rgba(255,230,190,.9); font-size: 12px; margin: 6px 0 12px; }
.invite-poster-card .poster-tags {
  position: relative; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px;
}
.invite-poster-card .poster-tags span {
  padding: 6px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
  color: #ffe6b8; background: rgba(255,255,255,.12); border: 1px solid rgba(255,214,160,.25);
}
.invite-poster-card .poster-agent {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 0 4px 12px; padding: 12px; border-radius: 14px; background: rgba(255,250,246,.96); color: #1a1a1a;
}
.invite-poster-card .poster-agent b { display: block; font-size: 14px; }
.invite-poster-card .poster-agent small { color: #8a7a72; font-size: 12px; }
.invite-poster-card .poster-code-box {
  position: relative; background: #fff1f0; border-radius: 14px; padding: 12px; margin: 0 4px 12px; color: #1a1a1a;
}
.invite-poster-card .poster-code-box span { display: block; color: #a35a52; font-size: 12px; }
.invite-poster-card .poster-code-box strong {
  display: block; margin-top: 4px; color: #e51d34; font-size: 28px; letter-spacing: 3px;
}
.invite-poster-card .poster-qr {
  width: 148px; height: 148px; margin: 0 auto; border-radius: 16px; background: #fff;
  border: 2px solid rgba(232,184,109,.7); padding: 6px; box-sizing: border-box;
}
.invite-poster-card .poster-foot {
  position: relative; margin-top: 12px; font-size: 12px; color: rgba(255,230,190,.9); font-weight: 600;
}
.modal { position: fixed; inset: 0; background: rgba(20, 8, 12, .55); display: grid; place-items: center; padding: 20px; z-index: 30; backdrop-filter: blur(4px); }
.modal .panel { width: min(100%, 320px); background: #fff; border-radius: 12px; padding: 20px; }
.modal h3 { margin: 0 0 8px; text-align: center; }
.disc-modal { animation: disc-in .28s ease both; }
@keyframes disc-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.disc-panel {
  width: min(100%, 340px) !important;
  padding: 0 !important;
  border-radius: 22px !important;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(40, 10, 16, .28);
  animation: disc-panel-in .34s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes disc-panel-in {
  from { opacity: 0; transform: translateY(14px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.disc-hero {
  padding: 22px 20px 16px;
  text-align: center;
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 180, 120, .35), transparent 42%),
    linear-gradient(145deg, #1c1214, #4a1822 62%, #7a2430);
  color: #fff;
}
.disc-lock {
  width: 54px; height: 54px; margin: 0 auto 12px;
  border-radius: 16px; display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #ff6b5a, #e51d34);
  box-shadow: 0 12px 28px rgba(229, 29, 52, .4), inset 0 1px 0 rgba(255,255,255,.25);
}
.disc-hero h3 {
  margin: 0; font-size: 20px; font-weight: 800; letter-spacing: .04em; color: #fff;
}
.disc-sub {
  margin: 6px 0 0; font-size: 12px; color: rgba(255, 230, 210, .78); font-weight: 500;
}
.disc-body { padding: 16px 18px 18px; }
.disc-body > p {
  margin: 0; color: #6b6460; font-size: 13px; line-height: 1.75;
}
.disc-tip {
  margin-top: 12px; padding: 12px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7ed, #fff1f0);
  border: 1px solid rgba(229, 29, 52, .12);
  display: grid; gap: 4px;
}
.disc-tip b {
  color: #e51d34; font-size: 13px; font-weight: 800;
  display: inline-flex; align-items: center; gap: 6px;
}
.disc-tip b::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #e51d34; box-shadow: 0 0 0 3px rgba(229,29,52,.18);
}
.disc-tip span { color: #9a3412; font-size: 12px; line-height: 1.6; }
.disc-check {
  display: flex; align-items: center; gap: 8px;
  margin: 14px 0 12px; color: #666; font-size: 13px; font-weight: 500;
  user-select: none; cursor: pointer;
}
.disc-check input {
  width: 18px; height: 18px; accent-color: #e51d34; margin: 0;
}
.disc-ok {
  width: 100%; height: 46px; border-radius: 14px !important;
  font-size: 15px; font-weight: 700;
  box-shadow: 0 10px 22px rgba(229, 29, 52, .28);
}
.cred { display: flex; align-items: center; justify-content: space-between; background: #f7f8fa; border-radius: 8px; padding: 10px 12px; margin-top: 10px; }
.cred b { font-size: 18px; letter-spacing: 1px; }
.cred button, .linkish { border: 0; background: transparent; color: var(--blue); }
.note { color: #999; font-size: 12px; line-height: 1.6; }

.topbar { height: 44px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15px; position: sticky; top: 0; z-index: 8; }
.topbar.orange { background: linear-gradient(90deg, #ff8a1f, #ff6a00); color: #fff; border: 0; }
.topbar .back { position: absolute; left: 4px; border: 0; background: transparent; color: inherit; padding: 8px 12px; font-size: 22px; line-height: 1; }
.topbar .right, .topbar .top-act { position: absolute; right: 10px; border: 0; background: transparent; color: var(--red); font-size: 12px; font-weight: 600; padding: 6px 4px; }
.topbar .right { color: inherit; }

.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%) translateZ(0); bottom: 0; width: 100%; max-width: 480px; height: 50px;
  background: rgba(255,255,255,.94); backdrop-filter: saturate(180%) blur(14px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(0,0,0,.06); z-index: 50; padding-bottom: env(safe-area-inset-bottom);
}
.tabbar button { border: 0; background: transparent; color: #8e8e93; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 10px; position: relative; font-weight: 500; }
.tabbar button.on { color: var(--red); }
.tabbar svg { width: 20px; height: 20px; }
.dot { position: absolute; top: 4px; right: calc(50% - 11px); width: 6px; height: 6px; background: var(--red); border-radius: 50%; }

.home { background: var(--bg); }
.home-page { background: var(--bg); }
.home-nav {
  position: sticky; top: 0; z-index: 9;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px calc(8px + env(safe-area-inset-top));
  padding-top: calc(8px + env(safe-area-inset-top));
  background: rgba(255,241,240,.92); backdrop-filter: blur(12px);
}
.home-nav-brand {
  display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1;
}
.home-nav-brand .ava,
.home-nav-brand .ava-fallback {
  width: 26px !important; height: 26px !important; border-radius: 8px; flex: none;
}
.home-nav-brand b { display: block; font-size: 14px; font-weight: 800; line-height: 1.15; }
.home-nav-brand small { display: block; margin-top: 1px; color: #c45b55; font-size: 10px; font-weight: 600; }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.18);
  animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
  50% { box-shadow: 0 0 0 5px rgba(34,197,94,.08); }
}
.home-nav-msg {
  position: relative; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.7); color: #444; display: grid; place-items: center;
  flex: none;
}
.home-nav-msg svg { width: 18px; height: 18px; }
.home-page {
  background:
    radial-gradient(520px 220px at 50% -40px, rgba(229,29,52,.10), transparent 60%),
    linear-gradient(180deg, #fff5f4 0%, var(--bg) 180px);
}
.home-top {
  position: relative;
  margin: 0 10px 10px;
  padding: 14px 12px 12px;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(160px 100px at 100% 0%, rgba(229,29,52,.18), transparent 70%),
    radial-gradient(120px 80px at 0% 100%, rgba(251,191,36,.14), transparent 65%),
    linear-gradient(165deg, #ffffff 0%, #fff8f7 52%, #ffe8eb 100%);
  box-shadow: 0 10px 28px rgba(229, 29, 52, .10), var(--shadow);
  border: 1px solid rgba(229,29,52,.08);
}
.home-glow {
  position: absolute; inset: auto -20% -30% auto; width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255,122,26,.18), transparent 68%);
  pointer-events: none; filter: blur(2px);
}
.red-banner {
  margin: 0; padding: 0 0 12px;
  display: flex; flex-direction: column; gap: 10px;
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
  position: relative; z-index: 1;
}
.red-banner .rb-head { display: flex; gap: 12px; align-items: center; }
.rb-ava-wrap { position: relative; flex: none; }
.red-banner .ava {
  width: 52px; height: 52px; border-radius: 16px; flex: none;
  box-shadow: 0 6px 16px rgba(229,29,52,.22);
  border: 2.5px solid #fff;
}
.rb-ava-live {
  position: absolute; right: -1px; bottom: -1px;
  width: 10px; height: 10px; border: 2px solid #fff;
}
.rb-main { min-width: 0; flex: 1; }
.red-banner .name-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.red-banner .name { font-weight: 800; font-size: 17px; line-height: 1.2; letter-spacing: .02em; color: #1c1c1e; }
.red-banner .rb-online {
  margin-top: 5px; display: inline-flex; align-items: center; gap: 5px;
  color: #c45b55; font-size: 11px; font-weight: 600;
}
.red-banner .rb-online em {
  font-style: normal; margin-left: 4px; color: #16a34a; font-size: 10px;
  background: #ecfdf5; border-radius: 999px; padding: 1px 6px; font-weight: 700;
}
.red-banner .intro {
  margin: 0; color: #5c5c5e; font-size: 12px; line-height: 1.65;
  background: rgba(255,255,255,.78); border-radius: 12px; padding: 10px 12px;
  border: 1px solid rgba(229,29,52,.06);
}
.rb-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
}
.rb-stats > div {
  background: linear-gradient(180deg, #fff, #fff7f6);
  border-radius: 12px; padding: 9px 4px;
  text-align: center; border: 1px solid rgba(229,29,52,.08);
  box-shadow: 0 3px 10px rgba(229,29,52,.05);
}
.rb-stats b {
  display: block; color: #e51d34; font-size: 15px; font-weight: 800; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.rb-stats span { display: block; margin-top: 3px; color: #8e8e93; font-size: 10px; font-weight: 600; }
.rb-tips {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.rb-tips span {
  font-size: 10px; font-weight: 700; color: #b45309;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border: 1px solid rgba(245, 158, 11, .2);
  border-radius: 999px; padding: 4px 8px;
}
.rb-chip {
  flex: none;
  font-size: 10px; font-weight: 700; color: #fff; letter-spacing: .04em;
  background: linear-gradient(135deg, #ff6b5a, #e51d34);
  border-radius: 999px; padding: 4px 9px;
  box-shadow: 0 4px 10px rgba(229,29,52,.28);
}
.rb-chip.soft {
  color: #9a3412;
  background: linear-gradient(135deg, #ffedd5, #fdba74);
  box-shadow: none;
}
.win-marquee {
  position: relative; z-index: 1;
  margin: 0 0 10px; padding: 7px 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff1f0, #fff7ed 50%, #fff1f0);
  border: 1px solid rgba(229,29,52,.08);
  overflow: hidden;
}
.win-marquee-track {
  display: flex; gap: 28px; width: max-content;
  animation: winScroll 22s linear infinite;
  color: #c2410c; font-size: 11px; font-weight: 700; white-space: nowrap;
  padding-left: 12px;
}
.win-marquee-track span::before {
  content: "中";
  display: inline-block; margin-right: 6px;
  width: 16px; height: 16px; line-height: 16px; text-align: center;
  border-radius: 50%; background: #e51d34; color: #fff; font-size: 9px;
  vertical-align: -2px;
}
@keyframes winScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.home-tools {
  margin: 0 10px 8px; padding: 10px; border-radius: 16px;
  background: var(--card); box-shadow: var(--shadow);
}
.home-tools .cats {
  margin: 0; padding: 0 0 8px; background: transparent; box-shadow: none; border-radius: 0;
}
.home-tools .search-row {
  margin: 0; box-shadow: none; background: #f5f5f7;
}

.ranking-panel {
  margin: 0; padding: 10px 2px 2px;
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
  border-top: 1px solid rgba(229,29,52,.08);
  position: relative; z-index: 1;
}
.rank-head { display: flex; justify-content: space-between; align-items: center; padding-top: 2px; margin-bottom: 10px; gap: 8px; }
.rank-tabs { display: flex; gap: 3px; background: rgba(255,255,255,.72); border-radius: 999px; padding: 3px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }
.rank-tabs button { border: 0; background: transparent; color: #8e8e93; font-size: 12px; padding: 5px 12px; border-radius: 999px; font-weight: 600; }
.rank-tabs button.on { color: #fff; background: linear-gradient(135deg, #ff5a4a, #e51d34); box-shadow: 0 4px 10px rgba(229,29,52,.28); }
.rank-hint { color: #c45b55; font-size: 10px; font-weight: 600; white-space: nowrap; }
.online { color: #e07a74; font-size: 10px; text-align: right; line-height: 1.3; max-width: 120px; }
.rank-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px 4px; }
.rank-grid button {
  border: 0; background: rgba(255,255,255,.7); padding: 8px 2px 7px; text-align: center; width: 100%;
  border-radius: 14px; box-shadow: 0 2px 8px rgba(15,23,42,.04);
}
.rank-grid button:active { transform: scale(.97); }
.rank-grid.with-names { gap: 10px 4px; }
.rank-grid.with-names button {
  padding: 6px 2px 4px; background: rgba(255,255,255,.55); box-shadow: none; border-radius: 14px;
}
.rank-grid.with-names button.gold {
  background: linear-gradient(180deg, #fffaf0 0%, #fff3d6 100%);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, .18);
}
.rank-grid .ava {
  width: 40px; height: 40px; border-radius: 50%; margin: 0 auto; display: block;
  box-shadow: 0 3px 10px rgba(0,0,0,.1); border: 2px solid #fff;
}
.rank-grid.with-names .ava {
  width: 44px; height: 44px; border: 2.5px solid #fff;
  box-shadow: 0 4px 12px rgba(15,23,42,.12);
}
.rank-grid button.gold .ava { border-color: #f6d27a; box-shadow: 0 4px 12px rgba(245, 158, 11, .22); }
.rank-grid .nm { display: block; font-size: 11px; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #222; font-weight: 600; }
.rank-grid.with-names .nm {
  margin-top: 6px; font-size: 11px; font-weight: 700; color: #1c1c1e;
}
.gold-tag,
.role-tag {
  display: block; margin: 3px auto 0; max-width: 100%;
  font-size: 9px; font-weight: 700; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-radius: 999px; padding: 2px 4px;
}
.gold-tag {
  color: #92400e;
  background: linear-gradient(135deg, #fde68a, #fbbf24);
}
.role-tag {
  color: #64748b; background: #f1f5f9;
}
.gold-crown {
  position: absolute; left: -3px; top: -3px; z-index: 2;
  width: 16px; height: 16px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 9px; font-style: normal; font-weight: 800; color: #7c2d12;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  border: 1.5px solid #fff;
  box-shadow: 0 2px 6px rgba(245, 158, 11, .35);
}
.rank-grid .rec {
  display: block; color: #8e8e93; font-size: 9px; margin-top: 3px; line-height: 1.2; font-weight: 600;
}
.rank-grid .rec em { font-style: normal; color: #e51d34; font-weight: 800; }
.rank-grid .rec.sale { color: #c45b55; font-weight: 600; }
.rank-grid.with-names button {
  transition: transform .15s ease, box-shadow .15s ease;
}
.rank-grid.with-names button:active { transform: scale(.96); }
.feed-hd.paid-hd b {
  position: relative; padding-left: 10px;
}
.feed-hd.paid-hd b::before {
  content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 3px;
  border-radius: 999px; background: linear-gradient(180deg, #ff6b5a, #e51d34);
}
.score-num {
  display: inline-block; min-width: 14px; padding: 0 3px; height: 13px; line-height: 13px;
  border-radius: 3px; background: var(--red); color: #fff; font-size: 9px; font-weight: 700;
}

.cats {
  display: flex; gap: 10px; padding: 10px 12px; margin: 0 10px 8px;
  background: var(--card); border-radius: 16px; box-shadow: var(--shadow);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.cats button { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 5px; color: #666; font-size: 11px; padding: 0; flex: none; min-width: 52px; }
.cats button.on { color: var(--red); font-weight: 700; }
.cats .ico { width: 42px; height: 42px; border-radius: 14px; overflow: hidden; background: #f7f7f8; }
.cats .ico img { width: 100%; height: 100%; }
.cats button.on .ico { box-shadow: 0 0 0 2px rgba(229,29,52,.25); }

.search-row { display: flex; align-items: center; gap: 6px; margin: 0 10px 8px; background: var(--card); border-radius: 999px; padding: 3px 3px 3px 12px; height: 34px; box-shadow: var(--shadow); }
.search-ico { color: #bbb; font-size: 14px; line-height: 1; }
.search-row input { border: 0; background: transparent; flex: 1; padding: 0; font-size: 12px; height: 28px; outline: none; }
.search-row button { width: 52px; height: 28px; border: 0; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; font-weight: 600; }

.notice-bar {
  margin: 0 10px 8px;
  background: var(--card);
  border: 0;
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.notice-bar .tag {
  background: linear-gradient(135deg, #ff4d5a, #e51d34);
  color: #fff;
  border-radius: 6px;
  font-size: 10px;
  padding: 2px 6px;
  flex: none;
  font-weight: 700;
}
.notice-bar .body { flex: 1; min-width: 0; }
.notice-bar .txt { font-size: 12px; color: #333; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; }
.notice-bar .sub { margin-top: 1px; color: #999; font-size: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.notice-bar .time, .notice-go { color: #c7c7cc; font-size: 14px; flex: none; }
.notice-clear {
  flex: none; width: 24px; height: 24px; border: 0; border-radius: 50%;
  background: #f3f3f5; color: #8e8e93; font-size: 16px; line-height: 1;
  display: grid; place-items: center; padding: 0;
}
.notice-clear:active { background: #ebebef; color: #111; }

.msg-page { padding: 12px; background: linear-gradient(180deg, #fff5f4 0, #f7f7f7 120px); }
.msg-hero {
  background: linear-gradient(135deg, #ff6b6b, #e51d34 55%, #c9182b);
  color: #fff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 10px 24px rgba(229, 29, 52, .22);
}
.msg-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.msg-hero h3 { margin: 0; font-size: 15px; flex: 1; }
.msg-hero p { margin: 6px 0 0; font-size: 12px; line-height: 1.6; opacity: .92; }
.notice-clear.light {
  background: rgba(255,255,255,.2); color: #fff;
}
.notice-clear.light:active { background: rgba(255,255,255,.32); }
.msg-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
  border: 1px solid #f1f1f1;
}
.msg-card .head { display: flex; align-items: center; gap: 10px; }
.msg-card .msg-meta { flex: 1; min-width: 0; }
.msg-card .msg-del {
  flex: none; width: 26px; height: 26px; border: 0; border-radius: 50%;
  background: #f3f3f5; color: #8e8e93; font-size: 16px; line-height: 1;
  display: grid; place-items: center; padding: 0;
}
.msg-card .msg-del:active { background: #ebebef; color: #111; }
.msg-card .icon {
  width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center; flex: none;
  background: #fff1f0; color: var(--red);
}
.msg-card .icon.notice { background: #fff7ed; color: #ea580c; }
.msg-card .icon.sys { background: #eef2ff; color: #4f46e5; }
.msg-card b { font-size: 14px; }
.msg-card .when { color: #aaa; font-size: 11px; margin-top: 2px; }
.msg-card .content { margin: 10px 0 0; color: #555; font-size: 13px; line-height: 1.65; }
.msg-empty {
  text-align: center; color: #aaa; padding: 42px 12px;
  background: #fff; border-radius: 14px; border: 1px dashed #e5e7eb;
}

.feed-hd {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 2px 14px 6px; color: #8e8e93;
}
.feed-hd b { font-size: 13px; color: #1c1c1e; font-weight: 700; }
.feed-hd span { font-size: 10px; }
.feed { padding: 0 10px 12px; background: transparent; }
.hot-bubble {
  position: absolute;
  left: auto;
  right: 8px;
  top: calc(58px + env(safe-area-inset-top));
  z-index: 80;
  width: min(208px, calc(100% - 72px));
  max-width: 208px;
  margin: 0;
  border: 0;
  padding: 0;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 0;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .14);
  backdrop-filter: blur(10px);
  cursor: pointer;
  opacity: 0;
  transform: translateX(12px) scale(.96);
  transition: opacity .28s ease, transform .28s cubic-bezier(.2,.8,.2,1);
  text-align: left;
  pointer-events: auto;
}
.phone.home { position: relative; }
.hot-bubble.on {
  opacity: 1;
  transform: translateX(0) scale(1);
}
.hot-bubble.out {
  opacity: 0;
  transform: translateX(8px) scale(.98);
}
.hot-bubble-horn {
  flex: none;
  width: 28px;
  height: 100%;
  min-height: 40px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ff6b6f, #e51d34);
  color: #fff;
}
.hot-horn-ico { width: 14px; height: 14px; display: block; }
.hot-bubble-body {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 5px;
  padding: 6px 8px 6px 6px;
}
.hot-bubble-body em {
  color: #e51d34; font-style: normal; font-size: 9px; font-weight: 700; margin-right: 2px;
}
.hot-ava { position: relative; width: 18px; height: 18px; flex: none; }
.hot-ava img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; display: block; }
.hot-bubble-txt {
  min-width: 0; flex: 1;
  color: #555; font-size: 10px; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hot-bubble-txt b { color: #111; font-weight: 700; }

.rank-ava { position: relative; width: 40px; height: 40px; margin: 0 auto; }
.rank-grid.with-names .rank-ava { width: 44px; height: 44px; }
.rank-ava img, .rank-ava .ava-fallback { width: 40px !important; height: 40px !important; border-radius: 50%; }
.rank-grid.with-names .rank-ava img,
.rank-grid.with-names .rank-ava .ava-fallback { width: 44px !important; height: 44px !important; }
.rank-ava .v-badge {
  position: absolute; right: -1px; bottom: -1px;
  width: 13px; height: 13px; padding: 0; margin: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #4da3ff, #1677ff);
  color: #fff; font-style: normal;
  display: grid; place-items: center;
  border: 1.5px solid #fff;
  box-shadow: none;
  line-height: 0;
}
.rank-ava .v-badge svg { display: block; }

.acard {
  position: relative; width: 100%; border: 0; background: var(--card); border-radius: 14px;
  padding: 11px 12px 10px; margin-top: 8px; text-align: left; color: inherit; overflow: hidden;
  box-shadow: var(--shadow);
}
.acard.paid {
  background: linear-gradient(180deg, #fff 0%, #fff8f7 100%);
  box-shadow: 0 6px 18px rgba(229,29,52,.08), var(--shadow);
  border: 1px solid rgba(229,29,52,.08);
}
.acard.open {
  opacity: 1;
  border: 1px solid rgba(22, 163, 74, .18);
  background: linear-gradient(180deg, #fff 0%, #f3fdf6 100%);
}
.acard.hit {
  box-shadow: 0 6px 16px rgba(22, 163, 74, .12), var(--shadow);
}
.ribbon { position: absolute; right: -28px; top: 6px; width: 84px; text-align: center; background: #8b5cf6; color: #fff; font-size: 10px; transform: rotate(45deg); padding: 2px 0; z-index: 1; }
.ribbon.sale { background: linear-gradient(90deg, #ff5a4a, #e51d34); }
.ribbon.open { background: linear-gradient(90deg, #22c55e, #16a34a); }
.ribbon.owned { background: #0d9488; }
.win-badge {
  display: inline-flex; align-items: center; gap: 4px;
  margin: 0 0 6px; padding: 2px 8px; border-radius: 999px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  color: #c2410c; font-size: 10px; font-weight: 800;
}
.proof-banner {
  margin: 0 10px 4px; padding: 8px 10px; border-radius: 10px;
  background: linear-gradient(90deg, #ecfdf5, #f0fdf4);
  color: #166534; font-size: 11px; line-height: 1.4; font-weight: 600;
}
.feed-hd.proof b { color: #166534; }
.proof-feed .acard { margin-top: 6px; }
.hot-tag {
  position: absolute; left: 8px; top: 8px; z-index: 1;
  background: linear-gradient(135deg, #ff7a1a, #e51d34); color: #fff;
  font-size: 9px; font-weight: 700; border-radius: 999px; padding: 1px 6px;
}
.hot-buy-tip { color: #e51d34; font-weight: 600; font-size: 10px; }
.acard-head { display: flex; gap: 8px; align-items: center; }
.acard-head .ava { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.acard-head .meta { flex: 1; min-width: 0; }
.acard-head .meta b { display: block; font-size: 12px; font-weight: 600; line-height: 1.2; }
.acard-head .meta small { display: block; color: #8e8e93; font-size: 10px; margin-top: 1px; }
.acard .title { margin: 8px 0 6px; font-size: 13px; font-weight: 650; line-height: 1.4; padding-right: 22px; color: #1c1c1e; }
.acard .row { display: flex; justify-content: space-between; align-items: center; }
.badge-red { display: inline-block; background: #fff1f0; color: var(--red); border-radius: 3px; font-size: 10px; padding: 1px 5px; }
.price { color: var(--red); font-weight: 800; font-size: 14px; flex: none; }
.price.free { color: #16a34a; font-weight: 700; font-size: 11px; }
.price.win { color: #c2410c; font-weight: 800; font-size: 11px; }
.price.owned { color: #16a34a; font-weight: 700; font-size: 11px; }
.price.pay {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, #ff5a4a, #e51d34); color: #fff;
  border-radius: 999px; padding: 3px 8px 3px 9px; font-size: 12px; font-weight: 800;
  box-shadow: 0 4px 10px rgba(229,29,52,.22);
}
.price.pay em { font-style: normal; }
.price.pay i { font-style: normal; font-size: 10px; font-weight: 700; opacity: .92; }
.acard .auth { color: #999; font-size: 10px; margin-top: 4px; }
.acard-foot {
  display: flex; justify-content: space-between; align-items: center;
  color: #8e8e93; font-size: 10px; margin-top: 2px; gap: 8px; flex-wrap: wrap;
}
.stat-hit {
  color: #e51d34; font-weight: 800; font-size: 11px;
  background: linear-gradient(135deg, #fff1f0, #ffe4e6);
  border-radius: 999px; padding: 2px 8px;
  letter-spacing: .02em;
}
.stat-buy {
  color: #e51d34; font-weight: 700; font-size: 10px;
  background: #fff1f0; border-radius: 999px; padding: 2px 7px;
}
.stat-view { display: inline-flex; align-items: center; gap: 4px; color: #8e8e93; font-size: 10px; }
.views-line { display: inline-flex; align-items: center; gap: 4px; }
.acard .times { display: flex; justify-content: space-between; align-items: flex-end; color: #aaa; font-size: 10px; margin-top: 6px; line-height: 1.5; }
.avatars { display: flex; justify-content: flex-end; }
.avatars img { width: 14px !important; height: 14px !important; border-radius: 50%; margin-left: -4px; border: 1px solid #fff; }

.detail-head { background: #fff; padding: 12px; }
.author-row { display: flex; gap: 10px; align-items: center; }
.author-row .ava { width: 44px; height: 44px; border-radius: 50%; }
.author-row .grow { flex: 1; }
.follow-btn {
  border: 0; color: #fff; border-radius: 999px; height: 30px; padding: 0 14px; font-size: 13px; font-weight: 700;
  background: linear-gradient(135deg, #ff5a4a, #e51d34); box-shadow: 0 6px 14px rgba(229,29,52,.25);
}
.follow-btn.on { background: #eee; color: #666; box-shadow: none; }
.pills { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pill { background: #fff1f0; color: var(--red); border-radius: 3px; font-size: 11px; padding: 2px 7px; }
.pill.orange { background: #fff4e8; color: #ff7a1a; }
.detail-title { font-size: 16px; font-weight: 700; line-height: 1.4; margin: 10px 0 6px; }
.detail-meta { color: #999; font-size: 11px; line-height: 1.7; }
.section { background: #fff; margin-top: 8px; padding: 12px; }
.section h4 { margin: 0 0 8px; font-size: 14px; }
.content-box { white-space: pre-wrap; line-height: 1.7; font-size: 13px; background: #fafafa; border-radius: 6px; padding: 10px; }
.data-board {
  margin-top: 4px; border-radius: 18px; overflow: visible;
  border: 1px solid #f0e0e2;
  background: linear-gradient(180deg, #fff, #fffaf8);
  box-shadow: 0 12px 28px rgba(180, 40, 55, .08);
}
.data-board.reveal { animation: unlock-reveal .55s ease both; }
.data-board-hd {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 14px 10px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(135deg, #1c1214, #3a1820);
  color: #f2d8a7;
}
.data-kicker { font-size: 11px; opacity: .78; letter-spacing: .06em; }
.data-board-hd b { display: block; margin-top: 4px; font-size: 16px; color: #fff; }
.data-tag {
  flex: none; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800;
  color: #2a1b1b; background: linear-gradient(135deg, #f2d8a7, #e8c57a);
}
.data-ref {
  margin: 0; padding: 8px 14px; font-size: 12px; color: #9a3412;
  background: linear-gradient(90deg, #fff7ed, #fff1f0);
}
.data-ref span { font-weight: 800; letter-spacing: 1px; }
.content-pretty {
  background: transparent; border: 0;
  border-radius: 0; padding: 14px 14px 16px; font-size: 14px; overflow: visible;
}
.content-pretty .c-issue {
  display: inline-flex; margin-bottom: 12px; padding: 5px 12px; border-radius: 999px;
  background: linear-gradient(135deg, #fff1f0, #ffe4e6); color: #e51d34;
  font-size: 12px; font-weight: 800; letter-spacing: .02em;
}
.content-pretty .c-hint {
  margin: 0 0 10px; font-size: 12px; color: #a16207; font-weight: 700;
}
.content-pretty .c-pos {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 14px; margin-bottom: 8px; border-radius: 14px;
  overflow: visible;
  background:
    radial-gradient(circle at 100% 0%, rgba(229,29,52,.06), transparent 40%),
    #faf7f6;
  border: 1px solid #f1e6e7;
}
.content-pretty .c-pos > span {
  color: #8a6a66; font-size: 13px; font-weight: 700; min-width: 36px; flex: none;
}
.content-pretty .c-pos-main {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  justify-content: flex-end; flex: 1; min-width: 0;
}
.content-pretty .c-pos .ball-row { gap: 5px; }
.content-pretty .c-pos .ball {
  width: 26px; height: 26px; font-size: 13px; flex: none;
}
.content-pretty .c-pos .ball.kill { width: 24px; height: 24px; font-size: 12px; }
.content-pretty .c-pos b, .content-pretty .c-raw {
  color: #1a1a1a; letter-spacing: 2px; font-size: 18px; font-variant-numeric: tabular-nums;
}
.content-pretty .c-sec {
  margin: 14px 0 8px; font-weight: 800; color: #1f1f1f; font-size: 13px;
  display: flex; align-items: center; gap: 8px;
}
.content-pretty .c-sec i {
  width: 4px; height: 14px; border-radius: 4px; background: linear-gradient(180deg, #ff6b5a, #e51d34);
  display: inline-block;
}
.content-pretty .c-nums {
  padding: 12px; border-radius: 12px; background: #fff1f0; color: #e51d34;
  font-weight: 800; letter-spacing: 1px; line-height: 1.6; word-break: break-all;
}
.content-pretty .c-focus {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px; margin-bottom: 8px; border-radius: 14px;
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
  border: 1px solid #fde68a;
}
.content-pretty .c-focus-txt { font-size: 12px; color: #92400e; font-weight: 600; }
.content-pretty .c-note { margin-top: 12px; color: #999; font-size: 12px; line-height: 1.7; }
.content-pretty .c-line { color: #444; line-height: 1.7; margin-bottom: 4px; }
.content-pretty .c-gap { height: 6px; }
.ball-row { display: inline-flex; gap: 6px; flex-wrap: wrap; vertical-align: middle; align-items: center; }
.ball {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  box-sizing: border-box; padding: 0; margin: 0;
  line-height: 1; text-align: center; letter-spacing: 0;
  font-style: normal; font-size: 14px; font-weight: 800; color: #fff;
  background: radial-gradient(circle at 30% 28%, #ff8a7a, #e51d34 62%, #b91c1c);
  box-shadow: 0 4px 10px rgba(229,29,52,.28), inset 0 1px 0 rgba(255,255,255,.35);
  font-variant-numeric: tabular-nums;
}
.ball-row.gold .ball {
  color: #2a1b1b;
  background: radial-gradient(circle at 30% 28%, #fff1c9, #f2d8a7 55%, #d4af37);
  box-shadow: 0 4px 10px rgba(212,175,55,.28), inset 0 1px 0 rgba(255,255,255,.5);
}
.ball.kill, .ball-row .ball.kill {
  width: 24px; height: 24px; font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
  background: radial-gradient(circle at 30% 28%, #cbd5e1, #64748b 70%);
  box-shadow: 0 3px 8px rgba(100,116,139,.25);
}
.kill {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; flex: none;
  white-space: nowrap; padding: 0;
  font-style: normal; font-size: 11px; color: #64748b; font-weight: 700;
  line-height: 1;
}
.kill .ball {
  /* 避免继承 em 斜体/行高把数字顶偏 */
  font-style: normal !important;
  transform: none;
}
.code-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.code-chip {
  display: inline-flex; padding: 8px 10px; border-radius: 12px;
  background: #fff1f0; border: 1px solid #ffd6de;
}
.pill.dark { background: #1f1f1f; color: #fff; }
.pill.gold { background: #fffbeb; color: #b45309; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13px; width: auto; border-radius: 10px; }
.comments-sec { padding-bottom: 4px; }
.comments-hd {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px;
}
.comments-hd h4 { margin: 0; }
.comments-hd span { font-size: 12px; color: #999; }
.comment-form {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  padding: 8px; border-radius: 16px;
  background: linear-gradient(180deg, #fff, #fff8f7);
  border: 1px solid #f0dfe2;
  box-shadow: 0 8px 20px rgba(180, 40, 55, .06);
}
.comment-form input {
  flex: 1; min-width: 0; height: 44px; border: 1.5px solid #e8d0d4; border-radius: 12px;
  padding: 0 14px; background: #fff; color: #1f1f1f; font-size: 14px; font-weight: 500;
  outline: none; box-shadow: inset 0 1px 2px rgba(15, 23, 42, .03);
}
.comment-form input::placeholder { color: #9a7a7e; font-weight: 500; opacity: 1; }
.comment-form input:focus {
  border-color: #e51d34;
  box-shadow: 0 0 0 3px rgba(229, 29, 52, .12);
}
.comment-form .btn.comment-send {
  flex: none; width: auto; height: 44px; min-width: 78px; padding: 0 18px; margin: 0;
  border: 0; border-radius: 12px; color: #fff; font-size: 15px; font-weight: 800;
  background: linear-gradient(145deg, #ff6b5a, #e51d34 55%, #c9182b);
  box-shadow: 0 8px 18px rgba(229, 29, 52, .35), inset 0 1px 0 rgba(255,255,255,.28);
  letter-spacing: .04em;
}
.comment-form .btn.comment-send:active { transform: scale(.97); filter: brightness(.98); }
.comment-list { display: grid; gap: 10px; max-height: 420px; overflow: auto; }
.comment-item { display: flex; gap: 10px; align-items: flex-start; }
.comment-body { flex: 1; min-width: 0; }
.comment-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 12px; margin-bottom: 4px;
}
.comment-meta b { color: #333; font-weight: 700; }
.comment-meta em { font-style: normal; color: #aaa; font-size: 11px; }
.comment-txt {
  font-size: 13px; line-height: 1.55; color: #444;
  background: #faf7f6; border-radius: 10px; padding: 8px 10px;
}
.live-strip {
  margin-top: 10px; border-radius: 10px; padding: 8px 10px;
  background: linear-gradient(90deg, #fff7ed, #fff1f0); color: #9a3412;
  font-size: 12px; font-weight: 600;
}
.lock-box { text-align: center; padding: 18px 8px; }
.lock-box .price-lg { font-size: 26px; color: var(--red); font-weight: 800; margin: 8px 0 12px; }
.pay-ways { display: grid; gap: 8px; margin-top: 10px; }
.disclaimer { color: #999; font-size: 12px; line-height: 1.7; }

.detail-page { background: linear-gradient(180deg, #fff7f5 0, #f5f5f7 140px); }
.section-pay { padding: 0 0 12px; overflow: hidden; background: transparent; }
.section-pay h4 { padding: 12px 12px 0; margin: 0; }
.sec-lock {
  display: inline-flex; align-items: center; gap: 6px; color: #e51d34;
}
.sec-lock svg { flex: none; }
.paywall {
  margin: 10px 12px 0; border-radius: 18px; overflow: hidden;
  background: #fff; border: 1px solid rgba(229,29,52,.08);
  box-shadow: 0 12px 28px rgba(120, 30, 40, .08);
}
.paywall.checkout { padding: 0 0 10px; }
.pw-sheet-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #1c1214, #3a1820);
}
.pw-head-tip { color: rgba(255,255,255,.55); font-size: 11px; }
.pw-count-mini {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.08); color: #f2d8a7; font-size: 11px; font-weight: 650;
  font-variant-numeric: tabular-nums; border: 1px solid rgba(242,216,167,.28);
}
.pw-count-mini i {
  width: 6px; height: 6px; border-radius: 50%; background: #e51d34;
  box-shadow: 0 0 0 3px rgba(229,29,52,.22);
  animation: pw-pulse 1.4s ease-in-out infinite;
}
.pw-count-mini strong { font-size: 12px; font-weight: 800; color: #f2d8a7; letter-spacing: .5px; }
.pw-order {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 12px;
  background: linear-gradient(180deg, #fff7f5, #fff);
}
.pw-order-lock {
  width: 44px; height: 44px; border-radius: 14px; flex: none;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #ff6b5a, #e51d34);
  box-shadow: 0 10px 20px rgba(229,29,52,.28);
}
.pw-order-main { flex: 1; min-width: 0; }
.pw-order-tags {
  display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px;
}
.pw-chip {
  display: inline-flex; align-items: center; padding: 2px 7px;
  border-radius: 999px; font-size: 10px; font-weight: 650;
  color: #8a837c; background: #f6f5f3;
}
.pw-methods { padding: 2px 12px 0; }
.pw-methods-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 0 8px; font-size: 13px; font-weight: 700; color: #333;
}
.pw-methods-hd em { font-style: normal; font-size: 11px; color: #aaa; font-weight: 500; }
.pw-method-list { display: grid; gap: 8px; }
.pw-method {
  width: 100%; border: 1px solid #eee; background: #fff; border-radius: 14px;
  padding: 11px 12px; display: flex; align-items: center; gap: 10px;
  text-align: left; color: inherit; transition: .15s ease;
}
.pw-method.on {
  border-color: rgba(229,29,52,.35);
  background: linear-gradient(135deg, #fff8f7, #fff);
  box-shadow: 0 6px 16px rgba(229,29,52,.08);
}
.pw-tick {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  border: 2px solid #d8d8d8; background: #fff;
  position: relative;
}
.pw-method.on .pw-tick {
  border-color: #e51d34; background: #e51d34;
  box-shadow: 0 0 0 3px rgba(229,29,52,.12);
}
.pw-method.on .pw-tick::after {
  content: ""; position: absolute; left: 5px; top: 2px;
  width: 5px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.pw-m-ico {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  font-size: 11px; font-weight: 800; flex: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 4px 10px rgba(0,0,0,.04);
}
.pw-m-ico svg { display: block; }
.pw-m-ico.bal {
  color: #e51d34;
  background: linear-gradient(145deg, #fff0ee 0%, #ffd8d3 100%);
}
.pw-m-ico.wx {
  color: #07c160;
  background: linear-gradient(145deg, #eefbf3 0%, #d5f6e3 100%);
}
.pw-m-ico.ali {
  color: #1677ff;
  background: linear-gradient(145deg, #eef5ff 0%, #d7e8ff 100%);
}
.pw-m-txt { flex: 1; min-width: 0; text-align: left; }
.pw-m-txt b { display: block; font-size: 13px; font-weight: 700; color: #222; }
.pw-m-txt small { display: block; margin-top: 2px; font-size: 11px; color: #999; font-weight: 500; }
.pw-checkout {
  margin: 12px 12px 0; padding: 10px 10px 10px 14px;
  border-radius: 16px;
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #1c1214, #3a1820);
  box-shadow: 0 10px 24px rgba(40, 10, 16, .18);
}
.pw-checkout-left {
  flex: 1; min-width: 0; color: rgba(255,255,255,.65); font-size: 12px;
}
.pw-checkout-left span { display: block; margin-bottom: 2px; }
.pw-checkout-left b {
  color: #fff; font-size: 22px; font-weight: 800; letter-spacing: .2px; line-height: 1;
}
.pw-checkout-left em { font-style: normal; font-size: 13px; margin-right: 1px; }
.pw-checkout-btn {
  border: 0; flex: none; height: 42px; padding: 0 18px; border-radius: 12px;
  color: #2a1b1b; font-size: 14px; font-weight: 800;
  background: linear-gradient(135deg, #f2d8a7, #e8c57a);
  box-shadow: 0 6px 14px rgba(242, 216, 167, .28);
}
.pw-checkout-btn:active { transform: translateY(1px); }
.pw-foot-note {
  margin: 8px 14px 0; text-align: center; color: #b0aaa4; font-size: 11px;
}
.pay-page { padding: 12px; background: #f5f5f7; }
.pay-card {
  background: #fff; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(0,0,0,.04); box-shadow: 0 10px 28px rgba(0,0,0,.06);
  padding-bottom: 14px;
}
.pay-card-top {
  display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px;
  border-bottom: 1px solid #f3f3f3;
}
.pay-card-top b { display: block; font-size: 15px; }
.pay-card-top .note { margin-top: 2px; }
.pay-amount { margin-left: auto; color: #e51d34; font-size: 22px; font-weight: 800; }
.pay-amount em { font-style: normal; font-size: 13px; margin-right: 1px; }
.pay-qr-wrap {
  display: flex; flex-direction: column; align-items: center;
  padding: 20px 16px 12px; text-align: center;
}
.pay-qr-frame {
  display: flex; align-items: center; justify-content: center;
  width: min(236px, 72vw); padding: 12px;
  border-radius: 18px; background: #fafafa;
  border: 1px solid #eee; box-shadow: 0 10px 24px rgba(0,0,0,.05);
}
.pay-qr-frame.wx { background: linear-gradient(180deg, #f3fbf6, #fff); border-color: #d8f3e4; }
.pay-qr-frame.ali { background: linear-gradient(180deg, #f3f7ff, #fff); border-color: #d6e6ff; }
.pay-qr {
  display: block; margin: 0 auto;
  width: min(200px, 62vw); height: min(200px, 62vw);
  object-fit: contain; border-radius: 12px; background: #fff;
}
.pay-qr.empty {
  display: grid; place-items: center; color: #999; font-size: 13px;
  margin: 0 auto; background: #fafafa; border: 1px dashed #e5e5e5;
}
.pay-qr-tip { margin: 12px 0 0; font-size: 13px; font-weight: 650; color: #333; }
.pay-order-no { margin: 4px 0 0; font-size: 11px; color: #999; font-family: ui-monospace, monospace; }
.pay-status {
  margin: 10px 14px; padding: 10px 12px; border-radius: 12px; text-align: center;
  background: #fff7ed; color: #9a3412; font-size: 13px; font-weight: 650;
}
.pay-status.ok { background: #ecfdf5; color: #047857; }
.pay-status.wait { background: #eff6ff; color: #1d4ed8; }
.pay-status.bad { background: #fef2f2; color: #b91c1c; }
.pay-proof-box {
  margin: 0 14px; padding: 12px; border-radius: 14px; background: #fafafa; border: 1px dashed #e5e5e5;
}
.pay-proof-hd {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;
}
.pay-proof-hd span { font-size: 11px; color: #e51d34; font-weight: 650; }
.pay-proof-preview {
  width: 100%; max-height: 180px; object-fit: contain; border-radius: 10px;
  background: #fff; border: 1px solid #eee; margin-bottom: 10px;
}
.pay-proof-btn {
  display: grid; place-items: center; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, #ff5a4a, #e51d34); color: #fff;
  font-size: 14px; font-weight: 700; cursor: pointer;
}
.pay-item .pw-m-ico { margin-right: 2px; }
@keyframes pw-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.85); }
}
.ai-unlock-banner {
  margin: 0 0 10px; padding: 10px 12px; border-radius: 12px;
  background: linear-gradient(135deg, #1c1214, #3a1820);
  color: #f2d8a7; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.ai-unlock-banner::before {
  content: "开"; display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  background: linear-gradient(145deg, #f2d8a7, #e8c57a); color: #2a1b1b;
  font-size: 10px; font-weight: 800;
}
.content-pretty.reveal {
  animation: unlock-reveal .55s ease both;
}
@keyframes unlock-reveal {
  from { opacity: 0; filter: blur(8px); transform: translateY(8px); }
  to { opacity: 1; filter: blur(0); transform: none; }
}
.pw-badge {
  display: inline-flex; align-items: center; padding: 2px 7px;
  border-radius: 999px; font-size: 10px; font-weight: 700;
  color: #b42318; background: #fff1f0;
  border: 1px solid rgba(229,29,52,.1);
}
.pw-title {
  font-size: 14px; font-weight: 750; color: #1f1f1f; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pw-order .pw-price {
  flex: none; margin: 0; color: #e51d34; font-size: 20px; font-weight: 800; letter-spacing: .2px; line-height: 1.1;
}
.pw-order .pw-price em { font-style: normal; font-size: 12px; margin-right: 1px; font-weight: 700; }
.result-note {
  margin-top: 10px; border-radius: 10px; padding: 10px 12px; font-size: 13px; font-weight: 600;
}
.result-note.win { background: #fff1f0; color: #e51d34; }
.result-note.lose { background: #f5f5f5; color: #888; }

.invite-share-card {
  margin: 0 10px 10px; border-radius: 14px; padding: 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,255,255,.18), transparent 42%),
    linear-gradient(135deg, #1f2937, #7f1d1d 58%, #b91c1c);
  color: #fff; box-shadow: 0 8px 20px rgba(127, 29, 29, .18);
}
.invite-share-card.pending {
  background: linear-gradient(135deg, #334155, #475569 60%, #64748b);
  box-shadow: 0 8px 20px rgba(51, 65, 85, .14);
}
.isc-top { display: flex; align-items: center; gap: 10px; }
.isc-kicker { font-size: 10px; opacity: .8; letter-spacing: .08em; }
.isc-code { margin-top: 2px; font-size: 22px; font-weight: 800; letter-spacing: 2px; }
.isc-title { margin-top: 2px; font-size: 14px; font-weight: 700; }
.isc-desc { margin-top: 3px; font-size: 11px; opacity: .82; }
.isc-poster {
  border: 0; flex: none; height: 30px; padding: 0 12px; border-radius: 999px;
  background: rgba(255,255,255,.16); color: #fff; font-size: 12px; font-weight: 700;
  backdrop-filter: blur(4px);
}
.isc-actions {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px;
}
.isc-actions button {
  border: 0; border-radius: 9px; height: 30px;
  background: rgba(255,255,255,.14); color: #fff; font-size: 11px; font-weight: 600;
}

.mine-page {
  background:
    linear-gradient(180deg, #e51d34 0, #ff6b5a 120px, transparent 220px),
    var(--bg);
}
.mine-hero {
  position: relative; padding: 14px 10px 4px;
  padding-top: calc(14px + env(safe-area-inset-top));
}
.mine-profile {
  position: relative; width: 100%; border: 0; background: transparent;
  border-radius: 0; padding: 4px 4px 12px; display: flex; align-items: center; gap: 10px;
  text-align: left; color: #fff; box-shadow: none;
}
.mine-ava-wrap { position: relative; flex: none; }
.mine-ava-wrap .ava, .mine-ava-wrap img, .mine-ava-wrap .ava-fallback {
  border: 2px solid rgba(255,255,255,.85) !important;
}
.mine-ava-wrap .edit-dot {
  position: absolute; right: -2px; bottom: -2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #111; color: #fff; font-size: 9px;
  display: grid; place-items: center; border: 2px solid #fff;
}
.mine-meta { flex: 1; min-width: 0; }
.mine-meta b { display: block; font-size: 16px; font-weight: 700; }
.mine-meta span { display: block; margin-top: 3px; color: rgba(255,255,255,.78); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mine-arrow { color: rgba(255,255,255,.7); font-size: 20px; line-height: 1; }
.mine-list .mine-arrow { color: #c7c7cc; }
.yuanbao {
  margin: 0; border-radius: 14px; padding: 12px 12px 10px;
  color: #fff; background: rgba(28, 16, 24, .55);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
  border: 1px solid rgba(255,255,255,.12);
}
.yb-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.yuanbao .lab { opacity: .85; font-size: 11px; }
.yuanbao .bal { font-size: 24px; font-weight: 800; margin: 2px 0 0; letter-spacing: .3px; }
.yb-recharge {
  border: 0; height: 30px; padding: 0 14px; border-radius: 999px;
  background: #22c55e; color: #fff; font-size: 12px; font-weight: 700;
}
.yuanbao .earn {
  display: flex; justify-content: space-between; gap: 8px;
  border-top: 1px dashed rgba(255,255,255,.18); margin-top: 10px; padding-top: 8px;
  font-size: 11px; opacity: .9;
}
.mine-quick,
.mine-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  padding: 14px 8px 12px;
  background: var(--card); border-radius: 16px; box-shadow: var(--shadow);
}
.mine-quick {
  margin: 10px 0 6px;
}
.mine-sec {
  margin: 0 10px 10px;
}
.mine-sec .mine-grid {
  padding: 14px 8px 10px;
}
.mine-quick button,
.mine-grid-btn {
  border: 0; background: transparent; color: #3a3a3c;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 600; padding: 2px 0;
}
.mine-grid-btn:active .mq-ico,
.mine-quick button:active .mq-ico { transform: scale(.96); }
.mq-ico {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  transition: transform .12s ease;
}
.mq-ico svg { width: 18px; height: 18px; }
.mq-ico.gold { background: #fff4e5; color: #e0892e; }
.mq-ico.slate { background: #eef2f7; color: #5b6b7c; }
.mq-ico.cyan { background: #e8f8f6; color: #2a9d8f; }
.mq-ico.violet { background: #f1ecff; color: #7c5cbf; }
.mq-ico.red { background: #ffe9ea; color: #e51d34; }
.mq-ico.orange { background: #fff0e4; color: #ea580c; }
.mq-ico.blue { background: #e8f1ff; color: #3b82f6; }
.mq-ico.green { background: #e9f8ef; color: #16a34a; }
.mq-ico.purple { background: #f5e9ff; color: #9333ea; }
.mq-ico.gray { background: #f1f2f4; color: #64748b; }
.mine-list { display: none; }
.mine-item { display: none; }
.mine-ico { display: none; }

.profile-page { padding: 12px; background: #f7f7f7; }
.profile-card { background: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 6px 18px rgba(15,23,42,.04); }
.phone-bind-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 12px;
}
.phone-bind-head b { font-size: 15px; }
.phone-bind-status {
  font-size: 12px; font-weight: 600; color: #999;
  padding: 3px 8px; border-radius: 999px; background: #f5f5f5;
}
.phone-bind-status.on { color: #b42318; background: #fff1f0; }
.profile-preview { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.profile-preview b { font-size: 16px; }
.avatar-upload {
  position: relative; width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
  flex: none; cursor: pointer; display: block;
}
.avatar-upload img, .avatar-upload .ava-fallback { width: 72px !important; height: 72px !important; }
.avatar-upload-mask {
  position: absolute; inset: 0; background: rgba(0,0,0,.45); color: #fff;
  display: grid; place-items: center; font-size: 12px; opacity: 0; transition: opacity .15s;
}
.avatar-upload:hover .avatar-upload-mask, .avatar-upload:active .avatar-upload-mask { opacity: 1; }

.seg { display: grid; grid-template-columns: 1fr 1fr; background: #fff; }
.seg button { border: 0; background: transparent; height: 40px; color: #888; font-size: 14px; }
.seg button.on { color: var(--red); box-shadow: inset 0 -2px 0 var(--red); font-weight: 700; }
.olist { padding: 10px; }
.ocard { background: #fff; border-radius: 8px; padding: 12px; margin-bottom: 8px; width: 100%; border: 0; text-align: left; color: inherit; display: block; }
.empty { text-align: center; color: #aaa; padding: 48px 10px; font-size: 13px; }

.r-bal { margin: 12px; border-radius: 12px; padding: 16px; color: #fff; background: linear-gradient(135deg, #7b68ee, #6a5acd); }
.r-bal .bal { font-size: 28px; font-weight: 800; margin-top: 4px; }
.block { margin: 0 12px 12px; }
.block h4 { margin: 0 0 8px; font-size: 13px; }
.pkgs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pkg { border: 1px solid #eee; background: #fff; border-radius: 8px; padding: 12px 10px; text-align: left; }
.pkg.on { border-color: #7b68ee; background: #f5f3ff; box-shadow: inset 0 0 0 1px #7b68ee; }
.pkg b { display: block; font-size: 18px; margin: 2px 0; }
.pkg .bonus { color: var(--red); font-size: 11px; }
.pay-item { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 12px; margin-bottom: 8px; border: 1px solid #eee; width: 100%; text-align: left; color: inherit; }
.pay-item.on { border-color: rgba(229,29,52,.45); background: #fff8f8; box-shadow: 0 0 0 1px rgba(229,29,52,.08); }
.pay-item-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pay-item-txt b { font-size: 14px; font-weight: 700; }
.pay-item-txt small { font-size: 11px; color: #999; }
.pay-item .radio { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #ccc; flex: none; }
.pay-item.on .radio { border-color: #e51d34; background: #e51d34; box-shadow: inset 0 0 0 3px #fff; }

#toast { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); background: rgba(0,0,0,.85); color: #fff; padding: 8px 14px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; max-width: 90vw; font-size: 12px; }
#toast.on { opacity: 1; }
.payqr { width: 160px; height: 160px; object-fit: contain; background: #f6f7fb; border-radius: 8px; margin: 8px auto; }
.ava-fallback { display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 700; background: linear-gradient(135deg, #444, #111 48%, #ddd 49%); }

/* PC：更大居中手机壳；壳内滚动；底栏贴壳底可点 */
@media (min-width: 768px) {
  html, body {
    height: 100%;
    overflow: hidden;
  }
  body {
    background:
      radial-gradient(1100px 480px at 50% -8%, rgba(229,29,52,.08), transparent 55%),
      linear-gradient(180deg, #ebe7e4 0%, #f2f2f7 40%, #eceef2 100%);
  }
  #app {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    overflow: hidden;
  }
  .phone {
    width: min(560px, calc(100vw - 24px));
    max-width: 560px;
    height: min(1100px, calc(100vh - 20px));
    height: min(1100px, calc(100dvh - 20px));
    min-height: 0;
    margin: 0;
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow:
      0 0 0 1px rgba(15, 23, 42, .06),
      0 28px 64px rgba(15, 23, 42, .16);
    background: var(--bg);
  }
  .phone > .page,
  .phone > .topbar + .page,
  .phone > .page.home-page,
  .phone > .page.mine-page,
  .phone > .page.msg-page,
  .phone > .page.olist,
  .phone > .page.profile-page,
  .phone > .page.detail-page {
    flex: 1 1 auto;
    min-height: 0 !important;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .phone > .page::-webkit-scrollbar,
  .phone .page::-webkit-scrollbar,
  .login-wrap::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }
  .phone > .topbar {
    flex: none;
    position: relative;
    top: auto;
  }
  .phone > .home-nav {
    flex: none;
    position: relative;
    top: auto;
  }
  /* 底栏脱离 viewport fixed，作为壳内 flex 子项贴底，可正常点击 */
  .phone > .tabbar {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    flex: 0 0 68px;
    height: 68px !important;
    padding: 4px 0 14px;
    border-radius: 0;
    border-top: 1px solid rgba(0, 0, 0, .06);
    background: #fff;
    z-index: 20;
  }
  .page {
    padding-bottom: 16px;
    min-height: 0;
  }
  .hot-bubble {
    left: auto;
    right: 10px;
    width: 200px;
    max-width: 200px;
    top: 64px;
    transform: translateX(10px) scale(.96);
  }
  .hot-bubble.on {
    transform: translateX(0) scale(1);
  }
  .hot-bubble.out {
    transform: translateX(8px) scale(.98);
  }
  .login-wrap {
    width: min(560px, calc(100vw - 24px));
    max-width: 560px;
    height: min(1100px, calc(100vh - 20px));
    height: min(1100px, calc(100dvh - 20px));
    min-height: 0;
    margin: 0;
    border-radius: 32px;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-shadow:
      0 0 0 1px rgba(15, 23, 42, .06),
      0 28px 64px rgba(15, 23, 42, .16);
  }
  .login-card { width: min(100%, 420px); }
  .modal {
    position: absolute;
    inset: 0;
  }
  .phone .modal,
  .login-wrap .modal {
    position: absolute;
  }
  .modal .panel { width: min(100%, 420px); }
  .feed { display: block; }
  .rank-grid { grid-template-columns: repeat(5, 1fr); }
  .pkgs { grid-template-columns: 1fr 1fr; }
}
