/* =============================================================
 *  声元AI · 苹果版（网页版客户端）样式
 *  —— 设计令牌与组件语义，逐项对齐安卓 res/values/colors.xml
 *     + res/drawable/*.xml + design/app-prototype.html 的 :root。
 *     1 CSS px = 1 dp（安卓基线宽 393dp）。
 *  品牌主色 = 蓝（colors.xml 明确：品牌色是蓝，不是粉）。
 * ============================================================= */

:root {
  /* ---- 基础色 ---- */
  --ink: #111316;
  --gray: #8F959D;
  --hairline: #ECEEF1;
  --field: #F5F6F7;
  --accent: #171717;
  --pink: #FF4D6D;
  --pink-border: #FBD0DA;
  --pink-soft: #FFEEF2;
  --pink-deep: #F5325B;
  --cyan: #00B3A4;
  --cyan-txt: #00A295;
  --green: #22A06B;
  --white: #FFFFFF;
  --line: #E5E7EB;
  --amber: #FF9500;

  --bg-home: #F5F5F7;
  --bg-page: #FAFBFC;

  /* ---- 彩色图标底 ---- */
  --blue: #0066FF;
  --blue-ops: #4F6BFF;
  --violet: #7C5CFF;
  --orange: #E8861B;
  --orange-txt: #C2410C;
  --green-txt: #16665E;
  --icon-gray-bg: #E9ECEF;
  --icon-gray-txt: #6B7280;

  /* ---- 品牌蓝淡色与渐变 ---- */
  --brand-soft: #EAF1FF;
  --brand-soft2: #DBE8FF;
  --hero-soft-top: #EDF3FF;
  --hero-soft-mid: #F5F9FF;
  --hero-soft-end: #FBFCFE;
  --home-grad-top: #EAF2FF;
  --home-grad-mid: #F2F7FE;
  --home-grad-end: #F5F6F7;

  --danger-red: #E5484D;
  --ink-sub: #3A4149;
  --coins-bar-track: #EDF1F7;

  --switch-off: #D7DBE1;
  --step-done: #34C759;
  --slider-blue: #5B8CFF;

  /* 首页主按钮能量渐变 */
  --btn-hero-a: #4C93FF;
  --btn-hero-c: #0B4FD0;

  --brand-douyin: #111111;
  --brand-kuaishou: #FF5B22;
  --brand-xhs: #FF2442;
  --brand-sph: #07C160;

  --r-sm: 8px; --r-md: 11px; --r-card: 12px; --r-14: 14px; --r-16: 16px; --r-18: 18px;
  --btn-h: 50px; --field-h: 48px; --bottab-h: 64px;
  --page-pad: 16px; --page-top: calc(54px + env(safe-area-inset-top));
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #e9ebf0;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
button { border: none; background: none; cursor: pointer; }
input, textarea { outline: none; border: none; background: transparent; }

/* ============ 手机外壳（桌面预览时居中成手机；真机全屏） ============ */
#phone {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  background: var(--bg-page);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
@media (min-width: 520px) and (min-height: 760px) {
  body { display: flex; align-items: center; justify-content: center; padding: 20px; }
  #phone {
    height: min(860px, calc(100vh - 40px));
    border-radius: 40px;
    border: 10px solid #1d1f24;
    box-shadow: 0 30px 60px rgba(0,0,0,.28);
  }
}

/* ============ 页面宿主 ============ */
#pageHost { position: relative; flex: 1; min-height: 0; }
.page { position: absolute; inset: 0; display: none; flex-direction: column; background: var(--bg-page); }
.page.on { display: flex; }

.scroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.scroll.pad-tab { padding-bottom: 88px; }
.pad-side { padding-left: var(--page-pad); padding-right: var(--page-pad); }

