/* ============================================================
   LIVEFOLME 理芙谜 · 私域直播运营系统
   品牌视觉：静谧蓝 #2A4A6B × 暖金 #C9A96E
   ============================================================ */
:root {
  --blue-950: #0A1522;
  --blue-900: #0E1B2A;
  --blue-800: #13253A;
  --blue-700: #1B3049;
  --blue-600: #2A4A6B;
  --blue-500: #3A6290;
  --gold: #C9A96E;
  --gold-light: #E2C793;
  --ink: #EAF0F7;
  --muted: #8FA3BA;
  --faint: #5E7390;
  --live: #FF4D5E;
  --ok: #4CC38A;
  --warn: #E8A33D;
  --card: rgba(21, 42, 65, .72);
  --card-solid: #152A41;
  --line: rgba(201, 169, 110, .16);
  --line-soft: rgba(143, 163, 186, .14);
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
/* 关键：hidden 属性必须生效（防止组件 display 覆盖导致弹窗常驻、遮挡页面交互） */
[hidden] { display: none !important; }

/* ---------- 主题变量（直播间装修可切换） ---------- */
body {
  --t1: #3A6290; --t2: #2A4A6B; --t3: #16283C;   /* 静谧蓝（默认） */
  --ta: #C9A96E;                                   /* 主题强调色 */
}
body[data-theme="gold"]   { --t1: #B8935A; --t2: #8A6B3D; --t3: #241B0F; --ta: #E2C793; }
body[data-theme="purple"] { --t1: #7A5FA8; --t2: #54407E; --t3: #1D1630; --ta: #C3A6F0; }
body[data-theme="green"]  { --t1: #4E8A6E; --t2: #35634F; --t3: #0F241B; --ta: #8FC7AC; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--blue-950);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; outline: none; }
a { color: inherit; text-decoration: none; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(143, 163, 186, .25); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 通用组件 ---------- */
.btn {
  border: 1px solid var(--line); background: rgba(58, 98, 144, .18);
  color: var(--ink); border-radius: 9px; padding: 8px 16px; font-size: 13px;
  transition: all .18s ease; white-space: nowrap;
}
.btn:hover { border-color: rgba(201, 169, 110, .5); background: rgba(58, 98, 144, .3); }
.btn.gold {
  background: linear-gradient(135deg, var(--gold) 0%, #B8935A 100%);
  color: #14273C; font-weight: 600; border: none;
}
.btn.gold:hover { background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%); box-shadow: 0 4px 16px rgba(201, 169, 110, .35); }
.btn.big { padding: 12px 24px; font-size: 15px; width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(10px); overflow: hidden;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 16px; border-bottom: 1px solid var(--line-soft);
}
.card-head h3 { font-size: 14px; font-weight: 600; letter-spacing: .5px; display: flex; align-items: center; gap: 8px; }
.card-head h3::before { content: ''; width: 3px; height: 14px; background: var(--gold); border-radius: 2px; display: inline-block; }
.tag {
  font-size: 11px; color: var(--muted); border: 1px solid var(--line-soft);
  padding: 2px 8px; border-radius: 20px; white-space: nowrap;
}
.tag.gold { color: var(--gold-light); border-color: rgba(201, 169, 110, .35); }

.conn {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted);
  border: 1px solid var(--line-soft); border-radius: 20px; padding: 4px 12px;
}
.conn i { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); display: inline-block; animation: pulse 1.6s infinite; }
.conn.live i { background: var(--ok); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.flower { width: 34px; height: 34px; color: rgba(255, 255, 255, .9); flex-shrink: 0; }

/* ---------- Toast ---------- */
#toastWrap { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 999; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: rgba(21, 42, 65, .95); border: 1px solid var(--line); color: var(--ink);
  padding: 10px 20px; border-radius: 10px; font-size: 13px; box-shadow: 0 8px 30px rgba(0, 0, 0, .4);
  animation: toastIn .25s ease;
}
.toast.gold { border-color: rgba(201, 169, 110, .5); color: var(--gold-light); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ============================================================
   主播 / 运营台
   ============================================================ */
body.anchor-page {
  background:
    radial-gradient(1100px 700px at 85% -10%, rgba(42, 74, 107, .55) 0%, transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(201, 169, 110, .07) 0%, transparent 55%),
    var(--blue-950);
  min-height: 100vh;
}

.topbar {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 12px 22px; background: rgba(10, 21, 34, .82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-text b { font-size: 15px; letter-spacing: 1px; display: block; }
.brand-text span { font-size: 11px; color: var(--gold-light); letter-spacing: 3px; }
.live-pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px;
  border: 1px solid rgba(255, 77, 94, .4); color: #FF8A96;
  padding: 5px 14px; border-radius: 20px; background: rgba(255, 77, 94, .08);
}
.live-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 1.2s infinite; }
.live-pill b { font-variant-numeric: tabular-nums; font-weight: 500; }
.top-meta { display: flex; gap: 14px; font-size: 12px; color: var(--muted); align-items: center; }
.top-meta b { color: var(--ink); font-size: 14px; margin-left: 4px; }
.top-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 432px; gap: 16px;
  padding: 16px 22px 28px; max-width: 1720px; margin: 0 auto; align-items: start;
}
@media (max-width: 1180px) { .layout { grid-template-columns: 1fr; } }
.col-left, .col-right { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* 直播画面（主题色 + 可装修背景图） */
.stage {
  aspect-ratio: 16 / 9; position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, color-mix(in srgb, var(--t1) 55%, transparent) 0%, transparent 55%),
    linear-gradient(135deg, var(--t3) 0%, var(--t2) 55%, var(--t3) 100%);
  display: flex; align-items: center; justify-content: center;
  transition: background .4s ease;
}
.stage.with-bg, .v-stage.with-bg {
  background-image: linear-gradient(rgba(10, 21, 34, .62), rgba(10, 21, 34, .72)), var(--bg);
  background-size: cover; background-position: center;
}
.stage-flower { width: 150px; height: 150px; color: rgba(255, 255, 255, .13); animation: bloom 7s ease-in-out infinite; }
@keyframes bloom { 0%, 100% { transform: scale(1) rotate(0deg); opacity: .13; } 50% { transform: scale(1.08) rotate(8deg); opacity: .2; } }
.stage-live { position: absolute; top: 16px; left: 16px; display: flex; align-items: center; gap: 10px; }
.live-tag {
  background: var(--live); color: #fff; font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 6px; letter-spacing: 1px;
}
.stage-title { font-size: 14px; font-weight: 500; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.stage-online {
  position: absolute; top: 16px; right: 16px; display: flex; align-items: center; gap: 6px;
  background: rgba(10, 21, 34, .55); border: 1px solid var(--line-soft);
  padding: 5px 12px; border-radius: 20px; font-size: 12px;
}
.stage-online b { color: var(--gold-light); }
.stage-note {
  position: absolute; bottom: 12px; right: 14px; font-size: 11px; color: rgba(234, 240, 247, .45);
  background: rgba(10, 21, 34, .5); padding: 4px 10px; border-radius: 6px;
}
.stage-center { text-align: center; position: relative; z-index: 1; }
.stage-center .slogan { color: rgba(234, 240, 247, .85); letter-spacing: 4px; font-size: 16px; margin-top: 18px; }
.stage-center .slogan-en { color: var(--gold-light); font-size: 11px; letter-spacing: 6px; margin-top: 6px; }

/* 互动消息 */
.chat-card { display: flex; flex-direction: column; min-height: 420px; }
.chat-list { flex: 1; overflow-y: auto; padding: 12px 16px; max-height: 430px; display: flex; flex-direction: column; gap: 9px; }
.chat-item { font-size: 13px; line-height: 1.55; display: flex; gap: 8px; align-items: baseline; animation: chatIn .22s ease; }
@keyframes chatIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.chat-item .t { font-size: 11px; color: var(--faint, #5E7390); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.chat-item .n { color: var(--gold-light); flex-shrink: 0; }
.chat-item.sys { color: var(--muted); font-size: 12px; }
.chat-item.sys .n { color: var(--muted); }
.chat-item.official .n { color: #FFD98A; }
.chat-item.official .c { background: rgba(201, 169, 110, .12); padding: 2px 8px; border-radius: 6px; border: 1px solid rgba(201, 169, 110, .25); }
.chat-item .c { word-break: break-all; }
.chat-form { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line-soft); align-items: center; }
.official-badge {
  font-size: 11px; color: #14273C; background: linear-gradient(135deg, var(--gold), #B8935A);
  padding: 3px 10px; border-radius: 6px; font-weight: 700; flex-shrink: 0;
}
.chat-form input, .notice-form input, .search-box input {
  flex: 1; background: rgba(10, 21, 34, .6); border: 1px solid var(--line-soft);
  color: var(--ink); border-radius: 9px; padding: 9px 13px; font-size: 13px; min-width: 0;
}
.chat-form input:focus, .notice-form input:focus, .search-box input:focus, input:focus {
  border-color: rgba(201, 169, 110, .55);
}

/* 统计卡 */
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
@media (max-width: 1360px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 14px; position: relative; overflow: hidden;
}
.stat::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, rgba(201, 169, 110, .5), transparent); }
.stat .k { font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.stat .v { font-size: 24px; font-weight: 700; margin-top: 5px; font-variant-numeric: tabular-nums; }
.stat .v small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 3px; }
.stat.hl .v { color: var(--gold-light); }

/* 观众表 */
.viewers-card .card-head { flex-wrap: wrap; }
.viewers-tools { display: flex; gap: 8px; align-items: center; }
.search-box { display: flex; align-items: center; }
.search-box input { padding: 6px 10px; font-size: 12px; width: 120px; }
.table-wrap { overflow: auto; max-height: 340px; }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
thead th {
  position: sticky; top: 0; background: var(--blue-800); color: var(--muted);
  font-weight: 500; text-align: left; padding: 9px 12px; font-size: 11.5px;
  letter-spacing: .5px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; z-index: 2;
}
tbody td { padding: 9px 12px; border-bottom: 1px solid rgba(143, 163, 186, .07); white-space: nowrap; }
tbody tr:hover { background: rgba(58, 98, 144, .12); }
tbody tr.off { opacity: .45; }
.v-name { display: flex; align-items: center; gap: 7px; font-weight: 500; }
.avatar {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); color: #fff;
}
.bot-badge {
  font-size: 10px; color: var(--muted); border: 1px dashed rgba(143, 163, 186, .4);
  padding: 1px 5px; border-radius: 4px; flex-shrink: 0;
}
.src-badge { color: var(--muted); font-size: 11px; }
.td-num { font-variant-numeric: tabular-nums; }
.dur { color: var(--gold-light); font-variant-numeric: tabular-nums; }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; }
.status i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.status.on { color: var(--ok); } .status.on i { background: var(--ok); }
.status.off { color: var(--muted); } .status.off i { background: var(--muted); }
.empty-row { text-align: center; color: var(--muted); padding: 26px 0 !important; font-size: 12px; }

/* 抽奖 */
.lottery-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 16px; }
.lottery-form label { display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; color: var(--muted); }
.lottery-form label.full { grid-column: 1 / -1; }
.lottery-form input[type="text"], .lottery-form input[type="number"] {
  background: rgba(10, 21, 34, .6); border: 1px solid var(--line-soft); color: var(--ink);
  border-radius: 9px; padding: 9px 12px; font-size: 13px;
}
.lottery-form .checkline {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--ink); cursor: pointer; user-select: none;
}
.lottery-form .checkline input { accent-color: var(--gold); width: 15px; height: 15px; }
.lottery-form .btn.big { grid-column: 1 / -1; }

