/**
 * 大声发 · 播音台（客户端）样式
 * 阚荣浩 2026-10-30
 * 与门户/登录页保持同一套视觉语言：青绿主色 + 大留白 + 圆角卡片
 */

:root{
  --brand:#16baaa;
  --brand-2:#0d9488;
  --brand-soft:#e7f7f5;
  --ink:#152726;
  --ink-2:#4b615f;
  --muted:#8ba3a1;
  --line:#e9efee;
  --bg:#f4f8f8;
  --card:#ffffff;
  --r:16px;
  --sh:0 8px 28px rgba(13,148,136,.07);
  --sh-hover:0 14px 34px rgba(13,148,136,.13);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;background:var(--bg);color:var(--ink);
  font:14px/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-thumb{background:#d6e3e1;border-radius:8px}
::-webkit-scrollbar-thumb:hover{background:#c2d6d3}
::-webkit-scrollbar-track{background:transparent}

/* ================= 布局骨架 ================= */
.app{display:grid;grid-template-columns:238px 1fr;height:100vh;overflow:hidden}

/* ---------- 左侧导航 ---------- */
.rail{
  background:#fff;border-right:1px solid var(--line);
  display:flex;flex-direction:column;padding:20px 14px 16px;
}
.rail-brand{display:flex;align-items:center;gap:10px;padding:0 8px 18px}
.rail-logo{
  width:36px;height:36px;border-radius:11px;display:grid;place-items:center;
  background:linear-gradient(135deg,#16baaa,#0d9488);color:#fff;font-size:18px;
  box-shadow:0 6px 16px rgba(13,148,136,.28);
}
.rail-name{font-size:16px;font-weight:700;letter-spacing:.3px;line-height:1.2}
.rail-name em{display:block;font-style:normal;font-size:11px;font-weight:500;color:var(--muted);letter-spacing:2px}

.rail-nav{display:flex;flex-direction:column;gap:4px;margin-top:6px}
.rail-item{
  display:flex;align-items:center;gap:11px;height:44px;padding:0 12px;border-radius:11px;
  color:var(--ink-2);font-size:14px;font-weight:500;transition:.18s;cursor:pointer;position:relative;
}
.rail-item .layui-icon{font-size:17px;color:#9fb4b2;transition:.18s}
.rail-item .mi-ico{width:17px;height:17px;flex:0 0 17px;color:#9fb4b2;transition:.18s}
.rail-item:hover{background:#f4faf9;color:var(--ink)}
.rail-item:hover .layui-icon,.rail-item:hover .mi-ico{color:var(--brand)}
.rail-item.on{background:var(--brand-soft);color:var(--brand-2);font-weight:600}
.rail-item.on .layui-icon,.rail-item.on .mi-ico{color:var(--brand-2)}
.rail-item.on::before{
  content:"";position:absolute;left:-14px;top:12px;width:3px;height:20px;
  border-radius:0 3px 3px 0;background:linear-gradient(#16baaa,#0d9488);
}

.rail-foot{margin-top:auto;display:flex;flex-direction:column;gap:2px;padding-top:14px;border-top:1px solid var(--line)}
.rail-mini{
  display:flex;align-items:center;gap:9px;height:36px;padding:0 12px;border-radius:9px;
  font-size:13px;color:var(--muted);cursor:pointer;transition:.16s;
}
/* 阚荣浩 2026-12-05：播报记录 / 我的授权 的「手机端副本」，只在底部「我的」浮层里出现，
   桌面和 iPad（侧栏还看得见）一律隐藏，避免和侧栏顶部重复 */
.rail-mini-pane{display:none}
.rail-mini .layui-icon{font-size:15px}
/* 内联 SVG 图标（layui 图标集里没有的项，如意见反馈/邀请/授权） */
.mi-ico{width:15px;height:15px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 15px}
.mi-ico svg{width:100%;height:100%}
.rail-mini:hover{background:#f4faf9;color:var(--brand-2)}
.rail-mini.danger:hover{background:#fff1f0;color:#e05b4d}

/* ---------- 主区 ---------- */
.main{display:flex;flex-direction:column;min-width:0;overflow:hidden}
.topbar{
  height:66px;flex:0 0 66px;background:#fff;border-bottom:1px solid var(--line);
  display:flex;align-items:center;justify-content:space-between;padding:0 26px;
}
.topbar-l{display:flex;align-items:baseline;gap:12px;min-width:0}
.topbar h1{margin:0;font-size:18px;font-weight:700;letter-spacing:.2px}
.topbar-sub{font-size:12.5px;color:var(--muted)}
.topbar-r{display:flex;align-items:center;gap:12px}

.chip-btn{
  display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 13px;border-radius:999px;
  border:1px solid var(--line);background:#fff;color:var(--ink-2);font-size:12.5px;cursor:pointer;transition:.16s;
}
.chip-btn:hover{border-color:#bfe4df;color:var(--brand-2);background:#f7fdfc}
/* 阚荣浩 2026-12-05：顶栏「返回官网」只在手机端出现（≤640 改 inline-flex），
   桌面侧栏底部本来就满，浏览器地址栏随时能回官网，不需要这个入口。 */
.chip-home{display:none}
.chip-btn em{
  font-style:normal;min-width:17px;height:17px;line-height:17px;text-align:center;border-radius:9px;
  background:#ff6b5e;color:#fff;font-size:11px;padding:0 4px;
}
.user-chip{display:flex;align-items:center;gap:8px;padding-left:4px;cursor:pointer}
.user-chip:hover .user-name{color:var(--brand-2)}
.user-chip:hover .avatar{box-shadow:0 0 0 3px rgba(22,186,170,.16)}
.avatar{
  width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-size:13px;font-weight:700;
  color:#fff;background:linear-gradient(135deg,#16baaa,#0d9488);overflow:hidden;flex:none;
  transition:box-shadow .16s;
}
/* 上传过头像就显示照片，没有图仍是昵称首字（阚荣浩 2026-12-05） */
.avatar img{width:100%;height:100%;object-fit:cover;display:block}
.avatar.has-img{background:#eef6f5}
.user-name{font-size:13px;color:var(--ink-2);max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.panes{flex:1;overflow:auto;padding:22px 26px 30px}
.pane{display:none;animation:fadeUp .28s ease both}
.pane.on{display:block}
@keyframes fadeUp{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* ================= 卡片 ================= */
.card{
  background:var(--card);border-radius:var(--r);border:1px solid rgba(13,148,136,.07);
  box-shadow:var(--sh);overflow:hidden;display:flex;flex-direction:column;
}
.card.fill{min-height:calc(100vh - 130px)}
.card-hd{
  display:flex;align-items:center;gap:8px;padding:15px 20px;border-bottom:1px solid var(--line);
  font-size:14.5px;font-weight:600;color:var(--ink);
}
.card-hd>.layui-icon{font-size:16px;color:var(--brand)}
.card-bd{padding:20px}
.card-bd.tight{padding:12px 16px}
.hd-hint{font-size:12px;font-weight:400;color:var(--muted);margin-left:2px}
.hd-link{margin-left:auto;font-size:12.5px;color:var(--brand-2);cursor:pointer;font-weight:500}
.hd-link:hover{text-decoration:underline}

.grid-broadcast{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,.9fr);gap:18px;align-items:start}
.grid-license{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.85fr);gap:18px;align-items:start}
/* 阚荣浩 2026-12-03：现场喊话两列，左大按钮右说明 */
.grid-live{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.85fr);gap:18px;align-items:start}
.col-right{display:flex;flex-direction:column;gap:18px;min-width:0}

/* ================= 现场喊话（阚荣浩 2026-12-03） =================
 * 客户文化水平低：一个超大按钮、一行大白话状态，其余全部是提示文字。
 * 按钮绿=没开、红=正在喊、灰=被播报临时静音，颜色本身就是状态。 */
.live-btn{
  width:100%;min-height:136px;padding:18px;border:0;border-radius:18px;cursor:pointer;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;
  font-family:inherit;      /* button 默认不继承正文字体，不写会变成宋体感 */
  background:linear-gradient(135deg,#16baaa,#0d9488);color:#fff;
  box-shadow:0 12px 30px rgba(13,148,136,.26);transition:transform .18s,box-shadow .18s,background .18s;
}
.live-btn .layui-icon{font-size:31px}
.live-btn b{font-size:22px;font-weight:700;letter-spacing:1.5px}
.live-btn em{font-style:normal;font-size:12.5px;opacity:.85}
.live-btn:hover{transform:translateY(-1px);box-shadow:0 14px 34px rgba(13,148,136,.3)}
.live-btn:active{transform:none}
.live-btn.on{background:linear-gradient(135deg,#ef6b5c,#d94f3f);box-shadow:0 12px 30px rgba(217,79,63,.28)}
.live-btn.on .layui-icon{animation:livePulse 1.4s ease-in-out infinite}
.live-btn.muted{background:linear-gradient(135deg,#9aa8a6,#7d8b99);box-shadow:0 8px 20px rgba(44,44,42,.14)}
@keyframes livePulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(.9)}}

.live-meter{height:10px;border-radius:6px;background:#eef3f2;margin:16px 0 8px;overflow:hidden}
.live-meter i{display:block;height:100%;width:0;border-radius:6px;background:linear-gradient(90deg,#5dcfbf,#16baaa);transition:width .08s linear}
.live-meter.hot i{background:linear-gradient(90deg,#f0a45c,#e0664f)}
.live-state{font-size:12.5px;color:var(--muted);text-align:center;line-height:1.6}
.live-state.on{color:var(--brand-2);font-weight:600}
.live-state.muted{color:#b07c22;font-weight:600}
.live-state.err{color:#d94f3f;font-weight:600}

.live-note{padding:11px 2px;border-bottom:1px dashed var(--line)}
.live-note:last-child{border-bottom:0;padding-bottom:2px}
.live-note b{display:block;font-size:13px;color:var(--ink);margin-bottom:3px}
.live-note span{font-size:12.5px;color:var(--muted);line-height:1.65}

/* ================= 表单 ================= */
.field{margin-bottom:16px}
.field>label{display:block;font-size:12.5px;color:var(--ink-2);font-weight:600;margin-bottom:7px}
.field-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}

.sel,.inp,.ta{
  width:100%;height:42px;border:1px solid var(--line);border-radius:11px;padding:0 12px;
  font-size:14px;color:var(--ink);background:#fbfdfd;outline:none;transition:.18s;
  font-family:inherit;
}
.sel{appearance:none;background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%238ba3a1' d='M6 8 0 0h12z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center;padding-right:32px;cursor:pointer}
.sel:focus,.inp:focus,.ta:focus{border-color:var(--brand);background:#fff;box-shadow:0 0 0 3px rgba(22,186,170,.13)}
.ta{height:128px;padding:12px 13px;line-height:1.75;resize:vertical}
.ta-foot{display:flex;justify-content:space-between;margin-top:7px;font-size:12px;color:var(--muted)}
.ta-count b{color:var(--brand-2)}

.vol-val{color:var(--brand-2);font-size:13px}
.vol-line{display:flex;align-items:center;gap:14px}
.vol-num{width:76px;text-align:center;flex:0 0 76px}
input[type=range]{
  -webkit-appearance:none;appearance:none;flex:1;height:6px;border-radius:6px;outline:none;
  background:linear-gradient(90deg,#16baaa 0%,#16baaa 60%,#e6efee 60%,#e6efee 100%);
}
input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none;width:18px;height:18px;border-radius:50%;background:#fff;
  border:3px solid var(--brand);box-shadow:0 2px 8px rgba(13,148,136,.35);cursor:pointer;
}

.tpl-chips{display:flex;flex-wrap:wrap;gap:8px}
.tpl-chip{
  padding:6px 12px;border-radius:9px;border:1px solid var(--line);background:#fbfdfd;
  font-size:12.5px;color:var(--ink-2);cursor:pointer;transition:.16s;max-width:100%;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.tpl-chip:hover{border-color:#bfe4df;color:var(--brand-2);background:#f4fbfa}

/* ================= 按钮 ================= */
.btn{
  height:46px;padding:0 24px;border-radius:12px;border:1px solid transparent;cursor:pointer;
  font-size:15px;font-weight:600;font-family:inherit;display:inline-flex;align-items:center;justify-content:center;gap:8px;
  transition:.18s;
  /* 按钮是固定功能标签，文字绝不折行（窄屏下折行会变成「分/类/管/理」竖排，极丑） */
  white-space:nowrap;
}
.btn .layui-icon{font-size:16px}
.btn-primary{background:linear-gradient(135deg,#16baaa,#0d9488);color:#fff;box-shadow:0 8px 20px rgba(13,148,136,.24)}
.btn-primary:hover{transform:translateY(-1px);box-shadow:0 12px 26px rgba(13,148,136,.3)}
.btn-primary:active{transform:none}
.btn-primary:disabled{opacity:.6;cursor:not-allowed;transform:none}
.btn-ghost{background:#fff;border-color:var(--line);color:var(--ink-2)}
.btn-ghost:hover{border-color:var(--brand);color:var(--brand-2);background:#f8fdfc}
.btn-sm{height:34px;padding:0 14px;font-size:13px;border-radius:10px}
.btn-block{width:100%;margin-top:6px}
.actions{display:flex;gap:12px;margin-top:4px}
.actions .btn-primary{min-width:170px}

/* ================= 播报结果 ================= */
.play-result{
  margin-top:18px;border:1px dashed #d9e8e6;border-radius:13px;background:#fafdfd;
  padding:16px;min-height:74px;
}
.empty-line{color:var(--muted);font-size:13px;text-align:center;padding:16px 0}

.result-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.result-ok{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--brand-2)}
.result-err{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:#e05b4d}
.tag-engine{
  font-size:11.5px;padding:2px 9px;border-radius:999px;background:var(--brand-soft);color:var(--brand-2);font-weight:600;
}
.wave{display:inline-flex;align-items:flex-end;gap:3px;height:18px;margin-left:auto}
.wave i{width:3px;border-radius:2px;background:var(--brand);opacity:.8;animation:wave 1s infinite ease-in-out}
.wave i:nth-child(1){height:7px;animation-delay:0s}
.wave i:nth-child(2){height:14px;animation-delay:.12s}
.wave i:nth-child(3){height:9px;animation-delay:.24s}
.wave i:nth-child(4){height:17px;animation-delay:.36s}
.wave i:nth-child(5){height:11px;animation-delay:.48s}
@keyframes wave{0%,100%{transform:scaleY(.45)}50%{transform:scaleY(1)}}
.play-result audio{width:100%;height:38px;margin-top:4px}

/* 阚荣浩 2026-11-21：隐藏原生播放器最右侧的「⋮」溢出菜单（下载 / 播放速度 / 画中画）。
 * 新版 Chrome（105+）把媒体控件换成了 closed shadow DOM，::-webkit-media-controls-overflow-button
 * 已经选不中，真正生效的是 audio 标签上的 controlslist（见 client.js 的 AUDIO_NO_MENU / app.html）；
 * 这两条伪元素规则留着只是给老版本 Chromium / Electron 兜底，不影响新浏览器。 */
audio::-webkit-media-controls-overflow-button,
audio::-webkit-media-controls-overflow-menu-button{display:none!important;-webkit-appearance:none;width:0!important;margin:0!important;padding:0!important}

/* ================= 状态卡 ================= */
.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:16px}
.stat{background:#f8fcfb;border-radius:12px;padding:12px 10px;text-align:center}
.stat-lb{display:block;font-size:11.5px;color:var(--muted);margin-bottom:2px}
.stat-num{font-size:20px;font-weight:700;color:var(--ink)}
.stat-num.on{color:var(--brand-2)}

.lic-block{border-top:1px dashed var(--line);padding-top:14px}
.lic-top{display:flex;justify-content:space-between;align-items:baseline;font-size:13px;color:var(--ink-2)}
.lic-top b{font-size:16px;color:var(--brand-2)}
.lic-bar{height:8px;border-radius:8px;background:#eef4f3;margin:9px 0 8px;overflow:hidden}
.lic-bar i{display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,#16baaa,#0d9488);transition:width .5s}
.lic-tip{font-size:12px;color:var(--muted)}

/* ================= 列表 ================= */
.list{display:flex;flex-direction:column}
.item{
  display:flex;align-items:center;gap:12px;padding:12px 4px;border-bottom:1px solid var(--line);
}
.item:last-child{border-bottom:0}
.item-main{flex:1;min-width:0}
.item-title{font-size:13.5px;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.item-sub{font-size:12px;color:var(--muted);margin-top:2px}
.item-right{font-size:12px;color:var(--muted);flex:0 0 auto}
.dot{width:7px;height:7px;border-radius:50%;flex:0 0 7px}
.dot.ok{background:#16baaa}
.dot.fail{background:#ef7b6d}
.badge{font-size:11px;padding:1px 8px;border-radius:999px;background:var(--brand-soft);color:var(--brand-2);font-weight:600}

/* ================= 音乐源 ================= */
.music-side{
  flex:0 0 176px;border-right:1px solid var(--line);background:#fbfdfd;
  padding:14px 12px;display:flex;flex-direction:column;gap:8px;
}
.music-side-hd{font-size:11.5px;font-weight:600;letter-spacing:.5px;color:var(--muted);padding:0 4px 2px}
.music-side-tip{margin:auto 4px 0;font-size:11px;color:#a9bfbc;line-height:1.6}
.plat-tabs{display:flex;flex-direction:column;gap:7px}
.plat{
  padding:9px 13px;border-radius:10px;border:1px solid var(--line);background:#fff;
  font-size:13px;color:var(--ink-2);cursor:pointer;transition:.16s;
  display:flex;align-items:center;gap:7px;
}
.plat:hover{border-color:#bfe4df;color:var(--brand-2)}
.plat.on{background:linear-gradient(135deg,#16baaa,#0d9488);border-color:transparent;color:#fff;box-shadow:0 6px 16px rgba(13,148,136,.22)}
.music-body{display:flex;flex:1;min-height:460px;background:#fafdfd;align-items:stretch}
/* 右侧主栏：曲库 + 底部播放条（阚荣浩 2026-11-21）。
   播放条只占这一列、钉在底部；左侧平台栏不受影响。min-width:0 防窄屏撑破 */
.music-main{flex:1;min-width:0;display:flex;flex-direction:column;background:#fff}
/* 第三方平台：整条是新标签页链接，名称 + 跳转地址两行显示（阚荣浩 2026-11-21） */
.plat-ext-link{display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-decoration:none;padding:8px 11px}
.plat-ext-link .plat-name{display:flex;align-items:center;flex-wrap:wrap;gap:4px 6px;font-size:12.5px;font-weight:600;color:var(--ink)}
.plat-ext-link .plat-name .layui-icon{font-size:13px;color:var(--brand-2)}
/* 推荐角标：后台按平台配开关+文案，窄侧栏用软换行避免挤破（阚荣浩 2026-11-28） */
.plat-rec{font-style:normal;font-size:10px;line-height:15px;padding:0 6px;border-radius:999px;background:#fff3e0;color:#d98324;font-weight:600;white-space:nowrap;flex:0 0 auto}
.plat-ext-link .plat-url{font-size:10.5px;line-height:1.35;color:#9aafac;word-break:break-all;overflow-wrap:anywhere}
.plat-ext-link:hover .plat-name{color:var(--brand-2)}
/* 安装插件教程入口 */
.music-help{margin-left:auto;font-size:12px;color:var(--brand-2);text-decoration:none;white-space:nowrap}
.music-help .layui-icon{font-size:12px}
.music-help:hover{text-decoration:underline}
.music-empty{
  position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:10px;color:var(--muted);z-index:1;
}
.music-empty .layui-icon{font-size:44px;color:#d6e6e4}
.music-empty p{margin:0;font-size:13px}

/* ---- 中间一栏：搜索 / 曲库列表（2026-11-01 新增） ---- */
.side-gap{margin-top:10px}
.music-list{
  flex:1 1 auto;border-right:0;background:#fff;
  display:flex;flex-direction:column;min-width:0;overflow:hidden;
}
/* 底部自定义播放条：极简横条，自绘控件（阚荣浩 2026-11-21）
   audio 本体隐藏只作播放引擎；整块在 #music-list 外，不被 renderList 重建 */
.ml-now{flex:0 0 auto;border-top:1px solid var(--line);background:#fff}
.ml-now #music-audio{display:none}
.mp-bar{display:flex;align-items:center;gap:18px;padding:12px 18px;min-height:68px}
/* 上一曲/播放/下一曲：播放条最左侧，组内放宽间距、右侧淡分隔线和曲目信息分组（阚荣浩 2026-11-21） */
.mp-ctrls{
  display:flex;align-items:center;gap:14px;flex:0 0 auto;
  padding-right:18px;border-right:1px solid var(--line);
}
.mp-ic{
  width:30px;height:30px;flex:0 0 30px;padding:0;border:0;border-radius:50%;background:transparent;
  color:#7a8b88;cursor:pointer;display:grid;place-items:center;transition:.15s;
}
.mp-ic:hover{background:#eef7f5;color:var(--brand)}
.mp-ic .layui-icon{font-size:18px}
.mp-play{
  width:40px;height:40px;flex:0 0 40px;padding:0;border:1px solid #cfe6e1;border-radius:50%;
  background:#f2faf8;color:var(--brand);cursor:pointer;display:grid;place-items:center;transition:.15s;
}
.mp-play:hover{background:var(--brand);color:#fff;border-color:var(--brand)}
.mp-play .layui-icon{font-size:21px}
.mp-mid{flex:1;min-width:0;display:flex;align-items:center;gap:12px}
.mp-cover{
  width:38px;height:38px;flex:0 0 38px;border-radius:6px;overflow:hidden;
  background:linear-gradient(135deg,#cfeee9,#a9dbd3);display:grid;place-items:center;
}
.mp-cover .layui-icon{font-size:20px;color:#5aa99c}
.mp-track{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.mp-name{font-size:12.5px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mp-seekline{display:flex;align-items:center;gap:8px;min-width:0}
.mp-time{font-size:10px;color:#9aa9a6;font-variant-numeric:tabular-nums;flex:0 0 auto}
.mp-seek{flex:1;min-width:0;height:4px;border-radius:4px}
.mp-seek::-webkit-slider-thumb,.mp-vrange::-webkit-slider-thumb{
  width:12px;height:12px;border:2px solid var(--brand);box-shadow:0 1px 4px rgba(13,148,136,.3);
}
.mp-right{display:flex;align-items:center;gap:4px;flex:0 0 auto}
.mp-vol{display:flex;align-items:center;gap:5px;color:#7a8b88;margin-left:2px}
.mp-vol .layui-icon{font-size:17px}
.mp-vrange{width:72px;height:4px;border-radius:4px}
.mp-loop{
  height:28px;margin-left:4px;padding:0 9px;border:1px solid var(--line);border-radius:14px;
  background:#fbfdfd;color:#6b807d;font-size:11px;cursor:pointer;display:flex;align-items:center;gap:4px;transition:.15s;
}
.mp-loop:hover{border-color:var(--brand);color:var(--brand)}
.mp-loop .layui-icon{font-size:14px}
/* 工具条合成一行：左边筛选（来源+分类），右边功能按钮；放不下自动换行（阚荣浩 2026-11-21） */
.ml-bar{padding:10px 12px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:8px 12px;flex-wrap:wrap}
.ml-filters{display:flex;align-items:center;gap:8px 10px;flex-wrap:wrap;min-width:0;flex:1 1 auto}
.ml-search{display:flex;gap:7px}
.ml-search input{
  flex:1;min-width:0;height:34px;padding:0 11px;border:1px solid var(--line);border-radius:9px;
  font-size:13px;color:var(--ink);background:#fff;outline:none;transition:.16s;
}
.ml-search input:focus{border-color:#bfe4df;box-shadow:0 0 0 3px rgba(22,186,170,.1)}
.ml-btn{
  flex:0 0 auto;height:34px;padding:0 13px;border:1px solid var(--line);border-radius:9px;
  background:#fff;color:var(--ink-2);font-size:13px;cursor:pointer;transition:.16s;white-space:nowrap;
}
.ml-btn:hover{border-color:#bfe4df;color:var(--brand-2)}
.ml-btn.pri{background:linear-gradient(135deg,#16baaa,#0d9488);border-color:transparent;color:#fff}
.ml-btn.pri:hover{opacity:.92;color:#fff}
/* 工具条右边功能按钮组 */
.ml-ops{display:flex;flex-wrap:wrap;align-items:center;gap:7px;flex:0 0 auto}
.ml-tip{font-size:11px;color:#a9bfbc;line-height:1.6}
/* 来源下拉 / 循环单选：小标签 + 控件，和按钮同一行垂直居中 */
.ml-ctl{display:flex;align-items:center;gap:6px;flex:0 0 auto}
.ml-ctl>label{font-size:12px;color:var(--muted);white-space:nowrap}
/* 来源 / 分类下拉：pk 默认 42px 太高，压到和按钮一致的 34px（阚荣浩 2026-11-21） */
.ml-src-pk{width:96px;flex:0 0 96px}
.ml-cat-pk{width:112px;flex:0 0 112px}
.ml-src-pk.pk,.ml-cat-pk.pk{height:34px;border-radius:9px}
.ml-src-pk .pk-input,.ml-cat-pk .pk-input{font-size:12px;padding-left:10px}
/* 循环方式单选框 */
.ml-radios{display:flex;align-items:center;gap:11px}
.ml-radio{display:flex;align-items:center;gap:4px;font-size:12px;color:var(--ink-2);cursor:pointer;white-space:nowrap}
.ml-radio input{accent-color:#16baaa;margin:0;cursor:pointer}
/* 配额/规则说明：并进播放条底部，一行浅字，与曲目信息同块背景 */
/* 配额/规则说明：在进度条正下方，极简浅字（阚荣浩 2026-11-21）
   内容由 syncQuotaTip() 拆成若干 .ml-q 段：桌面端用「·」连成一行，
   手机端（见下方音乐源手机端规则）改为按段换行，不再被省略号截掉 */
.ml-quota{flex:0 0 auto;min-width:0;font-size:10px;color:#a9bfbc;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ml-quota .ml-q + .ml-q::before{content:' · ';color:#c3d4d2}

.ml-body{flex:1;overflow-y:auto;padding:8px}
.ml-item{
  display:flex;align-items:center;gap:9px;padding:9px 10px;border-radius:9px;cursor:pointer;transition:.14s;
}
.ml-item:hover{background:#f4fbfa}
.ml-item.on{background:var(--brand-soft)}
.ml-no{width:22px;flex:0 0 22px;text-align:center;font-size:11px;color:#b9cbc9}
.ml-txt{flex:1;min-width:0}
.ml-txt b{display:block;font-size:13px;font-weight:600;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ml-txt span{display:block;font-size:11.5px;color:var(--muted);margin-top:1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ml-flag{font-size:10px;padding:1px 6px;border-radius:999px;background:#fff3e0;color:#d98324;flex:0 0 auto}
.ml-del{flex:0 0 auto;font-size:12px;color:#c9d8d6;padding:0 3px}
.ml-del:hover{color:#e05b4d}
.ml-none{padding:32px 12px;text-align:center;color:var(--muted);font-size:12.5px;line-height:1.8}

/* ---- 音乐库表格列表（阚荣浩 2026-11-21）
   5 列：曲目 / 分类 / 来源 / 时长 / 操作，分类作为表头一列，整行可点播放 ---- */
/* 列宽：曲目自适应，其余固定；窄栏里也能完整显示不被盖 */
.ml-table-head,.ml-row{
  display:grid;grid-template-columns:minmax(0,1fr) 58px 40px 40px 66px;gap:6px;align-items:center;
}
.ml-table-head{
  padding:7px 10px;font-size:10.5px;color:#9aafac;
  border-bottom:1px solid var(--line);background:#f6faf9;
}
.ml-row{padding:8px 10px;border-radius:8px}
.ml-cell{min-width:0;font-size:11.5px;color:var(--ink-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ml-cell-name{display:flex;align-items:center;gap:5px;font-size:12.5px;font-weight:600;color:var(--ink)}
.ml-cell-name .layui-icon{font-size:12px;color:#b9cbc9;flex:0 0 auto}
.ml-cell-cat i{font-style:normal;color:#adbdbb}
.ml-cell-dur{font-size:10.5px;color:#9aafac}
.ml-cell-op{overflow:visible;display:flex;align-items:center;justify-content:flex-end;height:100%}
.ml-cell-op .ml-flag{font-size:9px}

/* ---- 音乐分类筛选 ----
   阚荣浩 2026-11-21：改成自动换行，分类再多也全部可见，不再横向滚动被遮住 */
.ml-cats{
  display:flex;gap:5px;flex-wrap:wrap;align-items:center;padding-bottom:1px;
}
.ml-cats-wrap{row-gap:5px}
.ml-cat{
  flex:0 0 auto;font-size:11.5px;padding:3px 8px;border-radius:999px;cursor:pointer;
  border:1px solid var(--line);background:#fff;color:var(--ink-2);transition:.14s;white-space:nowrap;
}
.ml-cat:hover{border-color:#bfe4df;color:var(--brand-2)}
.ml-cat.on{background:linear-gradient(135deg,#16baaa,#0d9488);border-color:transparent;color:#fff}
.ml-cat em{font-style:normal;opacity:.72;margin-left:3px;font-size:10.5px}
/* 来源筛选那行的前缀标签（跟分类 chips 同一行样式，加个「来源」小标题区分） */
.ml-cats .ml-lbl{flex:0 0 auto;font-size:11px;color:#a9bfbc;line-height:19px;padding-right:1px}

/* 条目第二行：来源 / 分类 / 时长
   注意要压过 .ml-txt span 的 display:block（同标签选择器优先级更高），所以带上 .ml-txt */
.ml-txt span.ml-meta{display:flex;align-items:center;gap:4px;margin-top:2px;overflow:hidden}
.ml-src{
  font-style:normal;font-size:10px;padding:0 5px;border-radius:4px;flex:0 0 auto;line-height:15px;
}
.ml-src.up{background:#e8f6f4;color:#0d9488}
.ml-src.link{background:#eef2fb;color:#4a6bb0}
.ml-cat-tag{
  font-style:normal;font-size:10px;padding:0 5px;border-radius:4px;line-height:15px;
  background:#f2f4f7;color:#6b7c8c;flex:0 1 auto;max-width:96px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.ml-dur{font-style:normal;font-size:10.5px;color:#b9cbc9;flex:0 0 auto;margin-left:auto}

/* 条目右侧操作：编辑 / 下载 / 移除 */
.ml-ops2{display:flex;align-items:center;gap:2px;flex:0 0 auto}
.ml-op{
  display:grid;place-items:center;width:22px;height:22px;border-radius:6px;cursor:pointer;
  color:#b9cbc9;font-size:13px;transition:.14s;
}
.ml-op:hover{background:var(--brand-soft);color:var(--brand-2)}
.ml-op.del:hover{background:#fff1f0;color:#e05b4d}

/* ---- 本地播放器（音乐库用 <audio>，播报时可压音量） ---- */
.music-local{
  position:absolute;inset:0;display:none;flex-direction:column;align-items:center;justify-content:center;
  gap:14px;padding:20px;box-sizing:border-box;
}
.music-local.on{display:flex}
.ml-cover{
  width:96px;height:96px;border-radius:50%;background:linear-gradient(135deg,#e8f7f5,#d5efec);
  display:flex;align-items:center;justify-content:center;
}
.ml-cover .layui-icon{font-size:42px;color:#16baaa;opacity:.7}
.ml-info{text-align:center;display:flex;flex-direction:column;gap:3px}
.ml-info b{font-size:15px;color:var(--ink)}
.ml-info span{font-size:12px;color:var(--muted)}
#music-audio{width:min(420px,86%);height:38px;outline:none}
.ml-note{font-size:11.5px;color:#7fa7a4;background:#f4fbfa;border-radius:9px;padding:7px 12px;line-height:1.6}

/* ================= 素材 ================= */
.quota{background:#f8fcfb;border-radius:13px;padding:14px 16px;margin-bottom:18px}
.quota-txt{display:flex;justify-content:space-between;font-size:12.5px;color:var(--ink-2)}
.quota-txt b{color:var(--brand-2)}
.quota-bar{height:8px;border-radius:8px;background:#e9f2f1;margin:9px 0 0;overflow:hidden}
.quota-bar i{display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,#16baaa,#0d9488);transition:width .5s}
.quota-tip{margin:8px 0 0;font-size:12px;color:var(--muted)}

/* ---------- 素材列表（阚荣浩 2026-11-20：卡片网格改列表） ----------
 * 一行一条：图标 + 名称（下一行放来源/时长/大小/归档时间）+ 分区标签下拉 + 试听与操作
 * 用 grid 定列，各列宽度互不挤占；窄屏只换 grid 模板，字段一个不隐藏 */
.asset-list{display:flex;flex-direction:column;border-top:1px solid #f1f6f5}
.asset{
  display:grid;grid-template-columns:32px minmax(0,1fr) auto auto;
  align-items:center;gap:10px 14px;padding:13px 8px;
  border-bottom:1px solid #f1f6f5;background:#fff;transition:background .16s;
}
.asset:last-child{border-bottom:0}
.asset:hover{background:#fafdfc}
.asset-ico{width:32px;height:32px;border-radius:10px;background:var(--brand-soft);color:var(--brand-2);display:grid;place-items:center;flex:0 0 32px}
/* 批量勾选：占用原来 32px 图标位，grid 列与窄屏响应式零改动（阚荣浩 2026-11-24） */
.asset-ck{width:32px;height:32px;display:grid;place-items:center;cursor:pointer}
.asset-ck input{width:16px;height:16px;accent-color:var(--brand-2);cursor:pointer}
#btn-asset-del-batch:disabled{opacity:.45;cursor:not-allowed}
.asset-main{min-width:0}
.asset-name{font-size:13.5px;font-weight:600;color:var(--ink);line-height:1.5;overflow-wrap:anywhere}
.asset-sub{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:4px;font-size:11.5px;color:var(--muted)}
.asset-sep{font-style:normal;color:#cfdcda}
.asset-tail{display:flex;align-items:center;gap:10px;justify-self:end}
.asset audio{display:block;width:206px;height:32px}

/* ================= 授权 ================= */
.lic-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:6px 2px 20px;border-bottom:1px dashed var(--line)}
.lic-badge{display:inline-block;font-size:12px;padding:3px 11px;border-radius:999px;background:var(--brand-soft);color:var(--brand-2);font-weight:600}
.lic-badge.warn{background:#fff3ed;color:#e0813f}
.lic-badge.bad{background:#fff1f0;color:#e05b4d}
.lic-big{display:flex;align-items:baseline;gap:6px;margin:10px 0 2px}
.lic-big b{font-size:42px;font-weight:800;letter-spacing:-1px;line-height:1;color:var(--ink)}
.lic-big span{font-size:14px;color:var(--muted)}
.lic-expire{margin:0;font-size:12.5px;color:var(--muted)}
.lic-ring{
  width:104px;height:104px;border-radius:50%;flex:0 0 104px;display:grid;place-items:center;
  background:conic-gradient(#16baaa 0deg,#e9f2f1 0deg);position:relative;
}
.lic-ring::after{
  content:"";position:absolute;inset:9px;border-radius:50%;background:#fff;
}
.lic-ring span{position:relative;z-index:1;font-size:16px;font-weight:700;color:var(--brand-2)}
.lic-list{padding-top:14px}
.lic-item{display:flex;justify-content:space-between;font-size:13px;padding:7px 0;color:var(--ink-2)}
.lic-item b{font-weight:600;color:var(--ink)}
.lic-item-void{opacity:.5}
.lic-item-void b{color:#e05b4d}

.plan-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}
.plan{
  border:1.5px solid var(--line);border-radius:13px;padding:14px 12px;cursor:pointer;transition:.18s;position:relative;
  background:#fbfdfd;text-align:center;
}
.plan:hover{border-color:#bfe4df}
.plan.on{border-color:var(--brand);background:#f5fcfb;box-shadow:0 8px 20px rgba(13,148,136,.12)}
.plan-name{display:block;font-size:12.5px;color:var(--ink-2);font-weight:600}
.plan-name i{font-style:normal;font-size:10.5px;background:#ffb648;color:#fff;padding:1px 6px;border-radius:999px;margin-left:4px;vertical-align:1px}
.plan-price{display:block;margin:6px 0 2px;font-size:14px;color:var(--brand-2)}
.plan-price em{font-style:normal;font-size:24px;font-weight:800;letter-spacing:-.5px}
.plan-desc{font-size:11.5px;color:var(--muted)}
.section-tip{font-size:12.5px;color:var(--muted);margin:12px 0 0;line-height:1.7}

/* ================= 锁屏 ================= */
.lock-mask{
  position:fixed;inset:0;z-index:9999;display:none;align-items:center;justify-content:center;
  background:rgba(11,32,30,.72);backdrop-filter:blur(6px);
}
.lock-mask.on{display:flex}
.lock-box{background:#fff;border-radius:18px;padding:32px 28px;width:340px;text-align:center;box-shadow:0 24px 60px rgba(0,0,0,.3)}
.lock-ico{
  width:52px;height:52px;border-radius:16px;margin:0 auto 14px;display:grid;place-items:center;
  background:var(--brand-soft);color:var(--brand-2);font-size:24px;
}
.lock-box h3{margin:0 0 6px;font-size:17px}
.lock-box p{margin:0 0 18px;font-size:12.5px;color:var(--muted)}
.lock-box .inp{margin-bottom:12px}

/* ================= 响应式 ================= */
/* 阚荣浩 2026-12-05：641~1180（iPad 竖屏 / 横屏 / 小笔记本）不再只留图标 ——
 * 纯图标客户认不出哪一格是什么（尤其「紧急播报」和「播报记录」的图标很像）。
 * 侧栏加宽到 92px，图标 + 文字横排，仍比完整侧栏省 146px 横向空间。 */
@media (max-width:1180px){
  .grid-broadcast,.grid-license,.grid-live{grid-template-columns:1fr}
  .app{grid-template-columns:92px 1fr}
  .rail{padding:16px 6px 12px;overflow-y:auto}
  .rail-name{display:none}
  .rail-brand{justify-content:center;padding-bottom:12px}
  .rail-item{justify-content:flex-start;gap:7px;padding:0 9px;font-size:12.5px}
  .rail-item span{display:block;font-size:12.5px;letter-spacing:-.2px}
  .rail-item .layui-icon{font-size:16px;flex:0 0 16px}
  .rail-item .mi-ico{width:16px;height:16px;flex-basis:16px}
  .rail-item.on::before{left:-6px}
  .rail-mini{justify-content:flex-start;gap:7px;padding:0 9px;font-size:11.5px}
  .rail-mini .layui-icon{font-size:15px;flex:0 0 auto}
  .rail-mini .mi-ico{width:15px;height:15px;flex-basis:15px}
}
@media (max-width:720px){
  .topbar-sub,.user-name{display:none}
  .panes{padding:14px}
  .stat-grid{grid-template-columns:1fr 1fr}
  /* 阚荣浩 2026-12-05：三个下拉并排改两列（音色/分类一行，优先级占左下），
     再窄到手机（≤640）才单列 */
  .field-row{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ================= 可搜索下拉（picker.js） ================= */
.pk{
  position:relative;width:100%;height:42px;border:1px solid var(--line);border-radius:11px;
  background:#fbfdfd;transition:.18s;cursor:pointer;display:flex;align-items:center;
}
.pk:hover{border-color:#cfe3e0;background:#fff}
.pk.pk-open{border-color:var(--brand);background:#fff;box-shadow:0 0 0 3px rgba(22,186,170,.13)}
.pk-disabled{opacity:.6;cursor:not-allowed;background:#f5f7f7}
.pk-input{
  flex:1;min-width:0;height:100%;border:0;background:transparent;outline:none;
  padding:0 30px 0 12px;font-size:14px;color:var(--ink);cursor:pointer;
  font-family:inherit;text-overflow:ellipsis;
}
.pk-input::placeholder{color:#a9bfbc}
.pk-arrow{
  position:absolute;right:13px;top:50%;width:0;height:0;pointer-events:none;
  border-left:5px solid transparent;border-right:5px solid transparent;
  border-top:6px solid var(--muted);transform:translateY(-50%);transition:.2s;
}
.pk.pk-open .pk-arrow{transform:translateY(-50%) rotate(180deg);border-top-color:var(--brand)}

.pk-pop{
  position:fixed;z-index:19900000;display:none;background:#fff;
  border:1px solid var(--line);border-radius:13px;box-shadow:0 16px 44px rgba(13,148,136,.16);
  overflow:hidden;animation:pkIn .14s ease-out;
}
@keyframes pkIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.pk-search{padding:9px 9px 7px;border-bottom:1px solid var(--line);background:#fbfdfd}
.pk-search input{
  width:100%;height:34px;border:1px solid var(--line);border-radius:9px;
  padding:0 10px;font-size:13px;outline:none;background:#fff;font-family:inherit;
}
.pk-search input:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(22,186,170,.12)}
.pk-list{max-height:264px;overflow:auto;padding:5px}
.pk-group{
  font-size:11.5px;color:var(--muted);font-weight:600;letter-spacing:.4px;
  padding:8px 9px 4px;position:sticky;top:0;background:#fff;z-index:1;
}
.pk-opt{
  display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:8px;
  font-size:13.5px;color:var(--ink);cursor:pointer;transition:.12s;
}
.pk-opt:hover,.pk-opt.act{background:var(--brand-soft)}
/* 选项文字允许换行：素材名是整句播报文案，单行省略客户认不出是哪条
   （输入框里那一个仍然单行，那里只有一行高度可用） */
.pk-opt-t{flex:1;min-width:0;overflow-wrap:anywhere;line-height:1.45}
.pk-opt-h{font-size:11.5px;color:var(--muted);flex:0 0 auto}
.pk-tick{font-style:normal;font-size:12px;color:var(--brand);opacity:0;flex:0 0 auto}
.pk-opt.on{background:var(--brand-soft);color:var(--brand-2);font-weight:600}
.pk-opt.on .pk-tick{opacity:1}

/* 行内操作图标（重命名 / 删除）：平时隐藏，hover 才出现，让位于计数和勾 */
.pk-acts{display:none;align-items:center;gap:2px;flex:0 0 auto}
.pk-opt.has-act:hover .pk-acts{display:flex}
.pk-opt.has-act:hover .pk-opt-h,
.pk-opt.has-act:hover .pk-tick{display:none}
.pk-act{
  width:22px;height:22px;display:flex;align-items:center;justify-content:center;
  border-radius:6px;color:var(--muted);cursor:pointer;transition:.12s;
}
.pk-act svg{display:block;pointer-events:none}
.pk-act:hover{background:rgba(22,186,170,.14);color:var(--brand-2)}
.pk-act.danger:hover{background:#ffe4e0;color:#e05b4d}

/* 行内改名：这一行原地变成输入框，不弹窗（弹窗会被下拉盖住） */
.pk-opt.pk-editing,.pk-opt.pk-editing:hover{
  background:#f7fdfc;padding:5px 6px;cursor:default;
  box-shadow:inset 0 0 0 1px rgba(22,186,170,.35);
}
.pk-opt.pk-editing .pk-acts{display:flex}
.pk-edit{
  flex:1;min-width:0;height:30px;border:1px solid var(--brand);border-radius:7px;
  padding:0 8px;font-size:13px;font-family:inherit;color:var(--ink);outline:none;
  background:#fff;box-shadow:0 0 0 3px rgba(22,186,170,.12);
}
.pk-edit-ok{
  color:var(--brand-2);font-size:13px;font-style:normal;font-weight:700;
  background:rgba(22,186,170,.16);border-radius:6px;
}
.pk-edit-ok:hover{background:var(--brand);color:#fff}
.pk-edit-no{font-size:12px;font-style:normal}
.pk-empty{padding:22px 12px;text-align:center;color:var(--muted);font-size:13px}
/* 下拉底部操作区（分区管理用，其他下拉不传 footer 就不出现） */
.pk-foot{border-top:1px solid var(--line);background:#fbfdfd;padding:5px}
.pk-foot-i{
  display:flex;align-items:center;gap:7px;padding:7px 10px;border-radius:8px;
  font-size:13px;color:var(--ink-2);cursor:pointer;transition:.12s;
}
.pk-foot-i:hover{background:var(--brand-soft);color:var(--brand-2)}
.pk-foot-i.danger:hover{background:#fff1f0;color:#e05b4d}
.pk-foot-i.dis{opacity:.34;cursor:not-allowed}
.pk-foot-i.dis:hover{background:transparent;color:var(--ink-2)}
.zone-del-tip{color:#e0813f;font-size:12.5px}

/* ================= 素材工具栏（分类/标签/优先级筛选 + 搜索） =================
 * 现在是「三个下拉 + 搜索框」在左、「分类管理/标签管理/上传音频」在右，同一行。
 * .asset-bar / .asset-bar-l 的纵向布局是旧 tag-chip 时代的默认值，
 * 素材库实际用 .asset-search-bar 覆盖成横向（见下）。 */
.asset-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:16px}
.asset-bar-l{flex:1 1 100%;min-width:0;display:flex;flex-direction:column;gap:8px}
/* 阚荣浩 2026-11-23：筛选改一行的三个下拉，搜索在左、功能在右。
 * 2026-11-23 调：搜索框原来 flex:1 把剩余宽度全吃掉、明显比别人宽一截，
 * 改成和下拉同一档（封顶 180），四个控件宽窄接近，整行更协调。 */
.asset-search-bar{flex-wrap:nowrap;gap:8px}
.asset-search-bar .asset-bar-l{flex:1 1 auto;min-width:0;flex-direction:row;align-items:center;gap:6px;flex-wrap:nowrap}
.asset-filter-pk{flex:1 1 0;min-width:92px;max-width:150px}
.asset-filter-pk .pk{height:34px;border-radius:9px}
.asset-filter-pk .pk-input{font-size:12.5px;padding-left:10px}
.asset-search-bar .search-inp{flex:1 1 0;min-width:130px;max-width:180px;width:auto}
.asset-search-bar .asset-bar-r{flex:0 0 auto;margin-left:0;gap:6px}
.asset-search-bar .asset-bar-r .btn{padding:0 9px}
.filter-row{display:flex;align-items:flex-start;gap:8px}
/* 阚荣浩 2026-11-20：原来写死 width:24px，「内容分类」四个字会被压成两行；
   改成自适应 + 最小宽度，既不被压扁，两行标签也能左对齐 */
.filter-lb{flex:0 0 auto;min-width:48px;font-size:12px;color:var(--muted);line-height:26px;white-space:nowrap}
.sched-filter{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.tag-filter{display:flex;align-items:center;gap:7px;flex-wrap:wrap;flex:1;min-width:0}
.tag-chip{
  padding:5px 12px;border-radius:999px;border:1px solid var(--line);background:#fff;
  font-size:12.5px;color:var(--ink-2);cursor:pointer;transition:.16s;white-space:nowrap;
}
.tag-chip:hover{border-color:#bfe4df;color:var(--brand-2)}
.tag-chip.on{background:linear-gradient(135deg,#16baaa,#0d9488);border-color:transparent;color:#fff;box-shadow:0 4px 12px rgba(13,148,136,.2)}
.tag-chip em{font-style:normal;opacity:.72;margin-left:4px;font-size:11px}
.asset-bar-r{display:flex;align-items:center;gap:8px;flex:0 0 auto;margin-left:auto}
.search-inp{width:180px;height:34px;font-size:13px;border-radius:9px}

/* 素材列表行内的操作区（跟在播放器右边，不再用 margin-left:auto 顶到行尾） */
.asset-ops{display:flex;gap:6px;flex:0 0 auto}
.asset-op{
  width:26px;height:26px;border-radius:7px;display:grid;place-items:center;cursor:pointer;
  color:#a9bfbc;font-size:13px;transition:.16s;
}
.asset-op:hover{background:var(--brand-soft);color:var(--brand-2)}
/* 带文字的操作按钮（重命名）：图标 + 文字，光一个铅笔客户看不出是干嘛的。
   默认色用 --ink-2 而不是原来的浅灰，不然 12px 文字在灰底上几乎看不见 */
.asset-op.txt{
  width:auto;padding:0 10px;display:inline-flex;align-items:center;gap:5px;
  font-size:12px;border-radius:8px;color:var(--ink-2);
}
.asset-op.txt em{font-style:normal;line-height:1;white-space:nowrap}
/* 上面 .asset-op.txt 的 color 会把 .asset-op:hover 的绿色盖掉，这里补回来 */
.asset-op.txt:hover{background:var(--brand-soft);color:var(--brand-2)}
/* 删除：垃圾桶图标也要能一眼看见，别淡成一条竖线；hover 才变红 */
.asset-op.del{color:#9ab0ac}
.asset-op.del:hover{background:#fff1f0;color:#e05b4d}
.asset-op.off{opacity:.32;cursor:not-allowed}
.asset-op.off:hover{background:transparent;color:#a9bfbc}
/* 暂时隐藏的操作按钮（阚荣浩 2026-11-20：素材级「设置背景音乐」入口先不给客户看）。
   只藏不删，去掉这个类即恢复，事件逻辑与 data-act 都还在 */
.asset-hide{display:none!important}
.asset-tagline{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.asset-tag{font-size:11px;padding:2px 8px;border-radius:999px;background:var(--brand-soft);color:var(--brand-2)}
.asset-flag{font-size:11px;padding:2px 8px;border-radius:999px;background:#fff3ed;color:#e0813f}
.asset-src{font-size:11px;padding:2px 8px;border-radius:999px;background:#f1f4f8;color:#7c8e9c}

/* ================= 播报记录筛选 ================= */
.log-bar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:16px}
.dt-inp{width:194px;height:34px;font-size:13px;border-radius:9px;padding:0 9px}
.log-sep{font-size:12.5px;color:var(--muted)}
.log-bar-r{margin-left:auto;display:flex;gap:8px}
.pager{display:flex;align-items:center;justify-content:center;gap:6px;padding:16px 0 2px;flex-wrap:wrap}
.pager button{
  min-width:32px;height:32px;padding:0 10px;border:1px solid var(--line);border-radius:8px;
  background:#fff;color:var(--ink-2);font-size:13px;cursor:pointer;transition:.16s;font-family:inherit;
}
.pager button:hover:not(:disabled){border-color:#bfe4df;color:var(--brand-2)}
.pager button.on{background:var(--brand);border-color:var(--brand);color:#fff}
.pager button:disabled{opacity:.45;cursor:not-allowed}
.pager .pg-info{font-size:12.5px;color:var(--muted);margin:0 6px}
/* 通用分页的「每页条数」下拉（素材库/音乐源/定时排期共用，阚荣浩 2026-11-21） */
.pg-size{font-size:12.5px;color:var(--muted);margin-right:4px;white-space:nowrap}
.pg-size .pg-limit{
  height:30px;padding:0 6px;margin-right:6px;border:1px solid var(--line);border-radius:8px;
  background:#fff;color:var(--ink-2);font-size:12.5px;font-family:inherit;cursor:pointer;vertical-align:middle;
}

/* ================= 音乐侧栏窄屏 ================= */
@media (max-width:980px){
  .music-body{flex-direction:column}
  .music-side{flex:0 0 auto;border-right:0;border-bottom:1px solid var(--line)}
  .plat-tabs{flex-direction:row;flex-wrap:wrap}
  .music-side-tip{display:none}
  .music-main{min-height:420px}
  /* 窄屏播放条：控件换行，音量滑块收窄 */
  .mp-bar{flex-wrap:wrap;gap:10px 12px;padding:10px 12px}
  .mp-mid{flex:1 1 100%;order:-1}
  .mp-ctrls{gap:8px;padding-right:0;border-right:0}
  .mp-vrange{width:52px}
}

/* ================= 音乐源 · 手机端（阚荣浩 2026-12-05） =================
 * ① 左栏只有「我的音乐库」一个按钮，纯占高度 → ≤1024 整块不显示（见上方 iPad 段）；
 * ② 来源 / 分类两个下拉原来各占一行，并成一行、各占一半；
 * ③ 播放条钉在底部标签栏上方（不再跟着列表滚走），曲库底部按实测高度留白，
 *    最后一条不会被盖住（--bs-mp-h 由 client.js 量出来写进根节点）；
 * ④ 配额提示原来单行 nowrap + 省略号，手机上直接看不到后半截，
 *    改成按信息块换行显示。 */
@media (max-width:640px){
  #pane-music .music-body{flex-direction:column;min-height:0}
  #pane-music .music-main{min-height:0;padding-bottom:calc(var(--bs-mp-h,132px) + 6px)}

  #pane-music .ml-bar{gap:8px;padding:10px}
  #pane-music .ml-filters{flex:1 1 100%;flex-wrap:nowrap;gap:8px}
  #pane-music .ml-ctl{flex:1 1 0;min-width:0}
  #pane-music .ml-src-pk,
  #pane-music .ml-cat-pk{flex:1 1 auto;width:auto;min-width:0}
  #pane-music .ml-ops{flex:1 1 100%}
  #pane-music .ml-ops .ml-btn{flex:1 1 0;padding:0 8px}

  #pane-music.on .ml-now{
    position:fixed;left:0;right:0;z-index:70;
    bottom:calc(56px + env(safe-area-inset-bottom));
    border-radius:12px 12px 0 0;
    box-shadow:0 -6px 20px rgba(13,148,136,.12);
  }
  /* ⚠️ .pane 的 fadeUp 动画带 transform，且 fill-mode:both 会把动画状态一直保留；
     带 transform 动画的元素会成为 fixed 子元素的包含块 —— 播放条会钉在卡片底部、
     而不是屏幕底部。音乐页要钉底，就去掉它自己的入场动画。 */
  #pane-music.on{animation:none}

  #pane-music .ml-quota{
    display:flex;flex-wrap:wrap;gap:0 10px;
    white-space:normal;overflow:visible;text-overflow:clip;line-height:1.6;
  }
  #pane-music .ml-quota .ml-q{white-space:nowrap}
}

/* ================= 站内信列表 / 详情 ================= */
.notice-list{padding:4px 0;max-height:436px;overflow:auto}
.notice-row{
  display:flex;align-items:center;gap:10px;padding:13px 18px;border-bottom:1px solid var(--line);
  cursor:pointer;transition:.14s;
}
.notice-row:hover{background:#f8fdfc}
.notice-dot{width:7px;height:7px;border-radius:50%;background:var(--brand);flex:0 0 7px}
.notice-dot.read{background:#d3e2e0}
.notice-main{flex:1;min-width:0}
.notice-title{font-size:13.5px;font-weight:600;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.notice-sum{font-size:12.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:2px}
.notice-time{font-size:11.5px;color:#a9bfbc;flex:0 0 auto}
.notice-detail{padding:18px 22px;max-height:452px;overflow:auto}
.notice-detail-meta{font-size:12px;color:var(--muted);padding-bottom:12px;border-bottom:1px dashed var(--line);margin-bottom:14px}
.notice-detail-body{font-size:13.5px;line-height:1.9;color:var(--ink-2);word-break:break-word}
.notice-detail-body img{max-width:100%;height:auto;border-radius:8px}
.notice-detail-body p{margin:0 0 10px}

/* ================= 意见反馈 ================= */
.fb-wrap{padding:16px 18px;max-height:508px;overflow:auto}
.fb-form{padding-bottom:16px;border-bottom:1px dashed var(--line)}
.fb-hd{font-size:12.5px;font-weight:600;color:var(--ink-2);padding:14px 0 8px}
.fb-row{padding:12px 0;border-bottom:1px solid var(--line)}
.fb-row:last-child{border-bottom:0}
.fb-q{font-size:13.5px;color:var(--ink);line-height:1.7;word-break:break-word}
.fb-time{font-size:11.5px;color:#a9bfbc;margin-top:4px}
.fb-a{
  margin-top:9px;background:#f4faf9;border-left:3px solid var(--brand);border-radius:0 9px 9px 0;
  padding:10px 12px;font-size:13px;color:var(--ink-2);line-height:1.75;position:relative;word-break:break-word;
}
.fb-a-badge{
  display:inline-block;font-size:11px;font-weight:600;color:var(--brand-2);
  background:var(--brand-soft);border-radius:5px;padding:1px 7px;margin-right:7px;
}
.fb-a-time{display:block;font-size:11px;color:#a9bfbc;margin-top:5px}

/* ================= 标签选择 / 标签管理 ================= */
.tag-pick{display:flex;flex-wrap:wrap;gap:8px}
.tag-pick-item{
  padding:7px 15px;border:1px solid var(--line);border-radius:999px;font-size:13px;
  color:var(--ink-2);cursor:pointer;transition:.15s;background:#fff;
}
.tag-pick-item:hover{border-color:#bfe4df;color:var(--brand-2)}
.tag-pick-item.on{background:linear-gradient(135deg,#16baaa,#0d9488);border-color:transparent;color:#fff}
.tag-pick-tip{font-size:11.5px;color:var(--muted);margin:14px 0 0;line-height:1.7}
.tag-add{display:flex;gap:8px;margin-bottom:14px}
.tag-add .inp{flex:1;height:36px}
.tag-rows{max-height:250px;overflow:auto}
.tag-row{display:flex;align-items:center;gap:10px;padding:9px 2px;border-bottom:1px solid var(--line);font-size:13px}
.tag-row-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink);font-weight:500}
.tag-row-n{font-size:11.5px;color:var(--muted);flex:0 0 auto}
.tag-row-act{font-size:12px;color:var(--brand-2);flex:0 0 auto}
.tag-row-act.del{color:#e05b4d}

/* 门店子账号那一行：右侧有改名/改密/停用/解绑/删除 五个固定宽链接，
   窄屏下 .tag-row-name 的 flex:1 会被压成 0（名字直接看不见）。
   只能让名称和邮箱各占一整行、链接落到第三行。 */
@media (max-width: 640px) {
  .tag-row.seat-row { flex-wrap: wrap; row-gap: 7px; }
  .tag-row.seat-row .tag-row-name {
    flex: 1 1 100%; white-space: normal; overflow: visible; text-overflow: clip;
  }
  .tag-row.seat-row .tag-row-n { flex: 1 1 100%; margin-top: -3px; }
}

/* 平台外链角标 */
.plat-ext{font-style:normal;font-size:11px;color:var(--muted);margin-left:auto}
.plat.on .plat-ext{color:rgba(255,255,255,.8)}
/* 窄屏侧栏图标 */
@media (max-width:1180px){
  .rail-mini .mi-ico{width:17px;height:17px;flex-basis:17px}
}

/* 配额区：说明文字 + 扩容按钮 */
.quota-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:9px}
.quota-foot .quota-tip{margin:0;flex:1;min-width:0}
.quota-plans{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.quota-plan{
  border:1.5px solid var(--line);border-radius:12px;padding:13px 10px;text-align:center;
  cursor:pointer;transition:.16s;background:#fbfdfd;
}
.quota-plan:hover{border-color:#bfe4df}
.quota-plan.on{border-color:var(--brand);background:#f5fcfb;box-shadow:0 6px 18px rgba(13,148,136,.12)}
.quota-plan b{display:block;font-size:15px;color:var(--ink);letter-spacing:.2px}
.quota-plan span{display:block;margin-top:3px;font-size:12.5px;color:var(--brand-2);font-weight:600}

/* 素材背景音乐处理方式选择 */
.bgm-opt{
  border:1.5px solid var(--line);border-radius:11px;padding:11px 14px;cursor:pointer;
  transition:.16s;background:#fbfdfd;
}
.bgm-opt:hover{border-color:#bfe4df}
.bgm-opt.on{border-color:var(--brand);background:#f5fcfb;box-shadow:0 6px 18px rgba(13,148,136,.11)}
.bgm-opt b{display:block;font-size:13.5px;color:var(--ink);font-weight:600}
.bgm-opt span{display:block;font-size:12px;color:var(--muted);margin-top:2px;line-height:1.6}

/* 播报记录：列表自身滚动，分页固定可见 */
#pane-log .list{max-height:calc(100vh - 320px);overflow:auto;padding-right:4px}
#pane-log .pager{position:sticky;bottom:0;background:#fff;padding:12px 0 0;border-top:1px solid var(--line);margin-top:12px}
.dt-inp{width:236px}

/* ============================================================
 * 统一弹窗（bsDlg）
 * 阚荣浩 2026-10-31
 * 播音台所有弹窗共用一套外壳：圆角、品牌色标题条、底部右对齐按钮
 * ============================================================ */

/* ---------- 遮罩：毛玻璃 ----------
 * layui 给 shade 打的是内联 background-color + opacity，
 * 必须 !important 覆盖，否则 backdrop-filter 会被 0.32 的透明度冲淡；
 * 浓度改由 rgba 的 alpha 控制，才能和模糊一起叠加。
 */
.layui-layer-shade{
  opacity:1 !important;
  background:rgba(9,38,35,.26) !important;
  -webkit-backdrop-filter:blur(14px) saturate(1.15);
  backdrop-filter:blur(14px) saturate(1.15);
  animation:bsdShadeIn .26s ease both;
}
@keyframes bsdShadeIn{ from{background-color:rgba(9,38,35,0)} }

/* 嵌套时：这一层遮罩盖住的是「下面那个弹窗」而不是页面，
   再糊一次只会把大弹窗糊成一团白、反而看不出层次。
   所以第 2 层起只压暗不模糊，留着大弹窗的轮廓和标题做参照。 */
.layui-layer-shade[data-lv="2"]{
  background:rgba(9,38,35,.20) !important;
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
}
.layui-layer-shade[data-lv="3"]{
  background:rgba(13,42,39,.16) !important;
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
}

.layui-layer.bs{
  border-radius:var(--r);overflow:hidden;
  box-shadow:0 24px 64px rgba(13,60,56,.22),0 2px 8px rgba(13,60,56,.08);
  border:0;
  transition:transform .24s cubic-bezier(.2,.8,.3,1),box-shadow .24s;
  /* 只做淡入：位移/缩放动画看久了晃眼，弹窗出现应当是「浮现」而不是「飞入」 */
  animation:bsdFadeIn .2s ease-out both;
}
@keyframes bsdFadeIn{from{opacity:0}to{opacity:1}}

/* ---------- 嵌套弹窗：大包小 ----------
 * 每多一层就缩小、下移，让外层露出顶部标题条和左右边，
 * 配合下层被压暗 + 自身阴影加深，形成前后关系而不是完全重叠。
 */
.layui-layer.bsd-lv2{
  transform:translateY(18px) scale(.94);
  box-shadow:0 34px 84px rgba(9,38,35,.34),0 3px 10px rgba(9,38,35,.12);
}
.layui-layer.bsd-lv3{
  transform:translateY(36px) scale(.88);
  box-shadow:0 40px 96px rgba(9,38,35,.40),0 4px 12px rgba(9,38,35,.14);
}
.layui-layer.bs .layui-layer-title{
  height:auto;line-height:1.5;padding:17px 52px 15px 22px;
  background:#fff;border-bottom:1px solid var(--line);
  font-size:15px;font-weight:600;color:var(--ink);letter-spacing:.2px;
  position:relative;
}
/* 标题左侧品牌色竖条 */
.layui-layer.bs .layui-layer-title::before{
  content:'';position:absolute;left:0;top:18px;bottom:16px;width:3px;border-radius:0 3px 3px 0;
  background:linear-gradient(180deg,#16baaa,#0d9488);
}
.layui-layer.bs .bsd-title-txt{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:top}

/* 关闭按钮做成浅底色圆形，hover 变色 */
/* z-index 拉到 99：弹层内部任何内容都不许盖住右上角 ×（阚荣浩 2026-11-30） */
.layui-layer.bs .layui-layer-setwin{top:15px;right:14px;z-index:99}
.layui-layer.bs .layui-layer-setwin .layui-layer-close{
  width:28px;height:28px;border-radius:9px;background:#f2f7f7;
  color:#7d9a97;font-size:13px;line-height:28px;text-align:center;
  pointer-events:auto;
  transition:background .16s,color .16s;
}
.layui-layer.bs .layui-layer-setwin .layui-layer-close:hover{background:#e3efee;color:var(--ink)}

/* 多层弹窗里「下面那层」不显示 ×（阚荣浩 2026-11-21）
 * 它露在上层弹窗外面，看着可点，实际被上层的全屏遮罩盖着，点了毫无反应。
 * 只保留当前层的 ×，标题右侧留白也跟着收掉，看起来就是「这层不是当前层」 */
.layui-layer.bsd-under .layui-layer-setwin{display:none}
.layui-layer.bsd-under .layui-layer-title{padding-right:22px}

.layui-layer.bs .layui-layer-content{background:#fff;color:var(--ink-2)}
.layui-layer.bs .bsd-body{padding:20px 22px 4px;max-height:64vh;overflow:auto}
.layui-layer.bs.bsd-sm .bsd-body{padding:22px 22px 6px}

/* 底部按钮区 */
.layui-layer.bs .bsd-foot{
  display:flex;justify-content:flex-end;gap:10px;
  padding:16px 22px 20px;background:#fff;
}
.layui-layer.bs .bsd-btn{
  min-width:86px;height:38px;padding:0 20px;border-radius:10px;
  border:1px solid var(--line);background:#fff;color:var(--ink-2);
  font-size:13.5px;font-weight:500;cursor:pointer;
  transition:background .16s,border-color .16s,color .16s,transform .1s;
}
.layui-layer.bs .bsd-btn:hover{border-color:#bfe4df;color:var(--brand-2);background:#f8fdfc}
.layui-layer.bs .bsd-btn:active{transform:translateY(1px)}
.layui-layer.bs .bsd-btn.primary{
  border-color:transparent;color:#fff;
  background:linear-gradient(135deg,#16baaa,#0d9488);
  box-shadow:0 6px 16px rgba(13,148,136,.24);
}
.layui-layer.bs .bsd-btn.primary:hover{filter:brightness(1.04);color:#fff}
.layui-layer.bs .bsd-btn.danger{
  border-color:#f3c9c2;color:#d9534a;background:#fdf4f2;
}
.layui-layer.bs .bsd-btn.danger:hover{background:#fbe9e5;border-color:#eab3a9;color:#c7443a}

/* 确认类弹窗正文 */
.layui-layer.bs .bsd-msg{display:flex;gap:10px;align-items:flex-start;padding-bottom:8px}
.layui-layer.bs .bsd-msg p{margin:0;font-size:13.5px;line-height:1.85;color:var(--ink-2);word-break:break-word}
.layui-layer.bs .bsd-msg.danger .bsd-msg-ico{
  flex:0 0 22px;width:22px;height:22px;border-radius:50%;background:#fdecea;color:#d9534a;
  display:flex;align-items:center;justify-content:center;font-size:13px;margin-top:1px;
}
.layui-layer.bs .bsd-msg strong{color:var(--ink)}

/* 输入类弹窗 */
.layui-layer.bs .bsd-field{display:flex;flex-direction:column;gap:8px;padding-bottom:10px}
.layui-layer.bs .bsd-field label{font-size:12.5px;font-weight:600;color:var(--ink-2)}
.layui-layer.bs .bsd-inp{
  height:42px;padding:0 13px;border:1px solid var(--line);border-radius:10px;
  font-size:13.5px;color:var(--ink);background:#fbfdfd;outline:none;
  transition:border-color .16s,background .16s,box-shadow .16s;
}
.layui-layer.bs .bsd-inp:focus{border-color:#8fd8cf;background:#fff;box-shadow:0 0 0 3px rgba(22,186,170,.12)}

/* ================= 账号设置弹窗：头像 / 昵称 / 密码（阚荣浩 2026-12-05） =================
 * 客户群是超市老板，不认「设置」「偏好」这类词，所以文案直白：
 * 「点头像可以换一张」「改密码（不改就别填）」。 */
.layui-layer.bs .acc-top{display:flex;align-items:center;gap:14px;padding:2px 0 18px}
/* 头像与右下角「+」分开两层：圆片要 overflow:hidden 裁成圆形，
   但「+」在圆片边界上，塞在里面会被裁掉一半（阚荣浩 2026-12-05） */
.layui-layer.bs .acc-ava-wrap{position:relative;flex:none;width:64px;height:64px;cursor:pointer;transition:transform .16s}
.layui-layer.bs .acc-ava{
  width:100%;height:100%;border-radius:50%;overflow:hidden;
  display:grid;place-items:center;font-size:24px;font-weight:700;color:#fff;
  background:linear-gradient(135deg,#16baaa,#0d9488);
  transition:box-shadow .16s;
}
.layui-layer.bs .acc-ava-wrap:hover{transform:translateY(-1px)}
.layui-layer.bs .acc-ava-wrap:hover .acc-ava{box-shadow:0 0 0 4px rgba(22,186,170,.16)}
.layui-layer.bs .acc-ava img{width:100%;height:100%;object-fit:cover;display:block}
.layui-layer.bs .acc-ava-wrap.busy{opacity:.55;pointer-events:none}
.layui-layer.bs .acc-cam{
  position:absolute;right:-2px;bottom:-2px;width:22px;height:22px;border-radius:50%;
  background:#fff;color:#0d9488;font-style:normal;font-size:15px;font-weight:700;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 1px 5px rgba(13,148,136,.28);
}
.layui-layer.bs .acc-top-txt{min-width:0}
.layui-layer.bs .acc-top-txt b{display:block;font-size:13.5px;color:var(--ink);margin-bottom:4px}
.layui-layer.bs .acc-top-txt span{display:block;font-size:12px;color:var(--muted);line-height:1.6}
.layui-layer.bs .acc-sep{
  display:flex;align-items:center;gap:10px;margin:4px 0 14px;
  font-size:12px;color:#9bb0ad;white-space:nowrap;
}
.layui-layer.bs .acc-sep::before,.layui-layer.bs .acc-sep::after{content:'';flex:1;height:1px;background:#eaf2f1}

@media (max-width:640px){
  .layui-layer.bs .acc-top{gap:12px;padding-bottom:14px}
  .layui-layer.bs .acc-ava-wrap{width:56px;height:56px}
  .layui-layer.bs .acc-ava{font-size:21px}
  .layui-layer.bs .acc-top-txt b{font-size:13px}
  .layui-layer.bs .acc-top-txt span{font-size:11.5px}
}

/* 弹层内的通用表单块 */
.bsd-form .field{margin-bottom:16px}
.bsd-form .field:last-child{margin-bottom:4px}
.bsd-form .field>label{display:block;font-size:12.5px;font-weight:600;color:var(--ink-2);margin-bottom:7px}
.bsd-form .field>label .sub{font-weight:400;color:var(--muted);margin-left:6px;font-size:11.5px}
.bsd-form .inp,.bsd-form .sel{
  width:100%;height:42px;padding:0 12px;border:1px solid var(--line);border-radius:10px;
  background:#fbfdfd;font-size:13.5px;color:var(--ink);outline:none;font-family:inherit;
  transition:border-color .16s,background .16s,box-shadow .16s;
}
.bsd-form .sel{appearance:none;cursor:pointer;padding-right:32px;
  background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238ba3a1' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 12px center;
}
.bsd-form .inp:focus,.bsd-form .sel:focus{border-color:#8fd8cf;background:#fff;box-shadow:0 0 0 3px rgba(22,186,170,.12)}
.bsd-form .ta{width:100%;min-height:96px;padding:11px 13px;border:1px solid var(--line);border-radius:10px;
  background:#fbfdfd;font-size:13.5px;line-height:1.75;color:var(--ink);outline:none;resize:vertical;font-family:inherit}
.bsd-form .ta:focus{border-color:#8fd8cf;background:#fff;box-shadow:0 0 0 3px rgba(22,186,170,.12)}
.bsd-form .hint{font-size:11.5px;color:var(--muted);margin-top:6px;line-height:1.7}
.bsd-form .hint.err{color:#d9534a}
.bsd-form .row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}

/* 星期复选框 */
.wk-box{display:flex;gap:8px;flex-wrap:wrap}
.wk-box label{
  display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 14px;cursor:pointer;
  border:1px solid var(--line);border-radius:10px;background:#fbfdfd;font-size:13px;color:var(--ink-2);
  transition:border-color .16s,background .16s,color .16s;
}
.wk-box label:hover{border-color:#bfe4df;color:var(--brand-2)}
.wk-box input{display:none}
.wk-box label.on{background:linear-gradient(135deg,#16baaa,#0d9488);border-color:transparent;color:#fff;
  box-shadow:0 4px 12px rgba(13,148,136,.2)}

/* 时段列表 */
.pd-list{display:flex;flex-direction:column;gap:10px}
.pd-row{display:flex;align-items:center;gap:8px}
.pd-row input[type=time]{
  flex:1;height:40px;padding:0 10px;border:1px solid var(--line);border-radius:10px;
  background:#fbfdfd;font-size:13.5px;color:var(--ink);outline:none;font-family:inherit;
}
.pd-row input[type=time]:focus{border-color:#8fd8cf;background:#fff;box-shadow:0 0 0 3px rgba(22,186,170,.12)}
.pd-row .pd-sep{color:var(--muted);font-size:12.5px;flex:0 0 auto}
.pd-row .pd-del{
  flex:0 0 32px;width:32px;height:32px;border-radius:9px;border:1px solid var(--line);
  background:#fff;color:#a9bfbc;cursor:pointer;font-size:14px;line-height:1;
  transition:background .16s,color .16s,border-color .16s;
}
.pd-row .pd-del:hover{background:#fdf4f2;border-color:#f3c9c2;color:#d9534a}
.pd-add{
  margin-top:10px;height:36px;padding:0 16px;border:1px dashed #bfe4df;border-radius:10px;
  background:#f8fdfc;color:var(--brand-2);font-size:12.5px;cursor:pointer;
  transition:background .16s,border-color .16s;
}
.pd-add:hover{background:#eef9f7;border-color:#8fd8cf}
.pd-add[disabled]{opacity:.45;cursor:not-allowed}
.pd-tip{font-size:11.5px;color:var(--muted);margin:10px 0 0}

/* 开关 */
.sw-line{display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#fbfdfd}
.sw-line .sw-txt b{display:block;font-size:13px;color:var(--ink);font-weight:600}
.sw-line .sw-txt span{display:block;font-size:11.5px;color:var(--muted);margin-top:2px;line-height:1.6}
.sw{position:relative;flex:0 0 44px;width:44px;height:24px;border-radius:999px;background:#dde8e6;cursor:pointer;transition:background .18s}
.sw::after{content:'';position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;
  box-shadow:0 1px 4px rgba(0,0,0,.16);transition:transform .18s}
.sw.on{background:linear-gradient(135deg,#16baaa,#0d9488)}
.sw.on::after{transform:translateX(20px)}

/* ============================================================
 * 站内信弹窗（大文本框 + 倒计时）
 * ============================================================ */
.nt-pop .bsd-body{padding:0}
.nt-pop-head{
  padding:20px 24px 14px;display:flex;align-items:flex-start;gap:12px;
  background:linear-gradient(180deg,#f2fbfa,#fff);
}
.nt-pop-ico{
  flex:0 0 38px;width:38px;height:38px;border-radius:12px;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#16baaa,#0d9488);color:#fff;font-size:19px;
  box-shadow:0 6px 16px rgba(13,148,136,.24);
}
.nt-pop-head h4{margin:0;font-size:15px;font-weight:600;color:var(--ink);line-height:1.5;word-break:break-word}
.nt-pop-head .nt-pop-time{font-size:11.5px;color:var(--muted);margin-top:3px}
.nt-pop-body{
  margin:0 24px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:#fbfdfd;
  max-height:260px;overflow:auto;font-size:13.5px;line-height:1.9;color:var(--ink-2);
  word-break:break-word;cursor:pointer;
}
.nt-pop-body p{margin:0 0 9px}
.nt-pop-body p:last-child{margin-bottom:0}
.nt-pop-body img{max-width:100%;height:auto;border-radius:8px}
.nt-pop-more{display:block;padding:10px 24px 0;font-size:11.5px;color:var(--brand-2);cursor:pointer;text-align:right}
.nt-pop-more:hover{text-decoration:underline}
/* 倒计时进度条 */
.nt-cd{margin:14px 24px 0;height:4px;border-radius:99px;background:#eef4f3;overflow:hidden}
.nt-cd i{display:block;height:100%;width:100%;border-radius:99px;
  background:linear-gradient(90deg,#16baaa,#0d9488);transition:width .25s linear}
.nt-cd-txt{display:flex;justify-content:space-between;padding:7px 24px 0;font-size:11.5px;color:var(--muted)}
.nt-cd-txt b{color:var(--brand-2);font-weight:600}

/* ============================================================
 * 模板三级联动
 * ============================================================ */
.tpl-lib{display:flex;flex-direction:column;gap:10px}
.tpl-lib-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tpl-lib-row.full{grid-template-columns:1fr}
.tpl-lib select{
  width:100%;height:40px;padding:0 32px 0 12px;border:1px solid var(--line);border-radius:10px;
  background:#fbfdfd;font-size:13px;color:var(--ink);outline:none;cursor:pointer;appearance:none;
  background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238ba3a1' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 11px center;font-family:inherit;
  transition:border-color .16s,background-color .16s,box-shadow .16s;
}
.tpl-lib select:focus{border-color:#8fd8cf;background:#fff;box-shadow:0 0 0 3px rgba(22,186,170,.12)}
.tpl-lib select:disabled{opacity:.55;cursor:not-allowed}
.tpl-lib-list{
  border:1px solid var(--line);border-radius:12px;background:#fbfdfd;
  max-height:210px;overflow:auto;padding:6px;
}
.tpl-lib-item{
  padding:9px 11px;border-radius:9px;cursor:pointer;transition:background .14s;
  border:1px solid transparent;
}
.tpl-lib-item:hover{background:#eef9f7;border-color:#d5eeea}
.tpl-lib-item.on{background:#e7f7f5;border-color:#8fd8cf}
.tpl-lib-item b{display:block;font-size:13px;color:var(--ink);font-weight:600;margin-bottom:2px}
.tpl-lib-item span{display:block;font-size:11.5px;color:var(--muted);line-height:1.65;
  overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.tpl-lib-empty{padding:26px 10px;text-align:center;font-size:12.5px;color:var(--muted)}
.tpl-lib-foot{display:flex;gap:8px;align-items:center}
.tpl-lib-foot .btn{flex:1}

/* 素材卡片上的标签/分区/优先级下拉 */
.asset-tag-sel,.asset-zone-sel,.asset-prio-sel{
  height:26px;padding:0 24px 0 9px;border:1px solid #d9eaea;border-radius:8px;
  background:#f7fbfa;font-size:11.5px;color:var(--ink-2);outline:none;cursor:pointer;
  appearance:none;font-family:inherit;
  background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238ba3a1' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 7px center;
  transition:border-color .16s,background-color .16s;
}
.asset-tag-sel:hover,.asset-zone-sel:hover,.asset-prio-sel:hover{border-color:#bfe4df;background-color:#f2faf8}
.asset-tag-sel:focus,.asset-zone-sel:focus,.asset-prio-sel:focus{border-color:#8fd8cf;background-color:#fff}
/* 紧急优先级标红：这条已经不参与定时排期，只存在于紧急播报里，得让人一眼看出来 */
.asset-prio-sel.urgent{border-color:#f3c9c2;background-color:#fff7f5;color:#e05b4d}
.asset-prio-sel.urgent:hover{border-color:#eaa79c;background-color:#fff2ef}

/* ============================================================
 * 弹层内补充组件（订单 / 客服 / 邀请 / 排期列表）
 * 阚荣浩 2026-10-31
 * ============================================================ */
.bsd-subject{margin:0 0 14px;font-size:13px;color:var(--ink-2);line-height:1.7}
.bsd-subject b{color:var(--brand-2)}
.bsd-empty{font-size:12.5px;color:var(--muted)}

/* 支付 / 订单 */
.pay-tip{padding-bottom:4px}
.pay-tip>p{margin:0 0 14px;font-size:13.5px;line-height:1.8;color:var(--ink-2)}
.pay-line{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-top:1px dashed var(--line);font-size:13px}
.pay-line span{color:var(--muted)}
.pay-line b{color:var(--ink);font-weight:600;letter-spacing:.2px}
.pay-amt{color:#e0813f!important;font-size:15px}

/* BGM 选项（纵向卡片） */
.bgm-list{display:flex;flex-direction:column;gap:10px}
.bgm-list .bgm-opt{padding:13px 15px}

/* 客服聊天 */
.chat-wrap{display:flex;flex-direction:column;height:420px}
.chat-box{flex:1;overflow:auto;background:#f7fbfa;padding:14px;border-radius:0}
.chat-row{display:flex;margin:9px 0}
.chat-row.mine{justify-content:flex-end}
.chat-bubble{
  max-width:76%;padding:9px 13px;border-radius:12px;font-size:13px;line-height:1.7;
  background:#fff;border:1px solid var(--line);color:var(--ink);word-break:break-word;
}
.chat-row.mine .chat-bubble{background:linear-gradient(135deg,#16baaa,#0d9488);border-color:transparent;color:#fff}
.chat-who{display:block;font-size:11px;opacity:.68;margin-bottom:2px}
.chat-foot{display:flex;gap:8px;padding:12px 0 0;border-top:1px solid var(--line);margin-top:12px}
.chat-inp{flex:1}
.chat-send{flex:0 0 auto;min-width:78px}

/* 邀请码 */
.inv-codes{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.inv-code{
  display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border-radius:9px;
  background:#f2fbfa;border:1px solid #d5eeea;font-size:12.5px;color:var(--ink);font-weight:600;letter-spacing:.4px;
}
.inv-code em{font-style:normal;font-weight:400;font-size:11.5px;color:var(--brand-2)}

/* 排期列表项 */
.sched-item .item-right{display:flex;align-items:center;gap:10px}
/* 播放顺序：上下箭头调，同一时刻多条排期到点时按这个序号一条条播 */
.sched-seq{
  flex:0 0 32px;display:flex;flex-direction:column;align-items:center;gap:2px;
  user-select:none;padding:2px 0;
}
.sched-seq b{font-size:12.5px;font-weight:600;color:var(--ink-2);line-height:1}
.sched-mv{
  font-size:10px;font-style:normal;color:#a9bfbc;cursor:pointer;line-height:1;
  padding:1px 4px;border-radius:4px;transition:.14s;
}
.sched-mv:hover{color:var(--brand-2);background:var(--brand-soft)}
.sched-st{font-size:12px;color:var(--ink-2)}

/* 断网提示条：播报台联网运行，断网就播不了，得把原因说清楚  阚荣浩 2026-11-01 */
.net-banner{
  display:none;align-items:center;gap:9px;
  padding:10px 20px;background:#fff5e9;border-bottom:1px solid #f6dcbb;color:#a25b13;
  font-size:13px;line-height:1.5;
}
.net-banner.on{display:flex}
.net-banner .layui-icon{font-size:16px;color:#d98324}
.net-banner em{font-style:normal;font-size:12px;color:#b8834a;margin-left:auto}

/* 批量操作条：多选启用/关闭 + 一键启用/关闭  阚荣浩 2026-11-01 */
.sched-bar{
  display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  padding:9px 14px;margin:0 0 12px;
  background:#f6fbfa;border:1px solid var(--line);border-radius:12px;
}
.sched-all{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--ink-2);cursor:pointer;user-select:none}
.sched-all input,.sched-ck{
  width:15px;height:15px;accent-color:#16baaa;cursor:pointer;margin:0;flex:0 0 auto;
}
.sched-cnt{font-size:12.5px;color:var(--ink-2)}
.sched-cnt b{color:#0d9488;font-weight:600}
.sched-ops{display:flex;align-items:center;gap:8px;margin-left:auto}
.sched-div{width:1px;height:18px;background:var(--line);margin:0 2px}
.sched-bar .btn:disabled{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}
/* 勾选中的行淡底，一眼看出这次会动哪几条 */
.sched-item.on-sel{background:#f4fbfa;border-color:#bfe3de}
.sched-op{font-size:12px;color:var(--brand-2);cursor:pointer}
.sched-op:hover{text-decoration:underline}
.sched-op.del{color:#e05b4d}
.sched-mode{
  display:inline-block;margin-left:8px;padding:1px 8px;border-radius:6px;
  font-size:11px;font-weight:500;vertical-align:1px;
}
.sched-mode.cont{background:#e7f7f5;color:var(--brand-2)}
.sched-mode.once{background:#f2f5f5;color:var(--muted)}

/* 站内信详情正文 */
.nt-detail-body{
  padding:2px 24px 6px;font-size:13.5px;line-height:1.95;color:var(--ink-2);
  word-break:break-word;max-height:60vh;overflow:auto;
}
.nt-detail-body p{margin:0 0 10px}
.nt-detail-body img{max-width:100%;height:auto;border-radius:8px}
.nt-detail-body b{color:var(--ink)}

/* 标签管理里的输入框宽度 */
.tag-add .bsd-inp{flex:1;height:38px}
.tag-add .bsd-btn{min-width:70px;height:38px}

/* ============================================================
 * 2026-10-31 补充：多行输入 / 模板标签 / 站内信分页 / 排期开关
 * 阚荣浩 2026-10-31
 * ============================================================ */

/* 弹窗内的多行输入
 * textarea 不给 width 就会按 cols 撑出一个又窄又长的框，
 * 之前的意见反馈就是这个毛病，这里统一 width+box-sizing。 */
.bsd-ta{
  display:block;width:100%;box-sizing:border-box;height:116px;min-height:96px;
  padding:12px 14px;border:1px solid var(--line);border-radius:11px;background:#fbfdfd;
  font-family:inherit;font-size:13.5px;line-height:1.8;color:var(--ink);
  outline:none;resize:vertical;
  transition:border-color .16s,background .16s,box-shadow .16s;
}
.bsd-ta:focus{border-color:#8fd8cf;background:#fff;box-shadow:0 0 0 3px rgba(22,186,170,.12)}
.bsd-ta::placeholder{color:#a9bfbc}

/* ---------- 模板库：分区 / 类型 标签行 ---------- */
.tpl-tags{display:flex;align-items:flex-start;gap:9px}
.tpl-tags-hd{flex:0 0 28px;font-size:12px;color:var(--muted);line-height:24px}
.tpl-tag-row{flex:1;display:flex;flex-wrap:wrap;gap:6px;max-height:84px;overflow:auto;padding-right:2px}
.tpl-chip{
  display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 10px;
  border:1px solid var(--line);border-radius:999px;background:#fff;white-space:nowrap;
  font-size:12px;color:var(--ink-2);cursor:pointer;transition:.14s;
}
.tpl-chip:hover{border-color:#bfe4df;background:#f4fbfa}
.tpl-chip.on{border-color:var(--brand);background:var(--brand-soft);color:var(--brand-2);font-weight:600}
.tpl-chip em{font-style:normal;font-size:10.5px;color:#9db3b0;background:#f1f6f5;border-radius:6px;padding:0 4px}
.tpl-chip.on em{color:var(--brand-2);background:#fff}
.tpl-tag-none{font-size:12px;color:#a9bfbc;line-height:24px}
.tpl-item-tags{display:flex;gap:5px;margin-top:5px}
.tpl-item-tags i{font-style:normal;font-size:10.5px;color:#7d9a97;background:#f0f6f5;border-radius:5px;padding:1px 6px}
.tpl-lib-more{text-align:center;font-size:12px;color:var(--brand);padding:9px 0 5px;cursor:pointer}
.tpl-lib-more:hover{text-decoration:underline}
.tpl-lib-end{text-align:center;font-size:11.5px;color:#a9bfbc;padding:9px 0 5px}

/* ---------- 站内信：分类页签 + 分页 ---------- */
.nt-list-dlg .bsd-body{padding:14px 18px 0;display:flex;flex-direction:column;height:100%;box-sizing:border-box}
.nt-tabs{display:flex;gap:7px;flex-wrap:wrap;padding-bottom:12px;border-bottom:1px solid var(--line)}
.nt-tab{
  display:inline-flex;align-items:center;gap:4px;height:28px;padding:0 12px;border-radius:999px;
  font-size:12.5px;color:var(--ink-2);cursor:pointer;transition:.14s;background:#f4f8f8;
}
.nt-tab:hover{background:#eaf4f3}
.nt-tab.on{background:var(--brand-soft);color:var(--brand-2);font-weight:600}
.nt-tab em{font-style:normal;font-size:10.5px;color:#9db3b0}
.nt-tab.on em{color:var(--brand-2)}
.nt-list-dlg .notice-list{flex:1;max-height:none;overflow:auto;margin-top:4px}
.nt-type{
  font-style:normal;font-size:10.5px;font-weight:400;color:#7d9a97;background:#f0f6f5;
  border-radius:5px;padding:1px 6px;margin-left:7px;vertical-align:1px;
}
.nt-pager{
  display:flex;align-items:center;justify-content:center;gap:14px;
  padding:11px 0;border-top:1px solid var(--line);margin-top:6px;
}
.nt-pg{font-size:12.5px;color:var(--brand);cursor:pointer;padding:3px 10px;border-radius:7px}
.nt-pg:hover{background:var(--brand-soft)}
.nt-pg.off{color:#c3d4d2;cursor:default;background:none}
.nt-pg-info{font-size:12px;color:var(--muted)}

/* ---------- 排期列表里的启用/暂停开关 ---------- */
.sched-sw{flex:0 0 44px;margin-right:4px}

/* ---------- 意见反馈 ---------- */
.fb-actions{display:flex;align-items:center;justify-content:space-between;margin-top:11px}
.fb-tip{font-size:11.5px;color:#a9bfbc}

/* 服务端播报中的提示行 */
.pb-text{margin-top:6px;font-size:12.5px;color:var(--muted);line-height:1.6}

/* ================= 「选择模板」弹窗 ================= */
/* 播报台标题右侧的两个操作：选择模板 / 存为我的模板，同一行、同一字号 */
.tpl-hd-ops{float:right;display:inline-flex;align-items:center;gap:14px;font-weight:400}
.tpl-hd-ops a{
  font-size:12px;color:var(--brand);display:inline-flex;align-items:center;gap:3px;
  text-decoration:none;transition:.15s;
}
.tpl-hd-ops a:hover{color:var(--brand-2)}
.tpl-hd-ops .layui-icon{font-size:12px}

/* 「快速填入」：素材下拉 + 「选择模板」按钮并排一行（阚荣浩 2026-11-21）
 * 下拉吃满剩余宽度，按钮定宽不换行；按钮高度跟 .pk 对齐，看起来是一条完整的输入行 */
.src-line{display:flex;align-items:center;gap:10px}
.src-line .pk{flex:1 1 auto;min-width:0}
.src-tpl{
  flex:0 0 auto;height:42px;padding:0 14px;border:1px solid var(--line);border-radius:11px;
  background:#fbfdfd;display:inline-flex;align-items:center;gap:5px;
  font-size:13px;color:var(--brand);text-decoration:none;white-space:nowrap;transition:.18s;
}
.src-tpl:hover{border-color:var(--brand);background:#fff;color:var(--brand-2)}
.src-tpl .layui-icon{font-size:13px}
@media(max-width:640px){
  .src-line{gap:8px}
  .src-tpl{padding:0 10px;font-size:12.5px}
}

/* 弹窗内部骨架 */
.tpl-pick-dlg .bsd-body{padding:14px 16px 0;box-sizing:border-box}
.tpl-pick{display:flex;flex-direction:column;gap:10px}
.tpl-pick-hd{display:flex;gap:12px;align-items:flex-end}
.tpl-pick-field{display:flex;flex-direction:column;gap:5px;flex:0 0 200px}
.tpl-pick-field.grow{flex:1}
.tpl-pick-field label{font-size:12px;color:var(--muted)}
.tpl-pick-field .inp{height:40px}

.tpl-pick-main{
  display:grid;grid-template-columns:1fr 340px;gap:12px;height:392px;
  border-top:1px solid var(--line);padding-top:10px;
}
.tpl-pick-list{
  border:1px solid var(--line);border-radius:12px;background:#fbfdfd;
  overflow:auto;padding:6px;height:100%;box-sizing:border-box;
}
.tpl-pick-item{
  padding:10px 12px;border-radius:9px;cursor:pointer;transition:.14s;
  border:1px solid transparent;
}
.tpl-pick-item:hover{background:#eef9f7;border-color:#d5eeea}
.tpl-pick-item.on{background:#e7f7f5;border-color:var(--brand)}
.tpl-pick-item b{display:block;font-size:13px;color:var(--ink);font-weight:600;margin-bottom:3px}
.tpl-pick-item span{
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  overflow:hidden;font-size:11.5px;color:var(--muted);line-height:1.65;
}

/* 右侧预览 */
.tpl-pick-side{
  border:1px solid var(--line);border-radius:12px;background:#fff;
  display:flex;flex-direction:column;overflow:hidden;height:100%;box-sizing:border-box;
}
.tpl-preview-empty{
  flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:8px;color:#b6c9c7;font-size:12.5px;text-align:center;line-height:1.9;
}
.tpl-preview-empty .layui-icon{font-size:26px;color:#d6e4e2}
.tpl-preview-hd{padding:11px 13px;border-bottom:1px solid var(--line);background:#fafdfc}
.tpl-preview-hd b{display:block;font-size:13.5px;color:var(--ink);margin-bottom:4px}
.tpl-preview-tags{font-size:11px;color:#8fa9a6}
.tpl-preview-body{
  flex:1;overflow:auto;padding:12px 13px;font-size:13px;line-height:1.95;
  color:var(--ink-2);white-space:pre-wrap;word-break:break-word;
}

/* 手机端「选择模板」弹窗（阚荣浩 2026-12-05）
 * 弹窗宽度被钳到 370 左右，原来两栏 .tpl-pick-main 是 grid(1fr 340px)：
 * 340px 的预览栏把 1fr 压到只剩十几像素 —— 左侧列表成了一条细缝，
 * 条目文字竖排、点上去命中的是容器不是条目，客户就是「点哪都没反应」。
 * 手机改成单列：语言/搜索各占一行，标签行限高可滚，列表占满整宽，
 * 右侧预览收起（点中条目后确认使用会填进播报框，可以接着改）。 */
@media (max-width:640px){
  .tpl-pick-dlg .bsd-body{padding:12px 12px 0}
  .tpl-pick-hd{flex-wrap:wrap;gap:8px}
  .tpl-pick-field{flex:1 1 100%}
  .tpl-pick-field .inp{height:38px}
  .tpl-pick-main{grid-template-columns:minmax(0,1fr);height:auto;gap:8px}
  .tpl-pick-list{height:auto;max-height:min(46vh,320px)}
  .tpl-pick-side{display:none}
  .tpl-tag-row{max-height:56px}
  .tpl-pick-item{padding:9px 10px}
  .tpl-pick-item span{-webkit-line-clamp:3}
}

/* ================= 我的邀请 ================= */
.inv-wrap{display:flex;flex-direction:column;gap:14px}
.inv-code-box{
  border:1px solid #cfebe7;border-radius:14px;background:linear-gradient(180deg,#f3fbfa,#fff);
  padding:16px 18px;display:flex;flex-direction:column;gap:8px;align-items:flex-start;
}
.inv-code-lb{font-size:12px;color:var(--muted)}
.inv-code-big{
  font-size:26px;letter-spacing:4px;color:var(--brand-2);font-weight:700;
  font-family:ui-monospace,Menlo,Consolas,monospace;
}
.inv-code-ops{display:flex;gap:8px}
.inv-code-ops .btn{height:32px;padding:0 14px;font-size:12.5px}
.inv-code-tip{margin:2px 0 0;font-size:12px;color:var(--muted);line-height:1.85}
.inv-code-tip b{color:var(--brand-2);font-weight:600}

.inv-stat{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
/* 普通客户只有两项：有效邀请 / 获得天数（阚荣浩 2026-11-15） */
.inv-stat.two{grid-template-columns:repeat(2,1fr)}
.inv-stat-item{
  border:1px solid var(--line);border-radius:12px;background:#fbfdfd;
  padding:11px 12px;display:flex;flex-direction:column;gap:3px;
}
.inv-stat-item b{font-size:19px;color:var(--ink);font-weight:700;line-height:1.2}
.inv-stat-item span{font-size:11.5px;color:var(--muted)}
.inv-stat-item.hot{border-color:#bfe4df;background:#f1faf8}
.inv-stat-item.hot b{color:var(--brand-2)}

.inv-com{
  border-radius:11px;background:#fff8ec;border:1px solid #ffe2bb;
  padding:10px 13px;font-size:12.5px;color:#9a6b1f;
  display:flex;flex-wrap:wrap;gap:6px 18px;
}
.inv-com b{font-weight:700;color:#8a5c10}

/* 我的邀请关系（阚荣浩 2026-11-15）：有效时是一行灰字，无效/未绑定时变成行动条 */
.inv-mine{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  border:1px solid var(--line);border-radius:11px;background:#fbfdfd;
  padding:9px 13px;font-size:12.5px;color:#6b7d7b;
}
.inv-mine-lb{font-size:11.5px;color:var(--muted)}
.inv-mine b{color:var(--ink);font-weight:600}
.inv-mine-time{font-size:11.5px;color:#a8b8b6;margin-left:auto}
.inv-mine.act{
  flex-direction:column;align-items:stretch;gap:8px;
  border-color:#ffe0c2;background:#fffaf3;
}
.inv-mine-t{display:flex;flex-direction:column;gap:2px}
.inv-mine-t b{font-size:13px;color:#b06a00}
.inv-mine-t span{font-size:11.5px;color:#a98a5e;line-height:1.7}
.inv-mine-f{display:flex;gap:8px}
.inv-mine-f input{
  flex:1;height:32px;border:1px solid #e6dccd;border-radius:8px;
  background:#fff;padding:0 10px;font-size:12.5px;color:var(--ink);
  font-family:ui-monospace,Menlo,Consolas,monospace;letter-spacing:1px;text-transform:uppercase;
}
.inv-mine-f input:focus{outline:none;border-color:var(--brand-2)}
.inv-mine-f .btn{height:32px;padding:0 16px;font-size:12.5px;flex:0 0 auto}

/* 子账号：没有邀请码的说明卡（阚荣浩 2026-11-15） */
.inv-lock{
  border:1px solid #e6ecef;border-radius:14px;background:#fbfdfd;
  padding:26px 22px;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;
}
.inv-lock .layui-icon{font-size:30px;color:#c2d4d2}
.inv-lock b{font-size:15px;color:var(--ink);font-weight:700}
.inv-lock p{margin:0;font-size:12.5px;color:var(--muted);line-height:1.9;max-width:480px}
.inv-lock .btn{margin-top:4px;height:34px;padding:0 18px;font-size:13px}
.inv-lock-tip{font-size:11.5px !important;color:#a8b8b6 !important}
.inv-lock-tip b{color:#e2743c;font-weight:600;font-size:11.5px}

.inv-sec-hd{
  display:flex;align-items:center;justify-content:space-between;
  font-size:13px;font-weight:600;color:var(--ink);
  padding-bottom:8px;border-bottom:1px solid var(--line);
}
.inv-sec-hd span{font-size:11.5px;font-weight:400;color:var(--muted)}

.inv-rec-list{display:flex;flex-direction:column}
.inv-rec{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:10px 2px;border-bottom:1px dashed #eef3f2;
}
.inv-rec:last-child{border-bottom:none}
.inv-rec-l b{display:block;font-size:13px;color:var(--ink);font-weight:500}
.inv-rec-l span{font-size:11.5px;color:var(--muted)}
.inv-rec-r{display:flex;align-items:center;gap:8px;text-align:right}
.inv-rec-r em{
  font-style:normal;font-size:11.5px;color:#9db3b0;background:#f2f7f6;
  border-radius:6px;padding:2px 7px;
}
.inv-rec-r em.on{color:#b06a00;background:#fff3e0}
.inv-rec-r i{font-style:normal;font-size:12px;font-weight:600;color:var(--brand-2)}
.inv-dlg .bsd-body{padding:16px 18px 0;max-height:none}

/* 排期卡片里的「下次 / 上次」提示 */
.sched-run{font-size:11.5px;color:var(--brand-2);margin-right:10px}
.sched-run.gray{color:#a9bfbc}

/* 订单里的「申请退款」入口（阚荣浩 2026-11-02） */
.item-sub .ord-refund{color:var(--brand-2);text-decoration:underline;margin-left:2px}
.item-sub .ord-refund:hover{color:#0e7f5e}
/* 支付二维码容器：canvas/img 都要贴住边框，避免高低不齐 */
#bs-pay-qr canvas,#bs-pay-qr img{display:block;border-radius:4px}

/* =================================================================
 * 移动端适配（阚荣浩 2026-11-03）
 * 目标：手机/iPad 可用；桌面端 0 变化 —— 所有规则都在 media query 内，
 * 新增的 .rail-more 在桌面 display:none。
 *
 * 断点说明：
 *   ≤1024px  iPad（含竖屏 744/768、横屏 1024）：保留图标侧栏，只修挤压
 *   ≤768px   手机：侧栏改为底部标签栏，内容占满整屏
 * ================================================================= */

/* 「我的」按钮：手机才出现（客服/反馈/邀请/锁屏/退出 的入口） */
.rail-more{display:none}

/* ================= iPad：修挤压 ================= */
@media (max-width:1024px){
  .panes{padding:18px 18px 26px}
  .card-bd{padding:16px}
  /* 卡片内边距收一点，表格式列表在 700 多宽时更容易排下 */
  .card-hd{padding:13px 16px}

  /* 阚荣浩 2026-12-05：手机/iPad 的 Safari 装不了 Chrome 扩展（音乐闪避插件），
     第三方音乐平台是跨域新标签页、压不了它们的音乐，跳过去只会让客户误以为能压低。
     所以手机/iPad 把「第三方音乐平台」整块 + 「安装插件教程」入口藏掉，只留「我的音乐库」
     （页面内 <audio>，播报时能真实压低）。桌面 Chrome/Edge 能装插件，照旧全显示。 */
  .music-side-hd.side-gap{display:none}
  #plat-tabs{display:none}
  .music-help{display:none}
  /* 阚荣浩 2026-12-05：第三方平台藏掉后，左栏只剩「我的音乐库」一个恒选中的按钮，
     纯占高度。手机 / iPad 整块不显示，曲库直接顶到卡片顶部。 */
  #pane-music .music-side{display:none}
}

/* 素材列表折行（阚荣浩 2026-11-20）：
 * 断点按实际可用宽度定，不按设备定 —— 1024 的 iPad 横屏一行还放得下（收窄侧栏后行宽约 890），
 * 折早了会白占三行高、一屏只看得到两三条；<=960 改成「名称一行 / 标签与试听一行」两层，
 * 再窄到手机才把试听单独放第三行。 */
@media (max-width:960px){
  .asset{grid-template-columns:32px minmax(0,1fr) auto;align-items:start;gap:6px 12px;padding:13px 4px}
  .asset-ico,.asset-ck{grid-row:1;grid-column:1;margin-top:1px}
  .asset-main{grid-row:1;grid-column:2/4}
  .asset-tagline{grid-row:2;grid-column:2;align-self:center}
  .asset-tail{grid-row:2;grid-column:3;align-self:center;margin-top:2px}
}

/* ================= 手机：底部标签栏 + 单列 =================
 * 断点 640：iPad 竖屏 744/768 仍用图标侧栏（横向空间够，侧栏更省上下空间），
 * 641~768 区间的手机横屏同理走侧栏。
 * =========================================================== */
@media (max-width:640px){
  /* --- 骨架：单列，给底部栏留出空间 --- */
  .app{grid-template-columns:1fr;height:100vh;height:100dvh}
  .main{height:100%}
  .panes{padding:14px 12px calc(74px + env(safe-area-inset-bottom))}
  .card.fill{min-height:calc(100dvh - 210px)}

  /* --- 侧栏 → 底部固定标签栏 --- */
  .rail{
    position:fixed;left:0;right:0;bottom:0;top:auto;z-index:80;
    flex-direction:row;align-items:stretch;
    padding:0 4px env(safe-area-inset-bottom);
    background:rgba(255,255,255,.98);
    border-right:0;border-top:1px solid var(--line);
    box-shadow:0 -6px 22px rgba(13,148,136,.09);
    /* 阚荣浩 2026-12-05：必须复位 —— ≤1180 的图标侧栏规则给 .rail 加了 overflow-y:auto，
       底部栏不会滚动，但 auto 会把「我的」浮层（绝对定位在栏上方）整个裁掉，
       表现就是「点了我的没反应」。overflow:visible 后浮层才能露出来 */
    overflow:visible;
  }
  .rail-brand{display:none}
  .rail-nav{flex-direction:row;flex:1 1 auto;margin:0;gap:0;justify-content:space-around}
  .rail-item{
    flex:1 1 0;min-width:0;height:56px;padding:7px 1px 5px;
    flex-direction:column;justify-content:center;gap:3px;
    border-radius:0;font-size:11px;font-weight:500;
  }
  .rail-item span{
    display:block;font-size:11px;line-height:1.15;white-space:nowrap;
    letter-spacing:-.2px;
  }
  .rail-item .layui-icon{font-size:18px}
  .rail-item .mi-ico{width:18px;height:18px;flex-basis:18px}
  /* 阚荣浩 2026-12-05：底部栏只放 6 个高频入口（播报台 / 现场喊话 / 音乐源 /
     素材库 / 定时排期 / 紧急播报），播报记录和我的授权收进「我的」浮层 ——
     390 宽下 8 个格子每格只有 41px，4 个字必然压成一坨 */
  .rail-item-aux{display:none!important}
  .rail-mini-pane{display:flex}
  /* 阚荣浩 2026-12-05：手机端不展示锁屏入口。地推现场给客户试用，
     锁屏弹窗在窄屏上挡操作，忘了密码还得找客服解锁。桌面端照旧。 */
  #btn-lock{display:none}
  /* 底部栏不需要左侧竖条指示，用底色区分 */
  .rail-item.on::before{display:none}
  .rail-item.on{background:transparent}
  .rail-item.on .layui-icon,.rail-item.on .mi-ico{color:var(--brand-2)}
  .rail-item.on span{color:var(--brand-2);font-weight:700}
  .rail-item.on::after{
    content:"";position:absolute;top:0;left:50%;transform:translateX(-50%);
    width:22px;height:2.5px;border-radius:0 0 3px 3px;
    background:linear-gradient(90deg,#16baaa,#0d9488);
  }

  /* 「我的」：固定在右端，点开是快捷项浮层 */
  .rail-more{
    display:flex;flex:0 0 54px;flex-direction:column;align-items:center;justify-content:center;gap:3px;
    width:54px;height:56px;color:var(--ink-2);font-size:10.5px;cursor:pointer;
    border-left:1px solid var(--line);
  }
  .rail-more .layui-icon{font-size:18px;color:#9fb4b2}
  .rail-more.on .layui-icon,.rail-more.on span{color:var(--brand-2)}

  /* 快捷项浮层：底部栏上方弹出。
     ⚠️ 不能用 position:fixed —— .rail 手机端有 backdrop-filter，会变成 fixed 的包含块，
     导致浮层相对底部栏而非视口定位、弹不出来（手机点「我的」没反应就是这个原因）。
     改成 absolute 相对底部栏（.rail 本身是 fixed）向上弹出。 */
  .rail-foot{
    display:none;position:absolute;right:8px;bottom:calc(100% + 10px);
    z-index:81;margin:0;padding:8px;gap:0;min-width:150px;
    background:#fff;border:1px solid var(--line);border-radius:14px;
    box-shadow:0 12px 34px rgba(13,148,136,.18);
    /* 横屏/小屏手机高度不够时浮层内部滚动，别顶到屏幕外 */
    max-height:calc(100dvh - 110px);overflow-y:auto;
  }
  .rail-foot.open{display:flex}
  .rail-mini{height:44px;font-size:14px;color:var(--ink-2)}
  .rail-mini .layui-icon{font-size:16px}
  .rail-mini .mi-ico{width:16px;height:16px;flex-basis:16px}

  /* --- 卡片头：标题+hint+按钮一行放不下，hint 换到第二行，按钮保持完整不折行 --- */
  .card-hd{flex-wrap:wrap;row-gap:7px}
  .card-hd .hd-hint{flex:1 1 100%;order:3;margin-left:0;white-space:normal;line-height:1.5}
  .card-hd .btn{flex:0 0 auto}

  /* --- 顶栏收紧 --- */
  .topbar{height:56px;flex:0 0 56px;padding:0 14px}
  .topbar h1{font-size:16.5px}
  .topbar-sub{display:none}
  .topbar-r{gap:8px}
  /* 阚荣浩 2026-12-05：手机端顶栏两个按钮只留图标（回官网 / 信息），
     文字藏起来省宽度；未读数从行内挪到右上角，做成小红点不占位 */
  .chip-btn{position:relative;height:30px;min-width:30px;padding:0 8px;font-size:12px;justify-content:center}
  .chip-btn .layui-icon{font-size:16px}
  .chip-txt{display:none}
  .chip-home{display:inline-flex}
  .chip-btn em{position:absolute;top:-5px;right:-5px;min-width:15px;height:15px;line-height:15px;font-size:10px;padding:0 3px}
  .avatar{width:29px;height:29px;font-size:12px}

  /* --- 断网提示：两行文案在窄屏要换行 --- */
  .net-banner{padding:9px 13px;flex-wrap:wrap;gap:6px;font-size:12.5px}
  .net-banner em{font-size:11.5px;margin-left:0;width:100%;padding-left:25px}

  /* --- 播报台：音色/分类/优先级三个下拉在手机竖排成单列 ---
       375px 下两列会变成「音色+分类一行、优先级孤零零占左下、右半空着」，
       竖排每行占满整宽，看着整齐、也好点 */
  .field-row{grid-template-columns:1fr;gap:12px}

  /* --- 播报记录筛选条：日期输入占满整行，查询/重置/导出按钮另起一行 --- */
  .log-bar{row-gap:8px}
  .log-bar .dt-inp{flex:1 1 calc(50% - 20px);width:auto;min-width:0}
  .log-sep{flex:0 0 auto}
  .log-bar-r{flex:1 1 100%;margin-left:0}
  .log-bar-r .btn{flex:1 1 0}

  /* --- 素材库工具栏：搜索框独占一行，分类/标签/上传三个按钮平分下一行 --- */
  .asset-bar{gap:8px;margin-bottom:12px}
  .asset-search-bar{flex-wrap:wrap}
  .asset-search-bar .asset-bar-l{flex:1 1 100%;flex-wrap:wrap}
  .asset-filter-pk{flex:1 1 calc(50% - 4px);width:auto}
  .asset-search-bar .search-inp{flex:1 1 100%;width:100%;max-width:none}
  .asset-bar-r{flex:1 1 100%;width:100%;margin-left:0;flex-wrap:wrap;gap:7px}
  .search-inp{flex:1 1 100%;width:100%;min-width:0}
  /* 手机端 5 个按钮（分类/标签/全选/删除/上传）一行放不下，改按内容宽度自然换行：
     nowrap 防止「分类管理」被压成竖排（一字一行），flex:0 0 auto 让每个按钮多宽就用多宽 */
  .asset-bar-r .btn{flex:0 0 auto;min-width:0;padding:0 10px;white-space:nowrap}

  /* --- 素材列表：手机一行只够放名称，标签与试听各占一行，播放器拉满剩余宽度 --- */
  .asset{grid-template-columns:32px minmax(0,1fr);padding:12px 2px;gap:6px 10px}
  .asset-main{grid-row:1;grid-column:2}
  .asset-name{font-size:13px}
  .asset-tagline{grid-row:2;grid-column:2;align-self:auto}
  .asset-tail{grid-row:3;grid-column:2;align-self:auto;justify-self:stretch;justify-content:space-between;gap:8px}
  .asset audio{width:auto;flex:1 1 auto;min-width:0;height:34px}

  /* --- 排期卡片：右侧开关/操作整体换到第二行 --- */
  .sched-item{flex-wrap:wrap;row-gap:4px;padding:12px 2px}
  .sched-item .item-right{
    flex:1 1 100%;width:100%;justify-content:flex-end;
    margin-top:6px;padding-top:8px;border-top:1px dashed var(--line);
  }
  .sched-item .item-main{flex:1 1 auto;min-width:0}
  /* 勾选框和序号靠上对齐，别被多行文字带偏 */
  .sched-ck,.sched-seq{align-self:flex-start;margin-top:2px}

  /* --- 播报记录：状态列别顶到边上 --- */
  .item{gap:9px}
  .item-right{padding-left:4px}

  /* --- 排期批量操作条：4 个按钮在 390 宽下会挤成两行文字 --- */
  .sched-bar{padding:9px 11px;gap:8px 10px}
  .sched-ops{flex:1 1 100%;margin-left:0;flex-wrap:wrap;gap:7px}
  .sched-ops .btn{flex:1 1 auto;white-space:nowrap;padding:0 10px}
  .sched-div{display:none}

  /* --- 客服聊天 / 弹层高度按视口走 --- */
  .chat-wrap{height:min(420px,58vh)}
  .btn{height:44px;padding:0 18px;font-size:14.5px}
  .btn-sm{height:34px;padding:0 13px;font-size:13px}
}

/* 超窄屏（iPhone SE 375 / 老机型 360）再收一档 */
@media (max-width:400px){
  .rail-item span{font-size:9.5px}
  .rail-item .layui-icon{font-size:17px}
  .rail-more{flex-basis:48px;width:48px}
  .panes{padding:12px 10px calc(72px + env(safe-area-inset-bottom))}
  .topbar{padding:0 11px}
  .topbar h1{font-size:16px}
  .card-bd{padding:14px}
}

/* ============================================================
 * 定时排期列表改版（阚荣浩 2026-11-20）
 *
 * 改版前的问题：
 *   1) 一行里横向塞了 5 样东西（状态灯 + 标题 + 播法标签 + 三行 12px 小字 +
 *      开关/运行中/试播/编辑/删除），字小、行距近，看着就挤；
 *   2) 卡片只有半屏高，下面空出 200 多像素，像是没加载完；
 *   3) 文案是内部说法：「连续不断 · 每 5 秒」「每段一次」「背景音乐压低到 20」。
 *
 * 改版后：
 *   · 卡片撑满可视区，列表在卡片里自然排下去；
 *   · 每条排期分三层：标题（15px）/ 什么时候在哪播 / 下次播报，
 *     开关和操作拆成右上、右下两行，不再跟标题抢宽度；
 *   · 文案换成普通人说法（见 client.js 的 periodText / weekText / dayText）。
 * ============================================================ */

/* ---------- 卡片撑满可视区（平板及以上；手机是整页滚动，不撑） ---------- */
/* 减掉：顶栏 66 + 顶部广告条 ~48 + panes 上下留白 52 + 底部广告条 38 */
@media (min-width:641px) {
  #pane-schedule .card { min-height: calc(100vh - 216px); }
}
#pane-schedule .card-bd { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
#sched-list { flex: 1 1 auto; min-height: 0; }

/* ---------- 顶部说明 / 分区筛选 ---------- */
#pane-schedule .section-tip { margin: 0 0 16px; font-size: 13px; line-height: 1.65; }
#pane-schedule .sched-filter { margin-bottom: 16px; gap: 12px; }
#pane-schedule .filter-lb { font-size: 13px; width: auto; white-space: nowrap; }

/* ---------- 批量操作条：变矮变轻，只保留一个主按钮 ---------- */
#pane-schedule .sched-bar {
  padding: 10px 14px; margin: 0 0 6px;
  background: #f7fbfa; border-radius: 14px;
}
#pane-schedule .sched-cnt { font-size: 13px; }
#pane-schedule .sched-ops { gap: 10px; }
#pane-schedule .sched-ops .btn { height: 32px; padding: 0 15px; font-size: 13px; border-radius: 9px; }

/* ---------- 卡片底部说明条：给卡片一个收口，别让列表悬在半空 ---------- */
#pane-schedule .sched-foot {
  margin-top: auto;
  padding: 12px 20px;
  border-top: 1px solid #f1f6f5;
  background: #fbfdfd;
  font-size: 12.5px; color: #a3b8b5; line-height: 1.6;
}

/* ---------- 排期行 ---------- */
#sched-list .sched-item {
  align-items: flex-start; gap: 16px;
  padding: 22px 12px; border-bottom: 1px solid #f1f6f5;
}
#sched-list .sched-item:last-child { border-bottom: 0; }
#sched-list .sched-item:hover { background: #fafdfc; }
#sched-list .sched-item.on-sel { background: #f4fbfa; box-shadow: inset 3px 0 0 #16baaa; }
#sched-list .sched-ck { margin-top: 6px; width: 16px; height: 16px; }

/* 序号列：收细，不抢视线 */
#sched-list .sched-seq { flex: 0 0 28px; gap: 2px; padding-top: 3px; }
#sched-list .sched-seq b { font-size: 13px; font-weight: 600; color: #9fb0ac; }
#sched-list .sched-mv { font-size: 10px; line-height: 1; padding: 2px 5px; color: #c3d3d0; }
#sched-list .sched-mv:hover { color: var(--brand-2); background: var(--brand-soft); }

/* 三层信息 */
/* flex-basis 必须给 0：窄屏沿用旧的 flex:1 1 auto 会按标题最大宽度算，
   整块被挤到第二行，勾选框和序号孤零零留在上面一行 */
#sched-list .sched-main { flex: 1 1 0%; min-width: 0; }
#sched-list .sched-line1 { display: flex; align-items: center; gap: 9px; min-width: 0; }
#sched-list .sched-line1 .dot { width: 8px; height: 8px; flex: 0 0 8px; }
#sched-list .sched-title {
  min-width: 0; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.45;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#sched-list .sched-mode {
  flex: 0 0 auto; margin-left: 2px; padding: 2px 9px; border-radius: 7px;
  font-size: 12px; font-weight: 500;
}
/* 第二层四项（在哪播 / 哪天几点 / 音量 / 背景音乐）排成四列：
   各行对齐成表格，横向铺满，不再挤在左边、右边留一大块空白 */
#sched-list .sched-meta {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.7fr) minmax(0, .6fr) minmax(0, 1.5fr);
  column-gap: 20px; row-gap: 5px;
  margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.5;
}
#sched-list .sched-meta > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#sched-list .sched-state { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 7px; }
#sched-list .sched-run { font-size: 12.5px; color: #9fb0ac; }
#sched-list .sched-run.on { color: var(--brand-2); font-weight: 600; }
#sched-list .sched-run.off { color: #b9c9c6; }

/* 右侧：开关一行、操作一行 */
#sched-list .sched-item .sched-right {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  padding-top: 2px;
}
#sched-list .sched-swline { display: flex; align-items: center; gap: 9px; }
#sched-list .sched-st { font-size: 13px; color: #9fb0ac; }
#sched-list .sched-st.on { color: var(--brand-2); font-weight: 600; }
#sched-list .sched-acts { display: flex; align-items: center; gap: 16px; }
#sched-list .sched-op { font-size: 13px; color: var(--ink-2); }
#sched-list .sched-op:hover { color: var(--brand-2); text-decoration: none; }
#sched-list .sched-op.del { color: #c2a7a2; }
#sched-list .sched-op.del:hover { color: #e05b4d; }

/* ---------- 窄屏：四列收成两列，右侧那块整体换到下一行 ---------- */
@media (max-width:1024px) {
  #sched-list .sched-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width:640px) {
  #sched-list .sched-item { padding: 16px 6px; gap: 10px; }
  /* 名称一律完整换行（不再 -webkit-line-clamp，手机上也要能看全整句） */
  #sched-list .sched-title { display: block; }
  #sched-list .sched-item .sched-right {
    flex: 1 1 100%; flex-direction: row; align-items: center; justify-content: space-between;
    margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line);
  }
  #sched-list .sched-acts { gap: 18px; }
}

/* ============================================================
 * 定时排期列表：表格化（阚荣浩 2026-11-20）
 *
 * 上一版把一条排期拆成三层竖排，信息是分清了，但标题只占到半屏、
 * 右边一大片空白，客户的原话是「中间空了大块」。
 * 这一版按客户给的列头做成表格：素材名称 / 播放时间 / 循环间隔 / 内容分类 /
 * 播放状态 / 排期状态，一行一件事，列与列上下对齐。
 *
 * ⚠️ 术语：「内容分类」是这条排期播的内容归哪一类（素材自带的归类），
 *          和「播到哪些播放端」是两件事，别并成一列。
 * ⚠️ 「循环间隔」单独成列，不再塞进名称下面那行小字里——它和「播放时间」
 *          是一组（几号几点开始 / 开始之后多久一次），必须挨着放。
 * ============================================================ */

/* 列模板：勾选 / 序号 / 名称(自适应) / 时间 / 循环间隔 / 分类 / 播放 / 排期 / 操作
   ⚠️ 顺序按功能分组：名称 →(什么时候播) 时间 + 间隔 →(归哪类) 分类 →(现在怎么样) 播放 + 排期 → 操作
   循环间隔必须紧跟播放时间：一个管「几点开始」，一个管「开始之后多久一次」。 */
.sched-head,
#sched-list .sched-item {
  display: grid;
  grid-template-columns: 34px 30px minmax(0, 1fr) 140px 88px 86px 84px 98px 114px;
  column-gap: 14px;
  align-items: center;
}

/* ---------- 表头 ---------- */
.sched-head {
  padding: 0 12px 9px;
  border-bottom: 1px solid #e9f1ef;
  font-size: 12.5px;
  font-weight: 500;
  color: #90a4a0;
  letter-spacing: .2px;
}

/* ---------- 行 ---------- */
#sched-list .sched-item {
  padding: 13px 12px;
  border-bottom: 1px solid #f2f7f6;
  transition: background .15s;
  /* 名称允许换行后行高会变，别的列跟着顶部对齐，不然开关/操作被吊在中间 */
  align-items: start;
}
#sched-list .sched-item:last-child { border-bottom: 0; }
#sched-list .sched-item:hover { background: #fafdfc; }
#sched-list .sched-item.on-sel { background: #f4fbfa; box-shadow: inset 3px 0 0 var(--brand-2); }

.sched-ck-cell { display: flex; align-items: center; }
.sched-ck-cell .sched-ck { width: 16px; height: 16px; margin: 0; cursor: pointer; }

/* 序号列：竖排箭头 + 数字，收细不抢视线 */
#sched-list .sched-seq {
  display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 0;
}
#sched-list .sched-seq b { font-size: 12.5px; font-weight: 600; color: #a8b8b4; line-height: 1.2; }
#sched-list .sched-mv { font-size: 8px; line-height: 1; color: #cbd9d6; cursor: pointer; }
#sched-list .sched-mv:hover { color: var(--brand-2); }

/* 名称列：标题一行 + 音量/背景音乐一行（开关状态只在「排期状态」列说一次，这里不再放圆点） */
.sched-name-cell { min-width: 0; align-self: start; }
#sched-list .sched-line1 { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
/* 阚荣浩 2026-11-21：排期名称不再单行省略。
   原来 nowrap + ellipsis，长名字（「国庆双十一全场满减 + 生鲜区限时特价提醒」这种）
   在列表里只能看到半句，客户得点进弹窗才知道是哪条。现在整行文字换行铺开。 */
#sched-list .sched-title {
  flex: 1 1 auto; min-width: 0; font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.4;
  white-space: normal; overflow-wrap: anywhere;
}
#sched-list .sched-mode {
  flex: 0 0 auto; margin-top: 1px; padding: 1px 8px; border-radius: 6px;
  font-size: 11.5px; font-weight: 500;
}
#sched-list .sched-note { margin-top: 5px; font-size: 12px; color: #9dafab; line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 时间列：什么时候播 + 下一拍 */
.sched-time-cell { min-width: 0; }
#sched-list .sched-when { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
#sched-list .sched-next { margin-top: 3px; font-size: 12px; color: #9fb0ac; line-height: 1.4; }
#sched-list .sched-next i { font-style: normal; }
#sched-list .sched-next .muted { color: #c2cfcc; }

/* 循环间隔列：多久响一次（和播放时间同一功能组，样式也跟时间列对称） */
.sched-int-cell { min-width: 0; }
#sched-list .sched-int {
  font-size: 13px; color: var(--ink-2); line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#sched-list .sched-int.off { color: #b9c9c6; }
#sched-list .sched-int-sub {
  margin-top: 3px; font-size: 12px; color: #9fb0ac; line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 分类列 */
.sched-cat-cell {
  font-size: 13px; color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 播放状态列：圆点 + 一句话 */
.sched-play-cell { display: flex; align-items: center; gap: 7px; font-size: 12.5px; }
#sched-list .pdot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; background: #ccd9d6; }
#sched-list .pdot.live { background: var(--brand-2); box-shadow: 0 0 0 3px rgba(22, 186, 170, .15); animation: schedPulse 1.7s ease-out infinite; }
#sched-list .pdot.wait { background: #f2a93b; }
#sched-list .pdot.idle { background: #d6e1de; }
#sched-list .ptxt { color: var(--ink-2); }
#sched-list .ptxt.live { color: var(--brand-2); font-weight: 600; }
#sched-list .ptxt.muted { color: #b9c9c6; }
@keyframes schedPulse {
  0%   { box-shadow: 0 0 0 0 rgba(22, 186, 170, .28); }
  70%  { box-shadow: 0 0 0 6px rgba(22, 186, 170, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 186, 170, 0); }
}

/* 排期状态列：开关 + 已开启/已暂停（只说开关一件事，别说成「运行中」，容易和「播放中」混） */
.sched-status-cell { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
#sched-list .sched-st { color: #a2b3af; }
#sched-list .sched-st.on { color: var(--brand-2); font-weight: 600; }

/* 操作列：贴右 */
.sched-ops-cell { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
#sched-list .sched-op { font-size: 12.5px; color: #7d918d; cursor: pointer; white-space: nowrap; }
#sched-list .sched-op:hover { color: var(--brand-2); }
#sched-list .sched-op.del { color: #c3a9a4; }
#sched-list .sched-op.del:hover { color: #e05b4d; }

/* ---------- 悬浮提示（名称被截断时显示全名，阚荣浩 2026-11-20） ----------
 * 只有一个 div，位置由 JS 算好塞进 top/left；pointer-events:none 保证它
 * 自己不会吃掉鼠标事件、也就不会出现「气泡挡着自己闪一下」的抖动。
 * z-index 9000：压住页面内容，但低于锁屏遮罩(9999)和下拉面板(19900000)，
 * 弹窗打开时提示不会飘到弹窗上面。
 * `word-break:break-all` 是为超长文件名（无空格）准备的，不加会撑爆 max-width。 */
.bs-tip {
  position: fixed; left: 0; top: 0; z-index: 9000;
  max-width: 420px; padding: 8px 12px; border-radius: 8px;
  background: rgba(23, 42, 39, .96); color: #fff;
  font-size: 13px; line-height: 1.5; letter-spacing: .2px;
  box-shadow: 0 8px 24px rgba(16, 40, 36, .22);
  white-space: normal; word-break: break-all;
  pointer-events: none; opacity: 0; transform: translateY(3px);
  transition: opacity .14s ease, transform .14s ease;
}
.bs-tip.on { opacity: 1; transform: translateY(0); }
/* 手指设备没有「悬停」，别让它挡住点击 */
@media (hover: none) { .bs-tip { display: none !important; } }

/* 1800 以上（超宽屏）：名称列是唯一的柔性列，会把剩余空间一个人吃光，
   变成「左边一大片空地、右边几列挤成一条」。这里把右侧几列整体放宽，
   名称列最多占一半左右，视觉上才匀。 */
@media (min-width: 1800px) {
  .sched-head,
  #sched-list .sched-item {
    grid-template-columns: 34px 30px minmax(0, 1fr) 210px 130px 140px 130px 140px 150px;
  }
}

/* ---------- 窄屏：逐列收起，先把最长的内容让给名称 ---------- */
/* 1200 以下先砍「内容分类」（这条信息最不常用），名称列能多出 100 多像素 */
@media (max-width: 1199px) {
  .sched-head,
  #sched-list .sched-item { grid-template-columns: 34px 30px minmax(0, 1fr) 148px 88px 84px 96px 108px; }
  .hc-cat, .sched-cat-cell { display: none; }
}

/* 1023 以下（含侧栏收成图标栏的 1024）五列已经挤到标题只剩几个字，
   不再硬排表格，改一行一张小卡 */
@media (max-width: 1023px) {
  .sched-head { display: none; }
  #sched-list .sched-item {
    display: flex; flex-wrap: wrap; align-items: flex-start;
    column-gap: 12px; row-gap: 9px; padding: 14px 8px;
  }
  #sched-list .sched-ck-cell { order: 1; flex: 0 0 auto; padding-top: 3px; }
  #sched-list .sched-seq { display: none; }
  /* 名称给足伸缩空间（basis 160 保证窄屏不会缩成一条缝），其余列按内容宽度不动 */
  .sched-name-cell { order: 2; flex: 1 1 160px; min-width: 0; }
  /* 名称完整换行，不再限两行（长名字在卡片里也要看全） */
  #sched-list .sched-title { display: block; line-height: 1.4; }
  /* 卡片模式下「循环间隔」跟播放时间挨着排一条：每天 00:00-23:59 · 每 5 秒 时段内反复播 */
  .sched-time-cell { order: 3; flex: 0 1 auto; min-width: 0; }
  .sched-int-cell {
    order: 4; flex: 0 0 auto;
    display: flex; align-items: baseline; gap: 6px;
  }
  #sched-list .sched-int-sub { margin-top: 0; }
  .sched-play-cell { order: 5; }
  .sched-status-cell { order: 6; margin-left: auto; }
  .sched-ops-cell { order: 7; flex: 1 1 100%; justify-content: flex-end; }
}

/* 640 以下手机：标题独占一行，播放时间和循环间隔各占一行（缩进对齐标题），
   不然标题被时间挤成两三行、每行只剩几个字 */
@media (max-width: 640px) {
  /* 手机上「每天 00:00-23:59」和「下次 明天 00:00」拼成一行，省出一行高度 */
  .sched-time-cell {
    order: 3; flex: 1 1 100%; padding-left: 28px;
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px;
  }
  #sched-list .sched-next { margin-top: 0; }
  .sched-int-cell { order: 4; flex: 1 1 100%; padding-left: 28px; }
  .sched-play-cell { order: 5; padding-left: 28px; }
  .sched-ops-cell { order: 7; padding-left: 28px; }
}

/* ================= 紧急播报（阚荣浩 2026-11-23） ================= */
:root{--danger:#e24b4a;--danger-2:#a32d2d;--danger-soft:#fcebeb}
.rail-urgent.on{background:var(--danger-soft);color:var(--danger-2)}
.rail-urgent.on .layui-icon{color:var(--danger-2)}
.rail-urgent.on::before{background:var(--danger-2)}
.btn-danger{background:var(--danger);color:#fff;border:none}
.btn-danger:hover{background:var(--danger-2);color:#fff}
.urgent-hd .layui-icon{color:var(--danger)}
.urgent-hd .hd-hint b{color:var(--danger-2);font-weight:600}
.urgent-warn{
  background:var(--danger-soft);color:var(--danger-2);border-radius:10px;
  padding:11px 14px;font-size:13px;line-height:1.6;margin-bottom:16px;
}
.urgent-warn b{color:var(--danger-2)}
.urgent-bar{display:flex;align-items:center;gap:10px;margin-bottom:14px;flex-wrap:wrap}
.urgent-tip{font-size:12px;color:var(--muted);font-style:normal;font-weight:400}
.urgent-tip kbd{
  display:inline-block;background:#f1f5f4;border:1px solid var(--line);
  border-radius:4px;padding:0 5px;font-size:11px;font-family:inherit;color:var(--ink-2)
}
.urgent-phrases{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;margin-bottom:20px}
.urgent-phrase{
  position:relative;background:#fff;border:1px solid var(--line);border-radius:12px;
  padding:12px 14px;transition:border-color .15s;
  /* 阚荣浩 2026-11-24：纵向 flex，内容撑开后把「发出」按钮压到卡片底部，同排对齐 */
  display:flex;flex-direction:column;
}
.urgent-phrase:hover{border-color:var(--danger)}
.up-hd{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.up-hd b{font-size:14px}
.up-key{
  background:var(--danger-soft);color:var(--danger-2);font-size:11px;
  border-radius:4px;padding:1px 6px;white-space:nowrap
}
.up-ops{margin-left:auto;font-size:12px;color:var(--muted);display:flex;gap:10px}
.up-ops a:hover{color:var(--danger)}
.up-body{font-size:12px;color:var(--ink-2);line-height:1.6;margin-bottom:10px;min-height:38px;word-break:break-all;flex:1}
.ug-var{background:var(--danger-soft);color:var(--danger-2);border-radius:3px;padding:0 4px;margin-right:4px}
.up-fire{width:100%;margin-top:auto}
/* 素材库紧急语音卡片（阚荣浩 2026-11-23）：与快捷短语同款布局，加一个来源角标 */
.ua-badge{
  background:var(--brand-soft);color:var(--brand-2);font-size:11px;
  border-radius:4px;padding:1px 6px;white-space:nowrap;display:inline-flex;align-items:center;gap:2px
}
.ua-badge .layui-icon{font-size:11px}
.ua-dur{color:var(--muted);font-size:11px;margin-left:4px}
/* 素材紧急语音：发出按钮与快捷短语一致做成整宽大按钮（阚荣浩 2026-11-23） */
.ua-item .ua-fire{width:100%;margin-top:auto}
/* 标题较长时别把右上角「删除」挤成竖排两行 */
.ua-item .up-hd{align-items:flex-start}
.ua-item .up-hd b{flex:1;min-width:0;line-height:1.45}
.up-ops a{white-space:nowrap}
/* 标题栏右侧操作区（临时播一句 / 播报记录），两个都走弹窗，不占页面、不多发请求 */
.ug-hd-ops{margin-left:auto;display:flex;gap:8px;flex:0 0 auto}
.ug-hd-ops .btn{white-space:nowrap}
#pane-urgent .urgent-hd{flex-wrap:nowrap}
#pane-urgent .urgent-hd .hd-hint{min-width:0}
.ug-hd-title{white-space:nowrap}
/* 提示语并进标签里：标签主色粗体，提示沿用弱化小字 */
#pane-urgent .urgent-bar .filter-lb{font-size:13px;font-weight:600;color:var(--ink-2)}
#pane-urgent .urgent-bar .filter-lb .urgent-tip{margin-left:8px;font-weight:400}
/* 弹窗内容：临时播一句 / 紧急播报记录 */
.ug-free-ta{width:100%;min-height:96px;resize:vertical}
.ug-free-tip{margin-top:8px;font-size:12px;color:var(--muted)}
.ug-log-list{max-height:52vh;overflow:auto}
.ug-log-list .item{padding:10px 2px}
.ug-log-list .item-title{font-size:13px}
.ug-log-list .item-sub{font-size:12px;margin-top:3px}
.ug-log-list .pager{padding-top:12px}

.ug-vars{display:flex;flex-direction:column;gap:8px}
.ug-var-field{display:flex;align-items:center;gap:8px}
.ug-var-field label{min-width:56px;font-size:12px;color:var(--ink-2)}
.ug-var-field .inp{flex:1}
.ug-fire-title{font-size:14px;font-weight:600;color:var(--danger-2)}
.ug-preview{
  background:var(--bg);border-radius:8px;padding:10px 12px;font-size:13px;
  line-height:1.6;color:var(--ink);min-height:44px;word-break:break-all
}
.ug-def-row{display:flex;align-items:center;gap:6px;margin-bottom:8px;flex-wrap:wrap}
.result-urgent{color:var(--danger)}
/* 紧急播报进度弹窗：复用 bsDlg 标准弹窗，内容区只放状态+次数（阚荣浩 2026-11-25） */
.layui-layer.bs.ug-live-dlg .bsd-body{padding:26px 24px 8px;text-align:center}
.ug-live-bd{min-width:300px}
.ug-live-stage{
  display:flex;align-items:center;justify-content:center;gap:9px;
  font-size:19px;font-weight:600;color:var(--ink);line-height:1.5;min-height:28px;
}
.ug-live-stage .layui-icon{color:var(--danger);font-size:20px}
.ug-live-text{font-size:13px;color:var(--muted);margin-top:12px;line-height:1.6;word-break:break-all}
.ug-live-count{font-size:14px;color:var(--ink-2);margin-top:16px}
.ug-live-count b{color:var(--danger);font-size:22px;font-weight:700;vertical-align:-1px}
.ug-live-bar{height:7px;border-radius:99px;background:#f0f2f3;margin-top:18px;overflow:hidden}
.ug-live-bar i{display:block;height:100%;width:8%;border-radius:99px;background:linear-gradient(90deg,#f0856f,#e8604c);transition:width .35s ease}
/* 底部「停止播报」按钮：加宽加高，一眼能看到、好点 */
.layui-layer.bs.ug-live-dlg .bsd-foot{padding:16px 24px 22px}
.layui-layer.bs.ug-live-dlg .bsd-btn{min-width:150px;height:42px;font-size:15px}
/* 播报台右栏静态引导卡（2026-11-23：替换原动态数字/记录卡）
 * 三步上手 + 常用功能入口，纯静态、不读接口，避免空数据在首页显示 0
 */
.step-list{display:flex;flex-direction:column;gap:14px}
.step-item{display:flex;align-items:flex-start;gap:11px}
.step-no{flex:0 0 22px;width:22px;height:22px;border-radius:50%;background:var(--brand-soft);color:var(--brand-2);font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center}
.step-item>div{min-width:0}
.step-item b{display:block;font-size:13.5px;color:var(--ink);line-height:1.4}
.step-item span:not(.step-no){display:block;font-size:12px;color:var(--muted);margin-top:2px;line-height:1.5}
.step-note{margin-top:16px;padding-top:12px;border-top:1px dashed var(--line);font-size:12px;color:var(--muted)}
.quick-link{cursor:pointer}
.quick-link:hover .item-title{color:var(--brand-2)}
.q-ico{flex:0 0 30px;width:30px;height:30px;border-radius:9px;background:var(--brand-soft);color:var(--brand-2);font-size:16px;display:flex;align-items:center;justify-content:center}
.item-arrow{font-size:13px;color:#b9cfcc;flex:0 0 auto}
@media (max-width:960px){
  .urgent-phrases{grid-template-columns:1fr}
  .up-ops{gap:8px}
  /* 窄屏：图标+标题+两个按钮占第一行，提示整行落到第二行，避免互相挤压成竖排 */
  #pane-urgent .urgent-hd{flex-wrap:wrap;row-gap:4px}
  #pane-urgent .urgent-hd .hd-hint{flex:1 1 100%;order:3;font-size:11px;line-height:1.5;white-space:normal}
  #pane-urgent .urgent-hd .ug-hd-ops{order:2}
}
