/* ============================================================
   比局 · 交互原型样式  V4.9
   设计令牌严格取自《比局平台页面设计规范 V4.9》
   rpx → px 换算：2rpx = 1px（375 设计宽度）
   ============================================================ */

:root {
  /* 色彩系统（硬性） */
  --primary: #E84040;        /* 品牌主色：主按钮/拉票券/品牌标识 */
  --accent-yellow: #F5A623;  /* 投票券/奖励标识 */
  --accent-blue: #4A90D9;    /* 盯眼标/信息提示 */
  --text: #333333;
  --text-2: #666666;
  --text-3: #999999;
  --divider: #EEEEEE;
  --bg: #F5F5F5;
  --card: #FFFFFF;
  /* 三眼标（极淡点亮，透明度 0.4 硬性） */
  --eye-hui: rgba(255,107,107,0.4);
  --eye-piao: rgba(255,217,61,0.4);
  --eye-ding: rgba(107,203,255,0.4);
  --eye-off: #DDDDDD;
  --hot: #FF6B00;            /* 热点标签橙 */
  --prob: #00C853;           /* 概率数值绿 */
  --rank: #FF9500;           /* 排名标签橙 */
  --factor: #8E8E93;         /* 影响因子灰 */
  --pass: #07C160;
  --reject: #FA5151;
  --code: #007AFF;
  /* 圆角与阴影（硬性） */
  --r-card: 6px 6px 0 0;     /* 上圆下方 12rpx/0 */
  --r-btn: 4px;              /* 8rpx */
  --shadow-card: 0 2px 6px rgba(0,0,0,0.05);
  --shadow-float: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-modal: 0 8px 24px rgba(0,0,0,0.15);
  /* 间距网格 8rpx=4px：XS4 S8 M12 L16 XL20 XXL24 */
  --s-xs: 4px; --s-s: 8px; --s-m: 12px; --s-l: 16px; --s-xl: 20px; --s-xxl: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: #EDEEF2;
  overflow: hidden;
}
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
input, textarea, select { font-family: inherit; border: none; outline: none; background: none; }
ul, li { list-style: none; }
img { display: block; max-width: 100%; }
::-webkit-scrollbar { width: 0; height: 0; }

/* ================= 桌面舞台 ================= */
.stage { height: 100vh; display: flex; align-items: center; justify-content: center; gap: 56px; padding: 24px; }
.stage-side { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 24px; }
.stage-logo {
  width: 64px; height: 64px; border-radius: 14px 14px 0 0; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700;
  box-shadow: 0 8px 20px rgba(232,64,64,0.35); letter-spacing: 2px;
}
.stage-title { font-size: 20px; font-weight: 700; margin-top: 14px; }
.stage-sub { font-size: 12px; color: var(--text-3); margin-top: 6px; line-height: 1.6; }
.stage-tips { display: flex; flex-direction: column; gap: 10px; }
.tip { font-size: 12.5px; color: var(--text-2); display: flex; gap: 8px; align-items: flex-start; line-height: 1.5; }
.tip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); margin-top: 5px; flex-shrink: 0; }
.stage-pages { display: flex; flex-wrap: wrap; gap: 6px; }
.stage-pages .pg {
  font-size: 11px; color: var(--text-2); background: #fff; padding: 4px 10px; border-radius: 999px;
  box-shadow: var(--shadow-card); cursor: pointer; transition: all .2s;
}
.stage-pages .pg:hover { color: var(--primary); transform: translateY(-1px); }

/* ================= 手机壳 ================= */
.phone-wrap { flex-shrink: 0; }
.phone {
  width: 390px; height: 824px; background: #1a1a1c; border-radius: 52px; padding: 12px;
  box-shadow: 0 30px 80px rgba(20,20,40,0.35), 0 0 0 2px #3a3a3e inset;
  position: relative;
}
.phone-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 122px; height: 32px; background: #1a1a1c; border-radius: 0 0 18px 18px; z-index: 60;
}
.phone-screen {
  width: 100%; height: 100%; background: var(--bg); border-radius: 42px; overflow: hidden;
  position: relative; display: flex; flex-direction: column;
}
.statusbar {
  height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px 0 32px; font-size: 14px; font-weight: 600; background: transparent;
  position: relative; z-index: 55;
}
.sb-icons { display: flex; align-items: center; }
.home-indicator { position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%); width: 134px; height: 5px; border-radius: 3px; background: rgba(0,0,0,0.85); z-index: 58; pointer-events: none; }

