/* ==========================================================================
   智讯云播 · AI 直播语音 APP（H5 端 & PC 手机壳演示台）
   Theme: Dark Live Tech (曜石暗夜 + 电光紫蓝 + 翡翠/直播霓虹)
   ========================================================================== */

:root {
  --bg-stage: #05070e;
  --bg-0: #080b14;
  --bg-1: #0f1424;
  --bg-2: #161d33;
  --bg-3: #1e2744;
  --bg-glass: rgba(15, 20, 36, 0.84);
  --line: rgba(148, 163, 210, 0.12);
  --line-strong: rgba(148, 163, 210, 0.24);
  --ink: #f1f5ff;
  --ink-2: #b4c0dc;
  --ink-3: #7281a6;
  --brand: #6366f1;
  --brand-2: #3b82f6;
  --cyan: #06b6d4;
  --live: #f43f5e;
  --ok: #10b981;
  --warn: #f59e0b;
  --grad-brand: linear-gradient(135deg, #6366f1 0%, #3b82f6 55%, #06b6d4 100%);
  --grad-live: linear-gradient(135deg, #f43f5e 0%, #ec4899 55%, #8b5cf6 100%);
  --grad-card: linear-gradient(160deg, rgba(99, 102, 241, 0.18) 0%, rgba(15, 20, 36, 0.92) 55%, rgba(6, 182, 212, 0.10) 100%);
  --grad-gold: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(30, 39, 68, 0.92) 100%);
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 9px;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg-stage);
  color: var(--ink);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  overflow: hidden;
  user-select: none;
}

input, textarea, select, button {
  font-family: inherit;
  font-size: 14px;
  color: inherit;
}

input, textarea {
  user-select: text;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   PC 演示舞台外壳（手机壳仿真 + 侧边汇报控制面板）
   ========================================================================== */

.showcase-stage {
  position: relative;
  width: 100vw;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  padding: 20px 32px;
  background:
    radial-gradient(640px circle at 22% 18%, rgba(99, 102, 241, 0.16), transparent 65%),
    radial-gradient(580px circle at 80% 82%, rgba(6, 182, 212, 0.13), transparent 65%),
    var(--bg-stage);
}

.studio-deck {
  width: 348px;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 4px;
}

.studio-deck::-webkit-scrollbar {
  width: 4px;
}
.studio-deck::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 210, 0.2);
  border-radius: 99px;
}

.deck-card {
  background: rgba(15, 20, 36, 0.78);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.deck-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.32);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.deck-tag i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
}

.deck-card h1 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.deck-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.6;
}

.deck-sec-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.deck-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.deck-pill {
  padding: 8px 6px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  transition: all 0.18s;
}

.deck-pill:hover {
  border-color: rgba(99, 102, 241, 0.45);
  color: var(--ink);
}

.deck-pill.active {
  background: rgba(99, 102, 241, 0.22);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

.deck-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.deck-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 11px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 12.5px;
  text-align: left;
  transition: all 0.18s;
}

.deck-btn:hover {
  background: var(--bg-3);
  border-color: rgba(99, 102, 241, 0.45);
  color: #fff;
  transform: translateY(-1px);
}

.deck-btn b {
  font-weight: 600;
  color: var(--ink);
}

.deck-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.deck-link {
  flex: 1;
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--ink-2);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.18s;
}

.deck-link:hover {
  border-color: var(--brand-2);
  color: #fff;
  background: rgba(59, 130, 246, 0.12);
}

/* ==========================================================================
   手机硬件外框与屏幕容器
   ========================================================================== */

.phone-shell {
  position: relative;
  width: 393px;
  height: min(852px, calc(100dvh - 36px));
  flex-shrink: 0;
  border-radius: 50px;
  padding: 11px;
  background: linear-gradient(145deg, #2b3554 0%, #121728 45%, #232d4b 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 30px 80px rgba(0, 0, 0, 0.72),
    0 0 60px rgba(99, 102, 241, 0.14);
  transition: width 0.25s ease, height 0.25s ease, border-radius 0.25s ease;
}

.phone-shell.device-android {
  width: 412px;
  height: min(900px, calc(100dvh - 32px));
  border-radius: 38px;
}

/* 物理侧边按键装饰 */
.phone-shell::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 138px;
  width: 3px;
  height: 58px;
  background: #2b3554;
  border-radius: 3px 0 0 3px;
  box-shadow: 0 74px 0 #2b3554;
}