/* 页头（返回 + 标题） */
.pagehead {
  display: flex; align-items: center;
  padding: var(--page-top) var(--page-pad) 10px;
  flex-shrink: 0;
}
.pagehead.plain { padding-top: var(--page-top); }
.pagehead .tt { font-size: 16px; font-weight: 700; color: var(--ink); }
.back {
  width: 30px; height: 30px; border-radius: 9px;
  background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: #555; font-size: 14px; flex-shrink: 0;
}
.pagehead .tt.ml { margin-left: 11px; }

/* ============ 底部导航 ============ */
#bottab {
  display: none; flex-shrink: 0;
  border-top: 1px solid var(--hairline); background: #fff;
  padding-bottom: env(safe-area-inset-bottom);
}
#bottab.on { display: flex; }
#bottab .tab {
  flex: 1; height: var(--bottab-h);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--gray); position: relative;
}
#bottab .tab .ic { width: 22px; height: 16px; display: flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; }
#bottab .tab .tx { font-size: 11px; }
#bottab .tab.on { color: var(--blue); }
#bottab .tab .dot {
  position: absolute; top: 12px; left: 50%; margin-left: 6px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--danger-red); display: none;
}
#bottab .tab.has-dot .dot { display: block; }

/* ============ 卡片 ============ */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-16); }
.card13 { background: #fff; border: 1px solid var(--hairline); border-radius: 13px; }
.card14 { background: #fff; border: 1px solid var(--line); border-radius: var(--r-14); }
.card + .card, .card14 + .card14, .card13 + .card13 { margin-top: 10px; }
.mt10 { margin-top: 10px; } .mt14 { margin-top: 14px; } .mt12 { margin-top: 12px; }

/* 列表行 */
.row { display: flex; align-items: center; gap: 11px; padding: 15px; cursor: pointer; }
.row + .row, .row-split { border-top: 1px solid var(--hairline); }
.row .ic9 { flex-shrink: 0; }
.row .main { flex: 1; min-width: 0; }
.row .t { font-size: 13.5px; font-weight: 700; color: #2B2F36; }
.row .d { font-size: 11px; color: var(--gray); margin-top: 2px; }
.row .d.one { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .go { width: 16px; height: 16px; flex-shrink: 0; color: #C9CDD4; font-size: 15px; }
.row .dot-red { width: 8px; height: 8px; border-radius: 50%; background: var(--danger-red); flex-shrink: 0; }
.row .st2 { margin-left: auto; font-size: 11px; color: var(--gray); flex-shrink: 0; }
.row .st2.ok { color: var(--green); font-weight: 600; }
.row .st2.warn { color: var(--orange-txt); font-weight: 600; }

/* 图标底（bg_ic9 + tint） */
.ic9 {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--field);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff; flex-shrink: 0;
}
.ic9.lg { width: 32px; height: 32px; }
.ic9.blue { background: var(--blue); }
.ic9.blue-ops { background: var(--blue-ops); }
.ic9.green { background: var(--green); }
.ic9.violet { background: var(--violet); }
.ic9.orange { background: var(--orange); }
.ic9.pink { background: var(--pink); }
.ic9.soft { background: var(--brand-soft); color: var(--blue); }
.ic9.grayic { background: var(--icon-gray-bg); color: var(--icon-gray-txt); }

/* 分组小标题 */
.sec-title { font-size: 11.5px; font-weight: 700; color: var(--gray); padding: 14px 2px 8px; letter-spacing: .04em; }

/* ============ 按钮 ============ */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--btn-h); border-radius: var(--r-14);
  font-size: 15px; font-weight: 700; color: #fff; width: 100%;
  transition: transform .12s, opacity .12s;
}
.btn:active { transform: scale(.98); }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }
.btn.brand { background: var(--blue); }
.btn.dark { background: var(--accent); }
.btn.pink { background: var(--pink); }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); font-weight: 500; }
.btn.hero {
  background: linear-gradient(315deg, var(--btn-hero-a) 0%, var(--blue) 55%, var(--btn-hero-c) 100%);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 12px 24px rgba(0,102,255,.30);
}
.btn.sm { height: auto; padding: 8px 13px; font-size: 12px; border-radius: var(--r-md); width: auto; font-weight: 600; }
.btn.xs { height: auto; padding: 6px 11px; font-size: 11.5px; border-radius: 9px; width: auto; font-weight: 600; }
.btn.block + .btn.block { margin-top: 8px; }

