:root{
  --bg:linear-gradient(160deg,#eaf0ff 0%,#f6f0ff 55%,#fff4f8 100%);
  --panel:#ffffff; --panel2:#f1f4fb; --line:#e3e8f2;
  --text:#1f2533; --sub:#8a93a8; --brand:#7c5cff; --brand2:#ff5a8a;
  --ok:#22c55e; --green:#12b886; --red:#ff4d4f;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  font-size:15px;max-width:480px;margin:0 auto;}
#app{position:relative;min-height:100vh;background:var(--bg);overflow-x:hidden}
.view{min-height:100vh}
.hidden{display:none!important}
button{font-family:inherit;cursor:pointer;border:none;outline:none}
input{font-family:inherit;outline:none}

/* ===== 登录/注册 ===== */
.view-auth{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 26px;min-height:100vh;
  background:radial-gradient(120% 80% at 50% 0%,#fff0f6 0%,#eef1f8 60%)}
.auth-logo{font-size:46px;font-weight:900;letter-spacing:4px;
  background:linear-gradient(135deg,var(--brand),var(--brand2));-webkit-background-clip:text;background-clip:text;color:transparent}
.auth-sub{color:var(--sub);margin:8px 0 26px;letter-spacing:1px}
.auth-card{width:100%;background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:18px}
.auth-tabs{display:flex;gap:8px;margin-bottom:14px}
.atab{flex:1;padding:10px;border-radius:10px;background:var(--panel2);color:var(--sub);font-weight:700}
.atab.active{background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff}
.auth-form{display:flex;flex-direction:column;gap:12px}
.auth-form input{padding:13px 14px;border-radius:10px;border:1px solid var(--line);background:#fff;color:var(--text);font-size:15px}
.btn-primary{margin-top:6px;padding:13px;border-radius:10px;background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff;font-weight:800;font-size:16px}
.btn-wechat{margin-top:14px;width:100%;padding:12px;border-radius:10px;background:#07c160;color:#fff;font-weight:700}
.auth-msg{margin-top:12px;color:var(--red);font-size:13px;text-align:center;min-height:16px}

/* ===== 登录页：其他登录方式（微信 / 游客 / 身份卡）===== */
.auth-others{margin-top:16px}
.auth-or{display:flex;align-items:center;gap:10px;margin:2px 0 14px}
.auth-or i{flex:1;height:1px;background:var(--line)}
.auth-or span{font-size:11.5px;color:var(--sub);letter-spacing:1.5px;white-space:nowrap}
.btn-guest{width:100%;padding:11px 12px;border-radius:12px;background:#fff;border:1px dashed #c8d0e0;
  display:flex;flex-direction:column;align-items:center;gap:2px;margin-top:10px}
.btn-guest:active{background:#f7f9fc}
.btn-guest .bg-main{font-size:15px;font-weight:700;color:var(--text);line-height:1.3}
.btn-guest .bg-sub{font-size:11px;color:var(--sub);letter-spacing:.3px}
.btn-card{width:100%;margin-top:10px;padding:12px;border-radius:12px;position:relative;overflow:hidden;
  background:linear-gradient(135deg,#1D1A15,#2A241C);color:#E8D9B5;
  display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}
.btn-card::after{content:'';position:absolute;inset:0;border-radius:12px;border:1px solid rgba(200,164,92,.42);pointer-events:none}
.btn-card .bc-ico{font-size:12px;color:#C8A45C}
.btn-card .bc-main{font-size:15px;font-weight:700;letter-spacing:.5px}
.btn-card .bc-sub{font-size:11px;color:rgba(232,217,181,.62);letter-spacing:.5px}
.btn-card:active{background:#171410}

/* ===== 身份卡面板（墨黑 + 香槟金，与「我的」页同一套口径）===== */
.card-sheet{position:fixed;inset:0;z-index:300;display:flex;flex-direction:column;justify-content:flex-end}
.cs-mask{position:absolute;inset:0;background:rgba(12,10,8,.62)}
.cs-body{position:relative;background:#17140F;border-radius:22px 22px 0 0;padding:16px 16px 26px;
  max-height:90vh;overflow:auto;border-top:1px solid rgba(200,164,92,.35);
  animation:csUp .26s ease-out}
@keyframes csUp{from{transform:translateY(18px);opacity:.6}to{transform:translateY(0);opacity:1}}
.cs-head{display:flex;align-items:center;justify-content:space-between;padding:2px 2px 12px}
.cs-head>span{color:#F0E7D4;font-size:15px;font-weight:700;letter-spacing:2px}
.cs-close{background:none;color:rgba(240,231,212,.55);font-size:24px;line-height:1;width:32px;height:32px}
.cs-stage{position:relative;display:flex;align-items:center;justify-content:center;min-height:220px}
#cs-img{width:100%;max-width:322px;height:auto;border-radius:14px;display:block;box-shadow:0 14px 40px rgba(0,0,0,.55)}
.cs-empty{text-align:center;padding:22px 10px}
.cs-empty-t{color:#F0E7D4;font-size:15px;letter-spacing:1px}
.cs-empty-s{color:rgba(240,231,212,.5);font-size:12px;line-height:1.85;margin-top:8px}
.cs-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  color:rgba(240,231,212,.7);font-size:13px;background:rgba(23,20,15,.82)}
.cs-actions{display:flex;gap:10px;margin-top:16px;flex-wrap:wrap}
.cs-actions button{flex:1 1 45%;padding:12px;border-radius:12px;font-size:14px;font-weight:700}
.cs-btn-gold{background:linear-gradient(135deg,#D9B872,#B8924A);color:#221C10}
.cs-btn-line{background:transparent;border:1px solid rgba(200,164,92,.5);color:#E8D9B5}
.cs-btn-ghost{background:rgba(255,255,255,.07);color:rgba(240,231,212,.78)}
.cs-tip{margin-top:14px;color:rgba(240,231,212,.42);font-size:11.5px;line-height:1.75;text-align:center}
/* 卡面识别中的进度条 */
.cs-scan{position:relative;overflow:hidden}
.cs-scan::before{content:'';position:absolute;left:0;top:0;bottom:0;width:38%;
  background:linear-gradient(90deg,transparent,rgba(217,184,114,.35),transparent);animation:csScan 1.1s linear infinite}
@keyframes csScan{from{transform:translateX(-100%)}to{transform:translateX(320%)}}
/* 面板按钮：主操作金色 / 次操作描金 / 危险红描边 */
.cs-btn{flex:1 1 45%;padding:12px;border-radius:12px;font-size:14px;font-weight:700;
  background:rgba(255,255,255,.07);color:rgba(240,231,212,.82);border:1px solid rgba(200,164,92,.28)}
.cs-save{background:linear-gradient(135deg,#D9B872,#B8924A);color:#221C10;border:none}
.cs-danger{background:transparent;border:1px solid rgba(220,90,90,.5);color:#f2a6a6}
.cs-manual{display:flex;gap:8px;width:100%;margin-top:4px}
.cs-manual input{flex:1;min-width:0;padding:11px 12px;border-radius:10px;background:rgba(255,255,255,.06);
  border:1px solid rgba(200,164,92,.28);color:#F0E7D4;font-size:14px}
.cs-manual input::placeholder{color:rgba(240,231,212,.35)}
.cs-manual .cs-btn{flex:0 0 auto}
.cs-or{display:flex;align-items:center;gap:10px;width:100%;margin:4px 0}
.cs-or i{flex:1;height:1px;background:rgba(200,164,92,.22)}
.cs-or span{color:rgba(240,231,212,.4);font-size:11px}
.cs-has{width:100%;text-align:center;color:rgba(240,231,212,.45);font-size:12px;margin-top:10px}
.cs-has a{color:#C8A45C}

/* ===== 保存到相册指引层（iOS / 微信内置浏览器） =====
   关键：这张图必须能被 iOS 长按唤出「存储到照片」，所以
   ① 用真实 <img>（不是 canvas）；② 显式打开 touch-callout / user-select；
   ③ 不要盖任何透明层在图片上面。 */
.cs-save-layer{position:fixed;inset:0;z-index:340;display:flex;flex-direction:column;justify-content:flex-end}
.cs-save-mask{position:absolute;inset:0;background:rgba(8,6,4,.88)}
.cs-save-body{position:relative;background:#17140F;border-radius:22px 22px 0 0;padding:14px 14px 24px;
  max-height:94vh;overflow:auto;-webkit-overflow-scrolling:touch;
  border-top:1px solid rgba(200,164,92,.35);animation:csUp .24s ease-out}
.cs-save-head{display:flex;align-items:center;justify-content:space-between;padding:2px 2px 10px}
.cs-save-head>span{color:#F0E7D4;font-size:15px;font-weight:700;letter-spacing:2px}
.cs-save-imgwrap{display:flex;justify-content:center;padding:2px 0 6px}
#cs-save-img{display:block;width:auto;max-width:min(86vw,360px);max-height:56vh;border-radius:14px;
  box-shadow:0 14px 40px rgba(0,0,0,.6);
  -webkit-touch-callout:default;-webkit-user-select:auto;user-select:auto}
.cs-save-tip{margin:8px 0 12px;color:rgba(240,231,212,.6);font-size:12.5px;line-height:1.8;text-align:center}
.cs-save-tip b{color:#E8C87E}
.cs-save-acts{display:flex;flex-direction:column;gap:9px}
.cs-save-acts .cs-btn{width:100%;flex:none;padding:13px}
.cs-save-acts .cs-save{font-size:15px;letter-spacing:1px}
/* 首页加载失败的兜底占位（网络抖动时给用户一个明确的「重试」，不是干等白屏） */
.home-retry{padding:36px 20px;text-align:center;color:var(--text)}
.home-retry .hr-t{font-size:15px;font-weight:700;margin-bottom:6px}
.home-retry .hr-s{font-size:12.5px;opacity:.6;line-height:1.7;margin-bottom:16px}
.home-retry button{padding:10px 22px;border-radius:12px;border:1px solid rgba(200,164,92,.5);
  background:transparent;color:#C8A45C;font-size:13.5px;font-weight:700}

/* ===== 顶栏 ===== */
.topbar{position:sticky;top:0;z-index:5;height:50px;display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.92);backdrop-filter:blur(6px);border-bottom:1px solid var(--line);font-weight:800;letter-spacing:1px}
.topbar-back{position:absolute;left:10px;font-size:26px;color:var(--sub);background:none;width:34px}
.page{padding:12px 12px 70px;min-height:calc(100vh - 50px)}

/* ===== 轮播 ===== */
/* 统一规格：390 × 220（比例 1 : 0.5641），首页「活动轮播」与福利页「福利轮播」共用同一套。
   .banner-wrap 负责限宽 390px + 水平居中；.banner 用 padding-bottom 百分比撑出高度。
   padding 百分比按「包含块宽度」计算 → 外层已限宽，所以 390:220 精确等比、任何分辨率图片都
   缩放到这个规格显示（图片再用 object-fit:cover 居中裁切填满，不变形）。
   兼容安卓 WebView / Chrome 86 —— 不能用 aspect-ratio（与 .cat-item-cover 同一处理方式）。 */
.banner-wrap{width:100%;max-width:390px;margin:0 auto 12px}
.banner-wrap.top{margin-bottom:10px}
.banner{width:100%;height:0;padding-bottom:56.410256%;border-radius:14px;overflow:hidden;position:relative;background:#e9edf6}
/* 历史上 .banner.big=300px / .banner.top=180px 的高度差已取消，统一走上面的 390×220 等比 */
.banner.big,.banner.top{height:0}
.banner-slide{position:absolute;left:0;top:0;right:0;bottom:0;height:auto;display:flex;align-items:center;justify-content:center;color:#fff;font-size:22px;font-weight:800;text-align:center;padding:10px}

/* 轮播图片 */
/* 轮播图片：绝对定位铺满整张横幅（不受 .banner-slide 的 padding 影响），
   图片内容用 object-fit:cover 裁切填满 —— 左右不留白边。
   注意：用 top/left/right/bottom 而非 inset（inset 需 Chrome 87+） */
.banner-img{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;overflow:hidden;
  background:#e9edf6;display:flex;align-items:flex-end}
.banner-img img{display:block;width:100%;height:100%;object-fit:cover;object-position:center center;border:0}
.banner-cap{background:linear-gradient(transparent,rgba(0,0,0,.55));color:#fff;font-size:18px;font-weight:800;padding:10px 14px;width:100%;text-align:left}

/* FAQ 快捷按钮（客服页） */
.svc-faq{display:flex;gap:6px;flex-wrap:wrap;padding:8px 12px;background:var(--panel);border-top:1px solid var(--line)}
.faq-chip{background:rgba(255,90,138,.14);color:var(--brand2);border:1px solid rgba(255,90,138,.35);border-radius:14px;padding:5px 12px;font-size:12px;font-weight:700;cursor:pointer}
.faq-chip:active{background:rgba(255,90,60,.25)}

/* 房间页 & 客服页布局修复：最后一条消息不被底部 composer 遮挡 */
#page-room{display:flex;flex-direction:column;padding:0;height:calc(100vh - 56px);min-height:calc(100vh - 56px);overflow:hidden}
#page-room .room-head{padding:8px 12px 12px;border-bottom:1px solid var(--line);flex:0 0 auto}
#page-room .room-info{flex:0 0 auto}
#page-room .room-draw{flex:0 0 auto}
#page-room .msgs{height:auto;flex:1 1 auto;min-height:0;overflow-y:auto;padding:14px 12px 20px}
#page-room .composer{position:static;left:auto;right:auto;bottom:auto;max-width:none;margin:0;border-top:1px solid var(--line);z-index:auto}
#page-service{display:flex;flex-direction:column;padding:0;height:calc(100vh - 106px);min-height:calc(100vh - 106px);overflow:hidden}
#page-service .room-head{padding:8px 12px 12px;border-bottom:1px solid var(--line);flex:0 0 auto}
#page-service .msgs{height:auto;flex:1 1 auto;min-height:0;overflow-y:auto;padding:14px 12px}
#page-service .svc-faq{flex:0 0 auto;max-height:none;overflow:visible;border-top:1px solid var(--line);background:var(--panel)}
#page-service .composer{position:static;left:auto;right:auto;bottom:auto;max-width:none;margin:0;border-top:1px solid var(--line);z-index:auto}

/* 充值金额预设 */
.rg-presets{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:6px 0 12px}
.rg-preset{background:var(--panel2);border:1px solid var(--line);border-radius:10px;padding:10px 0;color:var(--text);font-weight:800;font-size:14px;cursor:pointer}
.rg-preset:active{background:var(--line)}
.rg-actions{display:flex;gap:10px;margin-top:4px}
.rg-actions .btn-primary,.rg-actions .btn-ghost{flex:1}

/* ===== 首页：Hero（标题 + 红包面板） ===== */
.hero{display:flex;gap:10px;margin-bottom:10px;align-items:stretch}
.hero-left{flex:0 0 auto;display:flex;flex-direction:column;justify-content:center;padding:6px 4px}
.hero-title{font-size:28px;font-weight:900;background:linear-gradient(135deg,var(--brand),var(--brand2));-webkit-background-clip:text;background-clip:text;color:transparent;line-height:1.1}
.hero-sub{color:var(--sub);font-size:12px;margin-top:4px;letter-spacing:1px}
.hero-packet{flex:1;background:linear-gradient(135deg,#ff6b6b,#ff3d6e);border:1px solid #c0392b;border-radius:12px;padding:10px 12px;color:#fde2a8;position:relative;overflow:hidden}
.hero-packet::before{content:"";position:absolute;top:-20px;right:-20px;width:80px;height:80px;background:radial-gradient(circle,rgba(255,200,80,.2),transparent 70%);border-radius:50%}
.hero-packet-title{text-align:center;font-weight:900;font-size:14px;color:#ffd86b;letter-spacing:1px;margin-bottom:6px;text-shadow:0 1px 2px rgba(0,0,0,.4)}
.hero-packet-row{display:flex;justify-content:space-between;font-size:13px;padding:2px 4px;color:#fff}
.hero-packet-row b{color:#ffd86b}
.hero-packet-foot{text-align:center;font-size:10px;color:#c9884d;margin-top:4px}

/* ===== 顶部公告条 ===== */
.top-announce{display:flex;align-items:center;gap:8px;background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:8px 12px;margin-bottom:10px;font-size:13px}
.ta-badge{background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff;padding:2px 8px;border-radius:6px;font-size:11px;font-weight:700;flex-shrink:0}
.ta-text{flex:1;min-width:0;overflow:hidden;white-space:nowrap;color:var(--sub);position:relative}
.ta-text.ta-marquee{display:block}
.ta-track{display:inline-block;white-space:nowrap;animation:ta-scroll linear infinite;will-change:transform}
.ta-copy{display:inline-block;padding-right:60px}
@keyframes ta-scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.ta-close{background:none;color:var(--sub);font-size:20px;width:24px;height:24px;line-height:1;flex-shrink:0}

/* ===== 用户信息条 ===== */
.user-bar{display:flex;align-items:center;gap:10px;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin-bottom:10px}
.ub-left{display:flex;align-items:center;gap:10px;flex:1;min-width:0}
.ub-avatar .av{width:42px;height:42px}
.ub-info{min-width:0}
.ub-welcome{font-size:13px;color:var(--sub)}
.ub-welcome b{color:var(--text)}
.ub-balance{font-size:15px;font-weight:800;color:var(--brand2);margin-top:2px}
.ub-actions{display:flex;gap:6px;flex-shrink:0}
.ub-btn{padding:7px 11px;border-radius:8px;background:var(--panel2);color:var(--text);border:1px solid var(--line);font-size:12px;font-weight:700}
.ub-btn.primary{background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff;border-color:transparent}

/* ===== qh003 主题：隐藏顶部用户信息条 =====
   该主题首页已有 4 个圆形快捷入口（我要充值 / 我要提现 / 公告中心 / 下载App），
   顶部「头像 + 欢迎 + 元宝 + 主题 + 充值 + 提款」与之重复，隐藏后页面更清爽。
   注：经典模板没有快捷入口，必须保留该条，否则会丢失充值/提款入口。 */
body.qh003 .user-bar{display:none!important}

/* ===== 首页主体：左分类 + 右房间 ===== */
.home-body{display:flex;gap:6px;margin-top:4px;min-height:60vh}
.cat-side{width:96px;flex-shrink:0;display:flex;flex-direction:column;gap:6px;overflow-y:auto;max-height:80vh;padding-right:0}
.cat-item{background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:5px;display:flex;flex-direction:column;align-items:center;gap:0;cursor:pointer;position:relative;overflow:hidden}
.cat-item.active{border-color:var(--brand);box-shadow:0 0 0 2px rgba(255,90,60,.2)}
/* 分类封面：正方形 1:1。用 padding-bottom:100% 撑高，兼容安卓 WebView / Chrome 86 —— 不能用 aspect-ratio */
.cat-item-cover{width:100%;height:0;padding-bottom:100%;border-radius:8px;background:var(--cover,linear-gradient(135deg,#c9d6ff,#e2d1ff));background-size:cover;background-position:center;position:relative;overflow:hidden}
/* 分类图片：铺满整个正方形封面并居中裁切，不拉伸变形（object-fit 在 Chrome 86 可用） */
.cat-item-cover.has-img{background:#eef2fb}
.cat-item-cover img{position:absolute;left:0;top:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center;border-radius:8px}
/* 默认官方版：首页分类「只显示图片」，不显示分类名（PK / PC28 / SSC / 六合彩）。
   如需恢复文字，删掉下面这一行即可；分类未配图时会退回上面的渐变方块。 */
.cat-item-name{display:none!important}
.cat-empty{padding:20px 8px;color:var(--sub);font-size:12px;text-align:center}

.room-side{flex:1;min-width:0;display:grid;grid-template-columns:1fr 1fr;gap:5px;align-content:start;overflow-y:auto;max-height:80vh;padding-right:0}
.room-empty{padding:30px 8px;color:var(--sub);font-size:13px;text-align:center;grid-column:span 2}
.rc{background:transparent;border:none;border-radius:0;padding:0;display:flex;flex-direction:column;gap:4px;position:relative}
.rc-img{position:relative;border-radius:10px;overflow:hidden;height:126px;cursor:pointer;background:#eef2fb;box-shadow:0 1px 4px rgba(20,30,60,.10),inset 0 0 0 1px rgba(20,30,60,.08)}
.rc-img:active{opacity:.85}
.room-cover{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:30px;font-weight:900;text-shadow:0 2px 4px rgba(0,0,0,.4);background-size:cover;background-position:center}
/* 房间名 + 在线人数：叠加在封面图左上角内（带顶部暗色渐变，保证任何底图下都清晰） */
.rc-head{position:absolute;left:0;top:0;right:0;z-index:2;padding:7px 9px 14px;
  display:flex;flex-direction:column;align-items:flex-start;gap:2px;pointer-events:none;
  background:linear-gradient(to bottom,rgba(0,0,0,.55) 0%,rgba(0,0,0,.30) 55%,rgba(0,0,0,0) 100%)}
.rc-head .rc-name{font-size:13px;font-weight:800;color:#fff;text-align:left;line-height:1.25;
  max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  text-shadow:0 1px 3px rgba(0,0,0,.65)}
.rc-head .rc-online{font-size:11px;font-weight:700;color:#9bf6b4;text-align:left;
  text-shadow:0 1px 3px rgba(0,0,0,.7)}
/* 兼容：若被别处单独使用，仍保留居中样式 */
.rc-online{font-size:11px;color:var(--green);text-align:center;font-weight:700}
.rc-name{font-size:13px;font-weight:800;color:var(--text);text-align:center}
.rc-rule{background:rgba(255,90,138,.14);color:var(--brand2);border:1px solid rgba(255,90,138,.35);border-radius:8px;padding:5px 4px;font-size:11px;font-weight:700;cursor:pointer}
.rc-rule:active{background:rgba(255,176,0,.25)}

/* 默认官方版：房间卡「只显示封面图」——隐藏封面上的房间名（在线数由后台「启用虚假在线人数」开关控制）。
   如需恢复房间名，删掉下面这一行即可。 */
.rc-head .rc-name{display:none!important}

/* ===== 钱包条 ===== */
.wallet-bar{display:flex;align-items:center;gap:10px;margin:12px 0}
.wb-btn{padding:9px 16px;border-radius:10px;background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff;font-weight:800}
.wb-btn.ghost{background:var(--panel2);color:var(--text);border:1px solid var(--line)}
.wb-bal{margin-left:auto;color:var(--sub)}
.wb-bal b{color:var(--brand2)}

/* ===== 分类/房间 ===== */
.cat-list{display:flex;flex-direction:column;gap:16px}
.cat{background:var(--panel);border:1px solid var(--line);border-radius:14px;overflow:hidden}
.cat-head{padding:12px 14px;font-weight:800;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:8px}
.cat-dot{width:10px;height:10px;border-radius:50%}
.room-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:12px}
.room-card{background:var(--panel2);border:1px solid var(--line);border-radius:12px;padding:12px;position:relative}
.room-name{font-weight:800}
.room-desc{color:var(--sub);font-size:12px;margin:6px 0 10px;min-height:32px}
.room-online{font-size:12px;color:var(--green)}

/* ===== 聊天室 ===== */
.room-head{display:flex;align-items:center;gap:8px;padding:8px 0 12px;border-bottom:1px solid var(--line)}
.back{font-size:26px;color:var(--sub);background:none;width:34px}
.room-title{font-weight:800;font-size:17px}
/* 客服连接状态指示灯 */
.svc-status{margin-left:auto;font-size:12px;font-weight:600;padding:3px 10px;border-radius:999px;display:inline-flex;align-items:center;gap:5px}
.svc-status::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;display:inline-block}
.svc-status.pending{color:#b8860b;background:rgba(184,134,11,.12)}
.svc-status.reconnecting{color:#c0392b;background:rgba(192,57,43,.12);animation:pulseDot 1.2s infinite}
.svc-status.ok{color:#1e8e3e;background:rgba(30,142,62,.12)}
@keyframes pulseDot{0%,100%{opacity:1}50%{opacity:.35}}
.msgs{flex:1;overflow-y:auto;padding:14px 4px;display:flex;flex-direction:column;gap:12px;height:calc(100vh - 220px)}
.msg{max-width:82%;align-self:flex-start;background:var(--panel2);padding:9px 12px;border-radius:12px}
.msg.me{align-self:flex-end;background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff}
.msg-row{display:flex;gap:8px;align-items:flex-start}
.msg.me .msg-row{flex-direction:row-reverse}
.av-wrap{flex:0 0 auto;margin-top:2px}
.av{width:30px;height:30px;border-radius:50%;object-fit:cover;display:block}
.av-text{display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:14px}
.msg-main{min-width:0}
.msg-name{font-size:11px;color:#E6B422;margin-bottom:3px;font-weight:600;text-shadow:0 1px 2px rgba(0,0,0,.45)}
.msg.me .msg-name{color:#E6B422;text-align:right}
.msg-text{word-break:break-word;line-height:1.45;white-space:pre-wrap}
.msg-time{font-size:10px;color:var(--sub);margin-top:4px;text-align:right}
/* 已撤回消息占位 */
.msg.recall{align-self:center;background:transparent;padding:0}
.msg-recall{font-size:12px;color:var(--sub);background:rgba(128,128,128,.12);padding:4px 12px;border-radius:10px;text-align:center;font-style:italic}

/* ===== 投注卡片（任务二十三）：下注消息不再由机器人回执，直接长这样 =====
   红头：期号 + 总计；白底：每行「投注内容: 玩法  ¥金额」 */
.msg.betmsg{padding:0;background:transparent;width:310px;max-width:88vw}
.msg.betmsg.me{background:transparent}
.msg.betmsg .msg-main{flex:1 1 auto;min-width:0;width:auto}
.bet-card{width:100%;border-radius:8px;overflow:hidden;background:#fff;
  border:1px solid rgba(0,0,0,.07);box-shadow:0 1px 4px rgba(0,0,0,.14)}
.msg.me .bet-card{margin-left:auto}
.bet-head{display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:8px 11px;background:linear-gradient(180deg,#d14338,#c02c25);color:#fff;font-size:12.5px;line-height:1.25}
.bet-issue{font-weight:700;letter-spacing:.2px;white-space:nowrap}
.bet-total{font-weight:700;white-space:nowrap}
.bet-body{background:#fff}
.bet-line{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:9px 11px;
  font-size:13px;line-height:1.3;border-top:1px solid #f1f1f1}
.bet-line:first-child{border-top:0}
/* ★ [任务三十四] 投注内容不再省略号截断，多了自动换行 */
.bet-lb{flex:1 1 auto;min-width:0;overflow:visible;text-overflow:clip;white-space:normal;word-break:break-word;color:#333}
.bet-amt{flex:0 0 auto;color:#c02c25;font-weight:700}

/* 头像（通用） */
.av{width:36px;height:36px;border-radius:50%;object-fit:cover}
.av-text{display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800}

.composer{position:fixed;bottom:56px;left:0;right:0;max-width:480px;margin:0 auto;display:flex;gap:8px;padding:10px 12px;background:var(--panel);border-top:1px solid var(--line)}
.composer input{flex:1;padding:11px 12px;border-radius:10px;border:1px solid var(--line);background:#fff;color:var(--text)}
.send{padding:0 18px;border-radius:10px;background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff;font-weight:800}
/* ★ [任务二十四] 封盘期间：发送按钮置灰不可点（文案变「已封盘」），开盘那一秒自动恢复 */
.send:disabled,.send.is-closed{background:#dcd8d1;color:#8e887e;cursor:not-allowed;box-shadow:none;opacity:1}
.send.is-closed:active{transform:none}
.composer.is-closed input{background:#f5f3f0;color:#9a948b}
.composer.is-closed input::placeholder{color:#b6b0a6}

/* ===== 房间卡片头像 ===== */
.room-card{display:flex;align-items:center;gap:10px;background:var(--panel2);border:1px solid var(--line);border-radius:12px;padding:12px;position:relative}
.room-av{flex:0 0 auto}
.room-av .av{width:42px;height:42px}
.room-info{min-width:0;flex:1}
.room-name{font-weight:800}
.room-desc{color:var(--sub);font-size:12px;margin:6px 0 10px;min-height:32px}
.room-online{font-size:12px;color:var(--green)}

/* ===== 充值页 ===== */
.recharge-methods{display:flex;gap:8px;margin:14px 0}
.rm-tab{flex:1;padding:11px;border-radius:10px;background:var(--panel2);color:var(--sub);font-weight:800;border:1px solid var(--line)}
.rm-tab.active{background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff;border-color:transparent}
.recharge-body{padding:6px 2px}
.rg-field{margin-bottom:12px}
.rg-field input{padding:13px 14px;border-radius:10px;border:1px solid var(--line);background:#fff;color:var(--text);width:100%;font-size:15px}
.rg-tip{color:var(--sub);font-size:13px;margin:12px 0;line-height:1.6}
.rg-result{margin-top:16px;text-align:center}
.rg-qr{width:200px;height:200px;border-radius:12px;background:#fff;padding:8px;margin:8px auto}
.rg-status{margin-top:10px;color:var(--brand2);font-weight:700}

/* USDT 应用内收款面板 */
.usdt-pay{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:16px;text-align:center;margin-top:4px}
.usdt-title{font-weight:800;font-size:15px;margin-bottom:8px}
.usdt-amt{font-size:16px;margin-bottom:2px}.usdt-amt b{color:var(--brand2);font-size:22px}
.usdt-cny{color:var(--sub);font-size:13px;margin-bottom:10px}
.usdt-addr-label{color:var(--sub);font-size:12px;margin:10px 0 4px}
.usdt-addr{background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px;font-size:12px;word-break:break-all;color:var(--text);cursor:pointer}
.usdt-order{margin-top:10px;background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff;font-weight:800;font-size:13px;padding:9px 10px;border-radius:10px;word-break:break-all;text-align:center}

/* ===== 福利 ===== */
/* 福利页（任务二十九）：去掉顶部轮播；福利按排序往下铺；图片固定 390×200 竖排，多了在图片区内滑动 */
.welfare-list{display:flex;flex-direction:column;gap:14px;margin-top:2px;padding:0}
.welfare-item{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:14px}
.welfare-name{font-weight:800;font-size:16px}
.welfare-desc{color:var(--sub);font-size:13px;margin:6px 0 10px;line-height:1.5;white-space:pre-wrap}
/* 图片区：竖排，超过约 3 张就开始内部滑动，不把整页拉太长 */
.welfare-imgs{display:flex;flex-direction:column;gap:10px;max-height:62vh;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;border-radius:10px;padding-right:2px}
/* 390×200 固定比例：宽 100%（最大 390px 居中），高 = 宽 × 200/390 ⇒ 各机型等比、不拉伸不变形
   ⚠️ 安卓 Chrome 86 不支持 aspect-ratio，用 padding-bottom 撑高度 */
.welfare-img{position:relative;display:block;width:100%;max-width:390px;margin:0 auto;height:0;padding-bottom:51.282%;border-radius:10px;overflow:hidden;background:var(--panel2);border:1px solid var(--line);text-decoration:none;-webkit-tap-highlight-color:transparent}
.welfare-img>img{position:absolute;left:0;top:0;width:100%;height:100%;object-fit:cover;display:block}
.welfare-img.w-link{transition:transform .12s ease}
.welfare-img.w-link:active{transform:scale(.985)}
.welfare-img-go{position:absolute;right:8px;bottom:8px;padding:3px 8px;border-radius:999px;background:rgba(0,0,0,.55);color:#fff;font-size:11px;line-height:1.5}
/* 占位 / 图挂了：给一条小灰条，别留白框也别露碎图 */
.welfare-img-ph{height:auto;min-height:96px;padding-bottom:0;display:flex;align-items:center;justify-content:center;border-style:dashed;color:var(--sub);font-size:13px;text-align:center;padding-left:10px;padding-right:10px}
/* 3 张以上才出现：告诉用户图片区能上下滑（不然第 3 张被截断会以为是坏了） */
.welfare-swipe-tip{margin-top:8px;text-align:center;font-size:12px;color:var(--sub);letter-spacing:.2px}
.welfare-note{color:var(--sub);font-size:13px;margin-top:14px;line-height:1.6;padding:0 4px}

/* ===== 推广 ===== */
.promo-card{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:18px;margin-top:6px}
.promo-title{font-weight:800;margin-bottom:12px}
.promo-link{background:var(--panel2);border:1px solid var(--line);border-radius:10px;padding:11px;font-size:12px;word-break:break-all;color:var(--text);margin-bottom:12px}
.promo-tip{color:var(--sub);font-size:12px;margin:12px 0}
.promo-qr{margin:16px 0;text-align:center}
.promo-qr-title{color:var(--sub);font-size:13px;margin-bottom:10px}
.promo-qr img{width:200px;height:200px;background:#fff;border-radius:12px;padding:8px}
.promo-stat{margin-top:14px;font-weight:700}
.promo-stat b{color:var(--brand2)}
.promo-subs{margin-top:12px;display:flex;flex-direction:column;gap:8px;max-height:46vh;overflow-y:auto;-webkit-overflow-scrolling:touch}
.promo-sub{display:flex;align-items:center;gap:12px;background:var(--panel2);border:1px solid var(--line);border-radius:12px;padding:10px 12px}
.promo-sub-av{flex:0 0 auto;border-radius:50%;overflow:hidden;width:40px;height:40px}
.promo-sub-av .av{width:40px;height:40px}
.promo-sub-main{flex:1;min-width:0}
.promo-sub-name{font-weight:700;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.promo-sub-user{color:var(--sub);font-weight:500;font-size:12px;margin-left:4px}
.promo-sub-sub{color:var(--sub);font-size:12px;margin-top:3px}

/* ===== 我的 ===== */
.me-card{display:flex;flex-direction:column;align-items:center;background:linear-gradient(135deg,#fff4ef 0%,#eef3ff 100%);border:1px solid var(--line);border-radius:14px;padding:18px;margin-bottom:14px}
.me-avatar{margin-bottom:8px}
.me-avatar .av{width:64px;height:64px}
.me-avatar .av-text{background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff}
.me-name{font-size:20px;font-weight:900}
.me-bal{margin:8px 0;color:var(--sub)} .me-bal b{color:var(--brand2);font-size:18px}
.me-row{color:var(--sub);font-size:13px;margin-top:4px} .me-row b{color:var(--text)}
.me-section{font-weight:800;margin:6px 4px 10px;color:var(--sub)}
.wallet-list{display:flex;flex-direction:column;gap:8px}
.wallet-item{display:flex;justify-content:space-between;background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:10px 12px}
.wallet-item .amt{font-weight:800} .wallet-item .amt.in{color:var(--green)} .wallet-item .amt.out{color:var(--red)}
.wallet-item .note{color:var(--sub);font-size:12px}
.me-actions{margin-top:18px;display:flex;flex-direction:column;gap:10px}
.me-actions input{padding:11px 12px;border-radius:10px;border:1px solid var(--line);background:#fff;color:var(--text)}
.me-pwd{display:flex;flex-direction:column;gap:10px}
.btn-ghost{padding:11px;border-radius:10px;background:var(--panel2);color:var(--text);border:1px solid var(--line);font-weight:700}

/* ===== 我的页面（轻奢版 v2 2026-10-22 二次调整：暖褐 · 香槟金 · 象牙白）=====
   设计口径（改之前先读）：
   · 底色 #F8F6F2 暖象牙，卡片纯白；分层只靠 1px 暖线 + 极淡阴影，不用彩色色块
   · 全页唯一深色块 = 顶部会员卡，用「暖褐灰」而不是墨黑 —— 墨黑压气、显闷，
     褐灰在保持高级感的同时让香槟金更透亮（实测整卡高度也从 ~181px 收到 ~140px）
   · 数字用衬线（Georgia），标签用 10px + 2px 字距 —— 靠「层级对比」显贵，不靠堆装饰
   · 箭头用 1.2px 斜线画，不用字符 ›（字符粗细随字体会变，且对齐不稳）
   · 兼容安卓 WebView：不用 aspect-ratio；点按目标 ≥ 44px；env(safe-area-inset-top) 兜刘海
*/
.me-page{
  background:#F8F6F2;
  --lux-gold:#C8A45C; --lux-gold-l:#E3C88E; --lux-gold-d:#A8843C;
  --lux-line:#EEE9E1; --lux-txt:#221E19; --lux-sub:#8B8378; --lux-weak:#A79E90;
  padding-bottom:78px;
}
/* 暖褐会员卡：满宽贴顶（吃掉 .page 的 12px 内边距），底部大圆角 */
.me-hero{
  position:relative;margin:-12px -12px 12px;overflow:hidden;
  padding:calc(20px + env(safe-area-inset-top,0px)) 18px 17px;
  background:linear-gradient(150deg,#665D51 0%,#51483D 48%,#423A31 100%);
  border-radius:0 0 22px 22px;
  box-shadow:0 14px 30px -20px rgba(59,52,44,.52);
}
.me-hero::before{
  content:'';position:absolute;left:0;right:0;top:0;bottom:0;pointer-events:none;
  background:
    radial-gradient(circle at 92% -18%,rgba(227,200,142,.23),transparent 44%),
    radial-gradient(circle at -10% 118%,rgba(227,200,142,.10),transparent 50%);
}
.me-hero-line{
  position:absolute;left:0;right:0;bottom:0;height:1px;
  background:linear-gradient(90deg,rgba(200,164,92,0),rgba(200,164,92,.62) 20%,rgba(227,200,142,.92) 50%,rgba(200,164,92,.62) 80%,rgba(200,164,92,0));
}
/* 右下角极淡金环：唯一的装饰件。原来是双环（同心）像靶心，改成单环更干净 */
.me-hero::after{
  content:'';position:absolute;right:-62px;bottom:-74px;width:150px;height:150px;border-radius:50%;
  border:1px solid rgba(227,200,142,.10);
  pointer-events:none;
}
.me-hero-top{position:relative;z-index:1;display:flex;align-items:center;gap:12px}
.me-hero-av{
  width:54px;height:54px;flex-shrink:0;border-radius:50%;overflow:hidden;box-sizing:border-box;padding:1.5px;
  background:linear-gradient(135deg,var(--lux-gold-l),var(--lux-gold-d) 52%,var(--lux-gold-l));
}
/* 内圈细缝的颜色必须跟随卡底色，否则会在头像周围留一圈「脏边」 */
.me-hero-av .av,.me-hero-av .av-text{
  width:100%;height:100%;display:flex;align-items:center;justify-content:center;border-radius:50%;
  font-size:18px;font-weight:600;box-sizing:border-box;border:2px solid #4A4239;
}
.me-hero-av img.av{object-fit:cover}
.me-hero-txt{min-width:0;flex:1}
.me-hero-name{
  font-size:18px;font-weight:500;line-height:1.26;color:#FAF6EF;letter-spacing:.4px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.me-hero-id{margin-top:4px;font-size:10px;letter-spacing:1.3px;color:rgba(250,246,239,.48);text-transform:uppercase}
.me-hero-id b{color:rgba(227,200,142,.94);font-weight:500;letter-spacing:.8px;font-family:Georgia,'Times New Roman',serif}
.me-dot{margin:0 5px;color:rgba(227,200,142,.5)}
.me-hero-balance{position:relative;z-index:1;margin-top:12px}
.me-bal-label{display:flex;align-items:center;gap:6px;font-size:10px;letter-spacing:2px;color:rgba(250,246,239,.46)}
.me-bal-label i{
  font-style:normal;font-size:8px;letter-spacing:1px;color:rgba(227,200,142,.66);
  border:1px solid rgba(227,200,142,.26);border-radius:3px;padding:1px 4px 0;
}
.me-bal-row{display:flex;align-items:flex-end;margin-top:5px}
.me-bal-num{display:flex;align-items:baseline;color:#FAF6EF;line-height:1;min-width:0}
.me-bal-num em{font-style:normal;font-size:14px;margin-right:5px;color:rgba(227,200,142,.92);font-family:Georgia,'Times New Roman',serif}
.me-bal-num b{font-family:Georgia,'Times New Roman','Songti SC',serif;font-size:31px;font-weight:400;letter-spacing:.5px}
/* 明细按钮脱离数字行、贴到「账户余额」标签这一行的右侧 ——
   跟数字同行时会把 30px 的金额往里挤，且和数字底部对齐显得「挂」在卡片下沿 */
.me-bal-more{
  position:absolute;right:0;top:-4px;
  display:flex;align-items:center;gap:3px;flex-shrink:0;
  background:rgba(255,255,255,.05);border:1px solid rgba(227,200,142,.26);border-radius:999px;
  color:rgba(227,200,142,.94);font-size:11px;letter-spacing:.6px;padding:5px 11px;font-family:inherit;cursor:pointer;
}
.me-bal-more span{font-size:12px;line-height:1;transform:translateY(-.5px)}
.me-bal-more:active{background:rgba(227,200,142,.16)}
/* 4 个细线快捷入口：合成「一张卡 + 内部四格」，比四张独立小卡更整（原来像四个按钮堆着） */
.me-quick{
  display:grid;grid-template-columns:repeat(4,1fr);
  background:#fff;border:1px solid var(--lux-line);border-radius:16px;overflow:hidden;
  box-shadow:0 1px 2px rgba(34,30,25,.03),0 10px 24px -20px rgba(34,30,25,.2);
}
.me-q{
  position:relative;display:flex;flex-direction:column;align-items:center;gap:7px;padding:13px 2px 11px;
  background:none;border:none;border-right:1px solid #F4F0E9;font-family:inherit;cursor:pointer;
}
.me-q:last-child{border-right:none}
.me-q:active{background:#FBF9F5}
.me-q-ico{
  width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(180deg,#FCF7EC,#F5EDDA);border:1px solid rgba(200,164,92,.38);color:var(--lux-gold-d);
}
.me-q-ico svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round}
.me-q-txt{font-size:11.5px;color:var(--lux-txt);letter-spacing:.6px}
/* 分组列表 */
.me-group{margin-top:16px}
/* 标题前加一道 11px 金色短线：不用大写英文也不空，比纯文字标题更「有设计」 */
.me-group-title{
  display:flex;align-items:center;gap:7px;
  font-size:10.5px;letter-spacing:2px;color:var(--lux-weak);margin:0 4px 8px;font-weight:400;
}
.me-group-title::before{content:'';width:11px;height:1px;background:linear-gradient(90deg,var(--lux-gold),rgba(200,164,92,.12))}
.me-list{
  background:#fff;border:1px solid var(--lux-line);border-radius:16px;overflow:hidden;
  box-shadow:0 1px 2px rgba(34,30,25,.03),0 10px 26px -22px rgba(34,30,25,.22);
}
.me-li{
  display:flex;align-items:center;justify-content:space-between;width:100%;box-sizing:border-box;
  min-height:50px;padding:0 15px;background:none;border:none;border-bottom:1px solid #F4F0E9;
  font-size:14.5px;color:var(--lux-txt);text-align:left;cursor:pointer;font-family:inherit;letter-spacing:.3px;
}
.me-list>*:last-child{border-bottom:none}
.me-li-t{font-weight:400}
.me-li-v{font-size:13px;color:var(--lux-sub);display:flex;align-items:center;gap:2px}
.me-li-v b{color:var(--lux-txt);font-weight:500;font-family:Georgia,'Times New Roman',serif;letter-spacing:.4px}
.me-arrow{
  display:inline-block;vertical-align:middle;
  width:7px;height:7px;border-top:1.2px solid #C9C1B4;border-right:1.2px solid #C9C1B4;
  transform:rotate(45deg);margin-right:2px;margin-left:5px;transition:border-color .18s,transform .18s;
}
.me-li:active .me-arrow,.me-detail[open] .me-arrow{border-color:var(--lux-gold)}
/* 折叠块（账号设置）*/
.me-detail{display:block;border-bottom:1px solid #F3EFE8}
.me-detail summary{list-style:none;cursor:pointer}
.me-detail summary::-webkit-details-marker{display:none}
.me-detail[open]{background:#FDFBF7}
.me-detail[open]>summary{border-bottom:none}
.me-detail[open]>summary .me-arrow{transform:rotate(135deg);border-color:var(--lux-gold)}
.me-detail-body{
  padding:4px 15px 16px;display:grid;grid-template-columns:1fr 1fr;gap:10px;
  border-top:1px solid #F4F0E9;
}
.me-detail-body input{
  grid-column:1/-1;
  padding:11px 13px;border-radius:11px;border:1px solid #E7E1D6;background:#fff;color:var(--lux-txt);
  font-size:14px;width:100%;box-sizing:border-box;font-family:inherit;letter-spacing:.3px;
}
.me-detail-body input:focus{outline:none;border-color:rgba(200,164,92,.65);box-shadow:0 0 0 3px rgba(200,164,92,.10)}
/* 按钮：上传头像/保存资料并排两个次级，修改密码单独一行做金色主按钮
   （原来三个都是满宽灰边块，一整片灰框最像「表单」，是这页最不高级的地方）*/
.me-detail-body .btn-ghost{
  margin:0;min-height:42px;padding:0 10px;border-radius:11px;
  border:1px solid #E7E1D6;color:#4A4238;background:#fff;
  font-size:13.5px;font-weight:500;letter-spacing:.6px;
}
.me-detail-body .btn-ghost:active{background:#FBF9F5;border-color:rgba(200,164,92,.5)}
#btn-save-pwd{
  grid-column:1/-1;border-color:rgba(200,164,92,.46);color:#8A6A2E;
  background:linear-gradient(180deg,#FDFBF6,#F8F2E6);
}
.me-hr{grid-column:1/-1;height:1px;background:#F0EBE2;margin:3px 0}
/* 退出：居中胶囊 + 低饱和砖红。原来满宽方块视觉上和列表一样重，容易误点 */
.me-logout{
  display:block;margin:24px auto 4px;min-height:42px;padding:0 30px;
  border-radius:999px;border:1px solid #EADFD6;
  background:transparent;color:#A9563F;font-size:13px;font-family:inherit;letter-spacing:1.6px;cursor:pointer;
}
.me-logout:active{background:#FBF2EE;border-color:#E2CEC4}

/* ===== 推广页「下级人数」统计块（任务二十七）=====
   推广 Tab 只做展示：名片 + 二维码 + 人数，不再列出下级会员明细。
   明细统一从「我的 → 下级」进（.subs-page），两边不共用一套 DOM。 */
.promo-actors{
  margin-top:16px;padding:15px 18px;border-radius:14px;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  background:linear-gradient(160deg,#FDFBF6,#F7F1E5);
  border:1px solid rgba(200,164,92,.30);
}
.promo-actors-t{font-size:11px;letter-spacing:1.8px;color:#8B8378}
.promo-actors-n{display:flex;align-items:baseline;gap:4px;line-height:1}
.promo-actors-n b{
  font-family:Georgia,'Times New Roman','Songti SC',serif;font-weight:400;
  font-size:30px;color:#221E19;letter-spacing:.5px;
}
.promo-actors-n span{font-size:11px;color:#8B8378;letter-spacing:.5px}

/* ===== 下级会员页（我的 → 下级）：独立页面，沿用「我的」页轻奢口径 ===== */
.subs-page{
  background:#F8F6F2;
  --lux-gold:#C8A45C; --lux-gold-l:#E3C88E; --lux-gold-d:#A8843C;
  --lux-line:#EEE9E1; --lux-txt:#221E19; --lux-sub:#8B8378; --lux-weak:#A79E90;
  padding-bottom:78px;
}
.subs-page .room-head{border-bottom:1px solid #EDE7DC;padding:8px 0 12px}
.subs-page .back{color:#9A9186}
.subs-page .room-title{font-weight:500;font-size:16px;letter-spacing:.6px;color:var(--lux-txt)}
.subs-count{margin-left:auto;font-size:10.5px;letter-spacing:1.4px;color:var(--lux-weak)}
.subs-count b{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:14px;color:var(--lux-txt);margin:0 1px}
.subs-list{display:flex;flex-direction:column;gap:9px;margin-top:14px}
.subs-item{
  display:flex;align-items:center;gap:11px;padding:11px 13px;
  background:#fff;border:1px solid var(--lux-line);border-radius:14px;
  box-shadow:0 1px 2px rgba(34,30,25,.03);
}
.subs-av{flex:0 0 auto;width:40px;height:40px;border-radius:50%;overflow:hidden;background:#F2ECE1}
.subs-av .av,.subs-av .av-text{
  width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  font-size:15px;font-weight:600;
}
.subs-av img.av{object-fit:cover}
.subs-main{flex:1;min-width:0}
.subs-name{
  font-size:14px;color:var(--lux-txt);letter-spacing:.3px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.subs-user{font-size:11px;color:var(--lux-weak);margin-left:5px;letter-spacing:.4px}
.subs-meta{margin-top:3px;font-size:11px;color:var(--lux-weak);letter-spacing:.2px}
.subs-bal{flex:0 0 auto;font-family:Georgia,'Times New Roman',serif;font-size:14.5px;color:var(--lux-txt)}
.subs-bal span{font-size:10px;color:var(--lux-gold-d);margin-right:1px}
.subs-empty{padding:52px 12px;text-align:center;color:var(--lux-weak);font-size:12.5px;line-height:1.9;letter-spacing:.6px}
.subs-empty span{font-size:11.5px;color:#B8B0A3}

/* ===== 公告 ===== */
.announce-content{color:var(--text);font-size:14px;line-height:1.7;white-space:pre-wrap}

/* ===== Tab ===== */
.tabbar{position:fixed;bottom:0;left:0;right:0;max-width:480px;margin:0 auto;height:56px;display:flex;
  background:rgba(255,255,255,.96);border-top:1px solid var(--line);z-index:6}
.tab{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:none;color:var(--sub);font-size:11px}
.tab span{font-size:18px}
.tab.active{color:var(--brand2)}

/* ===== Modal/Toast ===== */
.modal{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(40,30,70,.42);display:flex;align-items:center;justify-content:center;z-index:20}
.modal-box{width:84%;max-width:340px;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:18px;max-height:82vh;display:flex;flex-direction:column;overflow:hidden;position:relative}
.modal-title{font-weight:800;margin-bottom:12px;flex:0 0 auto;padding-right:28px}
.modal-body{display:flex;flex-direction:column;gap:10px;flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
.modal-body input{padding:11px 12px;border-radius:10px;border:1px solid var(--line);background:#fff;color:var(--text);flex:0 0 auto}
.modal-actions{display:flex;gap:10px;margin-top:14px;flex:0 0 auto}
.modal-actions button{flex:1;padding:11px;border-radius:10px;font-weight:700}
.modal-actions .ok{background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff}
.modal-actions .cancel{background:var(--panel2);color:var(--text);border:1px solid var(--line)}
.toast{position:fixed;left:50%;bottom:90px;transform:translateX(-50%);background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff;padding:10px 16px;border-radius:20px;font-size:13px;z-index:30}
/* 机器人「请规范下注」提示：只在本人屏幕上弹几秒，更醒目一点 */
.toast.toast-warn{background:linear-gradient(135deg,#ff5a3c,#e8391e);color:#fff;font-weight:700;box-shadow:0 6px 20px rgba(232,57,30,.35);animation:toastWarnIn .22s ease-out}
@keyframes toastWarnIn{from{transform:translateX(-50%) translateY(10px);opacity:.4}to{transform:translateX(-50%) translateY(0);opacity:1}}

/* ===== Tab ===== */
.tabbar{position:fixed;bottom:0;left:0;right:0;max-width:480px;margin:0 auto;height:56px;display:flex;
  background:rgba(255,255,255,.96);border-top:1px solid var(--line);z-index:6}
.tab{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:none;color:var(--sub);font-size:11px}
.tab span{font-size:18px}
.tab.active{color:var(--brand2)}

/* ===== Modal/Toast ===== */
.modal{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(40,30,70,.42);display:flex;align-items:center;justify-content:center;z-index:20}
.modal-box{width:84%;max-width:340px;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:18px;max-height:82vh;display:flex;flex-direction:column;overflow:hidden;position:relative}
.modal-title{font-weight:800;margin-bottom:12px;flex:0 0 auto;padding-right:28px}
.modal-body{display:flex;flex-direction:column;gap:10px;flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
.modal-body input{padding:11px 12px;border-radius:10px;border:1px solid var(--line);background:#fff;color:var(--text);flex:0 0 auto}
.modal-actions{display:flex;gap:10px;margin-top:14px;flex:0 0 auto}
.modal-actions button{flex:1;padding:11px;border-radius:10px;font-weight:700}
.modal-actions .ok{background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff}
.modal-actions .cancel{background:var(--panel2);color:var(--text);border:1px solid var(--line)}
.toast{position:fixed;left:50%;bottom:90px;transform:translateX(-50%);background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff;padding:10px 16px;border-radius:20px;font-size:13px;z-index:30}
/* ===== 图片消息 ===== */
.chat-img{width:40px;flex:0 0 auto;background:var(--panel2);border:1px solid var(--line);border-radius:12px;color:var(--text);font-size:19px;line-height:1;display:flex;align-items:center;justify-content:center}
.chat-img:active{background:var(--panel)}
.msg-img-wrap{margin:2px 0}
.msg-img{max-width:180px;max-height:220px;border-radius:12px;display:block;cursor:zoom-in;background:var(--panel2)}
.msg.me .msg-img{margin-left:auto}
/* 图片网页内放大灯箱：点击遮罩或图片本身关闭，不跳转、不关网页 */
#yl-lightbox{position:fixed;top:0;left:0;right:0;bottom:0;z-index:9999;display:none;align-items:center;justify-content:center;background:rgba(20,16,40,.88);backdrop-filter:blur(2px);padding:24px;cursor:zoom-out}
#yl-lightbox.show{display:flex}
#yl-lightbox img{max-width:92vw;max-height:88vh;border-radius:12px;box-shadow:0 12px 40px rgba(0,0,0,.5);cursor:zoom-out;object-fit:contain}
#yl-lightbox:active{background:rgba(20,16,40,.94)}

/* ===== 主题模板 qh003（渐变卡版：分类/房间/介绍胶囊） ===== */
/* 仅在 body.qh003 主题下生效，避免污染默认主题 */
/* 非 qh003 主题（默认官方版）下彻底隐藏 qh003 容器，避免残留空白块 */
body:not(.qh003) #qh003-home, body:not(.qh003) #qh003-cat { display: none !important; }
body.qh003 .cat-side, body.qh003 .room-side { display: none !important; }
body.qh003 #qh003-home { display: block; padding: 0 0 80px; }
body.qh003:not(.qh003) #qh003-home { display: none; }
body.qh003 #qh003-cat { display: none; }
body.qh003.qh003-page-cat #qh003-home { display: none; }
/* 进入分类页时隐藏「整个首页」（轮播/公告条/用户信息条/游客横幅），否则这些内容会把房间挤到屏幕下方，出现「点进去空白、要滚动才看到房间」 */
body.qh003.qh003-page-cat #page-home { display: none !important; }
body.qh003.qh003-page-cat #qh003-cat { display: block; padding: 0 0 74px; }

/* 4 个圆形蓝色快捷入口 */
.qh-quick-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 11px 12px; background: #fff; margin: 0 0 10px; }
.qh-quick { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: none; padding: 0; }
.qh-quick-icon { width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, #4a8cff, #2473ff); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; box-shadow: 0 4px 12px rgba(36,115,255,.25); }
.qh-quick-label { font-size: 12px; color: #1f2533; font-weight: 600; }

/* 分类大卡（王者荣耀/和平精英风格） */
.qh-cat-card { position: relative; margin: 10px 12px; border-radius: 16px; overflow: hidden; height: 134px; box-shadow: 0 5px 15px rgba(80,60,160,.18); cursor: pointer; background: linear-gradient(135deg, #7b8df0 0%, #a16bd0 50%, #c768b0 100%); }
.qh-cat-card .qh-card-sky { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, rgba(180,160,230,.55) 0%, rgba(120,100,180,.35) 55%, rgba(80,60,140,.85) 100%); pointer-events: none; }
.qh-cat-card .qh-card-buildings { position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 80' preserveAspectRatio='none'><g fill='rgba(60,40,110,0.55)'><rect x='10' y='30' width='30' height='50'/><rect x='45' y='20' width='22' height='60'/><rect x='72' y='38' width='28' height='42'/><rect x='105' y='10' width='18' height='70'/><rect x='128' y='28' width='34' height='52'/><rect x='168' y='15' width='24' height='65'/><rect x='198' y='35' width='30' height='45'/><rect x='235' y='5' width='20' height='75'/><rect x='260' y='25' width='32' height='55'/><rect x='298' y='12' width='22' height='68'/><rect x='325' y='32' width='28' height='48'/><rect x='360' y='18' width='26' height='62'/></g></svg>") repeat-x bottom; background-size: 400px 80px; opacity: .8; pointer-events: none; }
.qh-cat-card .qh-card-art { position: absolute; left: 0; top: 0; right: 0; bottom: 0; width: 100%; height: 100%; background-position: center; background-repeat: no-repeat; background-size: cover; pointer-events: none; }
.qh-cat-card .qh-card-art::after { content: ''; position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: linear-gradient(180deg, rgba(15,8,40,.38) 0%, rgba(15,8,40,.05) 34%, rgba(15,8,40,.05) 66%, rgba(15,8,40,.62) 100%); }
.qh-cat-card .qh-card-title { position: absolute; left: 16px; top: 13px; font-size: 23px; font-weight: 900; color: #fff; letter-spacing: 2px; text-shadow: 0 2px 8px rgba(0,0,0,.3); z-index: 2; }
.qh-cat-card .qh-card-intro { position: absolute; right: 12px; bottom: 11px; padding: 6px 13px; border-radius: 20px; background: rgba(40,30,70,.75); color: #fff; font-size: 13px; font-weight: 700; backdrop-filter: blur(4px); z-index: 3; box-shadow: 0 2px 8px rgba(0,0,0,.2); }

/* 房间卡（qh003 分类内）—— 紧凑版：减少空白、卡片间距收紧 */
.qh-room-card { position: relative; margin: 8px 12px; border-radius: 14px; overflow: hidden; height: 118px; box-shadow: 0 4px 12px rgba(80,60,160,.15); cursor: pointer; background: linear-gradient(135deg, #7b8df0 0%, #a16bd0 50%, #c768b0 100%); }
.qh-room-card .qh-card-sky { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, rgba(180,160,230,.55) 0%, rgba(120,100,180,.35) 55%, rgba(80,60,140,.85) 100%); pointer-events: none; }
.qh-room-card .qh-card-buildings { position: absolute; left: 0; right: 0; bottom: 0; height: 62px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 80' preserveAspectRatio='none'><g fill='rgba(60,40,110,0.55)'><rect x='10' y='30' width='30' height='50'/><rect x='45' y='20' width='22' height='60'/><rect x='72' y='38' width='28' height='42'/><rect x='105' y='10' width='18' height='70'/><rect x='128' y='28' width='34' height='52'/><rect x='168' y='15' width='24' height='65'/><rect x='198' y='35' width='30' height='45'/><rect x='235' y='5' width='20' height='75'/><rect x='260' y='25' width='32' height='55'/><rect x='298' y='12' width='22' height='68'/><rect x='325' y='32' width='28' height='48'/><rect x='360' y='18' width='26' height='62'/></g></svg>") repeat-x bottom; background-size: 400px 80px; opacity: .8; pointer-events: none; }
.qh-room-card .qh-card-art { position: absolute; left: 0; top: 0; right: 0; bottom: 0; width: 100%; height: 100%; background-position: center; background-repeat: no-repeat; background-size: cover; pointer-events: none; }
.qh-room-card .qh-card-art::after { content: ''; position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: linear-gradient(180deg, rgba(15,8,40,.38) 0%, rgba(15,8,40,.05) 34%, rgba(15,8,40,.05) 66%, rgba(15,8,40,.62) 100%); }
.qh-room-card .qh-card-title { position: absolute; left: 15px; top: 12px; font-size: 20px; font-weight: 900; color: #fff; letter-spacing: 2px; text-shadow: 0 2px 8px rgba(0,0,0,.3); z-index: 2; }
.qh-room-card .qh-card-intro { position: absolute; right: 10px; bottom: 10px; padding: 6px 13px; border-radius: 17px; background: rgba(40,30,70,.75); color: #fff; font-size: 12px; font-weight: 700; backdrop-filter: blur(4px); z-index: 3; }
.qh-room-card .qh-card-online { position: absolute; left: 15px; bottom: 10px; color: #fff; font-size: 12px; opacity: .85; z-index: 2; }

/* qh003 分类详情页：顶部头 */
.qh-cat-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: center; height: 50px; background: rgba(255,255,255,.95); backdrop-filter: blur(6px); border-bottom: 1px solid #eee; font-weight: 800; letter-spacing: 1px; }
.qh-cat-head .qh-cat-back { position: absolute; left: 12px; font-size: 24px; color: #555; background: none; }
.qh-cat-head .qh-cat-title { font-size: 17px; }

/* 公告/通知条（qh003 紫色背景） */
.qh-notice { display: flex; align-items: center; gap: 8px; padding: 10px 14px; margin: 10px 12px; border-radius: 10px; background: linear-gradient(90deg, rgba(155,140,220,.18), rgba(180,140,220,.12)); color: #5a3e9a; font-size: 13px; }
.qh-notice .qh-notice-icon { font-size: 16px; }

/* qh003 模式下隐藏默认左右双栏，给 .home-body 加 padding 调整 */
body.qh003 .home-body { display: none !important; }

/* qh003 分类页底部：房间号一览（默认在卡片下方，需下拉查看） */
.qh-roomno-wrap { margin: 16px 12px 34px; background: #fff; border-radius: 14px; padding: 2px 14px 4px; box-shadow: 0 3px 12px rgba(80,60,160,.08); }
.qh-roomno-head { font-size: 13px; font-weight: 800; color: #6b6f80; padding: 12px 2px 9px; letter-spacing: 1px; border-bottom: 1px dashed #ececf3; }
.qh-roomno-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 2px; border-bottom: 1px solid #f3f3f8; }
.qh-roomno-row:last-child { border-bottom: none; }
.qh-roomno-name { font-size: 14px; color: #333; font-weight: 600; }
.qh-roomno-num { font-size: 14px; font-weight: 800; color: var(--brand); letter-spacing: 1px; }

/* ===== 公告中心（列表页 + 详情，替代直接弹窗） ===== */
.ann-count { font-size: 12px; color: var(--sub); margin: 4px 2px 10px; }
.ann-item { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px; cursor: pointer; }
.ann-item:active { background: var(--panel2); }
.ann-item-main { flex: 1; min-width: 0; }
.ann-item-title { font-weight: 700; font-size: 15px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ann-item-time { font-size: 12px; color: var(--sub); margin-top: 4px; }
.ann-item-arrow { color: var(--sub); font-size: 20px; flex: 0 0 auto; }
.ann-empty { text-align: center; color: var(--sub); padding: 48px 0; }
.ann-detail-title { font-size: 18px; font-weight: 800; color: var(--text); line-height: 1.4; }
.ann-detail-time { font-size: 12px; color: var(--sub); margin: 8px 0 16px; }
.ann-detail-content { font-size: 15px; line-height: 1.75; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.ann-detail-back { margin-top: 26px; width: 100%; padding: 12px; border-radius: 10px; background: var(--panel2); color: var(--text); font-weight: 700; border: 1px solid var(--line); }

/* ===== 房间顶部「用户信息框」：头像 / 昵称 / 余额（风格 A/B/C/D/E，由后台 roomInfoStyle 控制；off 时不显示） ===== */
.room-info { margin: 8px 10px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #fff; box-shadow: 0 2px 8px rgba(31,37,51,.06); }
.room-info.hidden { display: none !important; }
.room-info .ri-av { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; overflow: hidden; }
.room-info .ri-av .av, .room-info .ri-av .av-text { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.room-info .ri-mid { flex: 1; min-width: 0; }
.room-info .ri-l1 { display: flex; align-items: center; gap: 6px; }
.room-info .ri-nick { font-size: 14.5px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-info .ri-tag { font-size: 10px; font-weight: 700; color: #fff; padding: 2px 6px; border-radius: 6px; background: linear-gradient(135deg,var(--brand),var(--brand2)); flex-shrink: 0; }
.room-info .ri-bal { margin-top: 3px; font-size: 14.5px; font-weight: 800; color: var(--brand2); }
.room-info .ri-bal small { font-size: 11px; font-weight: 600; color: var(--sub); margin-left: 4px; }
.room-info .ri-btn { margin-left: auto; background: linear-gradient(135deg,var(--brand),var(--brand2)); color: #fff; border: none; border-radius: 9px; padding: 7px 12px; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.room-info .ri-link { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--brand); flex-shrink: 0; }

/* B 紫蓝渐变卡 */
.room-info.ri-B { background: linear-gradient(120deg,#4f7bff 0%,#7c5cff 55%,#9a5cff 100%); box-shadow: 0 6px 16px rgba(92,110,255,.28); color: #fff; position: relative; overflow: hidden; }
.room-info.ri-B:after { content: ""; position: absolute; right: -24px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.13); }
.room-info.ri-B .ri-tag { color: #4a3b8f; background: #ffe9a8; }
.room-info.ri-B .ri-bal { color: var(--gold); }
.room-info.ri-B .ri-bal small { color: rgba(255,255,255,.75); }
.room-info.ri-B .ri-btn { background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.5); position: relative; z-index: 1; }
.room-info.ri-B .ri-av-ring { padding: 2px; background: rgba(255,255,255,.85); }
.room-info.ri-B .ri-av-ring .av, .room-info.ri-B .ri-av-ring .av-text { border-radius: 50%; }

/* C 毛玻璃 */
.room-info.ri-C { background: rgba(255,255,255,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.7); box-shadow: 0 4px 14px rgba(80,90,140,.12); }
.room-info.ri-C .ri-av-glow { box-shadow: 0 0 0 3px rgba(124,92,255,.18), 0 4px 10px rgba(124,92,255,.3); }
.room-info.ri-C .ri-tag { color: #7c5cff; background: rgba(124,92,255,.12); }
.room-info.ri-C .ri-btn { background: rgba(255,255,255,.85); border: 1px solid var(--line); color: var(--brand); }

/* D 紧凑条 */
.room-info.ri-D { margin: 6px 10px; padding: 6px 10px; background: #f7f8fd; border: 1px solid var(--line); gap: 9px; }
.room-info.ri-D .ri-av-sm { width: 34px; height: 34px; }
.room-info.ri-D .ri-nick { font-size: 12.5px; line-height: 1.3; }
.room-info.ri-D .ri-bal { font-size: 12.5px; line-height: 1.3; }
.room-info.ri-D .ri-bal small { font-size: 10.5px; }

/* E VIP 金卡（背景改透明 + 昵称金黄色）
   原本是深紫渐变底 #2c2545→#3d3357（看着像黑），昵称/余额都是白字，浅色背景下发闷。
   改：框底透明、昵称金黄；余额与按钮同步换成深金，保证透明底上仍清晰可读。
   注：原 .ri-bal{color:var(--gold)} 里的 --gold 全项目未定义，实际是继承的白色，一并修正。 */
.room-info.ri-E { background: transparent; border: 1px solid rgba(212,160,23,.55); box-shadow: 0 2px 10px rgba(212,160,23,.12); color: var(--text); }
.room-info.ri-E .ri-nick { color: #D9A21B; }
.room-info.ri-E .ri-tag { color: #fff; background: linear-gradient(135deg,#D9A21B,#B8860B); }
.room-info.ri-E .ri-bal { color: #B8860B; }
.room-info.ri-E .ri-bal small { color: var(--sub); }
.room-info.ri-E .ri-av-gold { padding: 2px; background: linear-gradient(135deg,#D9A21B,#B8860B); }
.room-info.ri-E .ri-av-gold .av, .room-info.ri-E .ri-av-gold .av-text { border-radius: 50%; }
.room-info.ri-E .ri-acts { margin-left: auto; display: flex; gap: 6px; flex-shrink: 0; }
.room-info.ri-E .ri-acts button { font-size: 11.5px; font-weight: 700; padding: 6px 10px; border-radius: 8px; background: rgba(212,160,23,.1); border: 1px solid rgba(212,160,23,.5); color: #B8860B; }
.room-info.ri-E .ri-acts button.solid { background: linear-gradient(135deg,#D9A21B,#B8860B); color: #fff; border-color: transparent; }

/* ===== 房间「快捷报账」按钮 + 面板（按钮/金额由后台按房间配置） ===== */
.chat-quick{height:34px;padding:0 13px;border-radius:17px;border:none;flex-shrink:0;font-size:13px;font-weight:700;
  color:#5a3d00;background:linear-gradient(135deg,#ffd76a,#f0a13a);box-shadow:0 2px 8px rgba(240,161,58,.35);
  font-family:inherit;letter-spacing:.5px}
.qp{position:fixed;top:0;left:0;right:0;bottom:0;z-index:70;display:flex;align-items:flex-end;justify-content:center}
.qp.hidden{display:none!important}
.qp-mask{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.45)}
.qp-card{position:relative;width:100%;max-width:480px;box-sizing:border-box;background:#fff;border-radius:16px 16px 0 0;
  padding:14px 14px 22px;box-shadow:0 -6px 24px rgba(0,0,0,.2);animation:qpUp .18s ease-out;max-height:78vh;overflow-y:auto}
@keyframes qpUp{from{transform:translateY(36px);opacity:.5}to{transform:translateY(0);opacity:1}}
.qp-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.qp-title{font-size:15px;font-weight:800;color:#1f2533}
.qp-close{background:none;border:none;font-size:24px;line-height:1;color:#a5adbd;padding:0 6px}
.qp-tabs{display:flex;gap:8px;margin-bottom:12px;flex-wrap:wrap}
.qp-tab{padding:7px 18px;border-radius:8px;border:1px solid #dfe4ee;background:#f6f7fa;font-size:14px;font-weight:700;color:#5a6273;font-family:inherit}
.qp-tab.active{background:#2f7bff;border-color:#2f7bff;color:#fff}
.qp-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:16px}
.qp-item{padding:15px 4px;border:1px solid #e3e8f2;border-radius:8px;background:#fff;font-size:14px;font-weight:600;
  color:#1f2533;text-align:center;word-break:break-all;font-family:inherit;line-height:1.3}
.qp-item.active{background:#2f7bff;border-color:#2f7bff;color:#fff}
.qp-item:active{transform:scale(.97)}
.qp-amounts{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.qp-item.active{background:#2f7bff;border-color:#2f7bff;color:#fff;box-shadow:0 3px 9px rgba(47,123,255,.3)}
.qp-sel{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12.5px;color:#2f5fd0;background:#eef3ff;border-radius:8px;padding:7px 10px;margin-bottom:10px;line-height:1.6}
.qp-sel.hidden{display:none!important}
.qp-sel-clear{border:none;background:none;color:#e23b3b;font-size:12.5px;font-weight:700;font-family:inherit;text-decoration:underline;padding:0;cursor:pointer}
.qp-sel-tip{color:#8a93a8}
.qp-amt{width:52px;height:52px;border-radius:50%;border:none;color:#fff;font-size:16px;font-weight:800;
  display:flex;align-items:center;justify-content:center;font-family:inherit;flex-shrink:0}
.qp-amt:active{transform:scale(.94)}
.qp-amt.c0{background:linear-gradient(135deg,#ff6b6b,#ee3b3b);box-shadow:0 3px 9px rgba(238,59,59,.3)}
.qp-amt.c1{background:linear-gradient(135deg,#4fa3ff,#1e7cff);box-shadow:0 3px 9px rgba(30,124,255,.3)}
.qp-amt.c2{background:linear-gradient(135deg,#3ecf8e,#12b886);box-shadow:0 3px 9px rgba(18,184,134,.3)}
.qp-tip{margin-top:14px;text-align:center;font-size:12px;color:#a5adbd;line-height:1.5}

/* 报账输入行（品种/金额点选后拼接在这里，可编辑，点发送一次性发出） */
.qp-inputrow{display:flex;gap:8px;margin-bottom:14px}
.qp-input{flex:1;min-width:0;box-sizing:border-box;padding:11px 12px;border:1px solid #dfe4ee;border-radius:10px;
  font-size:15px;font-family:inherit;color:#1f2533;background:#fff}
.qp-input:focus{outline:none;border-color:#2f7bff;box-shadow:0 0 0 3px rgba(47,123,255,.12)}
.qp-send{padding:0 20px;border-radius:10px;border:1px solid #cfd6e4;background:#eef1f6;font-size:15px;font-weight:700;
  color:#1f2533;font-family:inherit;flex-shrink:0}
.qp-send:active{transform:scale(.97)}

/* ===== 流水记录（我的 → 流水记录）：一行一彩种 ===== */
.fr-wrap{padding:12px 14px 24px}
.fr-table{width:100%;border-collapse:collapse;background:#fff;border-radius:12px;overflow:hidden;
  box-shadow:0 1px 6px rgba(20,40,80,.06)}
.fr-table th,.fr-table td{padding:12px 14px;font-size:14px;border-bottom:1px solid #eef1f6;text-align:left}
.fr-table thead th{background:#f6f8fc;color:#5a6478;font-weight:600;font-size:13px}
.fr-table tbody tr:last-child td{border-bottom:none}
.fr-r,.fr-flow{text-align:right}
.fr-name{color:#1f2533}
.fr-flow{color:#f39c12;font-weight:700}
.fr-empty{text-align:center;color:#9aa3b5;padding:26px 0}
.fr-table tfoot td{background:#f8fafd;font-weight:700;color:#1f2533;border-top:1px solid #e6ebf3;border-bottom:none}
.fr-table tfoot .fr-r{color:#f39c12}

/* ★ [2026-10-16 任务二] 弹窗右上角关闭按钮：玩法说明/游戏介绍内容再长也能一键关掉 */
.modal-x{position:absolute;top:6px;right:8px;width:30px;height:30px;line-height:28px;text-align:center;font-size:20px;border-radius:50%;color:var(--text);opacity:.5;cursor:pointer;-webkit-user-select:none;user-select:none;z-index:2}
.modal-x:active{opacity:1;background:var(--panel2)}

/* ===== 房间右侧圆形快捷按钮：走势 / 查询 / 赔率（任务五） =====
   目的：玩家点按钮看走势图 / 未结算注单 / 赔率，不再往群里发「3 / 1 / 4」刷屏占内存。
   只在 #page-room 内显示（父容器 hidden 时自然不显示）。 */
#page-room{position:relative}
/* ===== 期号信息条（任务九 / 十九）：距封盘倒计时 + 最新开奖号 =====
   紧贴「用户信息框」下方，与上面卡片同宽同风格（圆角 14 / 白底 / 同款阴影）。
   任务十九改成两行，因为挤成一行时四样东西互相抢宽度：
     上行：期号（左，完整显示） …… 距封盘胶囊（右，数字等宽不许抖）
     下行：「开奖」标签 + 彩色球（占满剩余宽度） …… 刮奖按钮（右）
   号码区先按原尺寸量，差一点放不下就缩一号（is-tight），还超才滚动（is-scroll）。 */
.room-draw{
  margin:0 10px 8px;padding:8px 11px 9px;border-radius:14px;
  background:#fff;border:1px solid var(--line);box-shadow:0 2px 8px rgba(31,37,51,.06);
  display:flex;flex-direction:column;min-width:0;
  font-size:12.5px;font-weight:700;color:var(--text);
}
.room-draw.hidden{display:none!important}
/* 两行布局：上行「期号 …… 距封盘」，下行「开奖 彩球 …… 刮奖」。
   期号不再被 104px 截断，号码独占整行宽度，拥挤的根源就去掉了。 */
.room-draw .rd-row{display:flex;align-items:center;gap:8px;min-width:0}
.room-draw .rd-row-top{
  padding-bottom:7px;margin-bottom:8px;
  border-bottom:1px solid rgba(31,37,51,.07);
}
.room-draw .rd-issue{
  flex:1 1 auto;min-width:0;font-size:11.5px;font-weight:800;color:var(--sub);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;letter-spacing:.2px;
}
.room-draw .rd-cd{
  flex:0 0 auto;margin-left:auto;font-variant-numeric:tabular-nums;font-feature-settings:"tnum";
  padding:2px 9px;border-radius:999px;font-size:11.5px;font-weight:800;
  background:rgba(18,184,134,.12);color:#0e9a5c;letter-spacing:.3px;
}
.room-draw .rd-cd.warn{background:rgba(245,158,11,.16);color:#b45309}
.room-draw .rd-cd.danger{background:rgba(255,77,79,.15);color:#d92c2e;animation:rd-pulse 1s ease-in-out infinite}
.room-draw .rd-cd.closed{background:rgba(138,147,168,.16);color:#6b7385;animation:none}
@keyframes rd-pulse{0%,100%{opacity:1}50%{opacity:.45}}
.room-draw .rd-last{
  flex:1 1 auto;min-width:0;overflow:hidden;white-space:nowrap;text-align:left;
  font-size:13px;color:var(--text);line-height:20px;
}
/* 只有号码真超宽在滚动时才做右端渐隐：放得下就一个字符都不遮 */
.room-draw .rd-last.is-scroll{
  -webkit-mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 14px),transparent 100%);
          mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 14px),transparent 100%);
}
/* 差一点点放不下时先整体缩一号（六合彩 7 球带生肖就是这种情况），
   缩一号能装下就不滚动 —— 宁可字小 1px，也不要几乎看不出在动的慢速漂移。 */
.room-draw .rd-last.is-tight .rd-ball{min-width:16px;height:16px;font-size:10.5px;padding:0 2px;margin:0 .5px}
.room-draw .rd-last.is-tight .rd-zc{font-size:9px;margin:0 2px 0 0}
.room-draw .rd-last.is-tight .rd-plus{margin:0 2px 0 1px}
.room-draw .rd-last.is-tight .rd-meta{font-size:11.5px;margin-left:3px}
.room-draw .rd-last .rd-k{
  display:inline-block;vertical-align:middle;
  color:#8a93a8;font-weight:800;margin-right:5px;font-size:10.5px;letter-spacing:.4px;
  padding:1px 6px;border-radius:6px;background:rgba(138,147,168,.14);
}
.room-draw .rd-track{display:inline-flex;white-space:nowrap;will-change:transform}
.room-draw .rd-track>i{font-style:normal;padding-right:44px;display:inline-block}
.room-draw .rd-track.scroll{animation:rd-marquee var(--rd-dur,14s) linear infinite}
@keyframes rd-marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.room-draw .rd-empty{color:var(--sub);font-weight:700}
/* 开奖号「遮住」态（任务十一/十二）：封盘中不给看任何号码、已开奖未刮开也不给看 */
.room-draw .rd-last.rd-masked{cursor:pointer}
.room-draw .rd-hint{
  display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  vertical-align:middle;font-size:12px;font-weight:700;padding:1px 9px;border-radius:999px;
}
.room-draw .rd-hint-wait{color:#6b7385;background:rgba(138,147,168,.16)}
.room-draw .rd-hint-ready{
  color:#7a4a00;background:linear-gradient(135deg,#fdf0bd,#f2c463);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.65),0 1px 4px rgba(232,137,43,.28);
}

/* ===== 开奖号码球（任务十）：配色与走势图 chart.py 完全同一套 =====
   三骰 PC28 → 彩色方块 b0~b6（0 号紫底）；六合彩 → 波色圆球；五车道 → 统一蓝球。
   号码用胶囊形（两位数字也不会被挤变形），球后小字是生肖。 */
.room-draw .rd-ball{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:18px;height:18px;padding:0 3.5px;margin:0 1px;border-radius:999px;
  font-style:normal;font-size:11.5px;font-weight:800;line-height:1;color:#fff;
  text-shadow:0 1px 1px rgba(0,0,0,.22);
  box-shadow:0 1px 3px rgba(0,0,0,.18);
  vertical-align:middle;
}
.room-draw .rd-plus{font-style:normal;color:var(--sub);font-weight:800;margin:0 3px 0 2px}
.room-draw .rd-zc{font-style:normal;font-size:10px;color:var(--sub);font-weight:700;margin:0 3px 0 1px}
.room-draw .rd-meta{font-style:normal;color:#d92c2e;font-weight:800;margin-left:4px;letter-spacing:.2px}
.room-draw .rd-plain{font-weight:700;color:var(--text)}
.rd-ball.b0{background:#8b5cf6}
.rd-ball.b1{background:#ffdd00;color:#000;text-shadow:none}
.rd-ball.b2{background:#0099ee}
.rd-ball.b3{background:#333333}
.rd-ball.b4{background:#ff7722}
.rd-ball.b5{background:#00cccc;color:#000;text-shadow:none}
.rd-ball.b6{background:#7744dd}
.rd-ball.b7{background:#cccccc;color:#000;text-shadow:none}
.rd-ball.b8{background:#ee2222}
.rd-ball.b9{background:#771111}
.rd-ball.b10{background:#00bb22}
.rd-ball.ball-red{background:#dd2222}
.rd-ball.ball-blue{background:#2244dd}
.rd-ball.ball-green{background:#229944}

/* 刮奖入口：开奖号后面的空白位置（任务十） */
.room-draw .rd-scratch{
  flex:0 0 auto;height:24px;padding:0 9px;border:0;border-radius:999px;
  background:linear-gradient(135deg,#ffb03a,#f5333f);color:#fff;
  font-size:11px;font-weight:800;letter-spacing:.5px;line-height:1;
  display:inline-flex;align-items:center;
  box-shadow:0 2px 7px rgba(245,51,63,.3);
  -webkit-tap-highlight-color:transparent;
  transition:transform .12s ease;
}
.room-draw .rd-scratch::before{content:'✦';margin-right:3px;font-size:9px;opacity:.95}
.room-draw .rd-scratch:active{transform:scale(.93)}

/* ===== 刮奖弹窗（任务十）===== */
/* 任务十三：点「刮奖」后只留卡面清晰，卡面之外的房间内容（信息条号码 / 聊天 / 快捷按钮）
   一律模糊 + 压暗，达不到「偷看背景」的效果。z-index 要高于 .room-fab(30)。 */
.modal.modal-scratch{
  z-index:40;
  background:rgba(14,11,26,.8);
  -webkit-backdrop-filter:blur(18px) saturate(.72);
  backdrop-filter:blur(18px) saturate(.72);
}
.modal.modal-scratch .modal-box{
  box-shadow:0 20px 54px rgba(0,0,0,.5),0 0 0 1px rgba(255,255,255,.06);
}
.sc-wrap{display:flex;flex-direction:column;gap:10px}
.sc-tip{font-size:15px;font-weight:800;color:var(--text);text-align:center;line-height:1.35}
.sc-tip em{display:block;font-style:normal;font-size:12px;font-weight:700;color:var(--sub);margin-top:3px}
.sc-tip-wait{color:#6b7385}
.sc-tip-ok{color:#d92c2e}
.sc-dots i{font-style:normal;animation:sc-dot 1.2s infinite}
.sc-dots i:nth-child(2){animation-delay:.2s}
.sc-dots i:nth-child(3){animation-delay:.4s}
@keyframes sc-dot{0%,60%,100%{opacity:.25}30%{opacity:1}}
.sc-stage{
  position:relative;height:120px;border-radius:14px;overflow:hidden;
  background:linear-gradient(135deg,#fff8e8,#ffeec9);
  border:1px solid #f0d79a;box-shadow:inset 0 1px 6px rgba(190,140,40,.12);
}
.sc-under{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:6px}
.sc-balls{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:2px}
/* 大号球：特异性 0,2,0 且定义在 .room-draw .rd-ball 之后 ⇒ 正常覆盖尺寸 */
.sc-stage .sc-ball{min-width:26px;height:26px;padding:0 5px;font-size:15px;margin:0 1.5px}
.sc-plus{font-style:normal;color:#a8894f;font-weight:800;margin:0 5px;font-size:14px}
.sc-zc{font-style:normal;font-size:10px;color:#a8894f;font-weight:700;margin:0 3px 0 1px}
.sc-meta{font-size:13px;font-weight:800;color:#d92c2e;letter-spacing:.5px}
.sc-canvas{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;cursor:crosshair}
.sc-foot{text-align:center;font-size:11.5px;color:var(--sub);font-weight:700}

/* 极窄屏：两行都收一点，球体略缩，保证一行放得下 */
@media (max-width:360px){
  .room-draw{padding:7px 9px 8px;font-size:12px}
  .room-draw .rd-row{gap:6px}
  .room-draw .rd-row-top{padding-bottom:6px;margin-bottom:7px}
  .room-draw .rd-issue{font-size:10.5px}
  .room-draw .rd-cd{font-size:10.5px;padding:2px 7px}
  .room-draw .rd-last{font-size:12px;line-height:18px}
  .room-draw .rd-last .rd-k{font-size:10px;padding:1px 5px;margin-right:4px}
  .room-draw .rd-ball{min-width:17px;height:17px;font-size:10.5px;padding:0 2.5px}
  .room-draw .rd-zc{font-size:9px}
  .room-draw .rd-scratch{height:22px;padding:0 7px;font-size:10.5px}
}

.room-fab{position:absolute;right:8px;bottom:92px;z-index:30;display:flex;flex-direction:column;gap:10px}
.fab-btn{
  width:46px;height:46px;padding:0;border:0;border-radius:50%;
  color:#fff;font-size:13px;font-weight:700;letter-spacing:.5px;line-height:1;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 5px 14px rgba(0,0,0,.22);
  -webkit-tap-highlight-color:transparent;transition:transform .12s ease,opacity .12s;
}
.fab-btn:active{transform:scale(.93)}
.fab-btn[disabled]{opacity:.5}
.fab-chart{background:linear-gradient(145deg,#ff8a4c,#e8432a)}
.fab-bets{background:linear-gradient(145deg,#4a9bff,#1f5fd0)}
.fab-odds{background:linear-gradient(145deg,#2ecb86,#0e9a5c)}
/* 消息区右侧留出按钮宽度，避免遮住自己的气泡 */
#page-room .msgs{padding-right:58px}
/* 走势图弹窗：图片按弹窗宽度自适应，点图可看原图 */
.fab-chart-box{line-height:0;text-align:center}
.fab-chart-box img{width:100%;height:auto;border-radius:10px;display:block;cursor:zoom-in}
/* 赔率弹窗：与群里 /4 的文本完全一致 */
.fab-pre{margin:0;white-space:pre-wrap;word-break:break-word;font-family:inherit;font-size:13px;line-height:1.85;color:var(--text)}
/* 注单弹窗 */
.fab-sum{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.fab-sum span{background:rgba(255,120,60,.12);color:#e8432a;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:700}
.fab-tb{width:100%;border-collapse:collapse;font-size:12.5px}
.fab-tb th,.fab-tb td{padding:7px 6px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}
.fab-tb th{color:var(--sub);font-weight:600;white-space:nowrap}
.fab-tb td.code{color:var(--text);word-break:break-all}
.fab-tb td.num{white-space:nowrap;color:#e8432a;font-weight:700}
.fab-empty{padding:26px 8px;text-align:center;color:var(--sub);font-size:13px;line-height:1.9}
/* 走势图被「开奖没揭晓」拦下时的提示（任务十二） */
.fab-lock{padding:26px 12px 14px;text-align:center}
.fab-lock-ico{font-size:30px;line-height:1;color:#f0b429;margin-bottom:12px}
.fab-lock-t{font-size:15px;font-weight:800;color:var(--text);margin-bottom:6px}
.fab-lock-s{font-size:13px;color:var(--sub);margin-bottom:18px}
.fab-lock-btn{
  border:0;border-radius:12px;padding:11px 26px;cursor:pointer;
  background:linear-gradient(135deg,#f0b429,#e8892b);color:#fff;
  font-size:14px;font-weight:800;letter-spacing:.5px;
  box-shadow:0 6px 16px rgba(232,137,43,.32);
}
.fab-lock-btn:active{transform:scale(.96)}
.fab-loading{padding:30px 8px;text-align:center;color:var(--sub);font-size:13px}

/* ===== ★ [任务二十七 / 任务三十] 机器人播报卡片（浅米金底 + 金框 + 烫金大字，两行）=====
   开始下注：彩种名 / 第 X 期开始下注！
   封盘提醒：彩种名 / 还有30秒后封盘
   机器人消息带 banner 字段时渲染成这张卡；旧消息（无 banner）继续走普通 .msg-text。 */
.msg.tmnotice{padding:0;background:transparent;width:300px;max-width:86vw}
.msg.tmnotice .msg-main{width:100%;min-width:0}
.tm-bn{
  position:relative;border-radius:14px;padding:18px 18px 17px;text-align:center;overflow:hidden;
  background:linear-gradient(158deg,#FFFDF6 0%,#FBF2DF 52%,#F5E7CE 100%);
  border:1px solid rgba(181,138,62,.42);
  box-shadow:0 6px 18px rgba(120,90,40,.12), inset 0 1px 0 rgba(255,255,255,.85);
}
.tm-bn::before{content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(120% 62% at 50% 0%,rgba(226,190,112,.20),transparent 70%)}
.tm-bn-close{border-color:rgba(206,140,58,.52)}
.tm-bn-game{font-size:24px;font-weight:800;letter-spacing:2px;line-height:1.2;
  background:linear-gradient(180deg,#E4B850 6%,#C08C30 48%,#8C5C15 96%);
  -webkit-background-clip:text;background-clip:text;color:transparent}
.tm-bn-line{margin-top:10px;padding-top:10px;font-size:16px;font-weight:600;letter-spacing:1px;line-height:1.4;
  color:#6E5A38;border-top:1px solid rgba(181,138,62,.28)}
.tm-bn-close .tm-bn-line{color:#8C5C15}
@media (max-width:360px){.tm-bn-game{font-size:22px}.tm-bn-line{font-size:15px}}

/* ===== ★ [任务三十四 / 任务三十] 封盘 / 开奖账单 · 玩家查询 · 赔率：浅米金数据卡片 =====
   与 .tm-bn 同一套配色（暖米白底 + 金框 + 深金标题），
   结构：标题区 / 号码条 / 统计格 / 成员明细 / 备注 / 底部 chips。
   数据全部由服务端白名单清洗（card 字段），旧消息无 card 仍走纯文本。 */
.msg.tmcardmsg{width:342px;max-width:92vw}
.tm-card{
  position:relative;border-radius:16px;padding:16px 16px 14px;overflow:hidden;text-align:left;
  background:linear-gradient(160deg,#FFFDF7 0%,#FCF4E4 52%,#F7EAD4 100%);
  border:1px solid rgba(181,138,62,.40);
  box-shadow:0 8px 22px rgba(120,90,40,.12), inset 0 1px 0 rgba(255,255,255,.9);
  color:#54452D;
}
.tm-card::before{content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(120% 60% at 50% 0%,rgba(226,190,112,.18),transparent 70%)}
.tm-card>*{position:relative}
.tm-card-hd{text-align:center;padding-bottom:12px;border-bottom:1px solid rgba(181,138,62,.24)}
.tm-card-title{
  font-size:20px;font-weight:800;letter-spacing:1.5px;line-height:1.25;word-break:break-word;
  background:linear-gradient(180deg,#E9C264 6%,#C4943B 50%,#94631C 96%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.tm-card-sub{margin-top:6px;font-size:12.5px;font-weight:600;letter-spacing:1px;color:#8B7448}
.tm-card-meta{
  margin:12px 0 2px;text-align:center;font-size:17px;font-weight:800;letter-spacing:2px;
  color:#7A5A1E;text-shadow:0 1px 8px rgba(233,200,122,.24);word-break:break-all;
}
.tm-card-rows{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.tm-card-row{
  display:flex;align-items:baseline;justify-content:space-between;gap:6px;
  padding:8px 10px;border-radius:10px;
  background:rgba(255,255,255,.66);border:1px solid rgba(181,138,62,.24);
}
.tm-card-k{font-size:11.5px;letter-spacing:.5px;color:#8B7A5A;white-space:nowrap}
.tm-card-v{font-size:15px;font-weight:800;letter-spacing:.3px;color:#4A3A22;word-break:break-all}
.tm-card-v.gold{color:#A9741F}
.tm-card-v.win{color:#1E8C5A}
.tm-card-v.loss{color:#C0463A}
.tm-card-mbs{margin-top:12px;display:flex;flex-direction:column}
.tm-card-mb{padding:8px 0;border-bottom:1px dashed rgba(181,138,62,.22)}
.tm-card-mb:last-child{border-bottom:0}
/* ★ [任务三十四] 成员明细不再用省略号截断：下注内容多了自动换行完整显示 */
.tm-card-mb-top{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.tm-card-mb-name{
  max-width:100%;overflow:visible;text-overflow:clip;white-space:normal;word-break:break-word;
  font-size:13.5px;font-weight:700;letter-spacing:.3px;color:#4A3A22;
}
.tm-card-mb.win .tm-card-mb-name{color:#8C5C15}
.tm-card-mb-detail{
  flex:1 1 100%;min-width:0;overflow:visible;text-overflow:clip;white-space:normal;word-break:break-word;
  text-align:left;line-height:1.6;margin-top:2px;
  font-size:11.5px;color:#9A8A6C;
}
.tm-card-mb-flow{
  margin-top:5px;display:flex;align-items:center;gap:6px;flex-wrap:wrap;
  font-size:12px;font-variant-numeric:tabular-nums;
}
.tm-card-mb-flow .pre{color:#9A8A6C}
.tm-card-mb-flow .delta{color:#A9741F;font-weight:700}
.tm-card-mb-flow .delta.win{color:#1E8C5A}
.tm-card-mb-flow .post{margin-left:auto;color:#4A3A22;font-weight:800}
.tm-card-mb-flow i{font-style:normal;font-size:11px;color:#A89B80}
.tm-card-close .tm-card-mb-flow{justify-content:flex-end}
.tm-card-note{
  margin-top:10px;padding:8px 10px;border-radius:9px;line-height:1.5;
  font-size:11.5px;color:#7A5A1E;
  background:rgba(240,198,108,.16);border:1px solid rgba(181,138,62,.28);
}
.tm-card-body{
  margin-top:12px;padding-top:10px;border-top:1px solid rgba(181,138,62,.24);
  /* ★ [任务三十四] 不再限高滚动隐藏，内容完整展示 */
  max-height:none;overflow:visible;white-space:pre-wrap;word-break:break-word;
  font-size:11.5px;line-height:1.8;color:#5E4E36;
}
.tm-card-chips{
  display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;padding-top:12px;
  border-top:1px solid rgba(181,138,62,.24);
}
.tm-card-chip{
  flex:1;min-width:0;display:flex;align-items:baseline;justify-content:space-between;gap:6px;
  padding:7px 10px;border-radius:9px;
  background:rgba(255,255,255,.62);border:1px solid rgba(181,138,62,.24);
}
.tm-card-chip span{font-size:11px;color:#8B7A5A;white-space:nowrap}
.tm-card-chip b{font-size:14px;font-weight:800;color:#A9741F;word-break:break-all}
/* ★ [任务三十五] 账单精致化：顶部烫金细线 + 主角数字 + 中奖徽标 + 成员奇偶底色 */
.tm-card::after{
  content:"";position:absolute;left:14px;right:14px;top:0;height:1px;pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(200,154,72,.9),transparent);
}
.tm-card-hero{
  margin:12px 0 2px;padding:12px 12px 13px;border-radius:13px;text-align:center;
  background:
    radial-gradient(120% 90% at 50% 0%,rgba(240,206,126,.20),transparent 72%),
    linear-gradient(180deg,rgba(255,255,255,.78),rgba(255,252,244,.52));
  border:1px solid rgba(181,138,62,.34);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
}
.tm-card-hero-k{font-size:11px;font-weight:700;letter-spacing:3px;color:#967C4E}
.tm-card-hero-v{
  margin-top:4px;font-size:30px;font-weight:900;line-height:1.15;letter-spacing:.5px;
  font-variant-numeric:tabular-nums;
  background:linear-gradient(180deg,#E6B853 4%,#C08C30 48%,#8C5C15 96%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  text-shadow:0 2px 12px rgba(233,200,122,.20);
}
.tm-card-hero-v.win{
  background:linear-gradient(180deg,#7FE0AC 4%,#2FA96F 48%,#16704A 96%);
  -webkit-background-clip:text;background-clip:text;
}
.tm-card-hero-v.loss{
  background:linear-gradient(180deg,#F09A90 4%,#CE5142 48%,#A02E22 96%);
  -webkit-background-clip:text;background-clip:text;
}
.tm-card-hero-s{margin-top:6px;font-size:11.5px;letter-spacing:.4px;color:#8B7A5A}
.tm-card-mb-tag{
  flex:none;margin-left:6px;padding:1px 6px;border-radius:999px;
  font-size:9.5px;font-weight:700;letter-spacing:.5px;color:#96651C;
  background:rgba(233,200,122,.22);border:1px solid rgba(181,138,62,.40);
}
.tm-card-mb-tag.win{color:#1E8C5A;background:rgba(30,140,90,.12);border-color:rgba(30,140,90,.36)}
.tm-card-mb{padding:9px 8px;border-radius:9px}
.tm-card-mb:nth-child(odd){background:rgba(181,138,62,.05)}
.tm-card-mb.win{background:linear-gradient(90deg,rgba(30,140,90,.10),rgba(30,140,90,.02))}