.phone-shell::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 185px;
  width: 3px;
  height: 82px;
  background: #2b3554;
  border-radius: 0 3px 3px 0;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 40px;
  background: var(--bg-0);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.phone-shell.device-android .phone-screen {
  border-radius: 28px;
}

/* 状态栏 & 灵动岛 */
.status-bar {
  height: 44px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(8, 11, 20, 0.9);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 20;
  flex-shrink: 0;
}

.dynamic-island {
  position: absolute;
  left: 50%;
  top: 9px;
  transform: translateX(-50%);
  min-width: 102px;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--ink-2);
  transition: all 0.25s ease;
}

.dynamic-island.live-active {
  border-color: rgba(244, 63, 94, 0.45);
  color: #fda4af;
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.25);
}

.island-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #475569;
}

.dynamic-island.live-active .island-dot {
  background: var(--live);
  animation: pulseDot 1.3s infinite;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--ink-2);
}

.bat-icon {
  display: inline-flex;
  align-items: center;
  width: 20px;
  height: 10px;
  border: 1.2px solid rgba(241, 245, 255, 0.7);
  border-radius: 3px;
  padding: 1px;
  position: relative;
}
.bat-icon::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 2px;
  width: 1.5px;
  height: 4px;
  background: rgba(241, 245, 255, 0.7);
  border-radius: 0 1px 1px 0;
}
.bat-icon i {
  display: block;
  height: 100%;
  width: 82%;
  background: var(--ok);
  border-radius: 1px;
}

/* 纯全屏 H5 模式 & 手机真机自适应 */
body.mode-full .showcase-stage {
  padding: 0;
}
body.mode-full .studio-deck {
  display: none !important;
}
body.mode-full .phone-shell {
  width: 100vw;
  max-width: 520px;
  height: 100dvh;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
body.mode-full .phone-shell::before,
body.mode-full .phone-shell::after,
body.mode-full .status-bar,
body.mode-full .home-indicator {
  display: none !important;
}
body.mode-full .phone-screen {
  border-radius: 0;
  border: none;
}

.floating-exit-full {
  display: none;
  position: fixed;
  right: 16px;
  top: 14px;
  z-index: 90;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(15, 20, 36, 0.85);
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  font-size: 12px;
  backdrop-filter: blur(10px);
}
body.mode-full .floating-exit-full {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

@media (max-width: 860px) {
  .showcase-stage {
    padding: 0;
  }
  .studio-deck,
  .floating-exit-full {
    display: none !important;
  }
  .phone-shell {
    width: 100vw !important;
    height: 100dvh !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
  }
  .phone-shell::before,
  .phone-shell::after,
  .status-bar,
  .home-indicator {
    display: none !important;
  }
  .phone-screen {
    border-radius: 0 !important;
    border: none !important;
  }
}

/* ==========================================================================
   APP 内部布局：顶部导航 + 滚动视口 + 底部毛玻璃 TabBar
   ========================================================================== */

.app-viewport {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 15px 92px;
  scroll-behavior: smooth;
}

.app-viewport::-webkit-scrollbar {
  width: 3px;
}
.app-viewport::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 210, 0.18);
  border-radius: 99px;
}

.tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: rgba(10, 14, 26, 0.88);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-top: 1px solid var(--line);
  padding: 6px 8px calc(8px + env(safe-area-inset-bottom, 0px));
}

.tabbar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 0;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 500;
  transition: color 0.18s, transform 0.15s;
  position: relative;
}

.tab-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.9;
  transition: transform 0.18s;
}

.tab-btn.active {
  color: #fff;
  font-weight: 600;
}

