* { box-sizing: border-box; margin: 0; padding: 0; }
[v-cloak] { display: none; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f4f6fa; color: #1f2937; font-size: 14px;
/* 宽屏(PC)下 480px 列两侧透出 body 底色：深色沉浸页跟随其渐变顶色，避免两侧亮边「布局乱」 */
}
body:has(.live-tab), body:has(.ls-page), body:has(.my-tab) { background: #0b0b24; }
.page { max-width: 480px; margin: 0 auto; min-height: 100vh; padding-bottom: 60px; }

/* 登录页 */
.login-page { display: flex; flex-direction: column; align-items: center; padding-top: 9vh; }
.brand { text-align: center; margin-bottom: 22px; }
.brand .logo { width: 62px; height: 62px; line-height: 62px; margin: 0 auto 10px; border-radius: 18px; background: linear-gradient(135deg,#1677ff,#7c3aed); color: #fff; font-size: 28px; font-weight: 700; }
.brand h1 { font-size: 20px; }
.muted { color: #9aa3b2; }
.small { font-size: 12px; }

.card { background: #fff; border-radius: 12px; padding: 16px; margin: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.04); overflow: hidden; overflow-wrap: break-word; }
.tabs { display: flex; margin-bottom: 14px; border-bottom: 1px solid #eee; }
.tab { flex: 1; padding: 10px; border: none; background: none; font-size: 15px; color: #666; border-bottom: 2px solid transparent; cursor: pointer; }
.tab.on { color: #1677ff; border-bottom-color: #1677ff; font-weight: 600; }

.form { display: flex; flex-direction: column; gap: 8px; }
label { font-size: 12px; color: #6b7280; margin-top: 4px; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 14px; background: #fff; outline: none; }
input:focus, select:focus, textarea:focus { border-color: #1677ff; }
input.locked { background: #f1f5f9; color: #64748b; cursor: not-allowed; }
input.locked:focus { border-color: #e2e8f0; }
textarea { resize: vertical; font-family: inherit; }
.row { display: flex; gap: 8px; align-items: center; }
.cap-img { width: 110px; height: 40px; border-radius: 8px; cursor: pointer; border: 1px solid #e2e8f0; }

.btn { padding: 9px 16px; border: none; border-radius: 8px; background: #eef2f7; color: #333; font-size: 14px; cursor: pointer; white-space: nowrap; }
.btn.primary { background: #1677ff; color: #fff; }
.btn.ghost { background: none; border: 1px solid #cbd5e1; color: #667085; }
.btn.sm { padding: 8px 12px; font-size: 13px; }
.btn.block { width: 100%; padding: 12px; margin-top: 6px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.dev-code { font-size: 12px; color: #1677ff; background: #eef6ff; padding: 8px; border-radius: 6px; }
.err { color: #e5484d; font-size: 13px; margin-top: 10px; }
/* 全局提示 toast：notice() 此前只在登录页渲染，主界面所有提示（保存失败/开播/余额等）曾被静默吞掉 */
.g-toast { position: fixed; top: 54px; left: 50%; transform: translateX(-50%); background: #1f2430; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13px; max-width: 86%; z-index: 999; box-shadow: 0 4px 16px rgba(0,0,0,.28); }

/* 主界面 */
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 16px 16px 10px; }
.top-title { font-size: 17px; font-weight: 700; }
.balance { text-align: right; }
.balance b { font-size: 18px; color: #1677ff; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
h2 { font-size: 15px; }
.room-sel { width: 100%; }
.room-ops { margin-top: 8px; }
.chips { display: flex; flex-wrap: nowrap; gap: 6px; margin-bottom: 10px; overflow-x: auto; padding-bottom: 4px; }
.chips::-webkit-scrollbar { height: 4px; }
.chips::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 2px; }
.chip { flex: 0 0 auto; padding: 6px 12px; border-radius: 20px; border: 1px solid #e2e8f0; background: #fff; font-size: 13px; cursor: pointer; white-space: nowrap; }
.chip.on { background: #1677ff; color: #fff; border-color: #1677ff; }
.scripts { margin-bottom: 10px; }
.script-item { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px dashed #eee; }
.script-item .muted { flex: 1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.preview { font-size: 12px; color: #6b7280; background: #f8fafc; padding: 8px; border-radius: 6px; margin-top: 6px; }
.role-box { border: 1px solid #eef1f5; border-radius: 10px; padding: 12px; margin-top: 8px; background: #fbfcfe; }
.role-box b { font-size: 13px; color: #334155; }
.empty { padding: 14px 0; }
.audio-item { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px dashed #eee; }
.xuhao { min-width: 24px; height: 24px; line-height: 24px; text-align: center; background: #eef2f7; border-radius: 6px; font-size: 12px; color: #556; }
.src-tag { font-size: 11px; padding: 2px 7px; border-radius: 10px; white-space: nowrap; }
.src-tag.danmu { background: #fef3c7; color: #b45309; }
.src-tag.manual { background: #e0f2fe; color: #0369a1; }
.audio-item .txt { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #444; }
.danmus { margin-top: 8px; }
.danmu-item { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px dashed #f0f0f0; }
.danmu-item b { color: #7c3aed; }
.my-balance { text-align: center; padding: 6px 0; }
.my-balance .big { font-size: 28px; color: #1677ff; display: block; margin: 6px 0; }
.order-box { margin-top: 10px; padding: 10px; background: #f8fafc; border-radius: 8px; font-size: 13px; }
.order-box .price { color: #e5484d; font-size: 16px; }
.order-box a { color: #1677ff; }

/* 底部导航 */
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; max-width: 480px; margin: 0 auto; display: flex; background: #fff; border-top: 1px solid #eee; padding-bottom: env(safe-area-inset-bottom); }
.tab-btn { flex: 1; padding: 12px; border: none; background: none; font-size: 13px; color: #888; cursor: pointer; white-space: nowrap; }
.tab-btn.on { color: #7c3aed; font-weight: 600; }

/* ============ 首页（AI 品牌门户 · 深色紫蓝 AI 科技风） ============ */
.home-tab { }
.home-hero { position: relative; overflow: hidden; border-radius: 0 0 26px 26px; padding: 40px 20px 34px; text-align: center; color: #fff; background: linear-gradient(160deg, #07071f 0%, #2a1a5e 55%, #17173c 100%); }
.hero-orbs { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(42px); opacity: .55; }
.o1 { width: 170px; height: 170px; background: #6020e0; top: -56px; left: -36px; }
.o2 { width: 130px; height: 130px; background: #2563eb; top: 46px; right: -24px; }
.o3 { width: 96px; height: 96px; background: #a855f7; bottom: -34px; left: 42%; }
.hero-logo { width: 66px; height: 66px; line-height: 66px; margin: 0 auto 14px; border-radius: 20px; background: linear-gradient(135deg, #7c3aed, #2563eb); font-size: 30px; font-weight: 800; box-shadow: 0 10px 34px rgba(124, 58, 237, .55); position: relative; }
.home-hero h1 { font-size: 22px; font-weight: 800; letter-spacing: 1px; position: relative; }
.hero-slogan { color: rgba(255, 255, 255, .72); font-size: 14px; margin: 8px 0 16px; position: relative; }
.hero-tags { display: flex; gap: 8px; justify-content: center; margin-bottom: 20px; position: relative; }
.hero-tags span { font-size: 11px; padding: 4px 11px; border-radius: 20px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); color: #dbe4ff; }
.hero-cta { padding: 12px 30px; border: none; border-radius: 26px; background: linear-gradient(135deg, #7c3aed, #2563eb); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: 0 10px 26px rgba(124, 58, 237, .45); position: relative; }

.home-cards { padding: 16px 12px 0; display: flex; flex-direction: column; gap: 12px; }
.feat-card { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 16px; background: #fff; box-shadow: 0 4px 16px rgba(20, 10, 60, .07); border: 1px solid #eef0f6; cursor: pointer; }
.feat-card .fc-icon { width: 48px; height: 48px; line-height: 48px; text-align: center; border-radius: 14px; font-size: 23px; flex: none; }
.feat-card .fc-body { flex: 1; }
.feat-card .fc-body b { font-size: 16px; color: #1f2937; }
.feat-card .fc-body p { font-size: 12px; color: #8a93a6; margin-top: 4px; line-height: 1.4; }
.feat-card .fc-go { font-size: 12px; font-weight: 600; flex: none; }
.fc-live .fc-icon { background: #eef2ff; }
.fc-live .fc-go { color: #4f46e5; }
.fc-clone .fc-icon { background: #f5f0ff; }
.fc-clone .fc-go { color: #7c3aed; }
.fc-script .fc-icon { background: #fff1f2; }
.fc-script .fc-go { color: #e11d48; }
.fc-goods .fc-icon { background: #e0f2fe; }
.fc-goods .fc-go { color: #0284c7; }
.fc-pallet .fc-icon { background: #f0fdf4; }
.fc-pallet .fc-go { color: #16a34a; }
.fc-risk .fc-icon { background: #fef2f2; }
.fc-risk .fc-go { color: #dc2626; }
.fc-package .fc-icon { background: #f5f3ff; }
.fc-package .fc-go { color: #7c3aed; }

.home-info { text-align: center; padding: 20px 0 10px; }
.hi-line { margin-bottom: 4px; font-size: 12px; color: #6b7280; }
.hi-line b { color: #7c3aed; }

/* ============ 声音克隆 ============ */
.clone-item { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px dashed #eee; }
.clone-avatar { font-size: 20px; flex: none; }
.clone-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.voice-item { display: flex; gap: 7px; align-items: center; padding: 8px 10px; border: 1px solid #eef0f6; border-radius: 10px; font-size: 13px; background: #fbfcfe; }
.voice-g { width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 50%; font-size: 11px; flex: none; }
.voice-g.gm { background: #dbeafe; color: #1d4ed8; }
.voice-g.gf { background: #fae8ff; color: #a21caf; }
.btn.red { background: #fde8e8; color: #e5484d; }
.row.wrap { flex-wrap: wrap; }
.or-line { display: flex; align-items: center; gap: 10px; color: #a0a8b8; font-size: 12px; margin: 12px 0 2px; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: #eef0f6; }
.ai-analysis { margin-top: 10px; background: #f5f0ff; border: 1px solid #e9dcff; border-radius: 10px; padding: 10px 12px; text-align: left; }
.ai-analysis-head { font-size: 13px; font-weight: 700; color: #7c3aed; margin-bottom: 6px; }
.ai-analysis pre { white-space: pre-wrap; word-break: break-word; font-family: inherit; font-size: 12px; color: #4a5568; line-height: 1.6; margin: 0; }
.ai-script { margin-top: 10px; background: #f0fbf5; border: 1px solid #d1f2e0; border-radius: 10px; padding: 10px 12px; text-align: left; }
.ai-script-head { font-size: 13px; font-weight: 700; color: #2e8b57; margin-bottom: 6px; }
.ai-script-head .muted { font-size: 12px; font-weight: 400; color: #8aa0a0; }
.ai-script pre { white-space: pre-wrap; word-break: break-word; font-family: inherit; font-size: 13px; color: #333; line-height: 1.7; margin: 0; }

/* ============ 声音克隆页（按参考图） ============ */
.clone-body { flex: 1; min-width: 0; }
.clone-name { flex: none; }
.clone-tags { display: flex; align-items: center; gap: 6px; margin-top: 3px; flex-wrap: wrap; }
.clone-tag { font-size: 11px; padding: 1px 8px; border-radius: 10px; white-space: nowrap; }
.clone-tag.premium { background: #f5f0ff; color: #7c3aed; }
.clone-tag.classic { background: #e0f2fe; color: #0369a1; }
.clone-tag.training { background: #fef3c7; color: #b45309; }
.clone-tag.clone { background: #ecfdf5; color: #059669; }
.clone-tag.random { background: #fae8ff; color: #a21caf; }
.clone-tag.system { background: #e2e8f0; color: #475569; }
.dcl-box { background: #fff8f0; border: 1px solid #fde8c8; border-radius: 10px; padding: 10px 12px; font-size: 12px; color: #7a5a2e; line-height: 1.7; margin-bottom: 10px; }
.mc-group { display: flex; flex-direction: column; gap: 6px; }
.mc-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; color: #334155; padding: 8px 0 2px; cursor: pointer; }
.mc-check { color: #7c3aed; font-size: 12px; font-weight: 600; }
.mc-items { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.voice-item.on { border-color: #7c3aed; background: #f5f0ff; }
.voice-item .voice-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voice-item .btn.sm { padding: 4px 8px; font-size: 12px; }
.mode-row { display: flex; gap: 8px; }
.mode-card { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fbfcfe; cursor: pointer; }
.mode-card b { font-size: 14px; color: #334155; }
.mode-card small { font-size: 11px; color: #9aa3b2; }
.mode-card.on { border-color: #7c3aed; background: #f5f0ff; }
.mode-card.on b { color: #7c3aed; }
.mode-stars { color: #f59e0b; font-size: 12px; letter-spacing: 1px; }
.gender-card { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fbfcfe; cursor: pointer; }
.gender-card b { font-size: 15px; color: #334155; }
.gender-card small { font-size: 11px; color: #9aa3b2; }
.gender-card.on { border-color: #7c3aed; background: #f5f0ff; }
.gender-card.on b { color: #7c3aed; }
.model-card { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fbfcfe; cursor: pointer; }
.model-card b { font-size: 14px; color: #334155; }
.model-card small { font-size: 11px; color: #9aa3b2; }
.model-card .mc-check { font-size: 12px; color: #7c3aed; font-weight: 600; }
.model-card.on { border-color: #7c3aed; background: #f5f0ff; }
.model-card.on b { color: #7c3aed; }

/* ============ 我的（深紫科技风 · 参考图） ============ */
.my-tab { min-height: 100vh; background: linear-gradient(180deg, #0b0b24 0%, #1c1140 48%, #2a1a5e 100%); color: #fff; padding-bottom: 30px; }
.my-main { padding: 22px 16px 0; }
.my-hero { display: flex; align-items: center; gap: 12px; padding: 4px 4px 20px; }
.my-avatar { width: 54px; height: 54px; line-height: 54px; text-align: center; border-radius: 50%; background: linear-gradient(135deg, #7c3aed, #2563eb); font-size: 22px; font-weight: 700; color: #fff; box-shadow: 0 6px 20px rgba(124, 58, 237, .5); flex: none; }
.my-user { flex: 1; min-width: 0; }
.my-user b { display: block; font-size: 19px; font-weight: 700; }
.my-user span { color: rgba(255, 255, 255, .6); font-size: 13px; margin-top: 2px; }
.my-stats { display: flex; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; padding: 18px 8px; margin-bottom: 20px; }
.my-stats .stat { flex: 1; text-align: center; }
.my-stats .stat + .stat { border-left: 1px solid rgba(255, 255, 255, .12); }
.my-stats .stat b { display: block; font-size: 24px; font-weight: 800; }
.my-stats .stat span { font-size: 12px; color: rgba(255, 255, 255, .6); margin-top: 4px; }
.my-section { margin-bottom: 20px; }
.my-sec-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; padding: 0 2px; }
.my-sec-head b { font-size: 16px; }
.my-link { background: none; border: none; color: #7dd3fc; font-size: 13px; cursor: pointer; }
.my-empty { background: rgba(255, 255, 255, .07); border: 1px dashed rgba(255, 255, 255, .2); border-radius: 14px; padding: 16px; font-size: 13px; color: rgba(255, 255, 255, .65); cursor: pointer; text-align: center; }
.my-room { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 13px 14px; margin-bottom: 10px; cursor: default; }
.room-ico { width: 30px; height: 30px; line-height: 28px; text-align: center; border-radius: 50%; font-size: 14px; border: 1px solid rgba(255, 255, 255, .35); color: rgba(255, 255, 255, .6); flex: none; }
.room-ico.on { background: linear-gradient(135deg, #7c3aed, #2563eb); border-color: transparent; color: #fff; }
.room-body { flex: 1; min-width: 0; }
.room-body b { font-size: 15px; }
.room-line { display: block; font-size: 12px; color: rgba(255, 255, 255, .6); margin-top: 3px; }
.room-right { text-align: right; flex: none; }
.room-tag { display: inline-block; font-size: 11px; padding: 2px 9px; border-radius: 12px; border: 1px solid #7dd3fc; color: #7dd3fc; }
.room-play { display: block; font-size: 12px; color: #7dd3fc; margin-top: 4px; }
.my-menu { display: flex; flex-direction: column; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; overflow: hidden; }
.mi { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: none; border: none; border-bottom: 1px solid rgba(255, 255, 255, .08); color: #fff; font-size: 15px; cursor: pointer; text-align: left; }
.mi:last-child { border-bottom: none; }
.mi-ico { width: 28px; height: 28px; line-height: 28px; text-align: center; border: 1px solid rgba(255, 255, 255, .28); border-radius: 8px; font-size: 14px; color: #c4b5fd; flex: none; }
.mi-go { margin-left: auto; color: rgba(255, 255, 255, .45); }
.my-ver { text-align: center; color: rgba(255, 255, 255, .4); font-size: 12px; margin-top: 22px; }

/* 我的 · 子页 */
.my-sub { min-height: 100vh; background: linear-gradient(180deg, #0b0b24 0%, #1c1140 55%, #2a1a5e 100%); color: #fff; padding: 16px 16px 30px; }
.my-sub-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.my-back { width: 34px; height: 34px; line-height: 30px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #fff; font-size: 18px; cursor: pointer; }
.my-sub-head b { font-size: 17px; }
.card.dark { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); box-shadow: none; color: #fff; }
.card.dark h2 { color: #fff; margin-bottom: 10px; }
.card.dark h2 + .row, .card.dark h2 + .renew-stepper { margin-bottom: 6px; }
.card.dark label { color: rgba(255, 255, 255, .7); }
.card.dark input, .card.dark select, .card.dark textarea { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; }
.card.dark input::placeholder { color: rgba(255, 255, 255, .35); }
.card.dark .order-box { background: rgba(255, 255, 255, .06); color: #ddd; }
.card.dark .order-box a { color: #7dd3fc; }
.card.dark .muted { color: rgba(255, 255, 255, .55); }
.card.dark .empty { color: rgba(255, 255, 255, .5); }
.renew-stepper { display: flex; align-items: center; gap: 14px; margin: 6px 0; }
.renew-stepper b { font-size: 16px; }
.privacy p { font-size: 13px; line-height: 1.8; color: rgba(255, 255, 255, .8); margin-bottom: 8px; }

/* 底部导航 · 我的页深色态 */
.tabbar.dark { background: #0f0f24; border-top: 1px solid rgba(255, 255, 255, .1); }
.tabbar.dark .tab-btn { color: rgba(255, 255, 255, .5); }
.tabbar.dark .tab-btn.on { color: #fff; }

/* ============ AI 直播（按 直播.jpg 深紫科技风） ============ */
.live-tab { min-height: 100vh; background: linear-gradient(180deg, #0b0b24 0%, #1c1140 48%, #2a1a5e 100%); color: #fff; padding: 0 16px 30px; position: relative; }
.live-tab::before { content: ""; position: absolute; top: 0; right: 0; width: 180px; height: 180px; pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 100%) 0 0 / 28px 28px repeat,
    radial-gradient(circle at 78% 12%, rgba(124,58,237,.35) 0 26px, transparent 27px),
    radial-gradient(circle at 66% 26%, rgba(37,99,235,.28) 0 14px, transparent 15px);
  filter: blur(1px); opacity: .8; }

/* 顶栏 */
.live-top { display: flex; align-items: center; justify-content: center; padding: 18px 2px 16px; position: relative; }
.live-top-title { font-size: 18px; font-weight: 800; letter-spacing: 1px; }

/* 数据统计条 */
.live-stats { display: flex; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 18px 8px; margin-bottom: 16px; }
.live-stat { flex: 1; text-align: center; }
.live-stat + .live-stat { border-left: 1px solid rgba(255,255,255,.12); }
.live-stat b { display: block; font-size: 24px; font-weight: 800; }
.live-stat .live-date { font-size: 15px; color: #7dd3fc; }
.live-stat span { display: block; font-size: 12px; color: rgba(255,255,255,.6); margin-top: 4px; }

/* 直播中（仅在有直播时显示） */
.live-now { margin-bottom: 16px; }
.live-now-head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.live-now-dot { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; animation: live-pulse 1.5s ease-in-out infinite; }
@keyframes live-pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.live-now-tag { font-size: 13px; font-weight: 700; color: #fca5a5; letter-spacing: 1px; }
.live-now-card { display: flex; align-items: center; gap: 12px; background: rgba(124,58,237,.15); border: 1px solid rgba(124,58,237,.5); border-radius: 16px; padding: 14px 16px; }
.live-now-card-body { flex: 1; min-width: 0; }
.live-now-name { display: block; font-size: 16px; font-weight: 700; color: #fff; }
.live-now-time { display: block; font-size: 13px; color: #7dd3fc; margin-top: 4px; }
.live-now-stop { flex: none; padding: 8px 16px; border: none; border-radius: 20px;
  background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer;
  box-shadow: 0 6px 18px rgba(239,68,68,.35); }

/* 直播任务 小节标题 */
.live-section-title { font-size: 15px; font-weight: 700; color: #e2e8f0; margin-bottom: 12px; }

/* 直播任务卡片 */
.live-cards { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.live-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 15px 16px 13px; cursor: pointer; transition: border-color .2s; }
/* 直播中锁定任务列表：只读，仅顶部「强制关播」可操作 */
.live-cards.locked .live-card { pointer-events: none; opacity: .55; }
.live-card.on { border-color: rgba(124,58,237,.85); background: rgba(124,58,237,.12); }
.live-card.live { border-color: #7dd3fc; box-shadow: 0 0 0 1px rgba(125,211,252,.35), 0 8px 24px rgba(125,211,252,.12); }
.live-card-head { display: flex; align-items: center; justify-content: space-between; }
.live-card-head b { font-size: 16px; font-weight: 700; }
.live-status { font-size: 11px; padding: 2px 9px; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.6); white-space: nowrap; }
.live-status.ok { border-color: #7dd3fc; color: #7dd3fc; }
.live-status.bad { border-color: rgba(244,63,94,.6); color: #fb7185; }
.live-card-time { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; color: #7dd3fc; }
.live-card-ops { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }
.live-del { padding: 7px 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; background: rgba(255,255,255,.08); color: #fff; font-size: 13px; cursor: pointer; }
.live-start { padding: 7px 18px; border: none; border-radius: 18px; background: linear-gradient(135deg, #8e44ad, #3498db); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 16px rgba(124,58,237,.35); }
.live-start.disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.live-buy-tip { text-align: center; padding: 16px; color: rgba(255,255,255,.45); font-size: 13px; border-top: 1px solid rgba(255,255,255,.08); margin-top: 16px; }
.live-empty { text-align: center; padding: 26px 16px; color: rgba(255,255,255,.55); font-size: 13px; border: 1px dashed rgba(255,255,255,.2); border-radius: 16px; }

/* 创建直播任务 */
.live-create { width: 100%; padding: 13px; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; background: rgba(255,255,255,.1); color: #fff; font-size: 15px; cursor: pointer; margin-bottom: 20px; }
.live-hint { text-align: center; color: rgba(255,255,255,.45); font-size: 13px; padding: 12px; }

/* 直播页 · 功能面板深色态 */
.live-tab .card { margin: 0 0 14px; }
.live-tab .card.dark { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); box-shadow: none; color: #fff; }
.live-tab .card.dark h2 { color: #fff; }
.live-tab .card.dark label { color: rgba(255,255,255,.7); }
.live-tab .card.dark input, .live-tab .card.dark select, .live-tab .card.dark textarea { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }
.live-tab .card.dark input::placeholder, .live-tab .card.dark textarea::placeholder { color: rgba(255,255,255,.35); }
.live-tab .card.dark select option { background: #1c1140; color: #fff; }
.live-tab .card.dark .muted { color: rgba(255,255,255,.55); }
.live-tab .card.dark .empty { color: rgba(255,255,255,.5); }
.live-tab .card.dark .preview { background: rgba(255,255,255,.06); color: rgba(255,255,255,.75); }
.live-tab .card.dark .script-item, .live-tab .card.dark .audio-item, .live-tab .card.dark .danmu-item { border-bottom-color: rgba(255,255,255,.1); }
.live-tab .card.dark .role-box { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.04); }
.live-tab .card.dark .role-box b { color: #e2e8f0; }
.live-tab .card.dark .btn { background: rgba(255,255,255,.1); color: #fff; }
.live-tab .card.dark .btn.primary { background: linear-gradient(135deg, #7c3aed, #2563eb); }
.live-tab .card.dark .btn.ghost { background: none; border-color: rgba(255,255,255,.25); color: rgba(255,255,255,.8); }
.live-tab .card.dark .chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.8); }
.live-tab .card.dark .chip.on { background: #7c3aed; color: #fff; border-color: #7c3aed; }
.live-tab .card.dark .src-tag.manual { background: rgba(3,105,161,.4); color: #bae6fd; }
.live-tab .card.dark .src-tag.danmu { background: rgba(180,83,9,.35); color: #fcd34d; }
.live-tab .card.dark .danmu-item b { color: #c4b5fd; }
.live-tab .card.dark .audio-item .xuhao { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); }
.live-tab .card.dark .audio-item .txt { color: rgba(255,255,255,.85); }
.live-tab .card.dark .chips::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); }

/* ============ 声音克隆（按趣友AI「我的音库」布局，浅色适配） ============ */
.clone-tab { padding: 0 12px 20px; }
.clone-tab .card { margin: 12px 0; }

/* 免责声明（可折叠） */
.clone-dcl { display: flex; align-items: center; gap: 4px; background: #fff8f0; border: 1px solid #fde8c8; border-radius: 10px; padding: 10px 12px; margin: 12px 0 0; font-size: 13px; color: #7a5a2e; cursor: pointer; }
.dcl-arrow { display: inline-block; transition: transform .2s; color: #c79a3e; font-size: 11px; }
.dcl-arrow.open { transform: rotate(180deg); }
.dcl-title { font-weight: 600; }
.clone-dcl-txt { background: #fffdf5; border: 1px solid #fde8c8; border-top: none; border-radius: 0 0 10px 10px; padding: 10px 12px; font-size: 12px; color: #7a5a2e; line-height: 1.8; }

/* 未就绪提示 */
.clone-warn { background: #fff7e6; border: 1px solid #ffd591; border-radius: 10px; padding: 10px 12px; font-size: 12px; color: #d46b08; line-height: 1.6; margin: 12px 0 0; }

/* 步骤标题 */
.step-title { font-size: 13px; font-weight: 700; color: #334155; margin: 14px 0 8px; }
.step-title:first-child { margin-top: 0; }

/* radio 行（②声音模型 / ③克隆模式 / ④性别） */
.radio-row { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid #eef0f6; border-radius: 10px; background: #fbfcfe; margin-bottom: 6px; cursor: pointer; }
.radio { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #cbd5e1; flex: none; position: relative; transition: border-color .15s; }
.radio.on { border-color: #7c3aed; }
.radio.on::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: #7c3aed; }
.radio-txt { font-size: 14px; color: #1f2937; line-height: 1.4; }

/* 模式说明（voice-type-notice） */
.voice-type-notice { margin: 8px 0 2px; background: #f5f0ff; border: 1px solid #e9dcff; border-radius: 10px; padding: 10px 12px; font-size: 12px; color: #6d5aae; line-height: 1.7; }

/* 上传区 */
.upload-box { border: 1.5px dashed #c4b5fd; border-radius: 10px; padding: 18px 12px; text-align: center; background: #faf8ff; cursor: pointer; margin-top: 4px; }
.upload-box:hover { border-color: #7c3aed; background: #f5f0ff; }
.upload-btn { display: inline-block; padding: 8px 26px; border-radius: 20px; background: linear-gradient(135deg, #7c3aed, #2563eb); color: #fff; font-size: 14px; font-weight: 600; }
.file-name { font-size: 12px; color: #6b7280; margin-top: 8px; }

/* 开始克隆 */
.start-clone { width: 100%; padding: 13px; border: none; border-radius: 12px; background: linear-gradient(135deg, #7c3aed, #2563eb); color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 1px; cursor: pointer; margin-top: 12px; box-shadow: 0 6px 18px rgba(124,58,237,.3); }
.start-clone:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.clone-result { font-size: 12px; color: #059669; background: #ecfdf5; border: 1px solid #d1fae5; border-radius: 8px; padding: 8px 10px; margin-top: 10px; text-align: center; }

/* 播放器（control-top / progress-container / utils） */
.card.player { padding: 12px 14px 14px; }
.control-top { display: flex; align-items: center; gap: 10px; }
.mode-btn { flex: none; padding: 5px 10px; border: 1px solid #c4b5fd; border-radius: 16px; background: #f5f0ff; color: #7c3aed; font-size: 12px; cursor: pointer; }
.audio-title { flex: 1; text-align: center; font-size: 14px; font-weight: 600; color: #1f2937; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.speed-btn { flex: none; padding: 5px 10px; border: 1px solid #c4b5fd; border-radius: 16px; background: #f5f0ff; color: #7c3aed; font-size: 12px; cursor: pointer; }
.progress-container { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.time { font-size: 11px; color: #8a93a6; min-width: 34px; text-align: center; font-variant-numeric: tabular-nums; }
.progress-bar { flex: 1; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 2px; background: #e9dcff; outline: none; }
.progress-bar::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #7c3aed; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); cursor: pointer; }
.utils { display: flex; align-items: center; justify-content: space-around; margin-top: 14px; }
.utils .change { padding: 6px 8px; border: none; background: none; color: #4b5563; font-size: 13px; cursor: pointer; }
.utils .center { width: 52px; height: 52px; border-radius: 50%; border: none; background: linear-gradient(135deg, #7c3aed, #2563eb); color: #fff; font-size: 20px; cursor: pointer; box-shadow: 0 6px 18px rgba(124,58,237,.35); }

/* 4 分类 tab（yinse_cate） */
.yinse_cate { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 10px; }
.clickCate { flex: 0 0 auto; padding: 7px 16px; border-radius: 18px; border: 1px solid #e2e8f0; background: #fff; color: #667085; font-size: 13px; cursor: pointer; white-space: nowrap; }
.clickCate.active { background: linear-gradient(135deg, #7c3aed, #2563eb); color: #fff; border-color: transparent; }

/* 章节列表（chapter-item） */
.chapter-item { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid #f0f0f0; cursor: pointer; }
.chapter-item:last-child { border-bottom: none; }
.chapter-item.playing { background: #faf8ff; border-radius: 10px; padding-left: 8px; padding-right: 8px; }
.item-left { flex: 1; min-width: 0; }
.state.name { font-size: 15px; color: #1f2937; display: flex; align-items: baseline; gap: 6px; }
.state.name .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.state.name .mtxt { flex: none; font-size: 11px; color: #999; }
.state.meta { font-size: 12px; color: #999; margin-top: 3px; }
.meta .sys-tag { margin-right: 8px; }
.meta .mine-tag { margin-right: 8px; color: #7c3aed; }
.meta .bad-tag { color: #ff8080; }
.shitingbox { flex: none; }
.operation { display: flex; align-items: center; gap: 8px; }
.operation .st { padding: 5px 14px; border-radius: 16px; background: #f5f0ff; color: #7c3aed; font-size: 12px; }
.operation .remove { padding: 5px 12px; border-radius: 16px; background: #fde8e8; color: #e5484d; font-size: 12px; cursor: pointer; }
.empty-page { text-align: center; padding: 30px 0; color: #9aa3b2; font-size: 14px; }

/* 自定文本试听对话框 */
.dialog-mask { position: fixed; inset: 0; background: rgba(10,10,30,.45); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 0 30px; }
.dialog { width: 100%; max-width: 340px; background: #fff; border-radius: 14px; padding: 18px; box-shadow: 0 16px 40px rgba(0,0,0,.25); }
.dialog-head { font-size: 16px; font-weight: 700; color: #1f2937; margin-bottom: 12px; }
.dialog textarea { width: 100%; }
.dialog-ops { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
/* 算力充值弹窗：卡密/扫码分段切换 + 扫码时长档位 */
.pay-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.pay-tab { flex: 1; padding: 9px 0; border-radius: 10px; border: 1px solid #e2e8f0; background: #f8fafc; color: #64748b; font-size: 14px; font-weight: 600; cursor: pointer; }
.pay-tab.on { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; border-color: transparent; }
.pay-amt { display: flex; gap: 8px; margin-bottom: 10px; }
.amt-btn { flex: 1; padding: 11px 0; border-radius: 10px; border: 1px solid #e2e8f0; background: #f8fafc; color: #334155; font-size: 14px; cursor: pointer; }
.amt-btn.on { border-color: #6366f1; color: #6366f1; background: #eef2ff; font-weight: 600; }
.pay-log { margin-top: 12px; border-top: 1px solid #eef2f7; padding-top: 10px; }
.pay-log-title { font-size: 12px; color: #94a3b8; margin-bottom: 6px; }
.pay-log-item { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: #64748b; padding: 4px 0; }

/* ===== 语音识别 ASR（模块3） ===== */
.fc-asr .fc-icon { background: #fef3c7; }
.fc-asr .fc-go { color: #d97706; }

/* ===== 音视频工具箱（模块4） ===== */
.fc-tools .fc-icon { background: #e0e7ff; }
.fc-tools .fc-go { color: #4f46e5; }
.tool-result { margin-top: 12px; padding: 10px; border: 1px dashed #cbd5e1; border-radius: 10px; background: #f8fafc; }

/* ===== 可视化话术工作流（模块2） ===== */
.fc-workflow .fc-icon { background: #e0f7f3; }
.fc-workflow .fc-go { color: #0d9488; }
.wf-node { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid #eef0f6;
  border-radius: 10px; margin-bottom: 6px; background: #fafbfe; cursor: pointer; }
.wf-node.on { border-color: #1677ff; background: #eff6ff; }
.wf-num { width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 50%;
  background: #e2e8f0; color: #475569; font-size: 12px; flex: none; }
.wf-node.on .wf-num { background: #1677ff; color: #fff; }
.wf-ico { font-size: 18px; flex: none; }
.wf-node b { flex: 1; font-size: 14px; color: #1f2937; }
.wf-node .muted { flex: none; }
.wf-ops { display: flex; gap: 4px; }
.wf-config { margin-top: 12px; padding: 12px; border: 1px dashed #cbd5e1; border-radius: 10px; background: #fff; }
.wf-add { margin-top: 10px; }
.wf-step { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed #eee; font-size: 13px; }
.wf-step b { flex: none; font-size: 13px; }
.wf-step .muted { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wf-step-ok { color: #16a34a; flex: none; }
.wf-step-err { color: #dc2626; flex: none; }
.wf-run-result { margin-top: 10px; }
.gen-card { border: 1px solid #a5f3fc; background: linear-gradient(135deg, #ecfeff, #f0f9ff); }
.gen-card .toolbar h2 { color: #0e7490; }
.gen-card .btn { background: #0891b2; }

/* ============ M1 商品库 ============ */
.goods-item { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.goods-item:last-child { border-bottom: none; }
.goods-body { flex: 1; min-width: 0; }
.goods-body b { display: block; font-size: 14px; color: #1f2937; }
.goods-body .muted { font-size: 12px; }
.goods-status { font-size: 11px; padding: 2px 8px; border-radius: 10px; flex: none; }
.goods-status.ok { background: #ecfdf5; color: #059669; }
.goods-status.bad { background: #fef2f2; color: #dc2626; }

/* ============ M1 合规检测 ============ */
.risk-result { margin-top: 12px; padding: 12px; border-radius: 10px; }
.risk-result.pass { background: #ecfdf5; border: 1px solid #d1fae5; }
.risk-result.block { background: #fef2f2; border: 1px solid #fecaca; }
.risk-level { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.risk-result.pass .risk-level { color: #059669; }
.risk-result.block .risk-level { color: #dc2626; }
.risk-hits { margin-top: 6px; }
.risk-hits b { font-size: 13px; color: #1f2937; }
.risk-hit { display: flex; gap: 8px; align-items: center; padding: 6px 0; font-size: 13px; }
.risk-word { font-weight: 600; color: #dc2626; background: #fef2f2; padding: 2px 8px; border-radius: 4px; }
.risk-clean { margin-top: 8px; }
.risk-clean b { font-size: 13px; color: #1f2937; }

/* ============ M1 套餐订阅 ============ */
.pkg-sub { padding: 12px; background: #f5f0ff; border: 1px solid #e9dcff; border-radius: 10px; }
.pkg-sub-name { font-size: 16px; font-weight: 700; color: #7c3aed; }
.pkg-sub-info { margin-top: 6px; font-size: 12px; color: #6b7280; display: flex; flex-direction: column; gap: 4px; }
.pkg-card { padding: 14px; border: 1px solid #eef0f6; border-radius: 12px; margin-bottom: 12px; background: #fbfcfe; }
.pkg-head { display: flex; justify-content: space-between; align-items: center; }
.pkg-head b { font-size: 16px; color: #1f2937; }
.pkg-price { font-size: 20px; font-weight: 800; color: #7c3aed; }
.pkg-price small { font-size: 13px; font-weight: 400; color: #6b7280; }
.pkg-desc { margin-top: 4px; }
.pkg-features { margin: 8px 0; }
.pkg-feat { font-size: 12px; color: #4b5563; padding: 3px 0; }

/* ============ 直播间设置（严格按图片样式，全屏页面） ============ */
.ls-page { min-height: 100vh; background: linear-gradient(180deg, #0b0b24 0%, #1c1140 48%, #2a1a5e 100%); color: #fff; padding: 0 0 30px; }
/* 顶栏 */
.ls-page-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 14px; }
.ls-page-back, .ls-page-close { width: 34px; height: 34px; line-height: 34px; text-align: center; border: none; background: none; color: rgba(255,255,255,.7); font-size: 22px; cursor: pointer; border-radius: 50%; }
.ls-page-back:hover, .ls-page-close:hover { background: rgba(255,255,255,.1); }
.ls-page-title { font-size: 17px; font-weight: 700; color: #fff; }
/* 表单卡片 */
.ls-page-card { margin: 0 18px 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 20px 18px; }
.ls-page-field { margin-bottom: 18px; }
.ls-page-field:last-child { margin-bottom: 0; }
.ls-page-label { display: block; font-size: 13px; font-weight: 600; color: #e2e8f0; margin-bottom: 8px; }
.ls-page-input { width: 100%; padding: 12px 14px; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; font-size: 14px; background: rgba(255,255,255,.08); color: #fff; outline: none; box-sizing: border-box; }
.ls-page-input:focus { border-color: #7c3aed; }
.ls-page-input::placeholder { color: rgba(255,255,255,.35); }
.ls-page-input option { background: #1a1640; color: #fff; }
.ls-page-textarea { resize: vertical; min-height: 72px; font-family: inherit; }
/* 分享链接自动识别平台徽标（抖音/快手，无需用户手选） */
.ls-link-plat { margin: 6px 0 0; font-size: 12px; color: #4ade80; }
.ls-page-subfield { }
.ls-page-sublabel { display: block; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.55); margin-bottom: 6px; }
/* 封面上传 */
.ls-page-cover { border: 1.5px dashed rgba(124,58,237,.5); border-radius: 12px; overflow: hidden; text-align: center; background: rgba(124,58,237,.08); cursor: pointer; }
.ls-page-cover:hover { border-color: #7c3aed; background: rgba(124,58,237,.15); }
.ls-page-cover-preview img { display: block; width: 100%; max-height: 150px; object-fit: cover; }
.ls-page-cover-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 12px; }
.ls-page-cover-icon { font-size: 34px; }
.ls-page-cover-text { font-size: 14px; color: #a78bfa; font-weight: 500; }
.ls-page-file-name { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 6px; }
/* 底部按钮 */
.ls-page-footer { display: flex; gap: 12px; padding: 0 18px; }
.ls-page-btn { flex: 1; padding: 14px; border: none; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; text-align: center; }
.ls-page-btn-cancel { background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); }
.ls-page-btn-cancel:active { background: rgba(255,255,255,.18); }
.ls-page-btn-save { background: linear-gradient(135deg, #7c3aed, #2563eb); color: #fff; box-shadow: 0 4px 14px rgba(124,58,237,.35); }
.ls-page-btn-save:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* 基础配置项触发区域 */
.ls-page-basic-trigger { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; background: rgba(255,255,255,.08); cursor: pointer; }
.ls-page-basic-value { font-size: 14px; color: #fff; }
.ls-page-basic-arrow { font-size: 18px; color: rgba(255,255,255,.5); }

/* ============ 基础配置项弹窗 ============ */
.bc-dialog { width: 100%; max-width: 380px; background: #1a1640; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.bc-header { display: flex; align-items: center; gap: 10px; padding: 16px 18px 12px; }
.bc-back { width: 32px; height: 32px; line-height: 32px; text-align: center; border: none; background: none; color: rgba(255,255,255,.7); font-size: 20px; cursor: pointer; border-radius: 50%; }
.bc-back:hover { background: rgba(255,255,255,.1); }
.bc-title { font-size: 17px; font-weight: 700; color: #fff; }
.bc-body { padding: 0 18px 18px; }
/* 节标题 */
.bc-section { margin-bottom: 16px; }
.bc-section:last-child { margin-bottom: 0; }
.bc-section-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.08); }
/* 单选/多选按钮组 */
.bc-radio-group { display: flex; flex-direction: column; gap: 6px; }
.bc-radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.bc-radio { display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 6px 12px; border: 1px solid rgba(255,255,255,.15); border-radius: 20px; transition: all .2s; background: rgba(255,255,255,.05); }
.bc-radio:hover { border-color: #7c3aed; background: rgba(124,58,237,.15); }
.bc-radio input { position: absolute; opacity: 0; width: 0; height: 0; }
.bc-radio-dot { display: inline-flex; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.3); border-radius: 50%; flex: none; align-items: center; justify-content: center; transition: all .2s; }
.bc-radio-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: transparent; transition: background .2s; }
/* checkbox 用方框 */
.bc-radio input[type="checkbox"] ~ .bc-radio-dot { border-radius: 3px; }
.bc-radio input[type="checkbox"] ~ .bc-radio-dot::after { border-radius: 1px; }
/* 选中态 */
.bc-radio input:checked ~ .bc-radio-dot { border-color: #7c3aed; background: #7c3aed; }
.bc-radio input:checked ~ .bc-radio-dot::after { background: #fff; }
.bc-radio input:checked ~ .bc-radio-label { color: #7c3aed; }
.bc-radio-label { font-size: 13px; color: rgba(255,255,255,.8); transition: color .2s; }
/* 忽略昵称文本框 */
.bc-textarea { width: 100%; padding: 10px 12px; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; font-size: 13px; resize: vertical; box-sizing: border-box; outline: none; transition: border .2s; }
.bc-textarea:focus { border-color: #7c3aed; }
.bc-textarea::placeholder { color: rgba(255,255,255,.35); }

/* ============ 发音人选择弹窗 ============ */
.ss-dialog { width: 100%; max-width: 380px; height: 70vh; display: flex; flex-direction: column; background: #1a1640; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.ss-header { display: flex; align-items: center; gap: 10px; padding: 16px 18px 12px; flex: none; }
.ss-back { width: 32px; height: 32px; line-height: 32px; text-align: center; border: none; background: none; color: rgba(255,255,255,.7); font-size: 20px; cursor: pointer; border-radius: 50%; }
.ss-back:hover { background: rgba(255,255,255,.1); }
.ss-title { font-size: 17px; font-weight: 700; color: #fff; }
/* 分类 tab */
.ss-tabs { display: flex; gap: 0; padding: 0 18px; flex: none; border-bottom: 1px solid rgba(255,255,255,.08); }
.ss-tab { flex: 1; padding: 10px 0; border: none; background: none; color: rgba(255,255,255,.5); font-size: 13px; font-weight: 600; cursor: pointer; transition: all .2s; border-bottom: 2px solid transparent; }
.ss-tab.active { color: #7c3aed; border-bottom-color: #7c3aed; }
.ss-tab:hover { color: rgba(255,255,255,.8); }
/* 音色列表 */
.ss-list { flex: 1; overflow-y: auto; padding: 8px 18px 18px; }
.ss-list::-webkit-scrollbar { width: 4px; }
.ss-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 2px; }
.ss-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 6px; border-radius: 10px; cursor: pointer; transition: all .15s; background: rgba(255,255,255,.05); }
.ss-item:hover { background: rgba(124,58,237,.15); }
.ss-item.selected { background: rgba(124,58,237,.2); border: 1px solid #7c3aed; padding: 11px 13px; }
.ss-item.disabled { opacity: .4; cursor: not-allowed; }
.ss-item-body { flex: 1; min-width: 0; }
.ss-item-name { display: block; font-size: 14px; font-weight: 600; color: #fff; }
.ss-item-desc { display: block; font-size: 12px; color: rgba(255,255,255,.45); margin-top: 2px; }
.ss-item-badge { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: #7c3aed; color: #fff; flex: none; }
.ss-item-badge.disabled { background: rgba(255,255,255,.15); color: rgba(255,255,255,.5); }
.ss-empty { text-align: center; padding: 40px 0; color: rgba(255,255,255,.35); font-size: 14px; }
/* 调用话术模板弹窗（直播间设置页·参考话术） */
.sp-call { float: right; background: none; border: 1px solid rgba(124,92,255,.5); color: #a78bfa; font-size: 11px; padding: 3px 8px; border-radius: 6px; }
.sp-call:active { background: rgba(124,92,255,.18); }
.sp-item { padding: 10px 4px; border-bottom: 1px solid rgba(255,255,255,.07); cursor: pointer; }
.sp-item:active { background: rgba(124,92,255,.12); }
.sp-item b { display: block; font-size: 14px; color: #e2e8f0; }
.sp-item p { margin: 3px 0 0; font-size: 12px; color: rgba(255,255,255,.45); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============ 高级配置项弹窗 ============ */
.ac-dialog { width: 100%; max-width: 420px; height: 80vh; display: flex; flex-direction: column; background: #1a1640; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.ac-header { display: flex; align-items: center; gap: 10px; padding: 16px 18px 12px; flex: none; }
.ac-back { width: 32px; height: 32px; line-height: 32px; text-align: center; border: none; background: none; color: rgba(255,255,255,.7); font-size: 20px; cursor: pointer; border-radius: 50%; }
.ac-back:hover { background: rgba(255,255,255,.1); }
.ac-title { font-size: 17px; font-weight: 700; color: #fff; }
.ac-body { flex: 1; overflow-y: auto; padding: 0 18px 18px; }
.ac-body::-webkit-scrollbar { width: 4px; }
.ac-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 2px; }
.ac-section { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.ac-section:last-child { border-bottom: none; margin-bottom: 0; }
.ac-section-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 10px; padding-bottom: 6px; }
.ac-field { margin-bottom: 10px; }
.ac-label { display: block; font-size: 12px; color: rgba(255,255,255,.55); margin-bottom: 6px; line-height: 1.5; }
.ac-label strong { color: #7c3aed; }
.ac-trigger { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; background: rgba(255,255,255,.08); cursor: pointer; }
.ac-trigger-val { font-size: 13px; color: rgba(255,255,255,.7); }
.ac-trigger-arrow { font-size: 16px; color: rgba(255,255,255,.4); }
.ac-number { width: 100%; padding: 10px 12px; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; font-size: 14px; outline: none; box-sizing: border-box; }
.ac-number:focus { border-color: #7c3aed; }
.ac-number.sm { width: 100px; }
.ac-range-row { display: flex; gap: 16px; align-items: center; }
.ac-range-row label { font-size: 13px; color: rgba(255,255,255,.6); display: flex; align-items: center; gap: 8px; }
.ac-footer { display: flex; gap: 10px; padding: 12px 18px 16px; flex: none; }
.ac-footer .ls-page-btn { flex: 1; }

/* ============ 音色多选子弹窗 ============ */
.vm-dialog { width: 100%; max-width: 380px; height: 70vh; display: flex; flex-direction: column; background: #1a1640; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.vm-header { display: flex; align-items: center; gap: 10px; padding: 16px 18px 12px; flex: none; }
.vm-back { width: 32px; height: 32px; line-height: 32px; text-align: center; border: none; background: none; color: rgba(255,255,255,.7); font-size: 20px; cursor: pointer; border-radius: 50%; }
.vm-back:hover { background: rgba(255,255,255,.1); }
.vm-title { font-size: 15px; font-weight: 700; color: #fff; }
.vm-title strong { color: #7c3aed; }
.vm-list { flex: 1; overflow-y: auto; padding: 0 18px 8px; }
.vm-list::-webkit-scrollbar { width: 4px; }
.vm-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 2px; }
.vm-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 4px; border-radius: 10px; cursor: pointer; transition: all .15s; background: rgba(255,255,255,.05); }
.vm-item:hover { background: rgba(124,58,237,.12); }
.vm-item.checked { background: rgba(124,58,237,.18); border: 1px solid #7c3aed; padding: 9px 11px; }
.vm-check { width: 20px; height: 20px; line-height: 20px; text-align: center; border: 2px solid rgba(255,255,255,.25); border-radius: 4px; flex: none; font-size: 12px; color: transparent; transition: all .2s; }
.vm-item.checked .vm-check { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.vm-item-body { flex: 1; min-width: 0; }
.vm-item-name { display: block; font-size: 14px; font-weight: 600; color: #fff; }
.vm-item-cate { display: block; font-size: 11px; color: rgba(255,255,255,.4); margin-top: 2px; }
.vm-footer { display: flex; gap: 10px; padding: 8px 18px 16px; flex: none; }
.vm-footer .ls-page-btn { flex: 1; }

/* 推流状态角标（直播中卡片）：真实推流红 / 助播青 / 模拟灰 */
.push-tag { font-size: 11px; padding: 1px 8px; border-radius: 9px; white-space: nowrap; }
.push-tag.pushing { background: rgba(224, 52, 74, .9); color: #fff; animation: pushblink 1.6s infinite; }
.push-tag.assistant { background: rgba(32, 199, 176, .18); color: #25c8b0; border: 1px solid rgba(32, 199, 176, .45); }
.push-tag.simulated { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .55); }
@keyframes pushblink { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* 助播模式：分享链接直播间监听条（抖音直播中卡片内） */
.dy-watch { margin-top: 8px; font-size: 12px; line-height: 1.5; color: rgba(255, 255, 255, .68); background: rgba(32, 199, 176, .08); border: 1px dashed rgba(32, 199, 176, .35); border-radius: 10px; padding: 6px 10px; word-break: break-all; }
.dy-watch a { color: #25c8b0; font-weight: 600; }
.dy-watch .dy-go { color: #25c8b0; cursor: pointer; }

/* ---------- 开播倒计时弹窗（countdownShow） ---------- */
.cd-mask { background: rgba(5,5,20,.72); }
.cd-box { text-align: center; }
.cd-tip { color: #9aa0c8; font-size: 14px; margin-bottom: 10px; letter-spacing: 1px; }
.cd-num { font-size: 104px; font-weight: 800; line-height: 1; color: #ff5b5b; text-shadow: 0 0 30px rgba(255,91,91,.5); }

/* ===== 直播中控弹窗（开播自动弹出；深色玻璃卡，与 live tab 同主题） ===== */
.lp-mask { background: rgba(5,5,20,.78); padding: 0 22px; }
.lp-card { width: 100%; max-width: 360px; background: linear-gradient(165deg, #1b1440, #131028); border: 1px solid rgba(124,58,237,.5); border-radius: 18px; padding: 16px 16px 14px; box-shadow: 0 18px 50px rgba(0,0,0,.55); }
.lp-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.lp-title { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-min { flex: none; width: 30px; height: 30px; border: 1px solid rgba(148,163,184,.35); border-radius: 8px; background: rgba(148,163,184,.12); color: #cbd5e1; font-size: 14px; line-height: 1; cursor: pointer; }
.lp-watch { font-size: 12px; color: #fca5a5; line-height: 1.6; margin-bottom: 12px; }
.lp-watch a { color: #7dd3fc; }
.lp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.lp-cell { background: rgba(124,58,237,.12); border: 1px solid rgba(124,58,237,.28); border-radius: 12px; padding: 10px 4px; text-align: center; }
.lp-cell b { display: block; font-size: 15px; font-weight: 800; color: #fff; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-cell span { display: block; font-size: 11px; color: #94a3b8; margin-top: 3px; }
.lp-ops { display: flex; gap: 10px; margin-bottom: 12px; }
.lp-btn { flex: 1; padding: 11px 0; border: none; border-radius: 12px; font-size: 14px; font-weight: 700; cursor: pointer; }
.lp-btn.pause { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; box-shadow: 0 6px 16px rgba(245,158,11,.3); }
.lp-btn.resume { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; box-shadow: 0 6px 16px rgba(34,197,94,.3); }
.lp-btn.stop { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; box-shadow: 0 6px 16px rgba(239,68,68,.35); }
.lp-switch-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: #e2e8f0; padding: 2px 2px 4px; }
.lp-switch-hint { font-size: 11px; color: #64748b; }
.lp-switch { width: 44px; height: 24px; border: none; border-radius: 12px; background: #3f3f5e; position: relative; cursor: pointer; transition: background .2s; padding: 0; }
.lp-switch i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .2s; }
.lp-switch.on { background: #7c3aed; }
.lp-switch.on i { left: 23px; }
.lp-paused-tip { margin-top: 8px; font-size: 12px; color: #fbbf24; text-align: center; }
.lp-watch.idle { color: #94a3b8; }
.cd-close { margin-top: 18px; padding: 8px 18px; border: 1px solid rgba(154,160,200,.45); border-radius: 20px; background: transparent; color: #c8cdec; font-size: 13px; letter-spacing: 1px; }
.cd-close:active { background: rgba(154,160,200,.15); }
/* 播报字幕流（中控弹窗 + 直播窗口） */
.lp-feed-h { margin: 10px 0 4px; font-size: 13px; color: #9aa0c8; letter-spacing: 1px; }
.lp-feed { max-height: 190px; overflow-y: auto; background: rgba(10,10,32,.55); border: 1px solid rgba(120,126,190,.25); border-radius: 10px; padding: 8px 10px; }
.lp-feed-line { display: flex; align-items: baseline; gap: 6px; padding: 3px 0; border-bottom: 1px dashed rgba(120,126,190,.12); font-size: 13.5px; color: #c9cdf0; line-height: 1.5; }
.lp-feed-line.cur { color: #fff; }
.lp-feed-line.cur .lp-feed-role { color: #ff8b5b; }
.lp-feed-time { flex: none; font-size: 11px; color: #6d739c; }
.lp-feed-role { flex: none; color: #7ea6ff; font-size: 12px; }
.lp-feed-txt { word-break: break-all; }
.lp-feed-empty { color: #6d739c; font-size: 12.5px; text-align: center; padding: 14px 0; }
.live-now-caption { margin-top: 6px; font-size: 13px; color: #e8ebff; background: rgba(255,91,91,.08); border-left: 3px solid #ff5b5b; border-radius: 4px; padding: 5px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 直播页常驻播报字幕区 */
.live-feed { margin: 12px 0 4px; padding: 10px 12px 12px; background: rgba(16,16,42,.65); border: 1px solid rgba(120,126,190,.28); border-radius: 12px; }
.live-feed .lp-feed { max-height: 260px; }
.live-feed .lp-feed-h { margin-top: 0; }
/* 话术库调用弹窗：选中态 + 底部确认 */
.sp-item.sel { outline: 2px solid #7ea6ff; outline-offset: -2px; background: rgba(126,166,255,.08); }
.sp-item-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sp-radio { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #9aa0c8; flex: none; cursor: pointer; }
.sp-radio input { accent-color: #7ea6ff; }
.sp-foot { padding: 10px 12px 12px; }