.lottery-stage {
  margin: 0 16px 14px; border: 1px dashed rgba(201, 169, 110, .3); border-radius: 12px;
  min-height: 86px; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 14px; transition: all .3s;
}
.lottery-stage .hint { color: var(--muted); font-size: 12px; line-height: 1.7; }
.lottery-stage.rolling { border-style: solid; border-color: var(--gold); box-shadow: 0 0 24px rgba(201, 169, 110, .18) inset; }
.rolling-name { font-size: 26px; font-weight: 700; color: var(--gold-light); letter-spacing: 2px; }
.rolling-tip { font-size: 11px; color: var(--muted); margin-top: 8px; }
.winners-wrap { width: 100%; }
.winners-title { font-size: 12px; color: var(--gold-light); letter-spacing: 2px; margin-bottom: 10px; }
.winners { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.winner-chip {
  background: linear-gradient(135deg, rgba(201, 169, 110, .22), rgba(201, 169, 110, .08));
  border: 1px solid rgba(201, 169, 110, .5); border-radius: 10px; padding: 8px 14px;
  animation: winnerPop .4s cubic-bezier(.2, 1.4, .4, 1) backwards;
}
.winner-chip .w-n { font-size: 14px; font-weight: 600; }
.winner-chip .w-m { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
@keyframes winnerPop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.lottery-history { padding: 0 16px 14px; max-height: 150px; overflow-y: auto; }
.hist-item {
  display: flex; gap: 8px; font-size: 12px; padding: 7px 0;
  border-bottom: 1px dashed rgba(143, 163, 186, .12); align-items: baseline;
}
.hist-item .h-t { color: var(--faint, #5E7390); flex-shrink: 0; font-size: 11px; font-variant-numeric: tabular-nums; }
.hist-item .h-p { color: var(--gold-light); flex-shrink: 0; }
.hist-item .h-w { color: var(--muted); word-break: break-all; }

/* 公告 */
.notice-form { display: flex; gap: 10px; padding: 14px 16px 10px; }
.notice-current { margin: 0 16px 14px; padding: 10px 12px; font-size: 12.5px; color: var(--gold-light); background: rgba(201, 169, 110, .08); border: 1px solid rgba(201, 169, 110, .25); border-radius: 9px; line-height: 1.6; }
.notice-current:empty { display: none; }

/* ============================================================
   观众端
   ============================================================ */
body.viewer-page {
  display: flex; justify-content: center; align-items: flex-start;
  min-height: 100vh; padding: 18px 12px 30px;
  background:
    radial-gradient(800px 500px at 50% -5%, rgba(42, 74, 107, .6) 0%, transparent 60%),
    var(--blue-950);
}

/* 进入遮罩 */
.join-mask {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: rgba(10, 21, 34, .92); backdrop-filter: blur(6px); padding: 20px;
}
.join-box {
  width: min(400px, 100%); text-align: center; background: var(--card-solid);
  border: 1px solid var(--line); border-radius: 20px; padding: 38px 30px 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.join-box .flower { width: 58px; height: 58px; margin: 0 auto 14px; display: block; }
.join-box h1 { font-size: 20px; letter-spacing: 2px; }
.join-box .slogan { font-size: 12px; color: var(--gold-light); letter-spacing: 3px; margin: 8px 0 26px; }
.join-box input {
  width: 100%; background: rgba(10, 21, 34, .6); border: 1px solid var(--line-soft);
  color: var(--ink); border-radius: 11px; padding: 12px 14px; font-size: 14px; text-align: center; margin-bottom: 14px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 22px; }
.chip {
  font-size: 12px; color: var(--muted); border: 1px solid var(--line-soft);
  padding: 6px 14px; border-radius: 20px; transition: all .18s; background: transparent;
}
.chip.on { color: #14273C; background: linear-gradient(135deg, var(--gold), #B8935A); border-color: transparent; font-weight: 600; }
.join-note { font-size: 11px; color: var(--muted); margin-top: 14px; }

/* 企业微信身份识别成功提示（观众端进入遮罩） */
.wecom-badge {
  margin-top: 12px; padding: 7px 12px; border-radius: 8px;
  background: rgba(42, 74, 107, .10); border: 1px solid rgba(42, 74, 107, .25);
  color: #2A4A6B; font-size: 12.5px; font-weight: 600; text-align: center;
  letter-spacing: .2px;
}

/* ---------- 手机号留资弹窗（观众端） ---------- */
.phone-pop {
  background: linear-gradient(165deg, #16304A, #0B1725);
  border: 1px solid rgba(201, 169, 110, .28);
}
.phone-pop .phone-head { padding: 20px 20px 14px; text-align: center; }
.phone-pop .phone-body { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.phone-pop #phoneInput {
  width: 100%; box-sizing: border-box;
  background: rgba(4, 12, 22, .55); border: 1px solid var(--line-soft);
  color: var(--ink); border-radius: 11px; padding: 13px 14px;
  font-size: 18px; text-align: center; letter-spacing: 2px; outline: none;
  transition: border-color .18s;
}
.phone-pop #phoneInput:focus { border-color: var(--gold); }
.phone-pop #phoneInput::placeholder { color: var(--muted); font-size: 13px; letter-spacing: 0; }
.phone-err { min-height: 15px; margin: 0; font-size: 12px; color: #F08A8A; text-align: center; }
.phone-note { margin: 2px 0 0; font-size: 11px; color: var(--muted); text-align: center; }

/* 运营台观众明细：手机号与实名标识 */
.v-phone { margin-top: 3px; font-size: 11.5px; color: var(--gold-light); letter-spacing: .4px; }
.id-badge { background: rgba(42, 74, 107, .85) !important; color: #EAF1F8 !important; }

/* 手机直播框 */
.phone {
  width: min(430px, 100%); display: flex; flex-direction: column; gap: 12px;
  position: relative;
}
.v-top { display: flex; align-items: center; gap: 10px; padding: 0 4px; flex-wrap: wrap; }
.v-top .v-live {
  background: var(--live); font-size: 11px; font-weight: 700; padding: 3px 9px;
  border-radius: 6px; letter-spacing: 1px;
}
.v-top .v-title { font-size: 13px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-top .v-online { font-size: 12px; color: var(--muted); }
.v-top .v-online b { color: var(--gold-light); }

.v-stage {
  aspect-ratio: 9 / 16; max-height: 74vh; position: relative; overflow: hidden;
  border-radius: 18px; border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 25%, color-mix(in srgb, var(--t1) 55%, transparent) 0%, transparent 60%),
    linear-gradient(165deg, var(--t3) 0%, var(--t2) 50%, var(--t3) 100%);
  transition: background .4s ease;
}
.v-stage .stage-flower { position: absolute; top: 12%; left: 50%; transform: translateX(-50%); width: 120px; height: 120px; color: rgba(255, 255, 255, .1); }
.v-anchor {
  position: absolute; top: 14px; left: 14px; display: flex; align-items: center; gap: 9px;
  background: rgba(10, 21, 34, .5); backdrop-filter: blur(4px);
  border: 1px solid var(--line-soft); border-radius: 22px; padding: 5px 12px 5px 6px;
}
.v-anchor .avatar { width: 30px; height: 30px; font-size: 13px; background: linear-gradient(135deg, var(--gold), #B8935A); color: #14273C; font-weight: 700; }
.v-anchor .a-n { font-size: 12.5px; font-weight: 500; }
.v-anchor .a-s { font-size: 10px; color: var(--muted); }
.v-follow {
  font-size: 11px; background: linear-gradient(135deg, var(--gold), #B8935A); color: #14273C;
  border: none; border-radius: 14px; padding: 5px 13px; font-weight: 700;
}

.danmaku-list {
  position: absolute; left: 0; right: 0; bottom: 86px; padding: 0 14px;
  display: flex; flex-direction: column; gap: 7px; pointer-events: none;
}
.dm {
  align-self: flex-start; max-width: 86%; font-size: 12.5px; line-height: 1.5;
  background: rgba(10, 21, 34, .55); backdrop-filter: blur(3px);
  border-radius: 14px; padding: 6px 12px; animation: chatIn .22s ease;
}
.dm .n { color: var(--gold-light); margin-right: 6px; font-size: 11.5px; }
.dm.official { border: 1px solid rgba(201, 169, 110, .55); color: #FFD98A; }
.dm.self { border: 1px solid rgba(76, 195, 138, .5); }
.dm.self .n { color: var(--ok); }

.like-float { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.heart-f {
  position: absolute; bottom: 90px; font-size: 20px; color: #FF6B81;
  animation: heartUp 1.8s ease-out forwards;
}
@keyframes heartUp {
  0% { transform: translateY(0) scale(.6); opacity: 1; }
  100% { transform: translateY(-46vh) scale(1.3) rotate(18deg); opacity: 0; }
}

.v-bottom {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(10, 21, 34, .92) 40%);
  padding: 30px 14px 14px; display: flex; flex-direction: column; gap: 10px;
}
.my-row { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--muted); }
.my-row b { color: var(--gold-light); font-variant-numeric: tabular-nums; }
.book-btn {
  font-size: 11.5px; color: var(--gold-light); background: rgba(201, 169, 110, .12);
  border: 1px solid rgba(201, 169, 110, .4); border-radius: 14px; padding: 4px 12px;
}
.book-btn:active { transform: scale(.95); }
.v-input-row { display: flex; gap: 9px; align-items: center; }
.v-input-row input {
  flex: 1; background: rgba(10, 21, 34, .65); border: 1px solid var(--line-soft);
  color: var(--ink); border-radius: 20px; padding: 10px 16px; font-size: 13px; min-width: 0;
}
.like-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 107, 129, .5);
  background: rgba(255, 107, 129, .14); color: #FF6B81; font-size: 18px; flex-shrink: 0;
  transition: transform .12s;
}
.like-btn:active { transform: scale(1.2); }
.send-btn {
  border: none; border-radius: 20px; padding: 10px 18px; font-size: 13px; font-weight: 600;
  background: linear-gradient(135deg, var(--gold), #B8935A); color: #14273C; flex-shrink: 0;
}
.send-btn:active { transform: scale(.96); }

/* 观众端公告/抽奖 */
.v-notice {
  padding: 10px 14px; border-radius: 12px; font-size: 12.5px; line-height: 1.6;
  background: rgba(201, 169, 110, .12); border: 1px solid rgba(201, 169, 110, .4); color: var(--gold-light);
  display: flex; gap: 8px; align-items: baseline;
}
.v-notice .n-t { font-size: 11px; border: 1px solid rgba(201, 169, 110, .5); border-radius: 4px; padding: 1px 6px; flex-shrink: 0; }

.lottery-banner {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(21, 42, 65, .96); border: 1px solid var(--gold); border-radius: 16px;
  padding: 20px 30px; text-align: center; z-index: 10; box-shadow: 0 0 40px rgba(201, 169, 110, .3);
  animation: winnerPop .35s cubic-bezier(.2, 1.4, .4, 1);
}
.lottery-banner .lb-prize { font-size: 17px; color: var(--gold-light); font-weight: 700; margin-top: 6px; }
.lottery-banner .lb-roll { font-size: 30px; font-weight: 800; color: #fff; margin-top: 10px; letter-spacing: 2px; min-height: 42px; }
.lottery-banner .lb-tip { font-size: 11px; color: var(--muted); margin-top: 8px; }

.win-mask {
  position: fixed; inset: 0; z-index: 200; background: rgba(10, 21, 34, .9); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.win-box {
  width: min(380px, 100%); text-align: center; border-radius: 20px; padding: 32px 26px;
  background: var(--card-solid); border: 1px solid rgba(201, 169, 110, .55);
  box-shadow: 0 0 60px rgba(201, 169, 110, .25); animation: winnerPop .4s cubic-bezier(.2, 1.4, .4, 1);
}
.win-box h2 { font-size: 19px; color: var(--gold-light); letter-spacing: 2px; }
.win-box .win-flower { width: 46px; height: 46px; color: var(--gold-light); margin: 0 auto 10px; display: block; }
.win-list { margin: 18px 0; display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow-y: auto; }
.win-row {
  display: flex; justify-content: space-between; align-items: center; font-size: 13.5px;
  background: rgba(58, 98, 144, .16); border: 1px solid var(--line-soft); border-radius: 10px; padding: 9px 14px;
}
.win-row.me { border-color: var(--gold); background: rgba(201, 169, 110, .18); }
.win-row .w-m { font-size: 11px; color: var(--muted); }
.win-tip { font-size: 11.5px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }

/* ============================================================
   v2 新增：tabs / 装修 / 商品 / 优惠券 / 签到 / 禁言 / 结束页
   ============================================================ */

/* ---------- 右列 Tab 导航 ---------- */
.tabs { display: flex; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px; }
.tabs button {
  flex: 1; border: none; background: transparent; color: var(--muted); font-size: 13px;
  padding: 9px 4px; border-radius: 8px; transition: all .18s; font-weight: 500;
}
.tabs button:hover { color: var(--ink); }
.tabs button.on { background: linear-gradient(135deg, rgba(201, 169, 110, .22), rgba(201, 169, 110, .08)); color: var(--gold-light); border: 1px solid rgba(201, 169, 110, .4); }
.tab-panels .panel { display: none; flex-direction: column; gap: 16px; }
.tab-panels .panel.on { display: flex; }

/* ---------- 装修表单 ---------- */
.deco-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 16px; }
.deco-form label { display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; color: var(--muted); }
.deco-form label.full { grid-column: 1 / -1; }
.deco-form input {
  background: rgba(10, 21, 34, .6); border: 1px solid var(--line-soft); color: var(--ink);
  border-radius: 9px; padding: 9px 12px; font-size: 13px;
}
.theme-row { display: flex; gap: 10px; align-items: center; padding-top: 2px; }
.theme-dot {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; cursor: pointer;
  transition: all .18s; position: relative;
}
.theme-dot.on { border-color: #fff; transform: scale(1.15); box-shadow: 0 0 0 3px rgba(201, 169, 110, .4); }
.theme-dot[data-t="blue"]   { background: linear-gradient(135deg, #3A6290, #2A4A6B); }
.theme-dot[data-t="gold"]   { background: linear-gradient(135deg, #E2C793, #8A6B3D); }
.theme-dot[data-t="purple"] { background: linear-gradient(135deg, #9B82C9, #54407E); }
.theme-dot[data-t="green"]  { background: linear-gradient(135deg, #6FB392, #35634F); }
.deco-tip { grid-column: 1 / -1; font-size: 11px; color: var(--muted); line-height: 1.7; padding: 8px 10px; background: rgba(58, 98, 144, .1); border-radius: 8px; }

/* ---------- 商品管理 ---------- */
.goods-form { display: grid; grid-template-columns: 1fr 110px; gap: 10px; padding: 14px 16px 8px; }
.goods-form label { display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; color: var(--muted); }
.goods-form label.full { grid-column: 1 / -1; }
.goods-form input {
  background: rgba(10, 21, 34, .6); border: 1px solid var(--line-soft); color: var(--ink);
  border-radius: 9px; padding: 8px 11px; font-size: 13px;
}
.goods-form .btn { grid-column: 1 / -1; }
.goods-list { padding: 6px 16px 14px; display: flex; flex-direction: column; gap: 9px; max-height: 300px; overflow-y: auto; }
.goods-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  background: rgba(10, 21, 34, .45); border: 1px solid var(--line-soft); border-radius: 11px;
}
.goods-item.featur { border-color: rgba(255, 77, 94, .55); background: rgba(255, 77, 94, .07); }
.goods-info { flex: 1; min-width: 0; }
.goods-info .g-n { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.goods-info .g-d { font-size: 11px; color: var(--muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.goods-item .g-price { color: var(--gold-light); font-size: 15px; font-weight: 700; flex-shrink: 0; }
.goods-item .g-tag { font-size: 10px; color: var(--gold-light); border: 1px solid rgba(201, 169, 110, .4); border-radius: 4px; padding: 1px 6px; flex-shrink: 0; }
.goods-item .g-btn { border: 1px solid var(--line-soft); background: transparent; color: var(--muted); font-size: 11px; border-radius: 7px; padding: 5px 10px; flex-shrink: 0; transition: all .15s; }
.goods-item .g-btn:hover { color: var(--ink); border-color: rgba(201, 169, 110, .5); }
.goods-item .g-btn.f-on { color: #FF8A96; border-color: rgba(255, 77, 94, .55); }
.goods-item .g-btn.del:hover { color: #FF8A96; border-color: rgba(255, 77, 94, .5); }
.goods-empty { text-align: center; color: var(--muted); font-size: 12px; padding: 20px 0; }

/* ---------- 观众端：购物袋 + 商品抽屉 ---------- */
.goods-bag {
  position: absolute; right: 14px; bottom: 96px; width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #B8935A); border: none; color: #14273C;
  font-size: 20px; z-index: 5; box-shadow: 0 4px 16px rgba(0, 0, 0, .35); display: flex; align-items: center; justify-content: center;
}
.goods-bag:active { transform: scale(.92); }
.goods-bag .bag-n {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px;
  background: var(--live); color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.feature-pill {
  position: absolute; left: 14px; bottom: 96px; z-index: 5;
  display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: #fff;
  background: rgba(255, 77, 94, .85); border-radius: 18px; padding: 6px 13px; max-width: 62%;
  cursor: pointer; animation: pulse 1.8s infinite;
}
.feature-pill .f-p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.goods-drawer {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 20;
  background: rgba(13, 26, 41, .97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); border-radius: 18px 18px 0 0;
  padding: 14px 14px 16px; max-height: 62%; overflow-y: auto;
  animation: drawerUp .28s cubic-bezier(.2, .9, .3, 1);
}
@keyframes drawerUp { from { transform: translateY(100%); } to { transform: none; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.drawer-head b { font-size: 14px; }
.drawer-head button { border: none; background: transparent; color: var(--muted); font-size: 20px; }
.v-goods-item {
  display: flex; gap: 12px; align-items: center; padding: 11px 12px; margin-bottom: 9px;
  background: rgba(58, 98, 144, .12); border: 1px solid var(--line-soft); border-radius: 12px;
}
.v-goods-item.hot { border-color: rgba(255, 77, 94, .6); background: rgba(255, 77, 94, .08); }
.v-goods-item .g-thumb {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; color: #14273C;
  background: linear-gradient(135deg, var(--ta), var(--t2)); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700;
}
.v-goods-item .g-main { flex: 1; min-width: 0; }
.v-goods-item .g-name { font-size: 13px; font-weight: 500; }
.v-goods-item .g-desc { font-size: 11px; color: var(--muted); margin-top: 3px; }
.v-goods-item .g-price { color: var(--gold-light); font-weight: 700; font-size: 14px; margin-top: 4px; }
.v-goods-item .g-buy {
  border: none; border-radius: 15px; padding: 8px 14px; font-size: 12px; font-weight: 600; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), #B8935A); color: #14273C;
}
.v-goods-item .g-buy:active { transform: scale(.94); }
.hot-tag { font-size: 10px; color: #FF8A96; border: 1px solid rgba(255, 77, 94, .5); border-radius: 4px; padding: 1px 6px; margin-left: 6px; }

/* ---------- 优惠券 ---------- */
.coupon-card-form { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 14px 16px 8px; }
.coupon-card-form label { display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; color: var(--muted); }
.coupon-card-form input {
  background: rgba(10, 21, 34, .6); border: 1px solid var(--line-soft); color: var(--ink);
  border-radius: 9px; padding: 9px 12px; font-size: 13px;
}
.coupon-stat { padding: 4px 16px 14px; font-size: 12px; color: var(--muted); }
.coupon-stat b { color: var(--gold-light); font-size: 15px; }

.coupon-mask {
  position: fixed; inset: 0; z-index: 300; background: rgba(10, 21, 34, .88); backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.coupon-pop {
  width: min(340px, 100%); border-radius: 18px; overflow: hidden; text-align: center;
  animation: winnerPop .4s cubic-bezier(.2, 1.4, .4, 1);
}
.coupon-top {
  background: linear-gradient(135deg, var(--gold), #B8935A); color: #14273C; padding: 26px 22px 20px;
}
.coupon-top .c-k { font-size: 12px; letter-spacing: 2px; font-weight: 600; opacity: .75; }
.coupon-top .c-n { font-size: 21px; font-weight: 800; margin-top: 6px; }
.coupon-top .c-note { font-size: 12px; margin-top: 7px; opacity: .8; }
.coupon-body { background: var(--card-solid); padding: 18px 22px 22px; border: 1px solid var(--line); border-top: none; }
.coupon-btn {
  width: 100%; border: none; border-radius: 24px; padding: 13px; font-size: 15px; font-weight: 700;
  background: linear-gradient(135deg, var(--gold), #B8935A); color: #14273C;
}
.coupon-btn:active { transform: scale(.97); }
.coupon-btn.got { background: rgba(76, 195, 138, .15); color: var(--ok); border: 1px solid rgba(76, 195, 138, .5); }
.coupon-close { border: none; background: transparent; color: var(--muted); font-size: 13px; margin-top: 12px; width: 100%; }
.my-coupon {
  position: absolute; top: 58px; right: 14px; z-index: 6;
  background: rgba(255, 77, 94, .12); border: 1px dashed rgba(255, 77, 94, .6); color: #FF8A96;
  font-size: 10.5px; border-radius: 8px; padding: 4px 9px;
}

/* ---------- 签到 ---------- */
.signin-bar {
  position: absolute; top: 58px; left: 14px; right: 14px; z-index: 6;
  display: flex; align-items: center; gap: 10px;
  background: rgba(13, 26, 41, .9); border: 1px solid rgba(201, 169, 110, .5);
  border-radius: 12px; padding: 9px 12px; animation: chatIn .3s ease;
}
.signin-bar .s-t { font-size: 12px; color: var(--gold-light); flex: 1; }
.signin-bar .s-btn {
  border: none; border-radius: 16px; padding: 7px 16px; font-size: 12px; font-weight: 700;
  background: linear-gradient(135deg, var(--gold), #B8935A); color: #14273C; flex-shrink: 0;
}
.signin-bar .s-btn.got { background: rgba(76, 195, 138, .15); color: var(--ok); border: 1px solid rgba(76, 195, 138, .5); }

.signin-admin { display: flex; gap: 10px; padding: 14px 16px; align-items: center; flex-wrap: wrap; }
.signin-count { font-size: 13px; color: var(--muted); flex: 1; }
.signin-count b { color: var(--gold-light); font-size: 17px; }
.signin-names { padding: 0 16px 14px; display: flex; flex-wrap: wrap; gap: 7px; max-height: 90px; overflow-y: auto; }
.signin-chip { font-size: 11.5px; background: rgba(76, 195, 138, .1); border: 1px solid rgba(76, 195, 138, .35); color: var(--ok); border-radius: 14px; padding: 3px 11px; }

/* ---------- 禁言按钮 / 表格操作 ---------- */
.mute-btn {
  border: 1px solid var(--line-soft); background: transparent; color: var(--muted);
  font-size: 11px; border-radius: 6px; padding: 3px 9px; transition: all .15s;
}
.mute-btn:hover { color: #FF8A96; border-color: rgba(255, 77, 94, .5); }
.mute-btn.muted-on { color: #FF8A96; border-color: rgba(255, 77, 94, .55); background: rgba(255, 77, 94, .1); }
td.mute-col { text-align: right; }
tr.muted-row .v-name::after { content: '禁言中'; font-size: 10px; color: #FF8A96; border: 1px solid rgba(255, 77, 94, .5); border-radius: 4px; padding: 1px 5px; margin-left: 6px; }

/* ---------- 开播/结束 ---------- */
.btn.live-ctrl { min-width: 104px; }
.btn.end { background: rgba(255, 77, 94, .12); border-color: rgba(255, 77, 94, .5); color: #FF8A96; }
.btn.end:hover { background: rgba(255, 77, 94, .22); }
.stage-overlay {
  position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 10px;
  background: rgba(10, 21, 34, .82); backdrop-filter: blur(4px); padding: 24px;
}
.stage-overlay .ov-k { font-size: 12px; color: var(--muted); letter-spacing: 2px; }
.stage-overlay .ov-t { font-size: 20px; font-weight: 700; }
.stage-overlay .ov-s { font-size: 12px; color: var(--muted); line-height: 1.8; }
.summary-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; width: min(420px, 90%);
}
.summary-cell { background: rgba(58, 98, 144, .16); border: 1px solid var(--line-soft); border-radius: 10px; padding: 9px 6px; }
.summary-cell .k { font-size: 10.5px; color: var(--muted); }
.summary-cell .v { font-size: 17px; font-weight: 700; color: var(--gold-light); margin-top: 3px; font-variant-numeric: tabular-nums; }

/* ---------- 直播已结束（观众端） ---------- */
.v-ended { text-align: center; }
.v-ended .e-t { font-size: 17px; font-weight: 700; margin-top: 12px; }
.v-ended .e-s { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.9; }
.v-ended .e-s b { color: var(--gold-light); }

/* ---------- 直播回放 ---------- */
.replay-box { width: 92%; margin-top: 6px; }
.replay-head {
  font-size: 13px; color: var(--gold-light); font-weight: 600; letter-spacing: 1px;
  margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.replay-head::before { content: ''; width: 3px; height: 13px; background: var(--gold); border-radius: 2px; }
.replay-box video {
  width: 100%; border-radius: 12px; background: #000; border: 1px solid var(--line);
  max-height: 52vh; display: block;
}

/* ============ 主播口令验证遮罩 ============ */
.key-mask {
  position: fixed; inset: 0; z-index: 400; background: rgba(10, 21, 34, .92); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.key-box {
  width: min(360px, 100%); background: linear-gradient(160deg, #16283C, #0D1B2B);
  border: 1px solid rgba(201, 169, 110, .35); border-radius: 18px;
  padding: 30px 26px 26px; text-align: center;
  animation: winnerPop .4s cubic-bezier(.2, 1.4, .4, 1);
}
.key-box .flower { display: block; margin: 0 auto 10px; }
.key-box h3 { color: #fff; font-size: 18px; margin-bottom: 8px; letter-spacing: 1px; }
.key-box p { color: rgba(255,255,255,.55); font-size: 12.5px; line-height: 1.7; margin-bottom: 16px; }
.key-box input {
  width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.07);
  color: #fff; font-size: 15px; text-align: center; letter-spacing: 2px; outline: none;
}
.key-box input:focus { border-color: var(--gold); }
.key-err { color: #FF8B8B; font-size: 12px; min-height: 18px; margin: 8px 0 4px; }
.key-box .btn { width: 100%; padding: 12px; font-size: 15px; }

/* ============================================================
   外部直播画面入口（视频号 / 抖音 / 腾讯会议）
   视频流由第三方承载，本服务仅跑互动消息
   ============================================================ */
.live-screen {
  position: absolute; left: 16px; right: 16px; top: 46%; transform: translateY(-50%);
  z-index: 7; cursor: pointer; border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, rgba(20, 40, 62, .92), rgba(11, 24, 38, .92));
  border: 1px solid rgba(201, 169, 110, .38);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  animation: lsIn .35s ease;
}
@keyframes lsIn { from { opacity: 0; transform: translateY(-50%) scale(.96); } to { opacity: 1; transform: translateY(-50%) scale(1); } }

/* 呼吸光晕，暗示「正在直播」 */
.ls-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 100% at 12% 50%, rgba(255, 77, 94, .18), transparent 62%);
  animation: lsBreath 2.6s ease-in-out infinite;
}
@keyframes lsBreath { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

.ls-inner { position: relative; display: flex; align-items: center; gap: 12px; padding: 15px 15px 13px; }
.ls-play {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%;
  background: linear-gradient(135deg, #FF6B78, var(--live));
  color: #fff; font-size: 15px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 0 rgba(255, 77, 94, .5); animation: lsPulse 1.9s infinite;
}
@keyframes lsPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 77, 94, .55); }
  70%  { box-shadow: 0 0 0 12px rgba(255, 77, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 94, 0); }
}
.ls-text { flex: 1; min-width: 0; }
.ls-t { font-size: 13.5px; font-weight: 700; color: #fff; letter-spacing: .3px; margin-bottom: 3px; }
.ls-s { font-size: 11px; color: rgba(255, 255, 255, .55); line-height: 1.5; }
.ls-go {
  flex-shrink: 0; font-size: 11.5px; font-weight: 700; color: #14273C;
  background: linear-gradient(135deg, var(--gold), #B8935A);
  border-radius: 18px; padding: 7px 13px; white-space: nowrap;
}
.ls-note {
  position: relative; font-size: 10px; color: rgba(255, 255, 255, .38);
  padding: 0 15px 11px; letter-spacing: .2px;
}
.live-screen:active { transform: translateY(-50%) scale(.985); }

/* 跳转确认遮罩 */
.ls-tip-mask {
  position: absolute; inset: 0; z-index: 60; background: rgba(6, 14, 24, .78);
  backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 22px;
}
.ls-tip-box {
  width: 100%; max-width: 280px; text-align: center;
  background: linear-gradient(160deg, #16283C, #0D1B2B);
  border: 1px solid rgba(201, 169, 110, .35); border-radius: 16px; padding: 22px 18px 16px;
  animation: lsIn .28s ease;
}
.ls-tip-t { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.ls-tip-s { font-size: 12px; color: rgba(255, 255, 255, .55); line-height: 1.7; margin-bottom: 16px; }
.ls-tip-cancel {
  display: block; width: 100%; margin-top: 10px; border: none; background: transparent;
  color: var(--muted); font-size: 12px; padding: 6px;
}

/* 装修面板：分节标题 */
.deco-sec {
  grid-column: 1 / -1; display: flex; flex-direction: column; gap: 4px;
  margin-top: 4px; padding: 11px 13px; border-radius: 10px;
  background: rgba(201, 169, 110, .08); border: 1px solid rgba(201, 169, 110, .26);
  border-left: 3px solid var(--gold);
}
.deco-sec-t { font-size: 12.5px; font-weight: 700; color: var(--gold-light); }
.deco-sec-s { font-size: 11.5px; color: var(--muted); line-height: 1.65; }

/* 装修面板：观众端分享入口 */
.share-row { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; }
.share-row input {
  flex: 1; min-width: 0; padding: 9px 11px; border-radius: 8px; font-size: 12px;
  border: 1px solid var(--line-soft); background: rgba(0, 0, 0, .18); color: var(--muted);
}
.share-row .btn { padding: 9px 16px; font-size: 12px; white-space: nowrap; }
.share-qr {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 10px;
  background: rgba(58, 98, 144, .1); border: 1px solid var(--line-soft);
}
.share-qr img {
  width: 96px; height: auto; flex-shrink: 0; border-radius: 8px;
  background: #fff; padding: 4px;
}
.share-qr-t { display: flex; flex-direction: column; gap: 4px; }
.share-qr-t b { font-size: 12.5px; color: var(--ink); }
.share-qr-t span { font-size: 11px; color: var(--muted); line-height: 1.6; }

/* 演示模式警示条：连不上服务器时常驻，防止把模拟数据当真实数据 */
.demo-badge {
  position: relative; z-index: 20; display: flex; align-items: center; gap: 7px;
  padding: 7px 14px; font-size: 11px; line-height: 1.5; letter-spacing: .2px;
  background: rgba(255, 77, 94, .92); color: #fff;
}
.db-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #fff; flex-shrink: 0;
  animation: dbBlink 1.2s ease-in-out infinite;
}
@keyframes dbBlink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* 运营台：本地演示模式用醒目红底，防止误判为真实数据 */
.conn.local {
  background: rgba(255, 77, 94, .16); border-color: rgba(255, 77, 94, .55); color: #FF9EA8;
}
.conn.local i { background: var(--live); }

/* 装修面板：手机扫码填写入口 */
.fill-qr-row { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fill-qr-row .btn { padding: 9px 16px; font-size: 12.5px; white-space: nowrap; }
.fill-qr-hint { flex: 1; min-width: 200px; font-size: 11.5px; color: var(--muted); line-height: 1.6; }

.fill-qr-mask {
  position: fixed; inset: 0; z-index: 300; background: rgba(6, 14, 24, .82);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.fill-qr-box {
  width: 300px; max-width: 100%; text-align: center; border-radius: 16px; padding: 22px 20px 18px;
  background: linear-gradient(160deg, #16283C, #0D1B2B); border: 1px solid rgba(201, 169, 110, .35);
}
.fill-qr-box b { display: block; font-size: 14px; color: var(--gold-light); margin-bottom: 14px; }
.fill-qr-canvas {
  min-height: 220px; display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 10px; padding: 8px; margin-bottom: 12px;
}
.fill-qr-canvas canvas { display: block; width: 220px; height: 220px; }
.fill-qr-loading { font-size: 12px; color: #5E7390; padding: 20px; line-height: 1.6; }
.fill-qr-tip { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.fill-qr-box input {
  width: 100%; box-sizing: border-box; padding: 9px 11px; border-radius: 8px; font-size: 11.5px;
  border: 1px solid var(--line-soft); background: rgba(0, 0, 0, .2); color: var(--muted); margin-bottom: 12px;
}
.fill-qr-box .btn { width: 100%; padding: 11px; font-size: 13.5px; }