.tab-btn.active svg {
  color: #818cf8;
  transform: translateY(-1px);
  filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.55));
}

.tab-live-dot {
  position: absolute;
  top: 2px;
  right: calc(50% - 16px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 8px var(--live);
}

.home-indicator {
  width: 124px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.24);
  margin: 6px auto 1px;
}

/* ==========================================================================
   通用移动端 UI 组件（卡片、胶囊、按钮、表单、分段器）
   ========================================================================== */

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0 12px;
}

.app-header-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-header-sub {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 2px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.icon-btn:active {
  transform: scale(0.95);
}

.icon-btn .dot-unread {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
}

.hero-card {
  background: var(--grad-card);
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
}

.hero-card::after {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.28), transparent 70%);
  pointer-events: none;
}

.card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 12px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-more {
  font-size: 12px;
  color: #818cf8;
  font-weight: 500;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.metric-box {
  background: rgba(8, 11, 20, 0.52);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}

.metric-box span {
  display: block;
  font-size: 11px;
  color: var(--ink-3);
}

.metric-box b {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin-top: 2px;
  color: #fff;
}

.metric-box small {
  font-size: 10.5px;
  color: var(--ink-2);
}

/* 金刚区 8 宫格 */
.kingkong-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 8px;
  padding: 14px 10px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
}

.kk-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--ink-2);
  font-weight: 500;
}

.kk-item:active {
  transform: scale(0.95);
}

.kk-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.kk-icon svg {
  width: 21px;
  height: 21px;
}

.kk-c1 { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.kk-c2 { background: linear-gradient(135deg, #f43f5e, #e11d48); }
.kk-c3 { background: linear-gradient(135deg, #06b6d4, #0284c7); }
.kk-c4 { background: linear-gradient(135deg, #10b981, #059669); }
.kk-c5 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.kk-c6 { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.kk-c7 { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.kk-c8 { background: linear-gradient(135deg, #ec4899, #db2777); }

/* 徽章与标签 */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.16);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.26);
  white-space: nowrap;
}

.pill.ok {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.3);
}

.pill.live {
  background: rgba(244, 63, 94, 0.18);
  color: #fda4af;
  border-color: rgba(244, 63, 94, 0.38);
}

.pill.warn {
  background: rgba(245, 158, 11, 0.16);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.32);
}

.pill.muted {
  background: rgba(148, 163, 210, 0.1);
  color: var(--ink-2);
  border-color: var(--line);
}

/* 按钮体系 */
.m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 15px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  transition: all 0.16s;
}

.m-btn:active {
  transform: scale(0.97);
}

.m-btn.primary {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.32);
}

.m-btn.live-btn {
  background: var(--grad-live);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 20px rgba(244, 63, 94, 0.36);
}

.m-btn.ok-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: transparent;
  color: #fff;
}

.m-btn.sm {
  padding: 6px 11px;
  border-radius: 9px;
  font-size: 12px;
}

.m-btn.block {
  width: 100%;
}

.m-btn:disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* 分段选择器 Segmented */
.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 3px;
  margin-bottom: 12px;
}

.seg-btn {
  padding: 7px 4px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-3);
  text-align: center;
  transition: all 0.18s;
}

.seg-btn.active {
  background: var(--bg-3);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   Tab 2：直播中控大屏专属样式（声波动态、提词器、弹幕流、8模式卡片）
   ========================================================================== */

.task-picker-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.task-select {
  flex: 1;
  min-width: 0;
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  padding: 9px 11px;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  outline: none;
}

.stage-monitor {
  background:
    radial-gradient(240px circle at 85% 15%, rgba(99, 102, 241, 0.22), transparent 70%),
    radial-gradient(200px circle at 15% 90%, rgba(6, 182, 212, 0.16), transparent 70%),
    var(--bg-1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-xl);
  padding: 15px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}

.stage-monitor.is-live {
  border-color: rgba(244, 63, 94, 0.45);
  background:
    radial-gradient(260px circle at 85% 12%, rgba(244, 63, 94, 0.20), transparent 70%),
    radial-gradient(220px circle at 15% 90%, rgba(99, 102, 241, 0.20), transparent 70%),
    var(--bg-1);
}

.monitor-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

/* 16 柱声波可视化 */
.wave-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(8, 11, 20, 0.55);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
}

.voice-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--ink-2);
  min-width: 0;
}