/* ================= 视口与屏幕转场 ================= */
.viewport { flex: 1; position: relative; overflow: hidden; }
.screen {
  position: absolute; inset: 0; background: var(--bg); display: flex; flex-direction: column;
  overflow: hidden;
}
.screen.anim-in-right { animation: slideInRight .3s cubic-bezier(.32,.72,.35,1) both; z-index: 10; }
.screen.anim-out-left { animation: slideOutLeft .3s cubic-bezier(.32,.72,.35,1) both; }
.screen.anim-in-left { animation: slideInLeft .3s cubic-bezier(.32,.72,.35,1) both; }
.screen.anim-out-right { animation: slideOutRight .3s cubic-bezier(.32,.72,.35,1) both; z-index: 10; }
.screen.anim-fade { animation: fadeIn .22s ease both; }
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes slideOutLeft { from { transform: translateX(0); } to { transform: translateX(-28%); } }
@keyframes slideInLeft { from { transform: translateX(-28%); } to { transform: translateX(0); } }
@keyframes slideOutRight { from { transform: translateX(0); } to { transform: translateX(100%); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.scroll-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; position: relative; }

/* ================= 通用导航 ================= */
.navbar {
  height: 44px; flex-shrink: 0; display: flex; align-items: center; padding: 0 var(--s-l);
  background: var(--card); position: relative; z-index: 20;
}
.navbar.transparent { background: transparent; position: absolute; left: 0; right: 0; top: 0; }
.nav-back { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.nav-back:active { background: rgba(0,0,0,0.06); }
.nav-title { flex: 1; text-align: center; font-size: 17px; font-weight: 600; max-width: 220px; margin: 0 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-right { min-width: 32px; display: flex; justify-content: flex-end; font-size: 13px; color: var(--text-2); }

/* ================= 按钮规范 ================= */
.btn-primary {
  height: 44px; border-radius: var(--r-btn); background: var(--primary); color: #fff;
  font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: center;
  transition: transform .12s, opacity .2s; width: 100%;
}
.btn-primary:active { transform: scale(0.97); }
.btn-primary.disabled { opacity: 0.4; pointer-events: none; }
.btn-outline {
  height: 44px; border-radius: var(--r-btn); background: transparent; color: var(--primary);
  border: 1px solid var(--primary); font-size: 15px; font-weight: 600; width: 100%;
  display: flex; align-items: center; justify-content: center;
}
.btn-mini { height: 28px; padding: 0 12px; border-radius: var(--r-btn); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.btn-mini.red { background: var(--primary); color: #fff; }
.btn-mini.ghost { border: 1px solid var(--divider); color: var(--text-2); }
.btn-mini.blue { background: var(--code); color: #fff; }

/* ================= 登录页 ================= */
.login-page { background: linear-gradient(180deg, #FFF5F5 0%, #FFFFFF 46%, #F5F5F5 100%); }
.login-hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 40px; }
.login-logo {
  width: 76px; height: 76px; border-radius: 18px 18px 0 0; background: var(--primary); color: #fff;
  font-size: 30px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 32px rgba(232,64,64,0.32); letter-spacing: 4px; padding-left: 4px;
  animation: logoPop .6s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes logoPop { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.login-name { font-size: 24px; font-weight: 700; margin-top: 18px; letter-spacing: 6px; }
.login-slogan { font-size: 13px; color: var(--text-2); margin-top: 10px; }
.login-feats { display: flex; gap: 14px; margin-top: 26px; }
.login-feat { font-size: 11px; color: var(--text-3); display: flex; align-items: center; gap: 4px; }
.login-feat i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-yellow); }
.login-actions { padding: 0 32px 46px; }
.login-agree { display: flex; align-items: flex-start; gap: 7px; margin: 14px 2px 18px; font-size: 11px; color: var(--text-3); line-height: 1.5; }
.login-agree .ck {
  width: 15px; height: 15px; border-radius: 50%; border: 1px solid #CCC; flex-shrink: 0; margin-top: 1px;
  display: flex; align-items: center; justify-content: center; transition: all .2s; background: #fff;
}
.login-agree .ck.on { background: var(--primary); border-color: var(--primary); }
.login-agree .ck svg { opacity: 0; }
.login-agree .ck.on svg { opacity: 1; }
.login-agree a { color: var(--accent-blue); }
.login-foot { text-align: center; font-size: 10px; color: #BBB; margin-top: 20px; }

/* ================= TabBar ================= */
.tabbar {
  height: 58px; flex-shrink: 0; background: var(--card); border-top: 1px solid var(--divider);
  display: flex; padding-bottom: 8px; position: relative; z-index: 30;
}
.tab-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--text-3); }
.tab-item .t-ic { width: 24px; height: 24px; }
.tab-item .t-tx { font-size: 10px; }
.tab-item.on { color: var(--primary); }
.tab-item .t-ic svg { width: 24px; height: 24px; }

/* ================= 首页头部 ================= */
.home-header { background: var(--card); padding: 6px var(--s-l) 0; flex-shrink: 0; position: relative; z-index: 20; }
.home-topbar { display: flex; align-items: center; height: 40px; gap: 10px; }
.home-menu { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; color: var(--text); }
.home-logo { font-size: 19px; font-weight: 800; color: var(--primary); letter-spacing: 2px; }
.home-search {
  flex: 1; height: 32px; border-radius: 16px; background: var(--bg); display: flex; align-items: center;
  padding: 0 12px; gap: 6px; color: var(--text-3); font-size: 12.5px;
}
.home-cats { display: flex; gap: 20px; padding: 10px 4px 0; overflow-x: auto; }
.home-cat { font-size: 14px; color: var(--text-2); padding-bottom: 8px; position: relative; white-space: nowrap; font-weight: 500; }
.home-cat.on { color: var(--text); font-weight: 700; font-size: 15px; }
.home-cat.on::after { content: ""; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); width: 18px; height: 3px; border-radius: 2px; background: var(--primary); }

/* ================= 侧边抽屉 ================= */
.drawer-mask { position: absolute; inset: 0; background: rgba(0,0,0,0.4); z-index: 40; animation: fadeIn .25s both; }
.drawer {
  position: absolute; top: 0; bottom: 0; left: 0; width: 264px; background: var(--card); z-index: 41;
  animation: drawerIn .3s cubic-bezier(.32,.72,.35,1) both; display: flex; flex-direction: column;
  border-radius: 0 16px 16px 0; overflow: hidden;
}
@keyframes drawerIn { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.drawer-head { padding: 60px 20px 18px; background: linear-gradient(135deg, #FFE9E9, #FFF6EC); }
.drawer-user { display: flex; align-items: center; gap: 10px; }
.drawer-ava { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: var(--shadow-card); }
.drawer-name { font-size: 16px; font-weight: 700; }
.drawer-sub { font-size: 11px; color: var(--text-2); margin-top: 2px; }
.drawer-list { padding: 12px; display: flex; flex-direction: column; }
.drawer-item { display: flex; align-items: center; gap: 12px; padding: 13px 10px; font-size: 14px; border-radius: 8px; }
.drawer-item:active { background: var(--bg); }
.drawer-item .d-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.drawer-item .d-arrow { margin-left: auto; color: #CCC; font-size: 12px; }
.drawer-ver { margin-top: auto; padding: 16px; font-size: 10px; color: #CCC; text-align: center; }

/* ================= 瀑布流卡片 ================= */
.feed { padding: 10px var(--s-l) 20px; column-count: 2; column-gap: 8px; }
.mcard {
  break-inside: avoid; margin-bottom: 10px; background: var(--card); border-radius: var(--r-card);
  overflow: hidden; box-shadow: var(--shadow-card); cursor: pointer;
  transition: transform .15s;
}
.mcard:active { transform: scale(0.97); }
.mcard-cover { width: 100%; aspect-ratio: 1/1; position: relative; overflow: hidden; }
.mcard-cover .cover-bg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.mcard-cover .cover-emoji { font-size: 62px; filter: drop-shadow(0 6px 12px rgba(0,0,0,0.18)); }
.mcard-tag {
  position: absolute; top: 8px; left: 8px; font-size: 10px; padding: 3px 7px; border-radius: 3px;
  color: #fff; background: rgba(0,0,0,0.45); backdrop-filter: blur(2px);
}
.mcard-tag.free { background: var(--primary); }
.mcard-tag.hot { background: var(--hot); }
.mcard-tag.enroll { background: var(--accent-blue); }
.mcard-plane { position: absolute; right: 6px; bottom: 6px; font-size: 12px; color: var(--text-3); opacity: 0.6; background: rgba(255,255,255,0.7); border-radius: 4px; padding: 1px 4px; }
.mcard-stage {
  position: absolute; left: 8px; bottom: 8px; font-size: 10px; color: #fff; background: rgba(0,0,0,0.42);
  padding: 3px 7px; border-radius: 3px; backdrop-filter: blur(2px);
}
.mcard-body { padding: 8px 10px 10px; }
.mcard-title {
  font-size: 14px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.mcard-meta { font-size: 12px; color: var(--text-2); margin-top: 5px; display: flex; align-items: center; gap: 4px; }
.mcard-meta .prize { color: var(--primary); font-weight: 700; }
.mcard-foot { font-size: 11px; color: var(--text-3); margin-top: 4px; display: flex; align-items: center; justify-content: space-between; }
.mcard-foot .heat { display: flex; align-items: center; gap: 3px; }

/* ================= 筛选栏（全城） ================= */
.filter-bar { display: flex; background: var(--card); padding: 10px var(--s-l); gap: 8px; align-items: center; flex-shrink: 0; border-bottom: 1px solid var(--divider); }
.filter-chip {
  font-size: 12px; color: var(--text-2); padding: 6px 13px; border-radius: 999px; background: var(--bg);
  white-space: nowrap;
}
.filter-chip.on { color: #fff; background: var(--primary); font-weight: 600; }
.filter-city { margin-left: auto; font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 2px; }

/* ================= 关注页 ================= */
.follow-list { padding: 10px var(--s-l) 20px; display: flex; flex-direction: column; gap: 10px; }
.follow-card { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-card); overflow: hidden; }
.follow-head { display: flex; align-items: center; gap: 9px; padding: 12px 14px 10px; }
.follow-ava { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 19px; }
.follow-name { font-size: 13.5px; font-weight: 600; }
.follow-time { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.follow-btn { margin-left: auto; font-size: 11px; color: var(--text-3); border: 1px solid var(--divider); border-radius: 999px; padding: 4px 12px; }
.follow-btn.on { color: var(--primary); border-color: var(--primary); }
.follow-text { padding: 0 14px 12px; font-size: 13.5px; line-height: 1.55; color: var(--text); }
.follow-text .hl { color: var(--accent-blue); }
.follow-event { margin: 0 14px 14px; background: var(--bg); border-radius: 6px 6px 0 0; display: flex; overflow: hidden; }
.follow-event .fe-cover { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; font-size: 30px; flex-shrink: 0; }
.follow-event .fe-info { padding: 9px 10px; flex: 1; min-width: 0; }
.follow-event .fe-title { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.follow-event .fe-meta { font-size: 11px; color: var(--text-3); margin-top: 4px; }

/* ================= 我的 ================= */
.mine-head { background: linear-gradient(160deg, #FFEDED 0%, #FFF8F0 60%, #FFFFFF 100%); padding: 18px var(--s-l) 16px; }
.mine-user { display: flex; align-items: center; gap: 13px; }
.mine-ava-wrap { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.mine-ava { width: 64px; height: 64px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 36px; box-shadow: var(--shadow-float); }
.mine-title-ring {
  position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center;
  justify-content: center; border: 2px solid #fff;
}
.mine-name { font-size: 19px; font-weight: 700; }
.mine-title-line { font-size: 11.5px; color: var(--text-2); margin-top: 5px; display: flex; align-items: center; gap: 6px; }
.mine-title-line .w { color: var(--rank); font-weight: 600; }
.mine-eyes { display: flex; gap: 14px; margin-top: 13px; background: rgba(255,255,255,0.72); border-radius: 8px; padding: 10px 14px; box-shadow: var(--shadow-card); }
.eye-item { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-2); }
.eye-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--eye-off); background: transparent; position: relative; }
.eye-dot.hui.lit { border-color: var(--eye-hui); background: var(--eye-hui); box-shadow: 0 0 8px var(--eye-hui); }
.eye-dot.piao.lit { border-color: var(--eye-piao); background: var(--eye-piao); box-shadow: 0 0 8px var(--eye-piao); }
.eye-dot.ding.lit { border-color: var(--eye-ding); background: var(--eye-ding); box-shadow: 0 0 8px var(--eye-ding); }
.mine-stats { display: flex; background: var(--card); margin: 12px var(--s-l) 0; border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 14px 0; }
.mine-stat { flex: 1; text-align: center; }
.mine-stat + .mine-stat { border-left: 1px solid var(--divider); }
.mine-stat .v { font-size: 18px; font-weight: 700; }
.mine-stat .k { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.mine-section { margin: 12px var(--s-l) 0; background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-card); overflow: hidden; }
.mine-row { display: flex; align-items: center; gap: 12px; padding: 14px; font-size: 14px; }
.mine-row + .mine-row { border-top: 1px solid var(--divider); }
.mine-row:active { background: #FAFAFA; }
.mine-row .r-ic { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.mine-row .r-sub { margin-left: auto; font-size: 11px; color: var(--text-3); }
.mine-row .r-arrow { color: #CCC; font-size: 12px; }

/* ================= 赛事详情 ================= */
.event-hero { position: relative; height: 218px; flex-shrink: 0; overflow: hidden; }
.event-hero .hero-bg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.event-hero .hero-emoji { font-size: 110px; filter: drop-shadow(0 10px 24px rgba(0,0,0,0.25)); }
.event-hero .hero-mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.32) 0%, transparent 34%, transparent 62%, rgba(0,0,0,0.55) 100%); }
.event-hero .hero-info { position: absolute; left: 16px; right: 16px; bottom: 12px; color: #fff; }
.event-hero .hero-title { font-size: 20px; font-weight: 700; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.event-hero .hero-meta { display: flex; gap: 8px; margin-top: 8px; font-size: 11px; }
.hero-chip { background: rgba(255,255,255,0.22); backdrop-filter: blur(4px); padding: 4px 9px; border-radius: 4px; }
.stage-stepper { display: flex; align-items: center; background: var(--card); padding: 14px var(--s-l); flex-shrink: 0; }
.step-node { display: flex; flex-direction: column; align-items: center; gap: 5px; flex-shrink: 0; }
.step-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--bg); color: var(--text-3); font-size: 11px; display: flex; align-items: center; justify-content: center; font-weight: 600; border: 1px solid var(--divider); }
.step-node.cur .step-dot { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 4px rgba(232,64,64,0.15); }
.step-node.done .step-dot { background: #FFE3E3; border-color: #FFC9C9; color: var(--primary); }
.step-tx { font-size: 10px; color: var(--text-3); }
.step-node.cur .step-tx { color: var(--primary); font-weight: 600; }
.step-line { flex: 1; height: 1.5px; background: var(--divider); margin: 0 6px 15px; }
.step-line.done { background: #FFC9C9; }

.event-block { background: var(--card); margin-top: 8px; padding: 14px var(--s-l); }
.event-block .b-title { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.event-block .b-title::before { content: ""; width: 3px; height: 13px; background: var(--primary); border-radius: 2px; }
.event-kv { display: flex; margin-top: 12px; }
.event-kv .kv { flex: 1; }
.event-kv .kv .k { font-size: 11px; color: var(--text-3); }
.event-kv .kv .v { font-size: 16px; font-weight: 700; margin-top: 4px; }
.event-kv .kv .v.red { color: var(--primary); }

/* 报名挤兑进度 */
.squeeze { margin-top: 12px; background: #FFF8EC; border-radius: 8px; padding: 12px; }
.squeeze-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); }
.squeeze-row .ai { color: var(--text-3); }
.squeeze-bar { height: 8px; background: #F0E6D2; border-radius: 4px; margin-top: 8px; overflow: hidden; }
.squeeze-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent-yellow), var(--primary)); transition: width .5s; }
.squeeze-note { font-size: 11px; color: #B48A3C; margin-top: 8px; line-height: 1.5; }

/* 圆环排名区 */
.ring-section { background: linear-gradient(180deg, #2B2B3A 0%, #1F1F2C 100%); margin-top: 8px; padding: 16px 0 18px; }
.ring-head { display: flex; align-items: center; padding: 0 var(--s-l); color: #fff; }
.ring-head .rh-title { font-size: 14px; font-weight: 700; }
.ring-head .rh-round { font-size: 11px; color: rgba(255,255,255,0.55); margin-left: 8px; }
.ring-head .rh-live { margin-left: auto; display: flex; align-items: center; gap: 5px; font-size: 10px; color: #FF8484; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #FF5B5B; animation: blink 1.2s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
.ring-grid { display: grid; gap: 0; margin-top: 14px; }
.ring-grid.c20 { grid-template-columns: repeat(5, 1fr); }
.ring-grid.c10 { grid-template-columns: repeat(5, 1fr); }
.ring-cell { display: flex; flex-direction: column; align-items: center; padding: 7px 0 6px; position: relative; cursor: pointer; transition: transform .3s; }
.ring-circle {
  width: 52px; height: 52px; border-radius: 50%; padding: 2.5px; position: relative;
  background: rgba(255,255,255,0.14); transition: box-shadow .3s;
}
.ring-circle .r-in { width: 100%; height: 100%; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; overflow: hidden; }
.ring-cell.top1 .ring-circle { background: conic-gradient(#FFD75E, #FFA500, #FFE9A8, #FFD75E); box-shadow: 0 0 14px rgba(255,193,61,0.75); animation: ringGlow 2s infinite; }
.ring-cell.top2 .ring-circle { background: conic-gradient(#E8E8E8, #A9A9A9, #FFFFFF, #E8E8E8); box-shadow: 0 0 12px rgba(220,220,220,0.6); }
.ring-cell.top3 .ring-circle { background: conic-gradient(#E5A26A, #B06A32, #F3C69B, #E5A26A); box-shadow: 0 0 12px rgba(206,138,75,0.6); }
@keyframes ringGlow { 0%,100% { box-shadow: 0 0 10px rgba(255,193,61,0.55); } 50% { box-shadow: 0 0 20px rgba(255,193,61,0.95); } }
.ring-rank {
  position: absolute; top: 2px; left: 50%; transform: translate(-50%, -50%); z-index: 2;
  min-width: 17px; height: 17px; border-radius: 9px; padding: 0 4px; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; color: #fff; background: #55556A;
  border: 1.5px solid #2B2B3A;
}
.ring-cell.top1 .ring-rank { background: #F5A623; }
.ring-cell.top2 .ring-rank { background: #9E9E9E; }
.ring-cell.top3 .ring-rank { background: #C07840; }
.ring-name { font-size: 9.5px; color: rgba(255,255,255,0.82); margin-top: 6px; max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ring-votes { font-size: 9px; color: rgba(255,255,255,0.5); margin-top: 2px; display: flex; align-items: center; gap: 2px; }
.ring-votes .v { color: #FFD75E; font-weight: 600; }
.ring-votes .v.pump { animation: votePump .5s; display: inline-block; }
@keyframes votePump { 0% { transform: scale(1); } 40% { transform: scale(1.45); color: #FFF; } 100% { transform: scale(1); } }
.ring-ai-tag { font-size: 8px; color: rgba(255,255,255,0.4); border: 1px solid rgba(255,255,255,0.25); border-radius: 2px; padding: 0 2px; margin-left: 2px; }

/* 选手列表 */
.player-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; }
.player-row + .player-row { border-top: 1px solid var(--divider); }
.player-ava { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 25px; flex-shrink: 0; position: relative; }
.player-info { flex: 1; min-width: 0; }
.player-name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.tag-ai { font-size: 9px; color: var(--text-3); border: 1px solid #DDD; padding: 0 4px; border-radius: 2px; font-weight: 400; }
.tag-real { font-size: 9px; color: var(--accent-blue); border: 1px solid rgba(74,144,217,0.4); padding: 0 4px; border-radius: 2px; font-weight: 400; }
.player-slogan { font-size: 11.5px; color: var(--text-3); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-vote { text-align: right; flex-shrink: 0; }
.player-vote .pv-num { font-size: 15px; font-weight: 700; color: var(--primary); }
.player-vote .pv-rank { font-size: 10px; color: var(--rank); margin-top: 2px; font-weight: 600; }

/* ================= 选手详情 ================= */
.pd-carousel { position: relative; flex-shrink: 0; background: #111; }
.pd-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; aspect-ratio: 1/1; }
.pd-slide { width: 100%; flex-shrink: 0; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; position: relative; }
.pd-slide .s-emoji { font-size: 150px; filter: drop-shadow(0 14px 30px rgba(0,0,0,0.3)); }
.pd-slide .s-label { position: absolute; bottom: 14px; left: 14px; color: rgba(255,255,255,0.85); font-size: 11px; background: rgba(0,0,0,0.35); padding: 4px 10px; border-radius: 4px; backdrop-filter: blur(4px); }
.pd-dots { position: absolute; bottom: 12px; right: 14px; display: flex; gap: 5px; z-index: 5; }
.pd-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.4); }
.pd-dot.on { background: #fff; width: 14px; border-radius: 3px; }
/* 弹幕 */
.danmaku-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 4; }
.danmaku {
  position: absolute; white-space: nowrap; font-size: 11.5px; color: #fff;
  background: rgba(0,0,0,0.38); padding: 4px 11px; border-radius: 999px; backdrop-filter: blur(2px);
  animation: dmFly linear both; display: flex; align-items: center; gap: 5px;
}
.danmaku .dm-ava { font-size: 13px; }
@keyframes dmFly { from { transform: translateX(390px); } to { transform: translateX(-420px); } }

.pd-info { background: var(--card); padding: 14px var(--s-l) 12px; }
.pd-name-line { display: flex; align-items: center; gap: 8px; }
.pd-name { font-size: 18px; font-weight: 700; }
.pd-rank-badge { font-size: 11px; color: var(--rank); border: 1px solid rgba(255,149,0,0.45); padding: 2px 8px; border-radius: 3px; font-weight: 600; }
.pd-slogan { font-size: 13px; color: var(--text-2); margin-top: 8px; line-height: 1.55; }
.pd-nums { display: flex; gap: 18px; margin-top: 12px; }
.pd-num .n { font-size: 16px; font-weight: 700; color: var(--primary); }
.pd-num .n.gray { color: var(--factor); }
.pd-num .t { font-size: 10.5px; color: var(--text-3); margin-top: 2px; }

/* 评论区 */
.comment-sec { background: var(--card); margin-top: 8px; padding: 14px var(--s-l) 8px; }
.comment-item { display: flex; gap: 9px; padding: 10px 0; }
.comment-item + .comment-item { border-top: 1px solid #F6F6F6; }
.c-ava { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.c-body { flex: 1; min-width: 0; }
.c-name { font-size: 11.5px; color: var(--text-3); }
.c-text { font-size: 13.5px; margin-top: 4px; line-height: 1.5; }
.c-meta { font-size: 10.5px; color: #BBB; margin-top: 5px; display: flex; gap: 12px; }
.c-like { margin-left: auto; color: #BBB; font-size: 11px; display: flex; align-items: center; gap: 3px; flex-shrink: 0; }
.c-like.on { color: var(--primary); }

/* 底部投票栏 */
.pd-ai-hint { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 11px; color: var(--factor); padding: 5px 0 0; background: var(--card); }
.pd-votebar { background: var(--card); border-top: 1px solid var(--divider); padding: 8px 10px 14px; display: flex; gap: 8px; flex-shrink: 0; }
.vote-btn {
  flex: 1; height: 46px; border-radius: var(--r-btn); background: var(--bg); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px; transition: transform .12s; position: relative;
}
.vote-btn:active { transform: scale(0.95); }
.vote-btn .vb-ic { font-size: 17px; line-height: 1; }
.vote-btn .vb-tx { font-size: 9.5px; color: var(--text-2); }
.vote-btn .vb-tx b { color: var(--primary); }
.vote-btn.done { background: #FFECEC; }
.vote-btn.done .vb-ic { filter: none; }
.vote-btn.buy { background: var(--primary); }
.vote-btn.buy .vb-ic { }
.vote-btn.buy .vb-tx { color: rgba(255,255,255,0.85); }
.vote-btn.buy .vb-tx b { color: #fff; }
.vote-badge { position: absolute; top: -5px; right: -4px; background: var(--accent-yellow); color: #fff; font-size: 9px; padding: 1px 5px; border-radius: 8px; font-weight: 700; }

/* ================= 弹窗系统 ================= */
.overlay-root { position: absolute; inset: 0; pointer-events: none; z-index: 70; }
.overlay-root > * { pointer-events: auto; }
.modal-mask { position: absolute; inset: 0; background: rgba(0,0,0,0.55); display: flex; align-items: center; justify-content: center; animation: fadeIn .22s both; padding: 36px; }
.modal-mask.closing { animation: fadeOut .2s both; }
@keyframes fadeOut { to { opacity: 0; } }
.modal-card { background: var(--card); border-radius: 10px 10px 0 0; width: 100%; max-height: 84%; overflow-y: auto; box-shadow: var(--shadow-modal); animation: popIn .32s cubic-bezier(.34,1.4,.64,1) both; }
@keyframes popIn { from { transform: scale(0.82); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-body { padding: 24px 20px 20px; text-align: center; }
.modal-title { font-size: 16px; font-weight: 700; }
.modal-desc { font-size: 13px; color: var(--text-2); margin-top: 10px; line-height: 1.6; }
.modal-actions { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 10px; }

/* 中奖弹窗 */
.lottery-emoji { font-size: 52px; animation: popIn .5s cubic-bezier(.34,1.56,.64,1) both; }
.lottery-prob { font-size: 30px; font-weight: 800; color: var(--prob); margin-top: 8px; }
.lottery-coupon { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.mini-coupon { width: 92px; padding: 10px 0; border-radius: 6px 6px 0 0; background: linear-gradient(135deg, #FFD75E, var(--accent-yellow)); color: #7A4E00; }
.mini-coupon .mc-v { font-size: 19px; font-weight: 800; }
.mini-coupon .mc-t { font-size: 10px; margin-top: 2px; }
.lottery-miss { margin-top: 14px; font-size: 13px; color: var(--text-2); background: var(--bg); border-radius: 8px; padding: 12px; }

/* 支付成功概率弹窗 */
.pay-ok-emoji { font-size: 44px; }
.pay-prob { font-size: 42px; font-weight: 800; color: var(--prob); line-height: 1.2; animation: probPop .5s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes probPop { 0% { transform: scale(0.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.pay-prob-label { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.pay-facts { margin-top: 16px; background: var(--bg); border-radius: 8px; padding: 12px 14px; text-align: left; }
.pay-fact { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); padding: 4px 0; }
.pay-fact .fv { font-weight: 600; color: var(--text); }
.pay-fact .fv.orange { color: var(--rank); }
.pay-fact .fv.gray { color: var(--factor); }
.pay-disclaim { font-size: 10px; color: #C0C0C0; line-height: 1.6; margin-top: 14px; text-align: left; border-top: 1px solid var(--divider); padding-top: 10px; }

/* ================= ActionSheet ================= */
.sheet-mask { position: absolute; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: flex-end; animation: fadeIn .22s both; }
.sheet { width: 100%; background: var(--card); border-radius: 14px 14px 0 0; animation: sheetUp .3s cubic-bezier(.32,.72,.35,1) both; overflow: hidden; max-height: 86%; display: flex; flex-direction: column; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet-title { text-align: center; font-size: 13px; color: var(--text-2); padding: 16px 0 10px; font-weight: 600; }
.sheet-grid { display: flex; padding: 6px 20px 10px; gap: 18px; justify-content: center; }
.sheet-opt { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 11.5px; color: var(--text-2); }
.sheet-opt .so-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 25px; transition: transform .12s; }
.sheet-opt:active .so-ic { transform: scale(0.9); }
.sheet-cancel { margin-top: 6px; border-top: 8px solid var(--bg); height: 48px; display: flex; align-items: center; justify-content: center; font-size: 15px; }

/* 评论输入 sheet */
.comment-input-row { display: flex; gap: 8px; padding: 8px 16px 16px; align-items: flex-end; }
.comment-input-row textarea {
  flex: 1; background: var(--bg); border-radius: 8px; padding: 10px 12px; font-size: 13.5px; min-height: 68px;
  resize: none; color: var(--text);
}
.comment-send { height: 36px; padding: 0 16px; border-radius: var(--r-btn); background: var(--primary); color: #fff; font-size: 13px; font-weight: 600; flex-shrink: 0; }

/* 拉票支付 sheet */
.pay-amounts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 6px 18px 4px; }
.pay-amt { border: 1.5px solid var(--divider); border-radius: 8px; padding: 12px 0; text-align: center; transition: all .15s; }
.pay-amt .pa-v { font-size: 19px; font-weight: 800; }
.pay-amt .pa-t { font-size: 10.5px; color: var(--text-3); margin-top: 3px; }
.pay-amt.on { border-color: var(--primary); background: #FFF5F5; }
.pay-amt.on .pa-v { color: var(--primary); }
.pay-note { font-size: 10.5px; color: var(--text-3); padding: 10px 20px 0; line-height: 1.6; }
.pay-submit { margin: 12px 18px 18px; }

/* ================= Toast ================= */
.toast-root { position: absolute; left: 0; right: 0; top: 42%; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 90; pointer-events: none; }
.toast {
  background: rgba(0,0,0,0.78); color: #fff; font-size: 13px; padding: 10px 18px; border-radius: 8px;
  animation: toastIn .25s both; max-width: 78%; text-align: center; line-height: 1.5;
}
.toast.out { animation: toastOut .3s both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-6px); } }

/* 非模态横幅（关键名次推送） */
.banner-push {
  position: absolute; top: 50px; left: 14px; right: 14px; z-index: 80; background: rgba(30,30,40,0.92);
  border-radius: 10px; padding: 11px 14px; display: flex; gap: 10px; align-items: center; color: #fff;
  box-shadow: var(--shadow-modal); animation: bannerIn .4s cubic-bezier(.34,1.3,.64,1) both; backdrop-filter: blur(6px);
}
@keyframes bannerIn { from { transform: translateY(-90px); opacity: 0; } to { transform: none; opacity: 1; } }
.banner-push.out { animation: bannerOut .4s both; }
@keyframes bannerOut { to { transform: translateY(-90px); opacity: 0; } }
.banner-push .bp-emoji { font-size: 24px; }
.banner-push .bp-title { font-size: 13px; font-weight: 700; }
.banner-push .bp-sub { font-size: 11px; color: rgba(255,255,255,0.65); margin-top: 2px; }

/* ================= 比局券 ================= */
.coupon-tabs { display: flex; background: var(--card); padding: 4px var(--s-l) 0; gap: 24px; flex-shrink: 0; }
.coupon-tab { font-size: 14.5px; font-weight: 500; color: var(--text-2); padding: 10px 2px; position: relative; }
.coupon-tab.on { color: var(--text); font-weight: 700; }
.coupon-tab.on::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 20px; height: 3px; border-radius: 2px; }
.coupon-tab.t-red.on::after { background: var(--primary); }
.coupon-tab.t-yellow.on::after { background: var(--accent-yellow); }
.coupon-list { padding: 14px var(--s-l) 24px; display: flex; flex-direction: column; gap: 12px; }
.coupon {
  display: flex; border-radius: 8px 8px 0 0; overflow: hidden; box-shadow: var(--shadow-card);
  cursor: pointer; transition: transform .15s; position: relative;
}
.coupon:active { transform: scale(0.98); }
.coupon-left { width: 108px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; padding: 18px 0; position: relative; }
.coupon-left::after {
  content: ""; position: absolute; right: -1px; top: 0; bottom: 0; width: 2px;
  background-image: radial-gradient(circle at 1px 4px, var(--bg) 2.6px, transparent 2.8px);
  background-size: 2px 11px;
}
.coupon.red .coupon-left { background: linear-gradient(150deg, #FF6B6B, var(--primary)); }
.coupon.yellow .coupon-left { background: linear-gradient(150deg, #FFC53D, var(--accent-yellow)); }
.coupon-left .cl-v { font-size: 27px; font-weight: 800; }
.coupon-left .cl-v small { font-size: 13px; }
.coupon-left .cl-t { font-size: 10px; opacity: 0.9; margin-top: 3px; }
.coupon-right { flex: 1; background: var(--card); padding: 12px 14px; }
.coupon-right .cr-name { font-size: 14.5px; font-weight: 700; }
.coupon-right .cr-rule { font-size: 11px; color: var(--text-2); margin-top: 5px; }
.coupon-right .cr-exp { font-size: 10.5px; color: var(--text-3); margin-top: 6px; }
.coupon-right .cr-use { position: absolute; right: 14px; bottom: 12px; font-size: 11px; color: var(--primary); border: 1px solid var(--primary); border-radius: 999px; padding: 3px 11px; }
.coupon.yellow .cr-use { color: #D98E00; border-color: var(--accent-yellow); }
.coupon-demo-mark { position: absolute; top: 8px; right: 10px; font-size: 9px; color: #CCC; }

/* 券详情商家列表 */
.merchant-row { display: flex; align-items: center; gap: 10px; padding: 13px 0; }
.merchant-row + .merchant-row { border-top: 1px solid var(--divider); }
.merchant-logo { width: 44px; height: 44px; border-radius: 6px 6px 0 0; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.merchant-info { flex: 1; min-width: 0; }
.merchant-name { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.tag-realbiz { font-size: 9px; background: var(--primary); color: #fff; border-radius: 2px; padding: 1px 4px; }
.tag-cert { font-size: 9px; color: var(--accent-blue); border: 1px solid rgba(74,144,217,0.4); border-radius: 2px; padding: 0 4px; }
.merchant-meta { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.merchant-dist { font-size: 11px; color: var(--text-3); flex-shrink: 0; }

/* ================= 荣誉头衔 ================= */
.title-card {
  margin: 12px var(--s-l) 0; border-radius: var(--r-card); padding: 16px; background: var(--card);
  box-shadow: var(--shadow-card); display: flex; align-items: center; gap: 14px; position: relative; overflow: hidden;
}
.title-card.cur { background: linear-gradient(120deg, #FFF1F1, #FFF9F0); box-shadow: 0 4px 14px rgba(232,64,64,0.14); }
.title-badge { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.title-info .t-name { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.title-info .t-weight { font-size: 12px; color: var(--rank); font-weight: 600; }
.title-info .t-desc { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.title-cur-mark { position: absolute; top: 0; right: 0; background: var(--primary); color: #fff; font-size: 10px; padding: 3px 10px; border-radius: 0 0 0 8px; }

/* ================= 赛主后台 ================= */
.host-tabs { display: flex; background: var(--card); padding: 0 var(--s-l); gap: 22px; flex-shrink: 0; border-bottom: 1px solid var(--divider); }
.host-tab { font-size: 13.5px; color: var(--text-2); padding: 11px 2px; position: relative; }
.host-tab.on { color: var(--primary); font-weight: 700; }
.host-tab.on::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2.5px; background: var(--primary); border-radius: 2px; }
.host-card { background: var(--card); margin: 10px var(--s-l) 0; border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 14px; }
.host-card .hc-title { font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.status-pill { font-size: 10px; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.status-pill.running { background: #E8F9F0; color: #0AA96C; }
.status-pill.pending { background: #FFF4E0; color: #D98E00; }
.status-pill.done { background: var(--bg); color: var(--text-3); }
.host-card .hc-meta { font-size: 11.5px; color: var(--text-3); margin-top: 8px; display: flex; gap: 14px; }
.host-card .hc-nums { display: flex; gap: 0; margin-top: 12px; background: var(--bg); border-radius: 8px; padding: 10px 0; }
.host-card .hc-num { flex: 1; text-align: center; }
.host-card .hc-num .v { font-size: 15px; font-weight: 700; }
.host-card .hc-num .k { font-size: 10px; color: var(--text-3); margin-top: 2px; }
.host-card .hc-ops { display: flex; gap: 8px; margin-top: 12px; }
.host-card .hc-ops .btn-mini { flex: 1; height: 32px; }
.audit-card { background: var(--card); margin: 10px var(--s-l) 0; border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 13px 14px; display: flex; gap: 11px; align-items: center; }
.audit-ava { width: 46px; height: 46px; border-radius: 6px 6px 0 0; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.audit-info { flex: 1; min-width: 0; }
.audit-name { font-size: 13.5px; font-weight: 600; }
.audit-work { font-size: 11px; color: var(--text-3); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audit-ops { display: flex; gap: 7px; flex-shrink: 0; }
.btn-reject { width: 54px; height: 30px; border-radius: var(--r-btn); background: var(--reject); color: #fff; font-size: 12px; font-weight: 600; }
.btn-pass { width: 54px; height: 30px; border-radius: var(--r-btn); background: var(--pass); color: #fff; font-size: 12px; font-weight: 600; }
.staff-row { display: flex; align-items: center; gap: 10px; padding: 13px 0; }
.staff-row + .staff-row { border-top: 1px solid var(--divider); }
.staff-ava { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.staff-name { font-size: 13.5px; font-weight: 600; }
.staff-perm { font-size: 10.5px; color: var(--text-3); margin-top: 2px; }

/* ================= 验证码页 ================= */
.verify-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 44px 32px 0; background: var(--card); }
.verify-icon { width: 62px; height: 62px; border-radius: 16px 16px 0 0; background: #FFF0F0; display: flex; align-items: center; justify-content: center; font-size: 30px; }
.verify-title { font-size: 17px; font-weight: 700; margin-top: 16px; }
.verify-sub { font-size: 12.5px; color: var(--text-2); margin-top: 9px; text-align: center; line-height: 1.6; }
.verify-sub b { color: var(--primary); }
.code-boxes { display: flex; gap: 9px; margin-top: 30px; }
.code-box {
  width: 44px; height: 52px; border-radius: var(--r-btn); background: var(--bg); border: 1.5px solid transparent;
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700;
  transition: border-color .2s;
}
.code-box.focus { border-color: var(--code); background: #fff; }
.code-box.filled { background: #fff; border-color: var(--divider); }
.code-status { font-size: 11.5px; color: var(--text-3); margin-top: 18px; }
.code-resend { font-size: 12px; color: var(--code); margin-top: 8px; }
.code-resend.gray { color: #BBB; }

/* ================= 创建赛事 ================= */
.form-sec { background: var(--card); margin-top: 10px; padding: 14px var(--s-l); }
.form-label { font-size: 13px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 5px; }
.form-label .req { color: var(--primary); }
.form-input { width: 100%; background: var(--bg); border-radius: 8px; height: 42px; padding: 0 12px; font-size: 14px; color: var(--text); }
.form-hint { font-size: 10.5px; color: var(--text-3); margin-top: 7px; line-height: 1.5; }
.form-hint .lock { color: var(--primary); font-weight: 600; }
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-chip { font-size: 12px; padding: 7px 12px; border-radius: 999px; background: var(--bg); color: var(--text-2); border: 1.5px solid transparent; }
.topic-chip.on { background: #FFF3EC; color: var(--hot); border-color: var(--hot); font-weight: 600; }
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.mode-cell { border: 1.5px solid var(--divider); border-radius: 8px; padding: 11px 12px; transition: all .15s; }
.mode-cell.on { border-color: var(--primary); background: #FFF5F5; }
.mode-cell .m-name { font-size: 13px; font-weight: 700; }
.mode-cell.on .m-name { color: var(--primary); }
.mode-cell .m-desc { font-size: 10px; color: var(--text-3); margin-top: 4px; line-height: 1.5; }
.switch-row { display: flex; align-items: center; padding: 12px 0; }
.switch-row + .switch-row { border-top: 1px solid var(--divider); }
.switch-info { flex: 1; }
.switch-name { font-size: 13.5px; font-weight: 600; }
.switch-desc { font-size: 10.5px; color: var(--text-3); margin-top: 4px; line-height: 1.5; }
.switch { width: 46px; height: 27px; border-radius: 14px; background: #DDD; position: relative; transition: background .25s; flex-shrink: 0; }
.switch::after { content: ""; position: absolute; top: 2.5px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .25s; box-shadow: 0 1px 4px rgba(0,0,0,0.2); }
.switch.on { background: var(--primary); }
.switch.on::after { transform: translateX(18px); }
.seg-inputs { display: flex; gap: 8px; }
.seg-input { flex: 1; text-align: center; }
.seg-input input { width: 100%; background: var(--bg); border-radius: 8px; height: 40px; text-align: center; font-size: 15px; font-weight: 600; color: var(--text); }
.seg-input .si-t { font-size: 10.5px; color: var(--text-3); margin-top: 6px; }
.award-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.award-check { font-size: 12px; padding: 7px 13px; border-radius: var(--r-btn); background: var(--bg); color: var(--text-2); border: 1.5px solid transparent; }
.award-check.on { background: #FFF0F0; color: var(--primary); border-color: var(--primary); font-weight: 600; }
.award-check.locked { opacity: 0.75; background: #FFF0F0; color: var(--primary); border-color: var(--primary); }

/* ================= AI 沙盘推演 ================= */
.sandbox-radar { display: flex; flex-direction: column; gap: 13px; margin-top: 16px; }
.radar-row { display: flex; align-items: center; gap: 10px; }
.radar-row .r-name { width: 60px; font-size: 11.5px; color: var(--text-2); flex-shrink: 0; }
.radar-row .r-bar { flex: 1; height: 9px; background: var(--bg); border-radius: 5px; overflow: hidden; }
.radar-row .r-fill { height: 100%; border-radius: 5px; width: 0; transition: width 1s cubic-bezier(.22,.9,.32,1); }
.radar-row .r-val { width: 34px; font-size: 12px; font-weight: 700; text-align: right; flex-shrink: 0; }
.sandbox-verdict { margin-top: 16px; background: linear-gradient(120deg, #FFF3EC, #FFF8E8); border-radius: 8px; padding: 13px; font-size: 12.5px; line-height: 1.7; color: var(--text-2); }
.sandbox-verdict b { color: var(--hot); }
.loading-dots { display: inline-flex; gap: 4px; }
.loading-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); animation: dotJump 1s infinite; }
.loading-dots i:nth-child(2) { animation-delay: .15s; }
.loading-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dotJump { 0%,100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-6px); opacity: 1; } }

/* ================= 搜索页 ================= */
.search-head { display: flex; align-items: center; gap: 10px; padding: 6px var(--s-l) 10px; background: var(--card); flex-shrink: 0; }
.search-input-wrap { flex: 1; height: 34px; background: var(--bg); border-radius: 17px; display: flex; align-items: center; padding: 0 12px; gap: 6px; }
.search-input-wrap input { flex: 1; font-size: 13.5px; color: var(--text); }
.search-sec { padding: 16px var(--s-l) 0; }
.search-sec .ss-title { font-size: 13px; font-weight: 700; display: flex; align-items: center; }
.search-sec .ss-clear { margin-left: auto; font-size: 11px; color: var(--text-3); }
.search-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.search-tag { font-size: 12px; background: var(--card); padding: 7px 13px; border-radius: 999px; color: var(--text-2); box-shadow: var(--shadow-card); }
.hot-list { margin-top: 12px; background: var(--card); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-card); }
.hot-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: 13.5px; }
.hot-row + .hot-row { border-top: 1px solid #F7F7F7; }
.hot-rank { width: 18px; font-size: 13px; font-weight: 800; color: var(--text-3); font-style: italic; }
.hot-row:nth-child(1) .hot-rank, .hot-row:nth-child(2) .hot-rank, .hot-row:nth-child(3) .hot-rank { color: var(--hot); }
.hot-num { margin-left: auto; font-size: 11px; color: var(--text-3); }

/* ================= 空状态 ================= */
.empty-state { display: flex; flex-direction: column; align-items: center; padding: 70px 40px; color: var(--text-3); }
.empty-state .e-emoji { font-size: 54px; opacity: 0.5; }
.empty-state .e-tx { font-size: 13px; margin-top: 14px; line-height: 1.7; text-align: center; }

/* ================= 骨架/底部加载 ================= */
.feed-loading { text-align: center; padding: 16px; font-size: 11.5px; color: var(--text-3); display: flex; align-items: center; justify-content: center; gap: 7px; }
.feed-loading .spinner { width: 14px; height: 14px; border: 2px solid var(--divider); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ================= 通用工具类 ================= */
.flex { display: flex; align-items: center; }
.grow { flex: 1; min-width: 0; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.fs11 { font-size: 11px; } .fs12 { font-size: 12px; }
.c3 { color: var(--text-3); } .c2 { color: var(--text-2); } .cred { color: var(--primary); }

/* ================= 移动端直开适配 ================= */
@media (max-width: 900px) {
  .stage { padding: 0; gap: 0; }
  .stage-side { display: none; }
  .phone { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; padding: 0; box-shadow: none; }
  .phone-notch, .home-indicator { display: none; }
  .phone-screen { border-radius: 0; }
}
@media (max-height: 860px) and (min-width: 901px) {
  .phone { transform: scale(0.88); }
}
