/* ============================================================
   班呼 · 老师发送端 设计系统 v2
   品牌渐变:紫→蓝(专业/科技感)  动作色:珊瑚橙(喊话/对讲的"暖")
   ============================================================ */
[v-cloak] { display: none; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #f3f4fb; -webkit-tap-highlight-color: transparent; }

:root {
  --brand1: #6a5cff;
  --brand2: #3d8bff;
  --brand-grad: linear-gradient(135deg, #6a5cff 0%, #3d8bff 100%);
  --accent: #ff5a8a;
  --accent2: #ff8a5c;
  --accent-grad: linear-gradient(135deg, #ff5a8a 0%, #ff8a5c 100%);
  --ok: #2fbf8f;
  --warn: #e8a54a;
  --err: #e05a5a;
  --ink: #23263b;
  --ink-2: #5a6480;
  --ink-3: #9aa2bd;
  --border: #e3e6f3;
  --border-light: #ecedf8;
  --card: #ffffff;
  --r-card: 18px;
  --r-ctl: 12px;
  --shadow-card: 0 4px 20px rgba(64, 72, 150, .07);
  --shadow-brand: 0 8px 22px rgba(106, 92, 255, .32);
  --shadow-accent: 0 8px 22px rgba(255, 90, 138, .30);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.mobile-broadcast {
  min-height: 100vh;
  color: var(--ink);
  font-size: 14px;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}
/* 页面氛围光斑 */
.mobile-broadcast::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(420px 320px at 8% -4%, rgba(106, 92, 255, .10), transparent 62%),
    radial-gradient(460px 340px at 96% 4%, rgba(255, 106, 138, .09), transparent 62%),
    radial-gradient(520px 420px at 50% 108%, rgba(61, 139, 255, .07), transparent 62%);
  background-color: #f3f4fb;
}

/* ===== 卡片基座 ===== */
.mb-card {
  background: var(--card);
  border-radius: var(--r-card);
  padding: 16px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(227, 230, 243, .7);
}

/* ===== 激活页（买家的第一眼） ===== */
.pa-activate {
  min-height: 92vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 16px;
}
.pa-act-card {
  width: 420px; max-width: 94vw; text-align: center;
  background: #fff; border-radius: 26px;
  padding: 46px 34px 36px;
  box-shadow: 0 18px 60px rgba(64, 72, 150, .14);
  position: relative; overflow: hidden;
  animation: pa-rise .5s cubic-bezier(.2, .8, .25, 1);
}
.pa-act-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: var(--brand-grad);
}
.pa-act-card::after {
  content: ''; position: absolute; right: -70px; top: -70px; width: 190px; height: 190px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 106, 138, .14), transparent 70%);
  pointer-events: none;
}
.pa-act-icon {
  font-size: 54px; width: 96px; height: 96px; margin: 0 auto; line-height: 96px;
  border-radius: 30px; background: var(--brand-grad);
  box-shadow: var(--shadow-brand);
  animation: pa-bob 3.2s ease-in-out infinite;
}
@keyframes pa-bob { 50% { transform: translateY(-7px); } }
@keyframes pa-rise { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.pa-act-card h1 { font-size: 25px; color: var(--ink); margin: 18px 0 6px; letter-spacing: 1px; }
.pa-act-card h1 b {
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pa-act-sub { font-size: 13px; color: var(--ink-3); margin: 0 0 26px; line-height: 1.7; }
.pa-act-field { position: relative; }
.pa-act-input {
  width: 100%; height: 58px; font-size: 19px; letter-spacing: 2px; text-align: center;
  text-transform: uppercase; color: var(--ink); outline: none;
  border: 2px solid var(--border); border-radius: 16px; background: #f8f9ff;
  font-family: ui-monospace, Consolas, monospace; font-weight: 600;
  transition: border-color .15s, box-shadow .15s;
}
.pa-act-input::placeholder { letter-spacing: 1px; color: #b9c0d8; font-weight: 400; font-family: inherit; }
.pa-act-input:focus { border-color: var(--brand1); box-shadow: 0 0 0 4px rgba(106, 92, 255, .14); background: #fff; }
.pa-act-btn {
  width: 100%; height: 56px; margin-top: 16px; font-size: 17px; letter-spacing: 4px; font-weight: 700;
  color: #fff; border: none; border-radius: 16px; cursor: pointer;
  background: var(--brand-grad); box-shadow: var(--shadow-brand);
  transition: transform .12s ease, box-shadow .2s, filter .2s;
}
.pa-act-btn:hover { filter: brightness(1.05); }
.pa-act-btn:active { transform: scale(.975); }
.pa-act-btn:disabled { opacity: .5; box-shadow: none; cursor: default; }
.pa-act-tip { margin-top: 18px; font-size: 12px; color: var(--ink-3); line-height: 1.8; }
.pa-act-foot { margin-top: 18px; font-size: 12px; color: var(--ink-3); }
.pa-act-foot a { color: var(--brand1); text-decoration: none; font-weight: 600; }
.pa-act-error { color: var(--err); font-size: 12px; min-height: 18px; margin: 10px 0 0; }
.pa-act-error:not(:empty) { animation: pa-shake .4s ease; }
@keyframes pa-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.pa-act-feats { display: flex; gap: 8px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.pa-act-feat {
  font-size: 11px; color: var(--ink-2); padding: 5px 11px; border-radius: 999px;
  background: #f4f5fd; border: 1px solid var(--border-light);
}

/* ===== 顶部（吸顶玻璃） ===== */
.mb-head-card {
  position: sticky; top: 10px; z-index: 50;
  margin-bottom: 12px; padding: 14px 16px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(227, 230, 243, .8);
}
.mb-brand-row { display: flex; align-items: center; gap: 10px; }
.mb-logo {
  width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0;
  background: var(--brand-grad); display: flex; align-items: center; justify-content: center;
  font-size: 17px; box-shadow: 0 4px 12px rgba(106, 92, 255, .3);
}
.mb-title { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: .5px; }
.mb-subtitle { font-size: 11px; color: var(--ink-3); margin-left: auto; }
.mb-me {
  font-size: 12px; color: var(--brand1); cursor: pointer; padding: 4px 10px; border-radius: 999px;
  border: 1px solid rgba(106, 92, 255, .3); background: rgba(106, 92, 255, .06); font-weight: 600;
}
.mb-me-panel { margin-top: 12px; border-top: 1px dashed var(--border-light); padding-top: 10px; font-size: 12px; animation: pa-fade .18s ease; }
.mb-me-row { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.mb-me-row.muted { color: var(--ink-3); }
.mb-me-row.ops { gap: 18px; margin-bottom: 0; }
.mb-me-input { max-width: 150px; height: 32px; }
.mb-link { color: var(--brand1); cursor: pointer; font-weight: 600; }
.mb-link.danger { color: var(--err); }

/* 班级码展示条：老师必须把这个码抄到教室电脑，给它排面 */
.pa-code-strip {
  margin-top: 12px; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(106, 92, 255, .08), rgba(61, 139, 255, .08));
  border: 1px dashed rgba(106, 92, 255, .4);
  animation: pa-fade .2s ease;
}
.pa-code-label { font-size: 12px; color: var(--ink-2); flex-shrink: 0; }
.pa-code-num {
  font-family: ui-monospace, Consolas, monospace; font-size: 22px; font-weight: 700;
  letter-spacing: 4px; color: var(--brand1);
}
.pa-code-copy {
  margin-left: auto; flex-shrink: 0; cursor: pointer; font-size: 12px; font-weight: 600;
  color: #fff; padding: 6px 14px; border-radius: 999px; border: none;
  background: var(--brand-grad); transition: transform .12s;
}
.pa-code-copy:active { transform: scale(.94); }
.pa-code-copy.ghost {
  background: #fff; color: var(--brand1);
  border: 1px solid rgba(106, 92, 255, .45); margin-left: auto;
}
.pa-link-strip {
  margin-top: 6px; display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 12px; background: #f7f8fd;
  border: 1px solid var(--border);
}
.pa-link-url {
  flex: 1; min-width: 0; font-size: 12px; color: var(--ink-2);
  font-family: ui-monospace, Consolas, monospace;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pa-link-strip .mb-link { font-size: 12px; flex-shrink: 0; }
.pa-link-strip .pa-code-copy { padding: 4px 10px; }

.mb-class-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.mb-class-label { font-size: 13px; font-weight: 600; color: var(--ink-2); flex-shrink: 0; }
.mb-class-select {
  flex: 1; height: 42px; border-radius: 12px; border: 1px solid var(--border);
  background: #f8f9ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aa2bd' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--ink); font-size: 14px; font-weight: 600; padding: 0 34px 0 12px; outline: none;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.mb-class-select:focus { border-color: var(--brand1); box-shadow: 0 0 0 3px rgba(106, 92, 255, .12); }
.mb-class-add, .mb-class-del {
  width: 36px; height: 36px; border-radius: 12px; flex-shrink: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 17px; font-style: normal;
  background: rgba(106, 92, 255, .08); border: 1px solid rgba(106, 92, 255, .25); color: var(--brand1);
  transition: transform .12s, background .15s; font-weight: 700;
}
.mb-class-add:active, .mb-class-del:active { transform: scale(.9); }
.mb-class-del { background: rgba(224, 90, 90, .07); border-color: rgba(224, 90, 90, .25); color: var(--err); }
.mb-newclass { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; align-items: center; animation: pa-fade .2s ease; }
.mb-newclass-code { font-size: 12px; color: var(--ok); width: 100%; font-weight: 600; }
.mb-newclass-code b { font-size: 16px; letter-spacing: 3px; }

/* 空状态引导 */
.pa-steps { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #f8f9ff; border: 1px solid var(--border-light); }
.pa-step { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; font-size: 12.5px; color: var(--ink-2); }
.pa-step-n {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; color: #fff; background: var(--brand-grad);
}

/* ===== Tab 分段器 ===== */
.mb-tabs {
  display: flex; gap: 4px; margin-bottom: 12px; padding: 4px;
  background: rgba(233, 235, 246, .9); border-radius: 14px;
}
.mb-tab {
  flex: 1; text-align: center; padding: 10px 0; border-radius: 11px; cursor: pointer;
  font-size: 13.5px; font-weight: 700; color: var(--ink-2);
  transition: all .18s ease; border: none; background: transparent;
}
.mb-tab.active {
  color: #fff; background: var(--brand-grad);
  box-shadow: 0 4px 14px rgba(106, 92, 255, .35);
}

.mb-pane { animation: pa-slidein .22s cubic-bezier(.2, .8, .25, 1); }
@keyframes pa-slidein { from { opacity: 0; transform: translateY(8px); } }
@keyframes pa-fade { from { opacity: 0; } }

/* ===== 分组标签 ===== */
.mb-label {
  display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink);
  margin: 16px 0 8px;
}
.mb-label:first-child { margin-top: 0; }
.mb-label::before {
  content: ''; width: 4px; height: 14px; border-radius: 4px; background: var(--brand-grad); flex-shrink: 0;
}
.mb-note { font-weight: 400; font-size: 11px; color: var(--ink-3); }

.mb-textarea {
  width: 100%; min-height: 118px; border-radius: 14px; border: 1.5px solid var(--border);
  padding: 12px 14px; font-size: 15px; line-height: 1.7; outline: none; resize: vertical;
  color: var(--ink); background: #f8f9ff; font-family: inherit;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.mb-textarea::placeholder { color: #b9c0d8; }
.mb-textarea:focus { border-color: var(--brand1); box-shadow: 0 0 0 4px rgba(106, 92, 255, .1); background: #fff; }

/* 快捷语：多彩胶囊 */
.mb-quick-row { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }
.mb-quick-chip {
  font-size: 12px; padding: 6px 13px; border-radius: 999px; cursor: pointer; font-weight: 500;
  background: rgba(47, 191, 143, .09); color: #1f9a72; border: 1px solid rgba(47, 191, 143, .3);
  transition: transform .12s ease, filter .15s;
}
.mb-quick-chip:nth-child(4n+2) { background: rgba(106, 92, 255, .08); color: #5a4ce0; border-color: rgba(106, 92, 255, .3); }
.mb-quick-chip:nth-child(4n+3) { background: rgba(255, 138, 92, .1); color: #d96a35; border-color: rgba(255, 138, 92, .35); }
.mb-quick-chip:nth-child(4n) { background: rgba(61, 139, 255, .08); color: #2f6fd8; border-color: rgba(61, 139, 255, .3); }
.mb-quick-chip:active { transform: scale(.93); }

/* ===== 投屏主题 ===== */
.mb-theme-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 8px; }
.mb-theme-card {
  text-align: center; cursor: pointer; border-radius: 14px; padding: 6px;
  border: 2px solid transparent; transition: all .16s ease; background: #f8f9ff;
}
.mb-theme-card:active { transform: scale(.95); }
.mb-theme-card.active {
  border-color: var(--brand1); background: #fff;
  box-shadow: 0 6px 18px rgba(106, 92, 255, .18);
}
.mb-theme-swatch {
  height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 19px; position: relative; overflow: hidden;
}
.mb-theme-swatch::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.22), transparent 45%);
}
.mb-theme-name { font-size: 11px; margin-top: 5px; color: var(--ink-2); }
.mb-theme-card.active .mb-theme-name { color: var(--brand1); font-weight: 700; }

/* 大屏预览：模拟屏幕小窗 */
.mb-preview {
  margin-top: 12px; border-radius: 16px; height: 118px; position: relative;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, .18), 0 8px 22px rgba(64, 72, 150, .14);
}
.mb-preview::before {
  content: '大屏预览'; position: absolute; left: 10px; top: 8px; font-size: 10px; color: rgba(255,255,255,.65);
  background: rgba(0,0,0,.25); padding: 2px 8px; border-radius: 999px; letter-spacing: 1px;
}
.mb-tp-emoji { font-size: 26px; margin-right: 10px; animation: pa-bob 3s ease-in-out infinite; }
.mb-tp-text {
  color: #fff; font-size: 17px; font-weight: 700; max-width: 66%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0,0,0,.55); letter-spacing: 1px;
}
.mb-tp-tag {
  position: absolute; right: 10px; top: 8px; font-size: 11px; color: #fff;
  background: rgba(0,0,0,.28); padding: 3px 10px; border-radius: 999px;
}

/* ===== 场景配图 ===== */
.mb-img-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; margin-top: 8px; }
.mb-img-cell {
  position: relative; height: 58px; border-radius: 12px; overflow: hidden;
  background: rgba(35, 38, 59, .05);
}
.mb-img-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mb-img-cell.add {
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  border: 1.5px dashed #ccd3ea; color: var(--ink-3); font-size: 22px; background: #f8f9ff;
  transition: border-color .15s, color .15s;
}
.mb-img-cell.add:hover { border-color: var(--brand1); color: var(--brand1); }
.mb-img-del {
  position: absolute; top: 3px; right: 3px; width: 19px; height: 19px; line-height: 18px;
  text-align: center; border-radius: 50%; background: rgba(23, 26, 43, .6); color: #fff;
  font-size: 12px; cursor: pointer; font-style: normal; backdrop-filter: blur(2px);
}
.mb-img-idx {
  position: absolute; top: 3px; left: 3px; min-width: 17px; height: 17px; line-height: 17px;
  text-align: center; border-radius: 9px; background: var(--brand-grad); color: #fff;
  font-size: 10px; padding: 0 4px; font-weight: 700;
}
.mb-img-move {
  position: absolute; bottom: 3px; width: 19px; height: 19px; line-height: 17px;
  text-align: center; border-radius: 50%; background: rgba(23, 26, 43, .6); color: #fff;
  font-size: 13px; cursor: pointer; font-style: normal; backdrop-filter: blur(2px);
}
.mb-img-move.left { left: 3px; }
.mb-img-move.right { right: 3px; }
.mb-img-move:active { background: var(--brand1); }

/* ===== 选项行 / 滑杆 ===== */
.mb-opt-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.mb-opt-name { flex: 0 0 58px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.mb-cards { display: flex; gap: 7px; flex-wrap: wrap; }
.mb-mini-card {
  font-size: 12px; padding: 6px 13px; border-radius: 10px; cursor: pointer; font-weight: 600;
  background: #fff; border: 1.5px solid var(--border-light); color: var(--ink-2); transition: all .13s;
}
.mb-mini-card.active { border-color: var(--brand1); background: rgba(106, 92, 255, .07); color: var(--brand1); }
.mb-range {
  flex: 1; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px;
  background:
    linear-gradient(90deg, var(--brand1), var(--brand2)) 0 0 / var(--fill, 50%) 100% no-repeat,
    #e6e9f5;
  outline: none; cursor: pointer;
}
.mb-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--brand1);
  box-shadow: 0 2px 10px rgba(35, 38, 59, .22);
  transition: transform .12s;
}
.mb-range::-webkit-slider-thumb:active { transform: scale(1.2); }
.mb-range::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  border: 2.5px solid var(--brand1); box-shadow: 0 2px 10px rgba(35, 38, 59, .22);
}
.mb-slider-val { flex: 0 0 46px; font-size: 12px; color: var(--brand1); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* ===== 朗读角色 ===== */
.mb-voice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 8px; }
.mb-voice-card {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 11px 2px; border-radius: 12px; cursor: pointer; font-size: 12px;
  border: 1.5px solid var(--border-light); background: #f8f9ff; color: var(--ink-2);
  transition: all .15s ease;
}
.mb-voice-card:active { transform: scale(.95); }
.mb-voice-card.active {
  border-color: transparent; background: var(--brand-grad); color: #fff;
  box-shadow: 0 6px 16px rgba(106, 92, 255, .28);
}
.mb-voice-card.active .mb-vc-name { color: #fff; font-weight: 700; }
.mb-vc-emoji { font-size: 14px; }
.mb-vc-name { font-size: 12px; }
.mb-ghost-btn {
  margin-top: 12px; font-size: 12.5px; padding: 8px 18px; border-radius: 10px; cursor: pointer;
  border: 1.5px solid rgba(106, 92, 255, .35); background: rgba(106, 92, 255, .05);
  color: var(--brand1); font-weight: 600; transition: all .15s;
}
.mb-ghost-btn:active { transform: scale(.96); background: rgba(106, 92, 255, .12); }

/* ===== 老师原声 ===== */
.mb-rec-box {
  margin-top: 8px; padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 138, 92, .06), rgba(255, 90, 138, .06));
  border: 1px solid rgba(255, 106, 138, .25);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.mb-rec-btn {
  padding: 10px 19px; border-radius: 999px; border: 1.5px solid rgba(255, 106, 138, .4); cursor: pointer;
  background: rgba(255, 106, 138, .07); color: #d9503a; font-size: 13px; font-weight: 700; transition: all .15s;
}
.mb-rec-btn:active { transform: scale(.95); }
.mb-rec-btn.rec { background: var(--accent-grad); color: #fff; border-color: transparent; animation: rec-pulse 1.1s infinite; box-shadow: var(--shadow-accent); }
.mb-rec-btn.upload { border-color: rgba(106, 92, 255, .35); background: rgba(106, 92, 255, .06); color: var(--brand1); }
.mb-rec-btn:disabled { opacity: .5; }
@keyframes rec-pulse { 50% { opacity: .75; } }
.mb-rec-tip { font-size: 11px; color: var(--ink-3); }
.mb-rec-done { display: flex; align-items: center; gap: 12px; width: 100%; }
.mb-rec-play { font-size: 13px; color: var(--ok); cursor: pointer; font-weight: 700; }
.mb-rec-dur { font-size: 12px; color: var(--ink-3); }
.mb-rec-op { font-size: 12px; color: var(--brand1); cursor: pointer; font-weight: 600; }
.mb-rec-del { font-size: 15px; color: var(--err); cursor: pointer; margin-left: auto; font-style: normal; }

/* ===== 双向对讲（产品王牌，给足视觉分量） ===== */
.mb-icom {
  margin-bottom: 12px; padding: 14px; border-radius: var(--r-card);
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(135deg, rgba(255, 90, 138, .55), rgba(255, 138, 92, .55)) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 6px 22px rgba(255, 106, 138, .12);
}
.mb-icom-btn {
  width: 100%; padding: 15px 0; border-radius: 14px; border: none; cursor: pointer;
  font-size: 15.5px; font-weight: 800; letter-spacing: 1px; color: #fff;
  background: var(--accent-grad);
  box-shadow: var(--shadow-accent);
  transition: all .15s ease; position: relative;
}
.mb-icom-btn:active { transform: scale(.98); }
.mb-icom-btn.on {
  background: linear-gradient(135deg, #e05555, #c0392b);
  animation: icom-pulse 1.2s infinite;
}
.mb-icom-btn:disabled { opacity: .65; }
@keyframes icom-pulse { 50% { opacity: .82; } }
.mb-icom-hint { margin-top: 8px; font-size: 11.5px; color: var(--ink-3); text-align: center; }
.mb-icom-gain {
  display: flex; align-items: center; gap: 12px; margin-top: 10px;
  padding: 9px 13px; border-radius: 12px;
  background: rgba(255, 106, 138, .06); border: 1px solid rgba(255, 106, 138, .18);
}
.mb-icom-gain-label { flex: 0 0 96px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.mb-icom-gain .mb-range { background: linear-gradient(90deg, #ff5a8a, #ff8a5c) 0 0 / var(--fill, 50%) 100% no-repeat, #ffe3ea; }
.mb-icom-gain .mb-range::-webkit-slider-thumb { border-color: var(--accent); }
.mb-icom-nomic {
  margin-top: 8px; padding: 9px 13px; border-radius: 12px; font-size: 12px;
  background: rgba(255, 143, 122, .1); border: 1px solid rgba(255, 143, 122, .35); color: #c0563a;
  animation: pa-fade .25s ease;
}

/* ===== 发送按钮（主行动点） ===== */
.mb-send-btn {
  width: 100%; margin-top: 18px; padding: 16px 0; border-radius: 16px; border: none; cursor: pointer;
  font-size: 16.5px; font-weight: 800; letter-spacing: 3px; color: #fff;
  background: var(--brand-grad); box-shadow: var(--shadow-brand);
  transition: all .15s ease; position: relative; overflow: hidden;
}
.mb-send-btn::after {
  content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg); animation: pa-shine 3.2s ease infinite;
}
@keyframes pa-shine { 0%, 60% { left: -80%; } 100% { left: 130%; } }
.mb-send-btn:active { transform: scale(.98); }
.mb-send-btn:disabled { opacity: .45; box-shadow: none; cursor: default; }
.mb-send-btn.is-sent { background: linear-gradient(135deg, #2fbf8f, #23a37a); box-shadow: 0 8px 22px rgba(47, 191, 143, .35); }
.mb-send-btn.is-sent::after { animation: none; }
.pa-spin {
  display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  animation: pa-rotate .7s linear infinite; margin-right: 6px;
}
@keyframes pa-rotate { to { transform: rotate(360deg); } }

/* ===== 定时播报 ===== */
.mb-tpl-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.mb-tpl-chip.blue {
  font-size: 12px; padding: 6px 13px; border-radius: 999px; cursor: pointer; font-weight: 500;
  background: rgba(61, 139, 255, .09); color: #2f6fd8; border: 1px dashed rgba(61, 139, 255, .45);
  transition: transform .12s;
}
.mb-tpl-chip.blue:active { transform: scale(.95); }
.mb-tip { font-size: 12px; color: var(--ink-3); padding: 4px 0; }
.mb-schedule-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 12px; border-radius: 12px; background: #f8f9ff; border: 1px solid var(--border-light);
  margin-bottom: 7px; transition: box-shadow .15s;
}
.mb-schedule-item:hover { box-shadow: 0 3px 12px rgba(64, 72, 150, .08); }
.mb-sc-main { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; }
.mb-sc-time { font-weight: 800; color: #2f6fd8; font-variant-numeric: tabular-nums; flex-shrink: 0; font-size: 15px; }
.mb-sc-name { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.mb-sc-week { font-size: 11px; color: var(--ink-3); background: rgba(35, 38, 59, .05); padding: 2px 8px; border-radius: 999px; flex-shrink: 0; }
.mb-sc-ops { display: flex; align-items: center; gap: 12px; margin-left: 8px; }
.mb-sc-del { color: var(--err); cursor: pointer; font-size: 14px; font-style: normal; opacity: .75; }
.mb-sc-del:hover { opacity: 1; }
.mb-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.mb-switch input { opacity: 0; width: 0; height: 0; }
.mb-switch span { position: absolute; inset: 0; border-radius: 999px; background: #ccd3ea; transition: .2s; cursor: pointer; }
.mb-switch span::before {
  content: ''; position: absolute; width: 19px; height: 19px; left: 2.5px; top: 2.5px;
  border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.mb-switch input:checked + span { background: var(--brand-grad); }
.mb-switch input:checked + span::before { transform: translateX(18px); }

.mb-schedule-form {
  margin-top: 10px; padding: 14px; border-radius: 14px;
  background: #f8f9ff; border: 1px solid var(--border-light);
  display: flex; flex-direction: column; gap: 9px;
  animation: pa-slidein .22s ease;
}
.mb-form-row { display: flex; gap: 8px; }
.mb-input {
  flex: 1; min-width: 0; height: 42px; border-radius: 12px; border: 1.5px solid var(--border);
  padding: 0 12px; font-size: 13px; outline: none; background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.mb-input::placeholder { color: #b9c0d8; }
.mb-input:focus { border-color: var(--brand1); box-shadow: 0 0 0 3px rgba(106, 92, 255, .1); }
.mb-time {
  flex: 0 0 128px; max-width: 128px; font-size: 15px; font-weight: 700; text-align: center;
  -webkit-appearance: none; appearance: none;
}
.mb-block-label { font-size: 13px; font-weight: 700; color: var(--ink); margin: 4px 0 2px; }
.mb-mini-note { font-weight: 400; font-size: 11px; color: var(--ink-3); }
.mb-weekday-cards { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.mb-weekday-card {
  width: 52px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; cursor: pointer; font-size: 13px; font-weight: 600;
  border: 1.5px solid var(--border-light); background: #fff; color: var(--ink-2); transition: all .13s;
}
.mb-weekday-card:active { transform: scale(.93); }
.mb-weekday-card.active { border-color: var(--brand1); background: rgba(106, 92, 255, .08); color: var(--brand1); }
.mb-save-btn {
  width: 100%; padding: 14px 0; border-radius: 14px; border: none; cursor: pointer;
  font-size: 15px; font-weight: 800; letter-spacing: 2px; color: #fff;
  background: var(--brand-grad); box-shadow: var(--shadow-brand);
  transition: all .15s ease;
}
.mb-save-btn:active { transform: scale(.98); }
.mb-save-btn:disabled { opacity: .35; box-shadow: none; }
.mb-save-btn.mini { width: auto; padding: 9px 26px; font-size: 13px; border-radius: 11px; letter-spacing: 1px; }
.mb-add-schedule-btn {
  width: 100%; margin-top: 10px; padding: 14px 0; border-radius: 14px; cursor: pointer;
  border: 2px dashed rgba(106, 92, 255, .4); background: rgba(106, 92, 255, .04);
  color: var(--brand1); font-size: 14px; font-weight: 700; transition: all .15s;
}
.mb-add-schedule-btn:active { transform: scale(.98); background: rgba(106, 92, 255, .09); }

/* ===== toast ===== */
.pa-toasts {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 9999; display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none; width: max-content; max-width: 92vw;
}
.pa-toast {
  padding: 11px 20px; border-radius: 14px; font-size: 13.5px; max-width: 92vw;
  color: #fff; background: rgba(35, 38, 59, .92);
  box-shadow: 0 10px 32px rgba(23, 26, 43, .3);
  animation: pa-toast-in .25s cubic-bezier(.2, .8, .25, 1);
  transition: opacity .3s, transform .3s; backdrop-filter: blur(8px); font-weight: 500;
}
.pa-toast.out { opacity: 0; transform: translateY(-10px); }
.pa-toast-ok { background: rgba(35, 154, 111, .95); }
.pa-toast-warn { background: rgba(196, 138, 42, .95); }
.pa-toast-error { background: rgba(203, 74, 60, .95); }
@keyframes pa-toast-in { from { opacity: 0; transform: translateY(-12px) scale(.96); } }

.pa-screen-status {
  margin-top: 6px; display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ink-2);
}
.pa-screen-status.on { color: #0a8f4c; font-weight: 600; }
.pa-screen-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: #c3c9dd;
}
.pa-screen-status.on .pa-screen-dot {
  background: #16b364; box-shadow: 0 0 0 3px rgba(22, 179, 100, .15);
}