.voice-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.eq-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 20px;
}

.eq-bars i {
  display: block;
  width: 3px;
  height: 5px;
  border-radius: 99px;
  background: #475569;
  transition: height 0.2s;
}

.eq-bars.speaking i {
  background: linear-gradient(180deg, #38bdf8, #818cf8);
  animation: eqBounce 0.85s ease-in-out infinite;
}
.eq-bars.speaking i:nth-child(2n) { animation-duration: 0.62s; animation-delay: 0.1s; }
.eq-bars.speaking i:nth-child(3n) { animation-duration: 0.95s; animation-delay: 0.22s; }
.eq-bars.speaking i:nth-child(4n) { animation-duration: 0.72s; animation-delay: 0.05s; }

/* 提词器主字幕区 */
.prompter-box {
  background: rgba(8, 11, 20, 0.65);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  min-height: 98px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.prompter-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.prompter-text {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.55;
  color: #fff;
  word-break: break-word;
}

.prompter-text.idle {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--ink-3);
}

.prog-track {
  height: 5px;
  background: rgba(148, 163, 210, 0.14);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 10px;
}

.prog-fill {
  height: 100%;
  width: 0%;
  background: var(--grad-brand);
  border-radius: 99px;
  transition: width 0.28s linear;
}

.wait-align-banner {
  margin-top: 9px;
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fde68a;
  font-size: 11.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.transport-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 7px;
  margin-top: 12px;
}

/* 弹幕与播报实时互动区 */
.quick-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 8px;
}
.quick-chips::-webkit-scrollbar { display: none; }

.chip-btn {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 11.5px;
  white-space: nowrap;
}
.chip-btn:active {
  background: var(--bg-3);
  border-color: var(--brand);
  color: #fff;
}

.feed-list {
  max-height: 210px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 2px;
}

.feed-item {
  font-size: 12px;
  line-height: 1.45;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(8, 11, 20, 0.52);
  border: 1px solid rgba(148, 163, 210, 0.08);
  color: var(--ink-2);
}

.feed-item b {
  color: #93c5fd;
  margin-right: 4px;
}

.feed-item.reply {
  border-color: rgba(16, 185, 129, 0.28);
  background: rgba(16, 185, 129, 0.08);
}
.feed-item.reply b { color: #6ee7b7; }

.feed-item.bullet {
  border-color: rgba(99, 102, 241, 0.25);
  background: rgba(99, 102, 241, 0.09);
}

.barrage-bar {
  display: flex;
  gap: 7px;
  margin-top: 9px;
}

.barrage-bar input {
  flex: 1;
  min-width: 0;
  background: var(--bg-0);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 12.5px;
  outline: none;
}
.barrage-bar input:focus {
  border-color: var(--brand);
}

/* 8 种播报模式选择网格 */
.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mode-option {
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 9px 10px;
  text-align: left;
  cursor: pointer;
  transition: all 0.16s;
}

.mode-option.selected {
  background: rgba(99, 102, 241, 0.16);
  border-color: var(--brand);
}

.mode-option b {
  display: block;
  font-size: 12.5px;
  color: #fff;
  margin-bottom: 2px;
}

.mode-option span {
  display: block;
  font-size: 10.5px;
  color: var(--ink-3);
  line-height: 1.35;
}

/* ==========================================================================
   列表项卡片 & 表单 & 开关
   ========================================================================== */

.list-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 12px;
  margin-bottom: 9px;
}

.list-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.list-card-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
}

.list-card-desc {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.list-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 210, 0.09);
  font-size: 11.5px;
  color: var(--ink-3);
}

.form-field {
  margin-bottom: 12px;
}

