:root {
  --primary: #3b6ef6;
  --primary-dark: #2d5be0;
  --navy: #2b3552;
  --bg: #f4f6fa;
  --line: #e9edf3;
  --text: #202838;
  --muted: #8b93a3;
  --green: #1fbd7c;
  --shadow: 0 2px 10px rgba(30, 45, 90, .06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  overflow: hidden;
}
button, input, textarea, select { font: inherit; outline: none; color: inherit; }
button { border: none; background: none; cursor: pointer; }
b { font-weight: 600; }

.app { height: 100vh; display: flex; flex-direction: column; }

/* ---------- 顶栏 ---------- */
.topbar {
  height: 52px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; background: #fff; border-bottom: 1px solid var(--line);
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 14px; }
.win-dots { display: flex; gap: 6px; margin-right: 4px; }
.win-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.win-dots i:nth-child(1) { background: #ff605c; }
.win-dots i:nth-child(2) { background: #ffbd44; }
.win-dots i:nth-child(3) { background: #00ca4e; }
.app-title { font-size: 14px; font-weight: 600; letter-spacing: .2px; }
.app-title span { color: #a2a9b8; font-weight: 400; }
.top-stat { font-size: 12px; color: #4b5566; display: inline-flex; align-items: center; gap: 5px; }
.top-stat b { color: #1f9e69; }
.top-stat.muted { color: var(--muted); }
.top-stat.muted b { color: #e07a3f; }
.dot-green { width: 7px; height: 7px; background: #21c27e; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 3px rgba(33, 194, 126, .13); }
.top-sep { height: 14px; width: 1px; background: var(--line); }
.top-logout { font-size: 12px; color: #6b7484; }
.top-logout:hover { color: var(--primary); }

/* ---------- 布局 ---------- */
.workspace { flex: 1; display: flex; min-height: 0; }
.sidebar {
  width: 202px; flex-shrink: 0; background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden;
}
.sidebar::-webkit-scrollbar, .content::-webkit-scrollbar, .friend-list::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb, .content::-webkit-scrollbar-thumb, .friend-list::-webkit-scrollbar-thumb { background: #d9dee8; border-radius: 4px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.content { flex: 1; overflow-y: auto; padding: 16px 18px 22px; }

/* ---------- 侧边栏 ---------- */
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 16px 14px; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(145deg, #5b8dfb, #3159e6); color: #fff;
  display: grid; place-items: center; font-size: 20px; font-weight: 700;
  box-shadow: 0 4px 10px rgba(59, 110, 246, .3);
}
.brand-text strong { display: block; font-size: 15px; letter-spacing: .5px; }
.brand-text small { display: block; font-size: 9px; color: #a3abba; letter-spacing: 1.5px; margin-top: 2px; }

.nav { padding: 0 10px; }
.nav-item {
  width: 100%; height: 40px; border-radius: 9px; display: flex; align-items: center; gap: 11px;
  padding: 0 12px; margin-bottom: 3px; color: #5a6476; font-size: 13px; text-align: left;
}
.nav-item svg { width: 17px; height: 17px; flex-shrink: 0; }
.nav-item:hover { background: #f5f7fb; }
.nav-item.active { background: #eaf0ff; color: var(--primary); font-weight: 600; }
.nav-badge { margin-left: auto; background: #ff5b5b; color: #fff; font-size: 10px; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.side-divider { height: 1px; background: var(--line); margin: 12px 16px 14px; }
.friends-head { display: flex; align-items: center; justify-content: space-between; padding: 0 16px 8px; color: #a0a8b6; font-size: 11px; }
.friends-head b { color: #7d8797; }
.icon-btn { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; color: #98a1b0; }
.icon-btn:hover { background: #f0f3f9; color: var(--primary); }
.icon-btn.tiny { width: 20px; height: 20px; font-size: 13px; }
.friend-list { padding: 0 8px 16px; flex: 1; }
.friend-item { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 9px; cursor: pointer; }
.friend-item:hover { background: #f6f8fc; }
.avatar { width: 31px; height: 31px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 600; position: relative; }
.avatar::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid #fff; background: #c9ced8; }
.avatar.online::after { background: #24c17d; }
.avatar.away::after { background: #f5b73d; }
.friend-info { min-width: 0; flex: 1; }
.friend-info .name { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.friend-info .status { font-size: 10px; color: #a4acba; margin-top: 2px; }
.friend-item.offline .avatar { opacity: .65; }
.friend-item.offline .friend-info .name { color: #9aa2b0; }

/* ---------- 底部栏 ---------- */
.bottombar {
  height: 48px; flex-shrink: 0; background: #fff; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; gap: 0;
}
.bottom-item { display: inline-flex; align-items: center; gap: 7px; padding: 0 26px; height: 100%; color: #687285; font-size: 12px; position: relative; }
.bottom-item svg { width: 15px; height: 15px; }
.bottom-item:hover { color: var(--primary); }
.bottom-item:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 15px; height: 18px; width: 1px; background: var(--line); }

/* ---------- 大厅工具区 ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.search-box { position: relative; width: 250px; }
.search-box svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: #a4acba; }
.search-input { width: 100%; height: 36px; border: 1px solid transparent; background: #fff; border-radius: 8px; padding: 0 30px 0 34px; font-size: 12px; box-shadow: var(--shadow); }
.search-input::placeholder { color: #afb6c3; }
.search-input:focus { border-color: #a9c2ff; }
.search-clear { position: absolute; right: 8px; top: 7px; width: 22px; height: 22px; border-radius: 50%; color: #a4acba; display: grid; place-items: center; }
.search-clear:hover { background: #f0f3f9; }
.tool-btn {
  height: 36px; padding: 0 15px; background: #fff; border-radius: 8px; box-shadow: var(--shadow);
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: #5d677a; white-space: nowrap;
}
.tool-btn svg { width: 15px; height: 15px; }
.tool-btn:hover { color: var(--primary); }
.tool-btn.active { background: #eaf0ff; color: var(--primary); box-shadow: none; }
.tool-btn.active svg { color: var(--primary); }
.head-stats { margin-left: auto; display: flex; align-items: center; background: #fff; border-radius: 8px; box-shadow: var(--shadow); height: 36px; padding: 0 14px; }
.stat-cell { display: flex; flex-direction: column; align-items: center; line-height: 1.2; min-width: 48px; }
.stat-cell .stat-num { font-size: 12px; font-weight: 600; }
.stat-cell .stat-label { font-size: 10px; color: #a2aab8; margin-top: 2px; }
.stat-cell .stat-num.add { color: #2cae74; }
.stat-sep { width: 1px; height: 20px; background: var(--line); margin: 0 12px; }

/* ---------- 活动横幅 ---------- */
.banner {
  height: 108px; border-radius: 13px; padding: 20px 26px; position: relative; overflow: hidden;
  background: linear-gradient(105deg, #22c486 0%, #29c88e 45%, #38d29a 100%);
  color: #fff; box-shadow: 0 6px 18px rgba(34, 196, 134, .22); margin-bottom: 16px;
}
.banner::before { content: ''; position: absolute; width: 240px; height: 240px; border: 1px dashed rgba(255, 255, 255, .22); border-radius: 50%; right: 70px; top: -75px; }
.banner::after { content: ''; position: absolute; width: 160px; height: 160px; border: 1px dashed rgba(255, 255, 255, .16); border-radius: 50%; right: 130px; top: -35px; }
.banner-title { font-size: 23px; font-weight: 800; letter-spacing: 1px; }
.banner-sub { font-size: 12px; opacity: .92; margin-top: 8px; }
.banner-btn { margin-top: 11px; height: 27px; padding: 0 14px; border-radius: 14px; background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .45); font-size: 11px; display: inline-flex; align-items: center; gap: 6px; position: relative; z-index: 1; }
.banner-btn:hover { background: rgba(255, 255, 255, .34); }
.banner-deco { position: absolute; right: 30px; bottom: 22px; display: flex; gap: 5px; z-index: 1; }
.banner-deco i { width: 17px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .55); }
.banner-deco i:nth-child(2) { width: 28px; background: #fff; }
.banner-deco i:nth-child(3) { width: 12px; }

/* ---------- 分类与标签 ---------- */
.categories { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 15px; }
.cat-pill { height: 29px; padding: 0 16px; border-radius: 15px; background: #fff; color: #687286; font-size: 12px; box-shadow: var(--shadow); }
.cat-pill:hover { color: var(--primary); }
.cat-pill.active { background: var(--navy); color: #fff; box-shadow: none; font-weight: 600; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tab { padding: 0 2px 11px; font-size: 13px; color: #788293; position: relative; }
.tab b { font-size: 11px; font-weight: 400; color: #a7aebc; margin-left: 2px; }
.tab.active { color: var(--primary); font-weight: 600; }
.tab.active b { color: var(--primary); }
.tab.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--primary); }

/* ---------- 房间卡片 ---------- */
.room-grid { display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)) !important; gap: 10px !important; align-items: stretch; }
.room-card { aspect-ratio: 1 / 1; min-height: 150px; display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid #eef1f7; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); cursor: pointer; transition: transform .16s, box-shadow .16s; }
.room-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(30, 45, 90, .13); }
.room-art { flex: 1; min-height: 80px; height: auto; position: relative; overflow: hidden; display: grid; place-items: center; }
.room-art::before { content: ''; position: absolute; width: 70px; height: 70px; border-radius: 50%; background: rgba(255, 255, 255, .16); left: -18px; bottom: -32px; }
.room-art::after { content: ''; position: absolute; width: 90px; height: 90px; border-radius: 50%; background: rgba(255, 255, 255, .12); right: -28px; top: -44px; }
.art-glyph { font-size: 36px; font-weight: 800; color: rgba(255, 255, 255, .95); text-shadow: 0 3px 12px rgba(0, 0, 0, .08); position: relative; z-index: 1; line-height: 1; }
.badge { position: absolute; top: 6px; left: 6px; height: 17px; padding: 0 6px; border-radius: 9px; font-size: 9px; font-weight: 700; color: #fff; display: grid; place-items: center; z-index: 2; letter-spacing: .5px; }
.badge.hot { background: linear-gradient(90deg, #ff5b5b, #ff7a59); }
.badge.new { background: linear-gradient(90deg, #43c97c, #6ddb96); }
.fav-btn { position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .86); color: #7d8798; display: grid; place-items: center; z-index: 2; }
.fav-btn svg { width: 12px; height: 12px; }
.fav-btn:hover, .fav-btn.on { color: #ff5b78; }
.fav-btn.on svg { fill: #ff5b78; }
.room-info { padding: 7px 8px 8px; }
.room-name { font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 5px; font-size: 10px; color: #a2aab8; }
.online-count { display: inline-flex; align-items: center; gap: 5px; color: #7f8a9b; }
.dot-online { width: 6px; height: 6px; border-radius: 50%; background: #26c484; display: inline-block; }
.art-green { background: linear-gradient(135deg, #3ecf8e, #8ce0ac); }
.art-pink { background: linear-gradient(135deg, #e94b8c, #ff9ec2); }
.art-rose { background: linear-gradient(135deg, #ff6b81, #ffab91); }
.art-yellow { background: linear-gradient(135deg, #ffc53d, #ffe59a); }
.art-blue { background: linear-gradient(135deg, #5b8def, #aacbff); }
.art-darkred { background: linear-gradient(135deg, #922c50, #c95c79); }
.art-lightpink { background: linear-gradient(135deg, #ff9ebd, #ffd7e3); }
.art-lime { background: linear-gradient(135deg, #9ed44e, #d6f29b); }
.art-teal { background: linear-gradient(135deg, #2aa9b8, #94dbe3); }
.art-orange { background: linear-gradient(135deg, #ff9f43, #ffd08f); }
.art-purple { background: linear-gradient(135deg, #9060dd, #d0b3ff); }
.art-navy { background: linear-gradient(135deg, #3f5fbf, #8ba6e9); }
.art-cyan { background: linear-gradient(135deg, #38a8d8, #a6ddf2); }
.art-indigo { background: linear-gradient(135deg, #5c6bc0, #a5b0e8); }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 70px 20px; color: #a2aab8; font-size: 13px; }
.empty-state .emo { font-size: 38px; display: block; margin-bottom: 12px; opacity: .55; }
.joined-rooms-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; padding: 9px 12px; background: linear-gradient(90deg,#eef4ff,#f7faff); border: 1px solid #d7e3ff; border-radius: 10px; }
.jrb-title { font-size: 12px; font-weight: 700; color: #2f52d8; }
.jrb-item { display: inline-flex; align-items: center; background: #fff; border: 1px solid #cddcff; border-radius: 14px; overflow: hidden; }
.jrb-go { border: 0; background: transparent; padding: 4px 6px 4px 10px; font-size: 12px; color: #2b3a55; cursor: pointer; }
.jrb-go:hover { color: #2f52d8; }
.jrb-x { border: 0; background: transparent; padding: 4px 8px 4px 4px; font-size: 14px; color: #a2aab8; cursor: pointer; line-height: 1; }
.jrb-x:hover { color: #e0409c; }
.jrb-hint { font-size: 11px; color: #8a93a3; margin-left: auto; }

/* ---------- 我的房间 / 站长室 ---------- */
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-title { font-size: 16px; font-weight: 600; }
.section-sub { font-size: 12px; color: var(--muted); margin-top: 5px; }
.primary-btn { height: 34px; padding: 0 16px; border-radius: 8px; background: var(--primary); color: #fff; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.primary-btn:hover { background: var(--primary-dark); }
.ghost-btn { height: 30px; padding: 0 12px; border-radius: 7px; border: 1px solid var(--line); background: #fff; font-size: 12px; color: #5d677a; }
.ghost-btn:hover { border-color: #a9c2ff; color: var(--primary); }
.danger-btn { height: 30px; padding: 0 12px; border-radius: 7px; border: 1px solid #ffd9d9; background: #fff7f7; font-size: 12px; color: #e35b5b; }
.card-actions { display: flex; gap: 8px; margin-top: 12px; }
.dash-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.dash-card { background: #fff; border-radius: 12px; padding: 18px; box-shadow: var(--shadow); }
.dash-card .label { font-size: 12px; color: var(--muted); }
.dash-card .val { font-size: 26px; font-weight: 700; margin-top: 8px; color: var(--navy); }
.dash-card .trend { font-size: 11px; color: #20b378; margin-top: 6px; }
.panel { background: #fff; border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.panel-head { padding: 15px 18px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.table { width: 100%; border-collapse: collapse; font-size: 12px; }
.table th { text-align: left; padding: 11px 18px; color: #9aa3b2; font-weight: 400; background: #fafbfd; }
.table td { padding: 12px 18px; border-top: 1px solid #f2f4f8; }
.table tr:hover td { background: #fbfcff; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 10px; }
.tag.ok { background: #e8f9f1; color: #1aa56e; }
.tag.warn { background: #fff5e6; color: #d78a20; }
.tag.off { background: #f0f2f5; color: #99a1ae; }

/* ---------- 弹窗 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(20, 28, 48, .42); display: grid; place-items: center; z-index: 800; padding: 20px; animation: fade .15s ease; }
.modal { width: 460px; max-width: 100%; max-height: 86vh; background: #fff; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(15, 25, 55, .25); }
.modal.wide { width: 600px; }
.modal-head { padding: 17px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-size: 15px; font-weight: 600; }
.modal-close { width: 26px; height: 26px; border-radius: 7px; color: #9aa3b2; display: grid; place-items: center; font-size: 18px; }
.modal-close:hover { background: #f2f4f8; }
.modal-body { padding: 18px 20px; overflow-y: auto; font-size: 13px; color: #5b6577; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 12px; color: #6b7484; margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea { width: 100%; height: 36px; border: 1px solid #dfe4ec; border-radius: 8px; padding: 0 11px; font-size: 13px; background: #fff; }
.form-row textarea { height: 76px; padding: 9px 11px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: #a9c2ff; }
.activity-hero { border-radius: 10px; background: linear-gradient(110deg, #22c486, #45d6a1); color: #fff; padding: 20px; margin-bottom: 16px; }
.activity-hero h3 { font-size: 20px; margin-bottom: 8px; }
.activity-hero p { font-size: 12px; opacity: .93; line-height: 1.7; }
.reward-list { display: flex; gap: 10px; margin: 14px 0 4px; }
.reward-item { flex: 1; background: #f7f9fc; border-radius: 9px; padding: 12px; text-align: center; font-size: 12px; color: #6b7484; }
.reward-item b { display: block; color: #e2972f; font-size: 17px; margin-bottom: 5px; }
.friend-manage-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f2f4f8; }
.friend-manage-row .avatar { width: 34px; height: 34px; }
.friend-manage-row .fname { flex: 1; font-size: 13px; color: var(--text); }
.friend-manage-row .fstatus { font-size: 11px; color: var(--muted); }
.link-row { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 10px; }
.link-row .li { width: 34px; height: 34px; border-radius: 9px; background: #eaf0ff; color: var(--primary); display: grid; place-items: center; }
.link-row .li svg { width: 18px; height: 18px; }
.link-row .lt { flex: 1; }
.link-row .lt b { display: block; font-size: 13px; color: var(--text); }
.link-row .lt small { font-size: 11px; color: var(--muted); }
.hint { font-size: 11px; color: #a2aab8; line-height: 1.7; margin-top: 12px; }
.modal:has(.login-shell) { width: 760px; max-width: 96vw; }
.modal:has(.login-shell) .modal-body { padding: 0; }
.login-shell { display: grid; grid-template-columns: 300px 1fr; min-height: 420px; }
.login-aside { background: linear-gradient(155deg, #2f52c9 0%, #4f6ff0 55%, #7a5bd6 100%); color: #fff; padding: 36px 28px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.login-aside::before, .login-aside::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,.09); }
.login-aside::before { width: 220px; height: 220px; right: -90px; top: -70px; }
.login-aside::after { width: 180px; height: 180px; left: -70px; bottom: -60px; }
.login-logo { width: 54px; height: 54px; border-radius: 16px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.35); display: grid; place-items: center; font-size: 28px; font-weight: 800; position: relative; z-index: 1; }
.login-aside h2 { font-size: 22px; margin: 20px 0 8px; position: relative; z-index: 1; }
.login-aside p { font-size: 13px; line-height: 1.9; opacity: .92; position: relative; z-index: 1; }
.login-aside-foot { margin-top: auto; font-size: 11px; letter-spacing: 2px; opacity: .7; position: relative; z-index: 1; }
.login-aside-deco { position: absolute; right: 26px; bottom: 28px; display: flex; gap: 6px; z-index: 1; }
.login-aside-deco i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.5); }
.login-main { padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; }
.login-main h3 { font-size: 22px; color: var(--text); margin-bottom: 6px; }
.login-sub { font-size: 12px; color: var(--muted); margin-bottom: 26px; }
.login-main .form-row input { height: 42px; border-radius: 9px; padding: 0 14px; font-size: 14px; background: #f7f9fc; }
.login-main .form-row input:focus { background: #fff; box-shadow: 0 0 0 3px rgba(59,110,246,.1); }
.login-main .primary-btn { width: 100%; height: 42px; justify-content: center; margin-top: 6px; border-radius: 9px; font-size: 14px; font-weight: 600; }
.auth-tip { min-height: 18px; color: #e0453f; font-size: 12px; text-align: left; }
.auth-switch { margin-top: 12px; font-size: 12px; color: var(--muted); }
.auth-switch button { border: none; background: none; color: #3b6ef6; font-size: 12px; }
.auth-switch button:hover { text-decoration: underline; }
.auth-hint { margin-top: 8px; font-size: 11px; color: #a2aab8; }

/* ---------- 房间工具弹窗 ---------- */
.modal.tool-wide { width: 560px; }
.pf-wrap { display: flex; gap: 20px; }
.pf-avatar-col { flex-shrink: 0; }
.pf-avatar-label { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; width: 96px; }
.pf-avatar-label img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid #e6ebf5; }
.pf-avatar-label span { font-size: 12px; color: #3b6ef6; }
.pf-info-col { flex: 1; }
.pf-meta { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; font-size: 12px; color: #7a8498; white-space: nowrap; }
.pf-meta span { display: flex; align-items: baseline; }
.pf-meta span b { display: inline-block; width: 42px; font-weight: 600; color: #5b6577; text-align: right; }
.font-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.font-toolbar select { height: 32px; border: 1px solid #dfe4ec; border-radius: 6px; padding: 0 8px; }
.ft-bold { width: 32px; height: 32px; border: 1px solid #dfe4ec; border-radius: 6px; font-weight: 700; }
.ft-bold:hover { background: #eaf0ff; }
.ft-color { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #5b6577; position: relative; }
.ft-color span { width: 20px; height: 20px; border-radius: 4px; display: block; }
.ft-color input { position: absolute; width: 20px; height: 20px; opacity: 0; cursor: pointer; }
.font-preview { margin-top: 14px; padding: 14px; border: 1px dashed #d5dbe8; border-radius: 6px; min-height: 50px; background: #fafbfe; }
.emoji-panel { margin-top: 8px; border: 1px solid #e6eaf3; border-radius: 6px; padding: 6px; background: #fafbfe; }
.emoji-tabs { display: flex; gap: 4px; margin-bottom: 8px; flex-wrap: wrap; }
.emoji-tab { padding: 5px 12px; background: #f0f3fa; border-radius: 5px 5px 0 0; font-size: 12px; color: #5b6577; }
.emoji-tab.active { background: #5b6ce0; color: #fff; }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; max-height: 240px; overflow-y: auto; background: #fff; padding: 6px; }
.emoji-item { display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 6px; }
.emoji-item:hover { background: #eaf0ff; }
.emoji-item img { max-width: 36px; max-height: 36px; object-fit: contain; }
.chat-emoji { width: 44px; height: 44px; object-fit: contain; vertical-align: middle; margin: 0 2px; }
.mini-editor-bar [data-action="tool-emoji"] img { width: 20px; height: 20px; object-fit: contain; }
.emoji-pages { display: flex; gap: 4px; justify-content: center; margin-top: 10px; }
.emoji-pages button { width: 26px; height: 26px; border: 1px solid #dfe4ec; border-radius: 4px; font-size: 12px; }
.emoji-pages button:first-child { background: #3b6ef6; color: #fff; }
.mini-editor, .notice-editor, .horn-modal { border: 1px solid #dfe4ec; border-radius: 8px; overflow: hidden; }
.mini-editor-bar, .ne-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #f5f7fb; border-bottom: 1px solid #e6eaf3; }
.mini-editor-bar label { font-size: 12px; color: #5b6577; }
.mini-editor-bar select { height: 28px; border: 1px solid #dfe4ec; border-radius: 5px; }
.mini-editor textarea, .notice-editor textarea, .horn-modal textarea { width: 100%; border: none; padding: 10px; resize: vertical; font-size: 13px; font-family: inherit; }
.ne-bar button, .ne-actions button { padding: 5px 12px; border: 1px solid #dfe4ec; border-radius: 5px; background: #fff; font-size: 12px; color: #5b6ce0; }
.ne-bar button:hover, .ne-actions button:hover { background: #eaf0ff; }
.ne-actions { display: flex; gap: 8px; padding: 8px 10px; border-top: 1px solid #e6eaf3; }
.ne-actions button[data-action="send-notice"], .ne-actions button[data-action="send-colorbar"], .ne-actions button[data-action="send-horn"] { background: #3b6ef6; color: #fff; border-color: #3b6ef6; }
.song-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; border: 1px solid #e6eaf3; padding: 10px; border-radius: 6px; max-height: 220px; overflow-y: auto; }
.song-item { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #4b5566; cursor: pointer; padding: 4px; }
.song-item input { accent-color: #3b6ef6; }
.song-btns { display: flex; gap: 8px; margin: 12px 0; }
.song-btns button { flex: 1; height: 34px; border: 1px solid #a9c2ff; border-radius: 6px; background: #eaf0ff; color: #3b4bbd; font-size: 13px; }
.song-count { font-size: 12px; color: #9aa3b2; margin-top: 6px; }
.hm-tip { padding: 8px 10px; color: #d2487e; background: #fff2f7; font-size: 13px; }
.hm-info { padding: 8px 10px; font-size: 12px; color: #7a8498; border-top: 1px solid #e6eaf3; text-align: right; }
.hm-info button { color: #3b6ef6; }
.block-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.block-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #4b5566; cursor: pointer; }
.block-item input { accent-color: #3b6ef6; }
.rank-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }
.rank-tab { padding: 5px 12px; border-radius: 14px; background: #f0f3fa; font-size: 12px; color: #5b6577; }
.rank-tab.active { background: #5b6ce0; color: #fff; }
.rank-list { max-height: 380px; overflow-y: auto; border: 1px solid #e6eaf3; border-radius: 6px; }
.rank-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid #f2f4f8; }
.rank-no { width: 22px; height: 22px; border-radius: 50%; background: #eef1f6; color: #8b93a3; display: grid; place-items: center; font-size: 12px; flex-shrink: 0; }
.rank-no.top { background: #f5b73d; color: #fff; font-weight: 700; }
.rank-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.rank-level { padding: 2px 7px; border-radius: 4px; font-size: 11px; color: #fff; flex-shrink: 0; }
.rank-level.gold { background: linear-gradient(90deg, #e8a13a, #f5c451); }
.rank-level.silver { background: linear-gradient(90deg, #7f8aa0, #aab4c6); }
.rank-note { flex: 1; font-size: 13px; color: #4b5566; }
.rank-val { color: #e0453f; font-weight: 600; font-size: 13px; }
.rank-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 12px; color: #7a8498; }
.rank-foot button { padding: 6px 14px; border-radius: 5px; background: #5b6ce0; color: #fff; }
.gm-user { display: flex; align-items: center; gap: 12px; padding: 10px; background: #f5f7fb; border-radius: 8px; }
.gm-user img { width: 48px; height: 48px; border-radius: 10px; }
.gm-uinfo { flex: 1; font-size: 13px; color: #5b6577; line-height: 1.7; }
.gm-uinfo b { color: #3b4bbd; }
.gm-user > button { padding: 6px 12px; background: #e05b5b; color: #fff; border-radius: 5px; font-size: 12px; }
.gm-list { margin-top: 12px; }
.gm-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f2f4f8; }
.gm-icon { width: 46px; height: 46px; border-radius: 8px; display: grid; place-items: center; font-size: 24px; color: #fff; flex-shrink: 0; }
.gm-desc { flex: 1; font-size: 13px; color: #4b5566; }
.gm-desc b { color: #2b3552; }
.gm-sub { font-size: 12px; color: #a2aab8; margin-top: 3px; }
.gm-btn { padding: 6px 14px; border: 1px solid #e05b5b; color: #e05b5b; border-radius: 5px; font-size: 12px; }
.gm-btn.on { background: #e05b5b; color: #fff; }
.gm-note { margin-top: 12px; font-size: 11px; color: #a2aab8; line-height: 1.6; }

/* ---------- 进房视图（三栏：视频 / 聊天 / 用户礼物） ---------- */
.room-view { position: fixed; inset: 0; z-index: 200; background: #fff; color: #333; display: flex; flex-direction: column; font-size: 14px; }
.rv-titlebar { height: 42px; flex-shrink: 0; background: #5a6be0; display: flex; align-items: flex-end; justify-content: space-between; color: #fff; padding-left: 10px; }
.rv-tabs { display: flex; align-items: flex-end; gap: 2px; }
.rv-tabs button { height: 34px; padding: 0 20px; color: #e5eaff; font-size: 15px; border-radius: 5px 5px 0 0; }
.rv-tabs button:hover { color: #fff; }
.rv-tabs button.active { background: #fff; color: #3b4bbd; font-weight: 600; }
.rv-userbox { display: flex; align-items: center; gap: 10px; height: 100%; padding-right: 2px; }
.rv-avatar-wrap { display: block; width: 30px; height: 30px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(255, 255, 255, .85); cursor: pointer; background: rgba(255, 255, 255, .3); align-self: center; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
.rv-avatar-wrap:hover { border-color: #fff; }
.rv-myavatar { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-exit { height: 30px; margin: 6px 10px 0 0; padding: 0 18px; border-radius: 5px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .5); color: #fff; font-size: 14px; }
.rv-exit:hover { background: rgba(255, 255, 255, .3); }
.rv-roomhead { height: 32px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; background: #fff; border-bottom: 1px solid #2f62d8; }
.rh-left { font-size: 12px; display: flex; align-items: center; }
.rh-gift { width: 28px; height: 22px; object-fit: cover; border: 1px solid #d3dae8; margin-right: 5px; }
.rh-red { color: #e12f2f; }
.rh-blue, .rh-left span { color: #2f52c9; font-weight: 600; }
.rh-left em { color: #e12f2f; font-style: normal; font-weight: 700; margin-left: 4px; }
.rh-right { color: #7b5bd6; font-size: 10px; }
.rv-main { flex: 1; display: flex; min-height: 0; }

.rv-left { width: 380px; flex-shrink: 0; border-right: 1px solid #2f62d8; background: #eef3fb; display: flex; flex-direction: column; position: relative; }
.video-stack { flex: 1; min-height: 0; padding: 2px; display: flex; flex-direction: column; gap: 2px; }
.vslot { flex: 1; min-height: 0; display: flex; gap: 2px; position: relative; border: 1px solid #7fa3da; background: #a8c8ef; }
.vfeed { flex: 1; min-width: 0; position: relative; overflow: hidden; background: #7fa8e0; }
.vimg { width: 100%; height: 100%; object-fit: cover; display: block; }
.vfeed.guest video.vlive { transform: scaleX(-1); }
.vfeed::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .06), transparent 40%, rgba(0, 0, 0, .05)); pointer-events: none; }
.vfeed.guest { background: #c39ad9; }
.vname { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 8px; background: rgba(0,0,0,.45); color: #fff; font-size: 11px; text-align: center; z-index: 2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; justify-content: center; gap: 3px; }
.vname .vn-noble { width: 20px; height: 14px; object-fit: contain; flex-shrink: 0; }
.vname .vn-honor { width: 16px; height: 14px; object-fit: contain; flex-shrink: 0; }
.vname .vn-mic { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
.vname .vn-text { overflow: hidden; text-overflow: ellipsis; }
.vp99 { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; background-color: #8fb6ea; background-image: radial-gradient(circle, rgba(255, 255, 255, .6) 1px, transparent 1.4px); background-size: 7px 7px; }
.vp99 .mascot { width: 80px; height: 80px; object-fit: contain; }
.v99text { color: #5a3ec8; font-size: 54px; font-weight: 800; line-height: 1; text-shadow: 1px 1px 0 rgba(255, 255, 255, .65); }
.v99text small { display: block; color: #3f63b8; font-size: 12px; font-weight: 600; letter-spacing: .5px; margin-top: 5px; }
.vp99bar { position: absolute; left: 0; right: 0; bottom: 0; height: 20px; background: #dce8fa; border-top: 1px solid #b9cbe8; display: flex; align-items: center; gap: 4px; padding: 0 5px; font-size: 12px; color: #d23a3a; }
.vp99bar img { height: 14px; }
.vclosed { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; font-size: 16px; text-shadow: 0 1px 4px rgba(0, 0, 0, .55); background-size: cover; background-position: center; z-index: 1; }
.vclosed p { margin: 3px 0; }
.vclosed-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 20px; background: linear-gradient(90deg, #e7c451, #f8e9aa); color: #8a5a00; font-size: 11px; display: flex; align-items: center; gap: 3px; padding: 0 5px; }
.vclosed-bar img { height: 14px; }
.vname { position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: rgba(0, 0, 0, .5); color: #fff; font-size: 12px; display: flex; align-items: center; gap: 5px; padding: 0 6px; z-index: 2; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #ff5b5b; display: inline-block; flex-shrink: 0; }
.vlink { position: absolute; top: 4px; right: 4px; z-index: 3; padding: 2px 7px; border-radius: 4px; background: rgba(255, 255, 255, .9); color: #3b6ef6; font-size: 11px; opacity: .35; transition: opacity .15s; }
.vslot:hover .vlink, .vlink:hover { opacity: 1; }
.vlink:hover { background: #fff; }
.vclose { position: absolute; top: 4px; left: 4px; z-index: 3; width: 20px; height: 20px; border-radius: 4px; background: rgba(255, 255, 255, .85); color: #666; font-size: 13px; line-height: 1; }
.vclose:hover { background: #fff; color: #e34b4b; }
.rv-micbar { height: 54px; flex-shrink: 0; background: linear-gradient(#5f70e5, #4859cf); border-top: 1px solid #3d4fbd; display: flex; align-items: center; gap: 6px; padding: 0 6px; }
.mic-btns { display: flex; gap: 3px; flex-shrink: 0; }
.mic-btns button { width: 54px; height: 40px; border-radius: 3px; background: linear-gradient(#7b8cf0, #5a6cdb); border: 1px solid #4a5cc8; color: #fff; font-size: 13px; white-space: nowrap; box-shadow: 0 1px 2px rgba(20, 30, 90, .25); }
.mic-btns button:hover { background: linear-gradient(#8b9bf5, #6a7ce8); }
.vol-panel { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; padding: 0 4px; }
.vol-row { display: flex; align-items: center; gap: 7px; height: 18px; }
.vol-spk { width: 18px; height: 18px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.spk-svg { width: 18px; height: 18px; display: block; }
.vol-range { flex: 1; min-width: 40px; height: 6px; border-radius: 4px; outline: none; cursor: pointer; -webkit-appearance: none; appearance: none; background: linear-gradient(to right, #7f8ff0 0%, #7f8ff0 var(--fill, 60%), rgba(255, 255, 255, .35) var(--fill, 60%), rgba(255, 255, 255, .35) 100%); }
.vol-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid #6a7ce8; box-shadow: 0 1px 3px rgba(20, 30, 90, .4); cursor: pointer; }
.vol-range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid #6a7ce8; cursor: pointer; }
.vol-num { width: 26px; text-align: right; font-size: 12px; color: #eef1ff; flex-shrink: 0; }

.rv-center { flex: 1; min-width: 0; position: relative; display: flex; flex-direction: column; background: #fff; border-right: 1px solid #2f62d8; }
.gift-float { height: 34px; flex-shrink: 0; overflow: hidden; background: #fff; border-bottom: 1px solid #dbe3f0; display: flex; align-items: center; }
.gf-track { display: flex; gap: 60px; white-space: nowrap; animation: gfScroll 20s linear infinite; padding-left: 100%; }
.gf-item { display: inline-flex; align-items: center; gap: 5px; font-size: 15px; }
.gf-gift, .gf-giftbig { width: 22px; height: 22px; object-fit: contain; }
.gf-giftbig { width: 40px; height: 40px; }
.gf-noble { width: 20px; height: 20px; object-fit: contain; }
.gf-who { color: #e0409c; font-weight: 700; }
.gf-to { color: #7a8498; font-style: normal; }
.gf-target { color: #d22fa0; font-weight: 700; }
.gf-giftname { color: #2f52d8; font-style: normal; font-weight: 700; }
.gf-time { color: #1f9e69; font-style: normal; font-size: 13px; }
.gf-tail { color: #e0409c; font-weight: 700; }
.gf-tail::before { content: '“'; }
.gf-tail::after { content: '”'; }
.gift-remark-modal { padding: 4px 2px; }
.grm-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.grm-head img { width: 56px; height: 56px; object-fit: contain; }
.grm-head b { display: block; font-size: 15px; }
.grm-head span { color: #8a93a3; font-size: 12px; }
.grm-target { font-size: 13px; color: #5a6376; margin-bottom: 8px; }
.grm-target b { color: #2f52d8; }
.gift-remark-modal textarea { width: 100%; padding: 8px; border: 1px solid #dce3ef; border-radius: 6px; resize: vertical; font-family: inherit; }
.grm-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }
@keyframes gfScroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.center-gifts { height: 176px; flex-shrink: 0; border-bottom: 1px solid #2f62d8; overflow-y: auto; padding: 8px 12px; background: #f7f8fc; }
.center-chat { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 12px; line-height: 1.6; font-size: 14px; }
.center-private { height: 178px; flex-shrink: 0; border-top: 1px solid #2f62d8; background: #fff; display: flex; flex-direction: column; }
.cf-roomname { color: #7a8498; font-size: 12px; margin-top: 5px; }
.cp-head { padding: 5px 12px; font-size: 12px; font-weight: 600; color: #3b4bbd; border-bottom: 1px solid #d9e0f0; background: #f0f3fa; }
.cp-body { flex: 1; min-height: 0; padding: 8px 12px; font-size: 13px; line-height: 1.7; color: #5b6577; overflow-y: auto; }
.cp-line { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; padding: 2px 0; }
.cp-tip b.rh-green { color: #1e9e6a; }
.av-modal { display: flex; gap: 24px; padding: 4px 0 10px; }
.av-fields { flex: 1; min-width: 0; }
.av-label { display: block; font-size: 12px; color: #485266; margin: 10px 0 5px; }
.av-select { width: 100%; height: 32px; border: 1px solid #b9c3e0; border-radius: 4px; padding: 0 8px; font-size: 12px; color: #33415c; background: #fff; }
.av-preview { width: 240px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; }
.av-preview-inner { width: 240px; height: 180px; background: #000; display: grid; place-items: center; overflow: hidden; border-radius: 4px; }
.av-preview-inner img { height: 100%; width: auto; object-fit: cover; }
.av-preview.off .av-preview-inner { background: #111; opacity: .35; }
.av-preview-btn { margin-top: 8px; font-size: 11px; padding: 4px 12px; border: 1px solid #ccd4e6; border-radius: 4px; background: #f5f7fb; color: #5a6680; }
.av-foot { padding-top: 4px; }
.av-warn { color: #d2483f; font-size: 12px; }
.mic-invite { text-align: center; padding: 24px 10px 12px; }
.mic-invite .mi-icon { font-size: 44px; margin-bottom: 12px; }
.mic-invite .mi-text { font-size: 14px; color: #485266; margin-bottom: 20px; line-height: 1.7; }
.mic-invite .mi-actions { display: flex; gap: 12px; justify-content: center; }
.cp-line b { color: #3b6ef6; }
.cp-line em { color: #d2483f; font-style: normal; font-weight: 600; }
.cp-empty { color: #9aa4b5; }
.cp-level { width: 20px; height: 18px; object-fit: contain; flex-shrink: 0; }
.cp-giftimg { width: 22px; height: 22px; object-fit: contain; }
.cp-gift-tip { background: linear-gradient(90deg, #fff6fb, transparent); }
.cp-relay { margin-left: auto; padding: 2px 9px; font-size: 11px; color: #fff; background: #2f62d8; border: 0; border-radius: 4px; cursor: pointer; }
.cp-relay:hover { background: #1f4fbf; }
.chat-feed { flex: 1; overflow-y: auto; padding: 8px 10px; line-height: 1.5; }
.chat-feed::-webkit-scrollbar { width: 5px; }
.chat-feed::-webkit-scrollbar-thumb { background: #d5dcec; border-radius: 3px; }
.cf-giftline { height: 34px; display: flex; align-items: center; gap: 4px; color: #5b6577; font-size: 13px; }
.cf-giftline b { color: #2f52c9; }
.cf-giftline em { color: #d2483f; font-style: normal; }
.cf-giftline img { width: 24px; height: 24px; object-fit: contain; margin-left: 5px; }
.cf-giftline .gfl-level { width: 20px; height: 18px; object-fit: contain; margin-left: 0; flex-shrink: 0; }
.cf-giftline .gfl-gift { width: 26px; height: 26px; object-fit: contain; margin: 0 2px; flex-shrink: 0; }
.cf-giftline .gfl-name { color: #2f52c9; font-weight: 600; }
.cf-giftline .gfl-word { color: #7a8498; }
.cf-giftline .gfl-giftname { color: #d2483f; font-style: normal; font-weight: 700; }
.cf-giftline.gfl-line { background: linear-gradient(90deg, rgba(255, 247, 232, .65), transparent); border-radius: 4px; padding-left: 4px; }
.cf-hr { border-top: 1px solid #2f62d8; margin: 5px 0; }
.cf-sys { color: #7a8498; font-size: 13px; margin: 3px 0; }
.cf-notice { color: #b25c1e; background: #fff8ec; border: 1px solid #f4dfc0; border-radius: 4px; padding: 5px 8px; margin: 5px 0; font-size: 13px; display: flex; align-items: center; gap: 5px; }
.cf-notice img { height: 15px; flex-shrink: 0; }
.cf-msg { font-size: 13px; color: #374151; margin: 4px 0; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.cf-level { height: 16px; max-width: 44px; object-fit: contain; }
.cf-badge { display: inline-block; background: #eaf0ff; color: #3b6ef6; border-radius: 3px; padding: 0 4px; font-size: 11px; }
.cf-g { color: #e0762a; font-style: normal; margin-left: 4px; display: inline-flex; align-items: center; gap: 2px; }
.cf-g img { height: 16px; }
.cf-gift { display: inline-flex; align-items: center; gap: 5px; color: #d2487e; background: #fff2f7; border-radius: 4px; padding: 3px 7px; margin: 3px 0; font-size: 13px; }
.cf-gift img { height: 22px; width: 22px; object-fit: contain; }
.zone-wrap { position: relative; display: flex; flex-direction: column; min-height: 0; }
.zone-gifts { flex-shrink: 0; }
.zone-chat { flex: 1; min-height: 0; }
.zone-private { flex-shrink: 0; }
.zone-horn { flex-shrink: 0; display: flex; flex-direction: column; }
.rv-sidebtns { position: absolute; right: 4px; top: 6px; display: flex; flex-direction: column; gap: 3px; z-index: 5; opacity: 0; pointer-events: none; transition: opacity .15s; }
.zone-wrap:hover > .rv-sidebtns { opacity: 1; pointer-events: auto; }
.rv-sidebtns button { width: 30px; height: 24px; font-size: 11px; background: rgba(240,242,246,.95); border: 1px solid #d6dce8; color: #6b7484; border-radius: 3px; }
.rv-sidebtns button.on { background: #3b6ef6; color: #fff; border-color: #3b6ef6; }
.chat-frozen { position: relative; overflow: hidden; }
.chat-frozen::after { content: ''; position: absolute; inset: 0; background: rgba(244,246,250,.35); pointer-events: none; z-index: 3; }
.chat-compose { flex-shrink: 0; border-top: 1px solid #dfe4ef; background: #fafbfe; }
.cc-toolbar { display: flex; align-items: center; gap: 5px; padding: 5px 8px; flex-wrap: wrap; }
.cc-toolbar select { height: 26px; border: 1px solid #d5dbe8; border-radius: 4px; font-size: 13px; background: #fff; padding: 0 4px; }
.cc-whisper { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: #5b6577; cursor: pointer; }
.cc-whisper input { accent-color: #3b6ef6; }
.cc-sep { width: 1px; height: 18px; background: #d5dbe8; margin: 0 2px; }
.cc-tool { width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center; background: #fff; border: 1px solid transparent; padding: 2px; }
.cc-tool:hover { background: #eaf0ff; border-color: #a9c2ff; }
.cc-tool img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cc-input-row { display: flex; gap: 6px; padding: 0 8px 8px; align-items: stretch; }
.cc-input-row textarea { flex: 1; min-width: 0; min-height: 52px; max-height: 120px; resize: vertical; border: 1px solid #d5dbe8; border-radius: 5px; padding: 6px 10px; font-size: 13px; line-height: 1.5; font-family: inherit; }
.cb-send { align-self: flex-end; height: 34px; padding: 0 20px; border-radius: 5px; background: linear-gradient(#ff9c3d, #f17816); color: #fff; font-size: 14px; }
.cb-send:hover { filter: brightness(.96); }
.cb-clear { align-self: flex-end; height: 34px; padding: 0 12px; border-radius: 5px; background: #eef1f7; color: #6b7488; font-size: 13px; }
.cb-clear:hover { background: #e2e7f0; }
.cf-whisper { background: #fffbe8; }
.cf-colorbar { display: inline-block; margin: 4px 0; padding: 4px 12px; border-radius: 4px; font-weight: 700; color: #fff; background: var(--cbar, #e0453f); }

.rv-right { width: 248px; flex-shrink: 0; border-left: 1px solid #2f62d8; background: #f7f8fc; display: flex; flex-direction: column; overflow: hidden; font-size: 13px; position: relative; }
.rp-panel { border-bottom: 1px solid #eaedf5; background: #f7f8fc; }
.rp-head { display: flex; align-items: center; justify-content: space-between; padding: 5px 8px; border-bottom: 1px solid #e6eaf3; background: #f0f3fa; font-size: 13px; color: #5b6ce0; }
.rp-head.micro { justify-content: space-between; }
.rp-head.tabs-only { justify-content: space-around; gap: 0; padding: 4px; }
.rp-head.tabs-only button { font-size: 12px; color: #5b6ce0; padding: 3px 4px; }
.rp-head.tabs-only button.active { background: #5b6ce0; color: #fff; border-radius: 3px; }
.rp-title { font-size: 13px; font-weight: 600; color: #4a5570; }
.rp-tabs { display: flex; gap: 2px; }
.rp-tabs button { font-size: 12px; padding: 3px 6px; border-radius: 3px; color: #7a8498; }
.rp-tabs button:hover { color: #3b6ef6; }
.rp-tabs button.active { background: #5b6ce0; color: #fff; }
.user-list { height: 222px; overflow-y: auto; padding: 3px 0; }
.user-list::-webkit-scrollbar, .horn-winner::-webkit-scrollbar { width: 5px; }
.user-list::-webkit-scrollbar-thumb, .horn-winner::-webkit-scrollbar-thumb { background: #d5dcec; border-radius: 3px; }
.user-row { display: flex; align-items: center; gap: 8px; padding: 5px 8px; font-size: 13px; cursor: pointer; min-height: 40px; border-bottom: 1px solid #f4f6fa; transition: background .12s; }
.user-row:hover { background: #eef3ff; }
.user-row.pm-active { background: #e3ecff; box-shadow: inset 3px 0 0 #3b6ef6; }
.u-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid #e6ebf5; }
.u-name-wrap { flex: 1; min-width: 0; }
.u-name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.user-hover-card { display: none; position: fixed; z-index: 9999; pointer-events: none; width: 300px; padding: 12px; background: #fff; border: 1px solid #dfe6f5; border-radius: 10px; box-shadow: 0 8px 28px rgba(30, 50, 90, .2); }
.uhc-main { display: flex; align-items: center; gap: 12px; }
.uhc-avatar { width: 78px; height: 78px; border-radius: 50%; object-fit: cover; border: 1px solid #e6ebf5; flex-shrink: 0; background: #f5f7fb; }
.uhc-info { flex: 1; min-width: 0; }
.uhc-row { display: flex; align-items: center; padding: 2px 0; font-size: 12px; color: #5a6680; white-space: nowrap; }
.uhc-k { color: #8a93a3; flex-shrink: 0; }
.uhc-row b { color: #33415c; font-weight: 600; margin-left: 2px; overflow: hidden; text-overflow: ellipsis; }
.uhc-row img { width: 24px; height: 22px; object-fit: contain; margin-left: 2px; }
.uhc-sign { margin-top: 10px; padding-top: 8px; border-top: 1px solid #eef1f7; font-size: 12px; color: #5a6680; line-height: 1.6; word-break: break-all; }
.user-action-menu { position: fixed; z-index: 10000; min-width: 178px; padding: 6px; background: #fff; border: 1px solid #dfe6f5; border-radius: 9px; box-shadow: 0 8px 28px rgba(30, 50, 90, .22); }
.uam-head { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px 8px; margin-bottom: 4px; border-bottom: 1px solid #eef1f7; }
.uam-head b { font-size: 13px; color: #33415c; }
.uam-head small { font-size: 11px; color: #8a93a3; }
.uam-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 8px; font-size: 12px; color: #3a4760; background: none; border: 0; border-radius: 6px; cursor: pointer; text-align: left; }
.uam-item:hover { background: #eef3ff; color: #2f62d8; }
.uam-item.danger { color: #d94040; }
.uam-item.danger:hover { background: #fff0f0; color: #c62828; }
.uam-ic { width: 18px; text-align: center; font-size: 14px; }
.u-level { height: 18px; max-width: 38px; object-fit: contain; }
.u-level-badge { flex-shrink: 0; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 3px; color: #fff; background: #8a93a3; line-height: 1.4; }
.u-level-badge.ulv-1 { background: #5b9e5b; }
.u-level-badge.ulv-2 { background: #e0453f; }
.u-level-badge.ulv-3 { background: #e0762a; }
.u-level-badge.ulv-4 { background: #3b8ee8; }
.u-level-badge.ulv-5 { background: #9b6ef3; }
.u-level-badge.ulv-6 { background: #e0a020; }
.u-level-badge.ulv-7 { background: linear-gradient(90deg, #e0453f, #e0a020); }
.u-vip { flex-shrink: 0; font-size: 10px; color: #e0762a; font-weight: 700; }
.u-val { color: #e0453f; font-size: 12px; font-weight: 600; min-width: 42px; text-align: right; }
.u-badges { display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0; }
.u-badge { width: 22px; height: 20px; object-fit: contain; }
.u-mic-badge { width: 20px; height: 20px; object-fit: contain; }
.u-badge-owner { width: 26px; height: 22px; }
.pf-badges { display: flex; gap: 10px; margin: 14px 0; flex-wrap: wrap; }
.pf-badge { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: #f5f8ff; border: 1px solid #e3eaf7; border-radius: 8px; }
.pf-badge img { width: 28px; height: 26px; object-fit: contain; }
.pf-badge span { display: flex; flex-direction: column; line-height: 1.3; }
.pf-badge b { font-size: 12px; color: #33415c; }
.pf-badge small { font-size: 11px; color: #7a8498; }
.pf-withdraw { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: linear-gradient(90deg, #fff7e8, #fffdf8); border: 1px solid #f5dfae; border-radius: 8px; }
.pf-withdraw div { display: flex; flex-direction: column; gap: 3px; }
.pf-withdraw b { font-size: 13px; color: #8a5a12; }
.pf-withdraw small { font-size: 11px; color: #a5844d; }
.pf-owner { margin-top: 10px; font-size: 12px; color: #2f62d8; }
.pf-levels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.pf-level-card { border: 1px solid #e3eaf7; border-radius: 10px; padding: 12px; background: #fff; }
.pf-level-card .plc-title { font-size: 12px; color: #7a8498; margin-bottom: 8px; }
.pf-level-card .plc-main { display: flex; align-items: center; gap: 8px; }
.pf-level-card .plc-main img { width: 34px; height: 30px; object-fit: contain; }
.pf-level-card .plc-main b { font-size: 15px; color: #33415c; }
.pf-level-card .plc-desc { font-size: 11px; color: #8a93a3; margin-top: 8px; line-height: 1.5; }
.pf-level-card .plc-desc em { font-style: normal; color: #e0453f; font-weight: 700; }
.pf-level-card .plc-btn { margin-top: 8px; padding: 4px 12px; border: 0; border-radius: 5px; background: #e0453f; color: #fff; font-size: 12px; cursor: pointer; }
.pf-quick { display: flex; gap: 8px; margin: 12px 0; }
.pf-quick button { flex: 1; padding: 9px; border: 1px solid #d6e2f7; border-radius: 7px; background: #f5f8ff; color: #2f52c9; font-size: 13px; cursor: pointer; }
.pf-gender { display: flex; align-items: center; gap: 5px; }
.pf-gender select { padding: 3px 6px; border: 1px solid #d6e2f7; border-radius: 5px; font-size: 13px; }
.sc-block { border: 1px solid #e3eaf7; border-radius: 8px; padding: 12px; margin-bottom: 12px; background: #fafcff; }
.sc-block h4 { margin: 0 0 8px; font-size: 13px; color: #33415c; }
.sc-row { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.sc-row label { width: 74px; flex-shrink: 0; font-size: 12px; color: #5b6577; }
.sc-row input { flex: 1; min-width: 0; }
.sc-code-btn { flex-shrink: 0; padding: 6px 10px; border: 1px solid #2f62d8; border-radius: 5px; background: #fff; color: #2f62d8; font-size: 12px; cursor: pointer; }
.sc-tip { font-size: 11px; color: #9aa3b2; margin-top: 6px; }
.md-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.md-tabs button { flex: 1; padding: 7px; border: 1px solid #d6e2f7; border-radius: 6px; background: #fff; color: #5b6577; font-size: 12px; cursor: pointer; }
.md-tabs button.active { background: #2f62d8; color: #fff; border-color: #2f62d8; }
.md-filter { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 12px; color: #7a8498; }
.md-filter input { padding: 5px 6px; border: 1px solid #d6e2f7; border-radius: 5px; font-size: 12px; }
.md-list { max-height: 300px; overflow-y: auto; }
.md-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 6px; padding: 8px 6px; border-bottom: 1px solid #eef2f9; font-size: 12px; align-items: center; }
.md-row.head { position: sticky; top: 0; background: #f5f8ff; color: #7a8498; font-weight: 600; z-index: 1; }
.md-row img { width: 24px; height: 24px; object-fit: contain; vertical-align: middle; }
.md-empty { text-align: center; color: #9aa3b2; padding: 30px 0; font-size: 12px; }
.rc-methods { display: flex; gap: 8px; margin: 10px 0 14px; }
.rc-methods button { flex: 1; padding: 10px; border: 1px solid #d6e2f7; border-radius: 7px; background: #fff; font-size: 13px; cursor: pointer; }
.rc-methods button.active { border-color: #e0453f; background: #fff5f5; color: #e0453f; font-weight: 700; }
.rc-methods button:disabled { cursor: not-allowed; }
.alipay-qr-box { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0 4px; }
.alipay-qr-tip { font-size: 14px; color: #33415c; font-weight: 700; }
.alipay-qr-img { width: 220px; height: 220px; border: 1px solid #e3eaf7; border-radius: 8px; image-rendering: auto; }
.alipay-qr-amount { font-size: 13px; color: #5a6678; }
.alipay-qr-amount b { color: #e0453f; font-size: 18px; }
.alipay-qr-status { font-size: 13px; color: #e0762a; padding: 4px 12px; background: #fff7ed; border-radius: 12px; }
.alipay-qr-status.paid { color: #1aa56e; background: #e8f7ef; }
.alipay-qr-no { font-size: 11px; color: #9aa3b2; word-break: break-all; text-align: center; max-width: 300px; }
.wd-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.wd-summary div { background: #f5f8ff; border: 1px solid #e3eaf7; border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 4px; text-align: center; }
.wd-summary span { font-size: 11px; color: #7a8498; }
.wd-summary b { font-size: 15px; color: #2f62d8; }
.wd-hint { margin: 10px 0 14px; font-size: 12px; color: #7a8498; }
.wd-hint b { color: #e0453f; }
.wd-list-title { font-size: 13px; font-weight: 700; color: #33415c; margin: 12px 0 8px; }
.wd-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-bottom: 1px solid #eef1f7; font-size: 12px; }
.wd-st { padding: 2px 8px; border-radius: 10px; font-size: 11px; }
.wd-st.st-0 { background: #fff3e0; color: #e0762a; }
.wd-st.st-1 { background: #e8f7ef; color: #1aa56e; }
.wd-st.st-2 { background: #f1f3f7; color: #8a93a3; }
.wd-empty { padding: 16px; text-align: center; color: #9aa4b5; font-size: 12px; }
.avatar-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 6px; }
.avatar-grid img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.gift-tabs { display: flex; align-items: center; border-bottom: 1px solid #eaedf5; background: #f7f8fc; }
.gift-tabs button { flex: 1; padding: 6px 0; font-size: 12px; color: #5b6577; white-space: nowrap; border-bottom: 2px solid transparent; }
.gift-tabs button:hover { color: #e0453f; }
.gift-tabs button.active { color: #e0453f; font-weight: 700; border-bottom-color: #e0453f; }
.gift-tabs .gift-tabs-more { flex: 0 0 22px; color: #5b6ce0; font-size: 13px; border-bottom: none; }
.gift-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; padding: 4px; }
.gift { height: 56px; border: 1px solid transparent; border-radius: 3px; background: #f7f8fc; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; padding: 2px; transition: border-color .12s, background .12s; }
.gift img { width: 34px; height: 34px; object-fit: contain; }
.gift small { font-size: 10px; color: #5b6577; margin-top: 1px; white-space: nowrap; }
.gift:hover { border-color: #ff9c3d; background: #fff7ee; }
.gift-op { display: flex; align-items: center; gap: 3px; padding: 4px 5px 0; font-size: 11px; color: #5b6577; }
.gift-op select { height: 22px; border: 1px solid #d5dbe8; border-radius: 3px; font-size: 11px; min-width: 0; flex: 1; padding: 0 2px; }
.gift-op .go-dot { display: inline-flex; flex-shrink: 0; }
.gift-box-btn { width: 24px; height: 24px; flex-shrink: 0; display: grid; place-items: center; }
.gi { width: 18px; height: 18px; display: block; }
.gi-target { width: 15px; height: 15px; }
.coin-row { display: flex; justify-content: space-between; align-items: center; padding: 3px 7px 6px; font-size: 12px; color: #333; background: #f7f8fc; }
.coin-row .cr-item { display: inline-flex; align-items: center; gap: 3px; }
.coin-row .cr-mid { flex: 1; justify-content: flex-start; margin-left: 6px; }
.coin-row .cr-label { color: #333; }
.coin-row b, #coinVal { color: #e0453f; font-weight: 600; }
.cr-bluebox { width: 24px; height: 24px; flex-shrink: 0; display: grid; place-items: center; margin-left: auto; }
.vf-viz { position: absolute; right: 4px; bottom: 22px; width: 20%; min-width: 46px; max-width: 80px; height: 25%; min-height: 30px; max-height: 56px; z-index: 3; pointer-events: none; border-radius: 2px; opacity: .92; }
/* 上麦方式选择 */
.mic-choice { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.mc-item { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; width: 100%; padding: 12px 14px; background: #f5f8ff; border: 1px solid #d9e2f6; border-radius: 8px; text-align: left; cursor: pointer; }
.mc-item:hover:not(:disabled) { background: #eaf0ff; border-color: #7b8cf0; }
.mc-item:disabled { opacity: .5; cursor: not-allowed; }
.mc-item b { font-size: 14px; color: #3b4c78; }
.mc-item span { font-size: 11px; color: #8b96ad; }
.mc-tip { margin: 0; font-size: 11px; color: #e0453f; }
/* 私麦列表（更多视频） */
.pvl-modal { width: 340px !important; }
.pvl-modal .modal-head { background: #5f70e5; padding: 10px 14px; }
.pvl-modal .modal-title { color: #fff; font-size: 13px; font-weight: 600; }
.pvl-modal .modal-close { color: #fff; }
.pvl-modal .modal-body { padding: 0; max-height: 62vh; }
.pvl-list { max-height: 62vh; overflow-y: auto; }
.pvl-row { display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 4px 12px; border-bottom: 1px solid #f0f2f7; }
.pvl-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid #eceff6; }
.pvl-nick { font-size: 13px; color: #d2483f; white-space: nowrap; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.pvl-uid { font-size: 12px; color: #7a8699; flex: 1; min-width: 0; }
.pvl-act { flex-shrink: 0; font-size: 12px; background: none; border: 0; cursor: pointer; padding: 4px 0; }
.pvl-act.watch { color: #3b6ef6; }
.pvl-act.apply { color: #2f9e6f; }
.pvl-empty { padding: 30px; text-align: center; color: #a2aab8; font-size: 13px; }
.pvl-foot { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.pvl-foot span { flex: 1; font-size: 11px; color: #5b6b8c; }
.pvl-foot button { height: 28px; padding: 0 12px; font-size: 12px; border-radius: 5px; cursor: pointer; }
.horn-winner { flex: 1; min-height: 140px; overflow-y: auto; padding: 6px 8px; background: #f7f8fc; margin: 4px 4px 4px; border-bottom: none !important; }
.hw-empty { display: none; }
.hw-item { display: flex; align-items: center; gap: 5px; line-height: 1.7; font-size: 12px; color: #d2483f; padding: 2px 0; white-space: nowrap; }
.hw-item > img { width: 15px; height: 15px; object-fit: contain; flex-shrink: 0; }
.hw-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.horn-sys { color: #d2483f; }
.horn-sys b { color: #e12f2f; }
.horn-win { color: #c9901a; }
.horn-win b { color: #e0951a; }
.horn-user { color: #6b4bbd; }
.horn-user b { color: #d22fa0; }
/* 幸运中奖喇叭：500倍黑色、1000倍紫红色 */
.horn-win500 { color: #1a1a1a; background: #2b2b2b; padding: 3px 6px; border-radius: 5px; }
.horn-win500 b, .horn-win500 .hw-text { color: #ffcf4a; }
.horn-win1000 { color: #fff; background: linear-gradient(90deg,#7a1140,#b21b6e); padding: 3px 6px; border-radius: 5px; }
.horn-win1000 b, .horn-win1000 .hw-text { color: #ffe6f4; }
.horn-room-link { color: #2f62d8; cursor: pointer; text-decoration: underline; }
.horn-room-link:hover { color: #e0453f; }
/* 表情：悬停大图预览浮层 */
.emoji-hover-preview { position: fixed; z-index: 99999; display: none; padding: 6px; background: #fff; border: 1px solid #d5dced; border-radius: 8px; box-shadow: 0 6px 24px rgba(30,40,80,.22); pointer-events: none; }
.emoji-hover-preview img { display: block; max-width: 130px; max-height: 130px; object-fit: contain; }
/* 富文本聊天输入框 */
.chat-input-rich { flex: 1; min-height: 44px; max-height: 120px; overflow-y: auto; padding: 8px 10px; border: 1px solid #dce3ef; border-radius: 6px; font-size: 13px; line-height: 1.5; outline: none; background: #fff; word-break: break-word; }
.chat-input-rich:focus { border-color: #7b8cf0; }
.chat-input-rich:empty::before { content: attr(data-ph); color: #a2aab8; pointer-events: none; }
.chat-input-rich .chat-emoji { width: 44px; height: 44px; }
/* 喇叭富文本输入框 */
.horn-input-rich { min-height: 96px; max-height: 200px; overflow-y: auto; padding: 8px 10px; border: 1px solid #dce3ef; border-radius: 6px; font-size: 13px; line-height: 1.5; outline: none; background: #fff; word-break: break-word; }
.horn-input-rich:focus { border-color: #7b8cf0; }
.horn-input-rich:empty::before { content: attr(data-ph); color: #a2aab8; pointer-events: none; }
.horn-input-rich .chat-emoji { width: 44px; height: 44px; }
/* 礼物悬浮说明卡片 */
.gift-hover-card { position: fixed; z-index: 99999; display: none; width: 210px; padding: 8px; background: #fff; border: 1px solid #d9e0f0; border-radius: 8px; box-shadow: 0 8px 28px rgba(30,40,80,.22); pointer-events: none; }
.gh-top { display: flex; gap: 8px; align-items: center; }
.gh-top > img { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; border-radius: 4px; background: #f7f8fc; }
.gh-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gh-info b { font-size: 13px; color: #333; }
.gh-info span { font-size: 12px; color: #d2483f; }
.gh-desc { margin-top: 6px; padding-top: 6px; border-top: 1px solid #eef0f6; font-size: 11px; color: #6b7285; line-height: 1.4; }
/* 中奖金币上浮动画 */
.coin-gain-pop { position: absolute; z-index: 99998; color: #ffd24a; font-size: 20px; font-weight: 800; text-shadow: 0 2px 6px rgba(160,90,0,.6); pointer-events: none; animation: coinGainUp 1.8s ease-out forwards; }
@keyframes coinGainUp { 0% { opacity: 0; transform: translateY(10px) scale(.8); } 20% { opacity: 1; transform: translateY(0) scale(1.1); } 100% { opacity: 0; transform: translateY(-60px) scale(1); } }
.horn-item i { color: #a2aab8; font-style: normal; font-size: 11px; flex-shrink: 0; }
.ad-panel img { width: 100%; height: auto; display: block; }
.notice-panel { padding: 8px 10px; font-size: 12px; line-height: 1.6; }
.notice-live { margin-bottom: 3px; }
.notice-num { color: #d2483f; }
.notice-links { display: flex; gap: 8px; color: #2f52c9; margin-top: 3px; }

/* ---------- 可视化调参面板 ---------- */
#veToggle { position: fixed; right: 10px; bottom: 10px; z-index: 500; width: 32px; height: 32px; border-radius: 50%; background: #3b6ef6; color: #fff; font-size: 16px; box-shadow: 0 3px 12px rgba(0, 0, 0, .25); }
#veToggle:hover { background: #2d5be0; }
#visualEditor { position: fixed; left: 10px; top: 10px; z-index: 501; width: 330px; max-height: 82vh; background: #fff; border: 1px solid #d7deec; border-radius: 10px; box-shadow: 0 10px 40px rgba(20, 30, 60, .25); display: none; flex-direction: column; overflow: hidden; font-size: 12px; }
#visualEditor.show { display: flex; }
.ve-head { padding: 10px 12px; background: #3b6ef6; color: #fff; font-weight: 600; display: flex; align-items: center; justify-content: space-between; cursor: move; user-select: none; }
.ve-close { color: #fff; font-size: 18px; line-height: 1; }
.ve-body { overflow-y: auto; padding: 6px 12px; flex: 1; }
.ve-group { padding: 8px 0 4px; border-bottom: 1px solid #eef1f6; }
.ve-group-title { font-weight: 600; color: #3b4bbd; margin-bottom: 6px; }
.ve-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.ve-row label { width: 92px; flex-shrink: 0; color: #5b6577; font-size: 11px; }
.ve-row input[type=range] { flex: 1; min-width: 0; height: 4px; accent-color: #3b6ef6; }
.ve-row input[type=number] { width: 52px; height: 22px; border: 1px solid #dfe4ec; border-radius: 4px; padding: 0 4px; font-size: 11px; }
.ve-row input[type=color] { width: 30px; height: 22px; padding: 0; border: 1px solid #dfe4ec; border-radius: 4px; background: none; }
.ve-foot { padding: 8px 12px; border-top: 1px solid #eef1f6; display: flex; gap: 8px; }
.ve-foot button { flex: 1; height: 28px; border-radius: 5px; font-size: 11px; }
.ve-reset { background: #f0f3fa; color: #5b6577; }
.ve-save { background: #3b6ef6; color: #fff; }
.ve-edit-toggle { background: #fff2e0; color: #d97916; flex: 1.4; }

body.ve-edit-mode [data-edit-id] { cursor: pointer; outline: 1px dashed #e34b4b; outline-offset: -1px; }
body.ve-edit-mode [data-edit-id]:hover { outline: 2px solid #e34b4b; background: rgba(227, 75, 75, .08); }
.ve-selected { outline: 2px solid #e34b4b !important; background: rgba(227, 75, 75, .12) !important; }
#veToolbar { position: fixed; z-index: 600; display: none; gap: 2px; padding: 3px; background: #fff; border: 1px solid #e34b4b; border-radius: 5px; box-shadow: 0 4px 16px rgba(0, 0, 0, .2); }
#veToolbar button { padding: 3px 7px; font-size: 11px; border-radius: 3px; background: #fff2f2; color: #d23a3a; white-space: nowrap; }
#veToolbar button:hover { background: #ffe0e0; }

/* ---------- 提示 ---------- */
.toast-root { position: fixed; top: 66px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 8px; padding: 10px 15px; font-size: 12px; color: #485266; box-shadow: 0 8px 24px rgba(20, 30, 60, .13); animation: slidein .2s ease; min-width: 180px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slidein { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }
.spin svg { animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 响应式 ---------- */
@media (max-width: 1120px) {
  .room-grid, .dash-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bottom-item { padding: 0 16px; }
}
@media (max-width: 860px) {
  .sidebar { width: 60px; }
  .brand { padding: 18px 10px 12px; justify-content: center; }
  .brand-text, .friends-head span, .nav-item span, .friend-info, .side-divider { display: none; }
  .nav { padding: 0 8px; }
  .nav-item { justify-content: center; padding: 0; }
  .nav-badge { position: absolute; margin: -22px 0 0 22px; }
  .friends-head { justify-content: center; }
  .friend-item { justify-content: center; padding: 6px 0; }
  .room-grid, .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rv-left { width: 260px !important; }
  .rv-right { width: 210px !important; }
  .vp99 .mascot { width: 64px; height: 64px; }
  .v99text { font-size: 38px; }
  .v99text small { font-size: 10px; }
  .mic-btns button { width: 54px; font-size: 12px; }
  .vol-panel { padding: 0; }
}
@media (max-width: 620px) {
  .top-stat.muted, .top-sep { display: none; }
  .toolbar { flex-wrap: wrap; }
  .search-box { width: 100%; }
  .head-stats { margin-left: 0; }
  .room-grid, .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 9px; }
  .room-art { height: 80px; }
  .art-glyph { font-size: 40px; }
  .bottombar { overflow-x: auto; justify-content: flex-start; }
  .bottom-item { padding: 0 12px; white-space: nowrap; }
  /* 手机：房间改为纵向堆叠，视频/聊天/礼物喇叭都能用 */
  .rv-left { width: 100% !important; height: 30vh; flex-shrink: 0; border-right: none; border-bottom: 1px solid #2f62d8; }
  .video-stack { flex-direction: row; }
  .video-stack .vslot { flex: 1; }
  .rv-center { min-height: 40vh; border-right: none; }
  .rv-right { width: 100% !important; height: 30vh; flex-shrink: 0; border-left: none; border-top: 1px solid #2f62d8; flex-direction: row; overflow-x: auto; }
  .rv-right > .rp-panel, .rv-right > .zone-wrap { min-width: 200px; width: 46vw; height: 100%; flex-shrink: 0; overflow-y: auto; }
  .zone-wrap .side-tools { flex-direction: row; }
  .user-list { height: auto; }
  .rh-right { display: none; }
  .vp99 .mascot { width: 48px; height: 48px; }
  .v99text { font-size: 26px; }
  .v99text small { font-size: 7px; }
  .mic-btns button { width: 42px; font-size: 10px; }
  .vol-num { display: none; }
  .center-gifts { height: 130px; }
  .chat-input-rich, .horn-input-rich { min-height: 36px; font-size: 16px; }
  .chat-emoji, .horn-input-rich .chat-emoji { width: 32px; height: 32px; }
  .modal { max-width: 94vw; }
  .gift-hover-card { display: none !important; }
}