/* ============ 输入 ============ */
.field {
  background: var(--field); border-radius: var(--r-card);
  padding: 14px 16px; display: flex; align-items: center; gap: 10px;
  font-size: 15px; min-height: var(--field-h);
}
.field.line { border: 1px solid var(--hairline); }
.field input { flex: 1; min-width: 0; color: var(--ink); }
.field input::placeholder, textarea::placeholder { color: var(--gray); }

/* 🔴 iOS 专属坑：可输入控件字号 < 16px 时，**聚焦会整页自动放大**
   （Safari 出于无障碍考虑会忽略 viewport 里的 maximum-scale，
   所以光靠 <meta viewport> 挡不住）。
   这里在触屏设备上统一兜到 16px —— 桌面浏览器（pointer: fine）不受影响，
   不影响本机预览的视觉。 */
@media (pointer: coarse) {
  input, textarea, select { font-size: 16px; }
}
textarea.ta {
  width: 100%; background: var(--field); border-radius: var(--r-card);
  padding: 14px; font-size: 13.5px; line-height: 1.7; resize: none; min-height: 150px;
  border: 1px solid var(--hairline);
}
textarea.ta.white { background: #fff; }
.od-in {
  background: var(--field); border: 1px solid var(--hairline);
  border-radius: var(--r-sm); padding: 6px 8px; font-size: 12px; min-width: 0;
}

/* ============ chip ============ */
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--field); border: 1px solid var(--hairline); color: var(--ink);
  border-radius: 999px; padding: 6px 13px; font-size: 12px; cursor: pointer;
}
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.red { background: var(--pink); color: #fff; border-color: var(--pink); }
.chip.soft.on { background: var(--brand-soft); color: var(--blue); border-color: #CFE0FF; }
.chip.gray { color: var(--gray); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ============ 徽标 ============ */
.badge { display: inline-flex; align-items: center; font-size: 10px; font-weight: 600; border-radius: 6px; padding: 2px 7px; }
.badge.cy { background: rgba(0,179,164,.14); color: var(--cyan-txt); }
.badge.gray { background: var(--field); color: var(--gray); }
.badge.gok { background: #E6F7EF; color: var(--green); }
.badge.pink { background: var(--pink); color: #fff; }
.badge.am { background: #FFF3E6; color: var(--orange-txt); }

/* ============ 开关（SvSwitch） ============ */
.switch {
  width: 40px; height: 23px; border-radius: 999px; background: var(--switch-off);
  position: relative; flex-shrink: 0; cursor: pointer; transition: background .2s;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 19px; height: 19px;
  border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.22);
}
.switch.on { background: var(--cyan); }
.switch.on::after { left: 19px; }

/* ============ 双滑块区间（SvRangeSlider） ============ */
.range-wrap { position: relative; height: 44px; display: flex; align-items: center; }
.range-wrap input[type=range] {
  position: absolute; left: 0; right: 0; width: 100%; height: 44px;
  -webkit-appearance: none; appearance: none; background: transparent; pointer-events: none; margin: 0;
}
.range-wrap input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  border: 2px solid var(--cyan); box-shadow: 0 1px 4px rgba(17,19,22,.22);
  pointer-events: auto; cursor: pointer;
}
.range-rail { position: absolute; left: 11px; right: 11px; height: 4px; border-radius: 2px; background: var(--line); }
.range-fill { position: absolute; height: 4px; border-radius: 2px; background: var(--cyan); }
.range-val { font-size: 14px; font-weight: 700; color: var(--cyan); background: var(--field); border: 1px solid var(--hairline); border-radius: var(--r-sm); padding: 4px 8px; }
.range-minmax { display: flex; justify-content: space-between; font-size: 10px; color: var(--gray); }
.vr-sub { font-size: 11px; color: var(--gray); margin-top: 8px; line-height: 1.6; }

/* ============ Toast ============ */
#toastView {
  position: absolute; left: 50%; bottom: 110px; transform: translate(-50%, 12px);
  background: rgba(17,19,22,.92); color: #fff; font-size: 13px;
  padding: 11px 18px; border-radius: 10px; max-width: 300px; text-align: center; line-height: 1.5;
  opacity: 0; pointer-events: none; transition: .22s; z-index: 200;
}
#toastView.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ 空态 / 提示条 ============ */
.empty { padding: 26px 14px; text-align: center; font-size: 12px; color: var(--gray); line-height: 1.7; }
.notice-warn {
  background: #FDECEF; border: 1px solid #F5C2CB; border-radius: 10px;
  padding: 10px 13px; font-size: 12px; color: #C0392B; line-height: 1.6;
}
.hint-line { font-size: 11px; color: var(--gray); line-height: 1.7; padding: 10px 2px 2px; }

/* 帮助与反馈（对齐 page_help.xml 的 12sp 标签 / 12.5sp 正文） */
.help-label { font-size: 12px; color: var(--gray); }
.help-text { font-size: 12.5px; color: #4A5158; line-height: 1.9; white-space: pre-wrap; }
.muted { color: var(--gray); }
.small { font-size: 12px; }
.tiny { font-size: 11px; line-height: 1.7; }
.center { text-align: center; }
.hidden { display: none !important; }

/* ============ 首页 ============ */
#pg-home { background: linear-gradient(180deg, var(--home-grad-top) 0%, var(--home-grad-mid) 46%, var(--home-grad-end) 100%); }
.home-top { display: flex; justify-content: flex-end; padding: calc(20px + env(safe-area-inset-top)) var(--page-pad) 0; }
.home-room-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid #E7ECF3; border-radius: 999px;
  padding: 8px 12px 8px 11px; box-shadow: 0 2px 6px rgba(17,19,22,.06); max-width: 78%;
}
.home-room-chip .nm { font-size: 12px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.home-room-chip .sw { color: var(--blue); font-size: 13px; }
.home-room-chip .cv { color: #9AA6B4; font-size: 11px; }
.home-body { flex: 1; display: flex; flex-direction: column; padding: 0 var(--page-pad) 84px; }
.home-sp1 { flex: 1.15; }
.home-sp2 { flex: 1; }
.home-logo { width: 220px; max-width: 70%; margin: 0 auto; display: block; }
.home-state { text-align: center; font-size: 38px; font-weight: 700; color: var(--ink); margin-top: 30px; }
.home-state.breathe { animation: breathe 2.4s ease-in-out infinite; }
.home-state.ok { color: var(--green); }
.home-state.live { color: var(--pink); }
@keyframes breathe { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

/* ============ 登录 ============ */
#pg-login { background: #fff; }
.login-wrap { padding: calc(64px + env(safe-area-inset-top)) 30px 30px; }
.login-logo { width: 150px; margin: 0 auto; display: block; }
.login-title { text-align: center; font-size: 24px; font-weight: 700; margin-top: 18px; margin-bottom: 30px; }
.login-remember { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 16px; font-size: 12px; color: var(--gray); }
.ckbox {
  width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid #C2C7CF;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; margin-right: 6px; flex-shrink: 0;
}
.ckbox.on { background: var(--accent); border-color: var(--accent); }

/* ============ 配置页 ============ */
.pg-head { display: flex; align-items: center; justify-content: space-between; padding: var(--page-top) var(--page-pad) 10px; flex-shrink: 0; }
.pg-head .tt { font-size: 16px; font-weight: 700; }
.room-pill { background: #fff; border: 1px solid var(--line); border-radius: var(--r-14); padding: 6px 12px; font-size: 11px; color: var(--ink); max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 开播前检查 */
.setup-done { display: flex; align-items: center; gap: 11px; height: 52px; padding: 0 14px; color: var(--blue); font-weight: 700; font-size: 14px; cursor: pointer; }
.setup-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; }
.setup-head .t { flex: 1; font-size: 14px; font-weight: 700; }
.setup-head .cnt { font-size: 12px; color: var(--gray); }
.setup-head .tg { font-size: 12px; color: var(--blue); cursor: pointer; }
.setup-hint { padding: 0 14px 10px; font-size: 12px; color: var(--gray); }
.step {
  display: flex; align-items: center; gap: 11px; height: 48px;
  padding: 0 12px 0 14px; cursor: pointer;
}
.step + .step { border-top: 1px solid var(--hairline); margin-left: 29px; padding-left: 14px; }
.step .num {
  width: 18px; height: 18px; border-radius: 50%; background: var(--field);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--gray); flex-shrink: 0;
}
.step.done .num { background: var(--step-done); color: #fff; }
/* 当前该做的那一行：序号徽标蓝底白字（对齐安卓 bg_step_num_now） */
.step .num.now { background: var(--blue); color: #fff; }
.step .nm { flex: 1; font-size: 14px; color: var(--ink); }
/* 未完成项的项目名用 warn 橙（对齐安卓：done→ink / todo→orange_txt） */
.step .nm.warn { color: var(--orange-txt); }
.step .st { font-size: 12px; color: var(--gray); }
.step.done .st { color: var(--green); }
.step .hint { font-size: 12px; color: var(--blue); }
.step .go { width: 16px; height: 16px; color: #C9CDD4; font-size: 15px; }

/* ============ 通用列表容器 ============ */
.list { background: #fff; border: 1px solid var(--line); border-radius: var(--r-16); overflow: hidden; }
.list.flat { border-radius: var(--r-14); }
.inner-pad { padding: 12px; }
.ops-group { margin-top: 10px; }

/* ============ 我的 ============ */
#pg-my { background: var(--field); }
.my-hero {
  padding: calc(38px + env(safe-area-inset-top)) 20px 0;
  height: calc(174px + env(safe-area-inset-top));
  background: linear-gradient(180deg, var(--hero-soft-top) 0%, var(--hero-soft-mid) 55%, var(--hero-soft-end) 100%);
  display: flex; gap: 14px; align-items: flex-start;
}
.my-ava {
  width: 60px; height: 60px; border-radius: 19px; background: var(--brand-soft);
  border: 1px solid #DCE8FF; display: flex; align-items: center; justify-content: center;
  font-size: 23px; font-weight: 700; color: var(--blue); flex-shrink: 0;
}
.my-name { font-size: 18px; font-weight: 700; }
.my-member { font-size: 12px; color: var(--gray); margin-top: 5px; }
.my-coins { margin: -36px 16px 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-16); position: relative; }
.my-coins .top { display: flex; align-items: center; padding: 15px 16px 13px; }
.my-coins .k { font-size: 11.5px; color: var(--gray); }
.my-coins .v { font-size: 28px; font-weight: 700; margin-top: 3px; }
.my-coins .charge { background: var(--blue); color: #fff; border-radius: 999px; padding: 9px 18px; font-size: 13px; font-weight: 700; }
.my-bar { height: 5px; border-radius: 3px; background: var(--coins-bar-track); overflow: hidden; }
.my-bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #579BFF); border-radius: 3px; }
.grid4 { display: flex; background: #fff; border: 1px solid var(--line); border-radius: var(--r-16); margin: 14px 16px 0; }
.grid4 .cell { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 19px 0 17px; cursor: pointer; }
.grid4 .cell .gi { width: 46px; height: 46px; border-radius: 15px; background: var(--brand-soft); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.grid4 .cell .gt { font-size: 11.5px; color: var(--ink-sub); margin-top: 9px; }
.grid4 .sep { width: 1px; height: 46px; background: #F4F6F8; margin-top: 24px; }
.my-logout { margin: 14px 16px 0; height: 52px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-16); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--danger-red); }
.my-version { text-align: center; font-size: 10.5px; color: #B7BDC6; letter-spacing: .12em; padding: 22px 0 28px; }

/* ============ 历史 / 流水 ============ */
.his-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-14); padding: 13px 14px; margin-top: 10px; }
.his-card .top { display: flex; align-items: center; justify-content: space-between; }
.his-card .nm { font-size: 13.5px; font-weight: 600; }
.his-card .meta { font-size: 11px; color: var(--gray); margin-top: 5px; display: flex; gap: 12px; }
.his-card .nums { display: flex; margin-top: 10px; border-top: 1px solid var(--hairline); padding-top: 10px; }
.his-card .nums .n { flex: 1; text-align: center; }
.his-card .nums .v { font-size: 14px; font-weight: 700; }
.his-card .nums .k { font-size: 9.5px; color: var(--gray); margin-top: 2px; }
.filter-bar { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; }
.flow-item { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--hairline); }
.flow-item:first-child { border-top: none; }
.flow-item .ic { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.flow-item .main { flex: 1; min-width: 0; }
.flow-item .t { font-size: 12.5px; color: var(--ink); }
.flow-item .d { font-size: 10.5px; color: var(--gray); margin-top: 2px; }
.flow-item .amt { font-size: 14px; font-weight: 700; }
.amt.plus { color: var(--green); }
.amt.minus { color: var(--ink); }

/* ============ 充值 ============ */
.pay-methods { display: flex; gap: 10px; }
.pay-m { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-14); font-size: 13px; }
.pay-m.on { border-color: var(--blue); background: var(--brand-soft); color: var(--blue); font-weight: 600; }

/* ============ 教程 ============ */
.tu-head { padding: 64px 20px 16px; }
.tu-title { font-size: 20px; font-weight: 800; letter-spacing: -.2px; }
.tu-sub { font-size: 12px; color: var(--gray); margin-top: 4px; }
.tu-step { background: #fff; margin: 12px 16px 0; border: 1px solid var(--line); border-radius: var(--r-16); padding: 15px 16px; display: flex; gap: 12px; }
.tu-step .num { width: 26px; height: 26px; border-radius: 9px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.tu-step .nm { font-size: 13.5px; font-weight: 600; }
.tu-step .ds { font-size: 11px; color: var(--gray); margin-top: 3px; line-height: 1.6; }
.tu-faq { margin-top: 14px; padding: 0 16px 90px; }
.tu-faq .ft { font-size: 12px; color: var(--gray); font-weight: 700; margin-bottom: 8px; padding-top: 6px; }
.tu-faq .fc { background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 12px 14px; margin-bottom: 8px; font-size: 12.5px; line-height: 1.7; }
.tu-faq .fc b { display: block; margin-bottom: 4px; }

/* ============ 弹幕 / 对话（内联展示，非弹窗） ============ */
.dm-feed { display: flex; flex-direction: column; gap: 9px; }
.dm-pair { background: #fff; border: 1px solid var(--line); border-radius: var(--r-14); padding: 12px; }
.dm-pair .q { display: flex; gap: 8px; align-items: flex-start; }
.dm-pair .q .ava { width: 26px; height: 26px; border-radius: 50%; background: var(--field); display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--gray); flex-shrink: 0; }
.dm-pair .q p { font-size: 12.5px; color: #333; line-height: 1.5; flex: 1; }
.dm-pair .time { font-size: 10px; color: #C2C7CF; flex-shrink: 0; }
.dm-pair .a { margin-top: 9px; background: rgba(0,179,164,.08); border: 1px solid rgba(0,179,164,.25); border-radius: var(--r-md); padding: 9px 11px; display: flex; gap: 8px; font-size: 12px; color: var(--green-txt); line-height: 1.5; }
.dm-pair .a .badge { background: var(--pink); color: #fff; flex-shrink: 0; align-self: flex-start; }
.live-now {
  background: rgba(0,179,164,.10); border: 1px solid rgba(0,179,164,.30);
  border-radius: var(--r-14); padding: 11px 13px; font-size: 12.5px; color: var(--green-txt); line-height: 1.6;
  display: flex; gap: 9px; align-items: flex-start;
}
.live-now .badge { background: var(--cyan); color: #fff; flex-shrink: 0; }

/* 诊断（内联折叠） */
details.diag { background: #fff; border: 1px solid var(--line); border-radius: var(--r-16); margin-top: 10px; }
details.diag > summary { padding: 14px; font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; }
details.diag > summary::-webkit-details-marker { display: none; }
details.diag > summary::after { content: "▾"; float: right; color: var(--gray); }
details.diag[open] > summary::after { content: "▴"; }
details.diag .body { padding: 0 14px 14px; }
.kv { font-size: 11.5px; color: var(--gray); line-height: 1.9; }
.kv b { color: var(--ink); font-weight: 600; }
.log {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 10.5px; line-height: 1.7;
  color: #444; max-height: 220px; overflow-y: auto; white-space: pre-wrap; word-break: break-all;
}

/* ============ 知识库 ============ */
.kb-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 2px; border-bottom: 1px solid var(--hairline); }
.kb-item .q { flex: 1; font-size: 12.5px; line-height: 1.6; }
.kb-item .q b { color: var(--ink); }
.kb-item .q .a { color: var(--gray); margin-top: 3px; }
.kb-upload { border: 1.5px dashed var(--line); border-radius: var(--r-card); padding: 16px; text-align: center; font-size: 12px; color: var(--gray); cursor: pointer; }
.kb-upload b { color: var(--ink); }

/* 商品信息页 markdown 预览 */
.md-preview { background: var(--field); border-radius: var(--r-card); padding: 12px; font-size: 12px; line-height: 1.7; color: var(--ink-sub); white-space: pre-wrap; word-break: break-word; }

/* ============ 主播设置：音色下拉 ============ */
.voice-toggle { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-14); padding: 11px 10px 11px 14px; cursor: pointer; }
.voice-toggle .cur { flex: 1; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.voice-list { max-height: 260px; overflow-y: auto; margin-top: 10px; }
.voice-item { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: var(--r-md); cursor: pointer; }
.voice-item:hover { background: var(--field); }
.voice-item.on { background: var(--brand-soft); }
.voice-item .n { flex: 1; font-size: 13px; }
.voice-item .tag { font-size: 10px; color: var(--gray); }

/* ============ 开播中（直播页） ============ */
#pg-live { background: linear-gradient(180deg, #101216 0%, #181A20 55%, #0E1014 100%); color: #fff; }
#pg-live .pagehead .tt { color: #fff; }
#pg-live .back { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.14); color: #fff; }
.live-top { display: flex; align-items: center; justify-content: space-between; margin: 6px 16px 0; }
.live-room { font-size: 13px; font-weight: 600; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px rgba(255,77,109,.25); margin-right: 7px; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255,77,109,.08); } }
.live-chip { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 6px 12px; font-size: 11px; color: #E6E8EB; }
.live-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); border-radius: var(--r-16); padding: 14px; margin: 12px 16px 0; }
.live-card .lt { font-size: 12px; color: #9AA1AB; margin-bottom: 8px; }
.live-nowTxt { font-size: 13.5px; line-height: 1.6; color: #FFF; }
.live-ctrl { display: flex; gap: 10px; margin: 12px 16px 0; }
.live-ctrl .btn { flex: 1; }
.dm-live { display: flex; flex-direction: column; gap: 9px; max-height: 300px; overflow-y: auto; }
.dm-live-item { display: flex; gap: 9px; align-items: flex-start; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-card); padding: 9px 11px; }
.dm-live-item .ava { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.dm-live-item b { font-size: 11px; color: #C7CCD4; }
.dm-live-item b.ai { color: var(--pink); }
.dm-live-item p { font-size: 12px; color: #E8EAEE; margin-top: 3px; line-height: 1.5; }
.dm-live-item.ai { border-color: rgba(255,77,109,.25); }