.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 5px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-0);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 13.5px;
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--brand);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.55;
}

.form-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.switch-toggle {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 99px;
  background: #334155;
  transition: background 0.2s;
  flex-shrink: 0;
}

.switch-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}

.switch-toggle.on {
  background: var(--brand);
}
.switch-toggle.on::after {
  transform: translateX(18px);
}

/* ==========================================================================
   APP 内置登录页（暗黑沉浸风）
   ========================================================================== */

.auth-screen {
  min-height: 100%;
  padding: 22px 18px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(280px circle at 50% 8%, rgba(99, 102, 241, 0.28), transparent 70%),
    var(--bg-0);
}

.auth-logo {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.4);
  margin-bottom: 14px;
}

.auth-logo svg {
  width: 30px;
  height: 30px;
  color: #fff;
}

.auth-screen h2 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
}

.auth-screen p {
  margin: 0 0 18px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.demo-quick-box {
  margin-top: 16px;
  padding: 12px;
  border-radius: 13px;
  background: rgba(99, 102, 241, 0.09);
  border: 1px dashed rgba(99, 102, 241, 0.35);
}

.demo-quick-box span {
  display: block;
  font-size: 11.5px;
  color: var(--ink-2);
  margin-bottom: 8px;
}

/* ==========================================================================
   底部抽屉 Bottom Sheet & Toast（严格限定在手机屏幕内弹出！）
   ========================================================================== */

.sheet-mask {
  position: absolute;
  inset: 0;
  z-index: 60;
  background: rgba(3, 6, 14, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  animation: fadeIn 0.18s ease;
}

.sheet-mask.hidden {
  display: none;
}

.sheet-panel {
  width: 100%;
  max-height: 86%;
  background: var(--bg-1);
  border-top: 1px solid var(--line-strong);
  border-radius: 22px 22px 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.55);
  animation: slideUp 0.22s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.sheet-handle {
  width: 38px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
  margin: 9px auto 4px;
  flex-shrink: 0;
}

.sheet-head {
  padding: 6px 16px 11px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.sheet-head h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
}

.sheet-body {
  padding: 14px 16px 22px;
  overflow-y: auto;
  flex: 1;
}

.sheet-foot {
  padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  display: flex;
  gap: 9px;
  flex-shrink: 0;
  background: var(--bg-1);
}

.app-toast {
  position: absolute;
  left: 50%;
  top: 58px;
  transform: translateX(-50%);
  z-index: 80;
  max-width: 88%;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(22, 29, 51, 0.95);
  border: 1px solid rgba(99, 102, 241, 0.45);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  text-align: center;
  animation: toastIn 0.2s ease;
}

.empty-state {
  padding: 32px 16px;
  text-align: center;
  color: var(--ink-3);
  font-size: 12.5px;
}

.mono-pre {
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 12px;
  font: 12px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
  color: var(--ink-2);
  white-space: pre-wrap;
  word-break: break-word;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.25); }
}

@keyframes eqBounce {
  0%, 100% { height: 4px; }
  50% { height: 19px; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, -8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ==========================================================================
   P0–P2 新增：音色复刻 / 商品素材 / 状态卡片
   ========================================================================== */

/* ---- 通用提示卡片 ---- */
.hint-card{border-radius:14px;padding:12px 14px;margin-bottom:12px;font-size:12.5px;line-height:1.65;
  background:rgba(90,110,255,.08);border:1px solid rgba(120,140,255,.22);color:var(--ink-2)}
.hint-card.ok{background:rgba(16,185,129,.09);border-color:rgba(16,185,129,.28)}
.hint-card.warn{background:rgba(251,191,36,.09);border-color:rgba(251,191,36,.3)}
.hint-card-title{font-weight:600;font-size:13px;margin-bottom:4px;color:var(--ink-1)}
.hint-card-body{color:var(--ink-2)}
.hint-card-foot{display:flex;gap:14px;margin-top:8px;padding-top:8px;border-top:1px dashed rgba(255,255,255,.09);font-size:11.5px;color:var(--ink-3)}
.hint-card-foot b{color:var(--ink-1);font-weight:600}

/* ---- 音色卡片元信息 ---- */
.list-card-meta{display:flex;align-items:center;gap:8px;margin-top:8px;font-size:11px;color:var(--ink-3)}
.list-card-meta code{font-family:ui-monospace,Menlo,monospace;font-size:10.5px;padding:2px 6px;border-radius:6px;
  background:rgba(255,255,255,.06);color:#8fd4ff;word-break:break-all}
.list-card-err{margin-top:8px;padding:8px 10px;border-radius:9px;font-size:11.5px;
  background:rgba(244,63,94,.1);border:1px solid rgba(244,63,94,.28);color:#ffb4c0}

/* ---- 录音条 ---- */
.rec-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.rec-state{font-size:11.5px;color:var(--ink-3);margin-left:auto}
.rec-tip{margin-top:8px;font-size:11.5px;line-height:1.6;color:var(--ink-3);
  padding:8px 10px;border-radius:9px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07)}

/* ---- 商品素材卡片 ---- */
.price-line{display:flex;align-items:baseline;gap:8px;margin-top:8px}
.price-line b{font-size:19px;font-weight:700;color:#ff7a90;letter-spacing:-.3px}
.price-line s{font-size:12px;color:var(--ink-3)}
.sp-list{margin:8px 0 0;padding-left:16px;font-size:11.5px;line-height:1.7;color:var(--ink-2)}
.sp-list li{margin-bottom:2px}

/* ---- 话术预览 ---- */
.script-pre{margin:0;padding:12px 14px;border-radius:12px;font-size:12px;line-height:1.75;white-space:pre-wrap;
  word-break:break-word;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);
  color:var(--ink-2);max-height:44vh;overflow:auto;font-family:inherit}

/* ---- 危险按钮 ---- */
.m-btn.danger{border-color:rgba(244,63,94,.38);color:#ff9aab;background:rgba(244,63,94,.08)}
.m-btn.danger:hover{background:rgba(244,63,94,.16)}

/* ---- 小徽标补充 ---- */
.pill.live-s{background:rgba(244,63,94,.16);color:#ff93a6;border:1px solid rgba(244,63,94,.32)}
.pill.danger{background:rgba(244,63,94,.14);color:#ff93a6;border:1px solid rgba(244,63,94,.3)}
.pill.warn{background:rgba(251,191,36,.14);color:#fbbf24;border:1px solid rgba(251,191,36,.3)}

/* ---- 5 个子 tab 时缩小字号，避免挤压 ---- */
.segmented .seg-btn{padding-left:6px;padding-right:6px;font-size:12px}

/* ---- H5 实时麦克风 VU 电平与音色试听声波 ---- */
.h5-vu-row{display:flex;align-items:center;gap:8px;margin-top:6px}
.h5-vu-bars{flex:1;display:grid;grid-template-columns:repeat(14,1fr);gap:2px;height:10px;padding:2px;background:rgba(0,0,0,.45);border-radius:6px}
.h5-vu-bars i{display:block;border-radius:2px;background:rgba(148,163,210,.22);transition:background .07s}
.h5-vu-bars i.on{background:#10b981}
.h5-vu-bars i.warn{background:#f59e0b}
.h5-vu-bars i.hot{background:#f43f5e}
.h5-wave{display:flex;align-items:center;gap:2.5px;height:18px;flex:1}
.h5-wave i{display:block;width:2.5px;height:5px;border-radius:99px;background:rgba(148,163,210,.38)}
.h5-wave i:nth-child(2n){height:10px}
.h5-wave i:nth-child(3n){height:14px}
.h5-wave.playing i{background:#60a5fa;animation:h5WavePulse .72s ease-in-out infinite alternate}
.h5-wave.playing i:nth-child(2n){animation-delay:.12s}
.h5-wave.playing i:nth-child(3n){animation-delay:.25s}
@keyframes h5WavePulse{from{height:4px;opacity:.55}to{height:17px;opacity:1}}
