/* ============================================================
   声乐运维平台 · 样式 (public/styles.css)
   浅色主题，无第三方 UI 框架
   ============================================================ */

:root {
  --bg:          #f4f6fb;
  --panel:       #ffffff;
  --panel-2:     #fafbfe;
  --border:      #e6eaf2;
  --border-soft: #eef1f7;
  --text:        #1f2937;
  --text-2:      #4b5563;
  --muted:       #8b93a7;
  --brand:       #5b5bd6;
  --brand-2:     #8b5cf6;
  --brand-soft:  #eef0ff;
  --blue:        #3b82f6;
  --green:       #10b981;
  --amber:       #f59e0b;
  --red:         #ef4444;
  --gray:        #94a3b8;
  --radius:      14px;
  --radius-sm:   9px;
  --shadow:      0 1px 2px rgba(16,24,40,.04), 0 6px 18px rgba(16,24,40,.05);
  --shadow-lg:   0 12px 40px rgba(16,24,40,.14);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font-family: inherit; }

/* ---------------- 布局 ---------------- */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 254px; flex: 0 0 254px;
  background: var(--panel);
  border-right: 1px solid var(--border);
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto; display: flex; flex-direction: column;
}

.brand {
  display: flex; align-items: center; gap: 11px;
  padding: 17px 18px 15px;
  border-bottom: 1px solid var(--border-soft);
  position: sticky; top: 0; background: var(--panel); z-index: 2;
}
.brand-logo {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(91,91,214,.32);
}
.brand-logo svg { width: 21px; height: 21px; }
.brand-text b { display: block; font-size: 15px; letter-spacing: .3px; }
.brand-text span { display: block; font-size: 10.5px; color: var(--muted); letter-spacing: .6px; }

.nav { padding: 10px 12px 20px; flex: 1; }
.nav-section {
  margin: 13px 0 5px; padding: 0 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .8px;
  color: #a2a9bd; display: flex; align-items: center; gap: 6px;
}
.nav-item.grp-gap { margin-top: 16px; position: relative; }
.nav-item.grp-gap::before {
  content: ""; position: absolute; top: -8px; left: 10px; right: 10px;
  height: 1px; background: var(--border-soft);
}
.nav-section .cnt {
  margin-left: auto; font-size: 10px; font-weight: 600;
  background: #f2f4f9; color: #8b93a7; border-radius: 999px; padding: 0 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; margin: 2px 0; border-radius: var(--radius-sm);
  color: var(--text-2); cursor: pointer; user-select: none;
  transition: background .15s, color .15s; font-size: 13.5px;
}
.nav-item:hover { background: #f4f5fb; color: var(--text); }
.nav-item.active { background: var(--brand-soft); color: #4441c4; font-weight: 600; }
/* v2.15.0 极简线性图标：统一 17px / 1.75 粗细 / 同一灰阶，激活态统一品牌紫
   （此前导航图标 7 种被 4 个模块共用、且统计入口单独上紫色，导致风格不统一） */
.nav-item .ic { width: 17px; height: 17px; flex: 0 0 17px; stroke-width: 1.75; color: #98a0b8; transition: color .15s; }
.nav-item:hover .ic { color: #6f7793; }
.nav-item.active .ic { color: #5b5bd6; }
.nav-item .cnt {
  margin-left: auto; font-size: 11px; color: #8b93a7;
  background: #f2f4f9; border-radius: 999px; padding: 1px 7px; font-weight: 600;
}
.nav-item.active .cnt { background: #e0e3ff; color: #5b5bd6; }

.sidebar-foot {
  padding: 13px 18px; border-top: 1px solid var(--border-soft);
  font-size: 11.5px; color: var(--muted); line-height: 1.75;
}
.sidebar-foot b { color: var(--text-2); font-weight: 600; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: 62px; flex: 0 0 62px;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  padding: 0 22px; position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 16px; margin: 0; font-weight: 650; white-space: nowrap; }
.topbar .crumb { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .spacer { flex: 1; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-2);
  background: #f4f5fb; border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.dot.live { box-shadow: 0 0 0 3px rgba(16,185,129,.16); }

.btn {
  border: 1px solid var(--border); background: #fff; color: var(--text-2);
  padding: 7px 13px; border-radius: var(--radius-sm); font-size: 13px;
  cursor: pointer; transition: .15s; display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.btn:hover { background: #f7f8fc; color: var(--text); border-color: #d9dfec; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 15px; height: 15px; }
.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent; color: #fff;
  box-shadow: 0 3px 10px rgba(91,91,214,.28);
}
.btn.primary:hover { filter: brightness(1.06); }
.btn.danger { color: #b91c1c; border-color: #f3d3d3; }
.btn.danger:hover { background: #fef3f3; border-color: #eab8b8; }
.btn.sm { padding: 4px 9px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.content { padding: 20px 22px 44px; display: flex; flex-direction: column; gap: 16px; }

/* ---------------- 卡片 ---------------- */
.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.card-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 17px; border-bottom: 1px solid var(--border-soft);
}
.card-head h3 { margin: 0; font-size: 13.5px; font-weight: 650; }
.card-head .sub { color: var(--muted); font-size: 12px; }
.card-head .spacer { flex: 1; }
.card-body { padding: 16px 17px; }

/* ---------------- KPI ---------------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 15px 17px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.kpi::after {
  content: ""; position: absolute; right: -28px; top: -28px;
  width: 88px; height: 88px; border-radius: 50%; background: var(--brand-soft); opacity: .7;
}
.kpi .k-top { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; position: relative; z-index: 1; }
.kpi .k-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #eef0ff; color: #5b5bd6; }
.kpi .k-ic svg { width: 15px; height: 15px; }
.kpi .k-val { font-size: 27px; font-weight: 700; margin-top: 7px; letter-spacing: -.5px; position: relative; z-index: 1; font-variant-numeric: tabular-nums; }
.kpi .k-val small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.kpi .k-foot { font-size: 12px; color: var(--muted); margin-top: 1px; position: relative; z-index: 1; }
.kpi.c-blue .k-ic { background: #e8f1ff; color: #2563eb; }
.kpi.c-amber .k-ic { background: #fff5e6; color: #d97706; }
.kpi.c-gray .k-ic { background: #f1f3f8; color: #64748b; }

/* ---------------- 模块卡片（看板） ---------------- */
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 13px; }
.mod-card {
  border: 1px solid var(--border); border-radius: 12px; padding: 14px 15px;
  background: var(--panel); cursor: pointer; transition: .18s; position: relative;
}
.mod-card:hover { border-color: #c9cdf2; box-shadow: 0 6px 18px rgba(91,91,214,.1); transform: translateY(-1px); }
.mod-card .m-top { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.mod-card .m-ic { width: 30px; height: 30px; border-radius: 9px; background: var(--brand-soft); color: #5b5bd6; display: grid; place-items: center; flex: 0 0 30px; }
.mod-card .m-ic svg { width: 16px; height: 16px; }
.mod-card .m-name { font-size: 13.5px; font-weight: 600; }
.mod-card .m-count { font-size: 24px; font-weight: 700; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.mod-card .m-count small { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 3px; }
.mod-card .m-foot { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.mod-card.disabled { opacity: .6; cursor: default; }
.mod-card.disabled:hover { transform: none; box-shadow: none; border-color: var(--border); }

/* ---------------- 图表 ---------------- */
.charts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.chart-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.chart-card .c-head {
  padding: 12px 15px; border-bottom: 1px solid var(--border-soft);
  font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px;
}
.chart-card .c-head .tag {
  font-size: 10.5px; font-weight: 600; color: #7c83a0;
  background: #f2f4f9; padding: 1px 7px; border-radius: 5px;
}
.chart-card .c-body { padding: 12px 14px; }
.chart-wrap { position: relative; height: 236px; }

/* ---------------- 大模块统计页 ---------------- */
.nav-item.nav-stats .ic { color: #5b5bd6; opacity: .9; }
.nav-item.nav-stats.active { background: var(--brand-soft); }
.stats-sec { margin-top: 22px; }
.stats-sec:first-of-type { margin-top: 18px; }
.stats-head {
  display: flex; align-items: center; gap: 8px;
  margin: 0 2px 11px; font-size: 14px; color: var(--text);
}
.stats-head .ic { width: 16px; height: 16px; color: #5b5bd6; }
.stats-head b { font-weight: 700; }
.stats-head .sub { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 2px; }
.stats-sec .charts-grid .card { grid-column: 1 / -1; }

/* ---------------- 工具条 ---------------- */
.toolbar {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  padding: 13px 16px; border-bottom: 1px solid var(--border-soft);
  background: var(--panel-2);
}
.toolbar .field { display: flex; align-items: center; gap: 6px; }
.toolbar .field label { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.toolbar .spacer { flex: 1; }

/* v2.14.3：input:not([type]) 兜底——漏写 type 属性的文本输入框（默认 text）也吃到统一样式，
   否则回退浏览器默认方框（v2.14.2 配置面板「配置人」样式异常的根因） */
select, input:not([type]), input[type="text"], input[type="search"], input[type="number"], input[type="date"],
input[type="datetime-local"], input[type="password"], input[type="tel"], input[type="email"], textarea {
  font-size: 13px; color: var(--text); background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 6.5px 10px; outline: none; transition: .15s; max-width: 100%;
}
/* v2.13.1：datetime-local 统一平台样式；日历图标与文字间距留白 */
input[type="datetime-local"] { font-variant-numeric: tabular-nums; }
input[type="datetime-local"]::-webkit-calendar-picker-indicator { margin-left: 4px; cursor: pointer; }
select:focus, input:focus, textarea:focus { border-color: #b9bdf0; box-shadow: 0 0 0 3px rgba(91,91,214,.12); }
/* 浏览器自动填充（Chrome 蓝底）统一为平台样式，避免账号框与密码框颜色不一致 */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  border-color: #b9bdf0;
  transition: background-color 99999s ease-in-out 0s;
}
input[type="search"] { width: 196px; }
textarea { resize: vertical; min-height: 62px; width: 100%; }

/* ---------------- 表格 ---------------- */
.table-scroll { overflow: auto; max-height: 620px; }
table { width: 100%; border-collapse: collapse; font-size: 13.2px; }
thead th {
  text-align: left; padding: 10px 13px; position: sticky; top: 0; z-index: 1;
  background: var(--panel-2); color: var(--muted);
  font-weight: 600; font-size: 12.3px; white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
tbody td { padding: 11px 13px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
tbody tr:hover { background: #fafbff; }
tbody tr:last-child td { border-bottom: none; }
td.num { font-variant-numeric: tabular-nums; text-align: right; }
.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 12.4px; color: var(--text-2); }
/* v2.10.7：cell-clip 改块级——旧写法 span 内联 max-width 不生效，
   长 URL（直播OBS 等）撑破列宽引发整表横向滚动、其余列被挤成一字一行 */
.cell-clip { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 超长文本（>44 字/textarea 长文）：块内最多 3 行折叠，可读性优先于单行省略 */
.cell-wrap {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
  overflow: hidden; overflow-wrap: anywhere; word-break: break-word; line-height: 1.55;
}
.cell-muted { color: var(--muted); }

/* 统计明细下钻弹窗 */
.tag-click { background: #eef4ff; color: #3b82f6; cursor: pointer; }
.chart-card canvas { cursor: pointer; }
.drill-toolbar { display: flex; align-items: end; gap: 14px; margin-bottom: 12px; }
.drill-sum { font-size: 12.5px; color: var(--muted); padding-bottom: 8px; }
.drill-group-block { margin-bottom: 16px; }
.drill-group-block:last-child { margin-bottom: 0; }
.dg-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--text);
  padding: 6px 2px;
}
.dg-head .cnt {
  font-size: 11px; font-weight: 600; color: #5b5bd6;
  background: var(--brand-soft); border-radius: 999px; padding: 1px 8px;
}

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap;  background: #f1f3f8; color: #475569;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.b-green { color: #047857; background: #e7f7f1; }
.badge.b-blue  { color: #1d4ed8; background: #e8f1ff; }
.badge.b-amber { color: #b45309; background: #fff5e6; }
.badge.b-red   { color: #b91c1c; background: #fdeaea; }
.badge.b-gray  { color: #475569; background: #f1f3f8; }
.badge.b-brand { color: #4b48c9; background: var(--brand-soft); }

.thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); background: #f7f8fc; }
.thumb-none { display: inline-flex; color: var(--muted); font-size: 12px; }

.row-ops { display: flex; gap: 5px; }
.icon-btn {
  width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--border);
  background: #fff; color: var(--text-2); cursor: pointer; display: grid; place-items: center; transition: .15s;
}
.icon-btn:hover { background: #f5f6fc; color: var(--brand); border-color: #d6daf3; }
.icon-btn.danger:hover { background: #fef3f3; color: #b91c1c; border-color: #f0cccc; }
.icon-btn svg { width: 14px; height: 14px; }

.empty { padding: 44px 18px; text-align: center; color: var(--muted); }
.empty svg { width: 38px; height: 38px; opacity: .3; margin-bottom: 6px; }
.loading { padding: 40px; text-align: center; color: var(--muted); }

/* ---------------- 分页 ---------------- */
.pager {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 11px 16px; border-top: 1px solid var(--border-soft); font-size: 12.5px; color: var(--muted);
}
.pager .spacer { flex: 1; }
.pager b { color: var(--text-2); }
.page-btns { display: flex; gap: 4px; }
.page-btn {
  min-width: 30px; height: 30px; padding: 0 8px; border-radius: 7px;
  border: 1px solid var(--border); background: #fff; color: var(--text-2);
  cursor: pointer; font-size: 12.5px; display: grid; place-items: center;
}
.page-btn:hover:not(:disabled) { background: #f5f6fc; border-color: #d6daf3; }
.page-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ---------------- 需求说明（已从模块页移除，样式保留兼容） ---------------- */
.placeholder { padding: 30px 32px; }
.placeholder .ph-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.placeholder .ph-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: #5b5bd6; display: grid; place-items: center; }
.placeholder .ph-ic svg { width: 21px; height: 21px; }
.placeholder h2 { margin: 0; font-size: 17px; }

/* ---------------- 弹窗表单 ---------------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(23,28,45,.42);
  backdrop-filter: blur(2px); z-index: 100;
  display: none; align-items: flex-start; justify-content: center;
  padding: 40px 16px; overflow-y: auto;
}
.modal-mask.show { display: flex; }
.modal {
  background: var(--panel); border-radius: 16px; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 760px; overflow: hidden; animation: pop .18s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(-10px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-head {
  display: flex; align-items: center; gap: 10px;
  padding: 15px 20px; border-bottom: 1px solid var(--border-soft);
}
.modal-head h3 { margin: 0; font-size: 15px; font-weight: 650; }
.modal-head .spacer { flex: 1; }
.modal-body { padding: 18px 20px; max-height: 66vh; overflow-y: auto; }
.modal-foot {
  display: flex; align-items: center; gap: 9px; justify-content: flex-end;
  padding: 13px 20px; border-top: 1px solid var(--border-soft); background: var(--panel-2);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 16px; }
.form-item { display: flex; flex-direction: column; gap: 5px; }
.form-item.full { grid-column: 1 / -1; }
.form-item label { font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.form-item label .req { color: var(--red); margin-left: 2px; }
.form-item input, .form-item select, .form-item textarea { width: 100%; }
.form-item input[type="checkbox"], .form-item input[type="radio"] { width: auto; } /* v2.11.3：勾选框不拉满整行（修复 AI 设置启用开关排版错位） */
.form-item .hint { font-size: 11.5px; color: var(--muted); }

.upload-zone {
  border: 1.5px dashed #cfd4ea; border-radius: 11px; background: #fafbff;
  padding: 14px; text-align: center; cursor: pointer; transition: .15s; position: relative;
}
.upload-zone:hover, .upload-zone.drag { border-color: var(--brand); background: #f3f4ff; }
.upload-zone .uz-ic { color: #9aa1c4; margin-bottom: 3px; }
.upload-zone .uz-ic svg { width: 22px; height: 22px; }
.upload-zone .uz-tip { font-size: 12.5px; color: var(--text-2); }
.upload-zone .uz-sub { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.upload-zone img { max-width: 100%; max-height: 130px; border-radius: 8px; display: block; margin: 0 auto 6px; }
.upload-zone .uz-del {
  position: absolute; top: 6px; right: 6px; width: 22px; height: 22px;
  border-radius: 50%; background: rgba(23, 26, 48, .55); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; line-height: 1; cursor: pointer; z-index: 2; user-select: none;
  transition: .12s;
}
.upload-zone .uz-del:hover { background: #e5484d; transform: scale(1.08); }

.toast {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  background: #1f2937; color: #fff; padding: 10px 18px; border-radius: 10px;
  font-size: 13px; z-index: 200; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: .22s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(4px); }
.toast.err { background: #b91c1c; }
.toast.ok { background: #047857; }
.toast.warn { background: #b45309; }

/* ---------------- 登录 ---------------- */
.login-mask {
  position: fixed; inset: 0; z-index: 300;
  display: none; align-items: center; justify-content: center; padding: 24px;
  background:
    radial-gradient(1100px 640px at 14% 8%, #2b2f6e 0%, rgba(43,47,110,0) 60%),
    radial-gradient(900px 600px at 88% 94%, #14405e 0%, rgba(20,64,94,0) 58%),
    linear-gradient(150deg, #171a3a 0%, #1d2150 52%, #232a63 100%);
  overflow: hidden;
}
.login-mask.show { display: flex; }
.login-bg { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5;
  animation: blob-float 14s ease-in-out infinite;
}
.blob.b1 { width: 420px; height: 420px; left: -120px; top: -110px; background: #6a6ae8; }
.blob.b2 { width: 340px; height: 340px; right: -90px; top: 40%; background: #2f9dd0; animation-delay: -5s; }
.blob.b3 { width: 300px; height: 300px; left: 34%; bottom: -140px; background: #8b5cf6; animation-delay: -9s; }
@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(36px, -26px) scale(1.08); }
  66% { transform: translate(-24px, 22px) scale(.94); }
}
.login-card {
  position: relative; width: 100%; max-width: 460px;
  background: rgba(255,255,255,.97); border: 1px solid rgba(255,255,255,.6);
  border-radius: 20px; box-shadow: 0 24px 70px rgba(10,12,40,.5); padding: 30px 34px 22px;
  animation: card-in .55s cubic-bezier(.22,1,.36,1) both;
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(26px) scale(.965); }
  to { opacity: 1; transform: none; }
}
.lg-hero { text-align: center; margin-bottom: 22px; }
.lg-logo {
  width: 54px; height: 54px; border-radius: 15px; margin: 0 auto 12px;
  background: linear-gradient(135deg, #6a6ae8, #4f4fd0); display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(91,91,214,.4);
  animation: logo-sway 3.2s ease-in-out infinite;
}
@keyframes logo-sway {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-6deg); }
  75% { transform: rotate(6deg); }
}
.lg-logo svg { width: 28px; height: 28px; }
/* 均衡器跳动条（声乐主题：随节拍起伏） */
.eq { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 15px; margin: 0 0 12px; }
.eq i {
  width: 3.5px; height: 5px; border-radius: 2px;
  background: linear-gradient(180deg, #7c7cf0, #4f4fd0);
  animation: eq-bounce 1.1s ease-in-out infinite;
}
.eq i:nth-child(1) { animation-duration: .9s; }
.eq i:nth-child(2) { animation-duration: 1.3s; animation-delay: -.25s; }
.eq i:nth-child(3) { animation-duration: .8s; animation-delay: -.5s; }
.eq i:nth-child(4) { animation-duration: 1.15s; animation-delay: -.1s; }
.eq i:nth-child(5) { animation-duration: 1s; animation-delay: -.65s; }
@keyframes eq-bounce {
  0%, 100% { height: 4px; opacity: .55; }
  50% { height: 15px; opacity: 1; }
}
.lg-hero h2 { margin: 0 0 6px; font-size: 21px; font-weight: 720; letter-spacing: .5px; color: var(--text); }
.lg-hero > p { margin: 0; font-size: 12.5px; color: var(--muted); letter-spacing: .3px; }
/* 漂浮音符：从底部缓缓升起（声乐氛围） */
.note {
  position: absolute; bottom: -60px; line-height: 1;
  color: rgba(255,255,255,.42); user-select: none; pointer-events: none;
  text-shadow: 0 0 14px rgba(160,150,255,.45);
  animation: note-rise linear infinite;
}
.note.n1 { left: 8%;  font-size: 26px; animation-duration: 15s; animation-delay: 0s; }
.note.n2 { left: 20%; font-size: 34px; animation-duration: 19s; animation-delay: -6s; color: rgba(198,204,255,.55); }
.note.n3 { left: 38%; font-size: 24px; animation-duration: 14s; animation-delay: -3s; }
.note.n4 { left: 62%; font-size: 30px; animation-duration: 21s; animation-delay: -10s; color: rgba(150,214,255,.5); }
.note.n5 { left: 78%; font-size: 38px; animation-duration: 17s; animation-delay: -13s; }
.note.n6 { left: 92%; font-size: 25px; animation-duration: 16s; animation-delay: -8s; color: rgba(210,180,255,.5); }
@keyframes note-rise {
  0%   { transform: translateY(0) rotate(0deg) scale(.9); opacity: 0; }
  10%  { opacity: 1; }
  85%  { opacity: .8; }
  100% { transform: translateY(-112vh) rotate(28deg) scale(1.08); opacity: 0; }
}
.login-card form h3 {
  margin: 0 0 14px; font-size: 14px; font-weight: 640; color: var(--text-2);
  display: flex; align-items: center; gap: 8px;
}
.login-card form h3::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--brand); }
.lg-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 13px; }
.lg-field label { font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.lg-field input { padding: 8.5px 10px; } /* 与验证码图形等高（40px），整组表单一致 */
.cap-row { display: flex; align-items: stretch; gap: 8px; }
.cap-row input { flex: 1; min-width: 0; letter-spacing: 2px; }
.cap-img {
  flex: 0 0 122px; height: 40px; border: 1px solid var(--border); border-radius: 9px;
  background: #f6f7fd; cursor: pointer; overflow: hidden;
  display: grid; place-items: center; user-select: none; transition: border-color .15s;
}
.cap-img:hover { border-color: var(--brand); }
.cap-img svg { width: 100%; height: 100%; display: block; }
.lg-err { min-height: 18px; font-size: 12.5px; color: var(--red); margin: -3px 0 7px; }
.lg-submit { width: 100%; justify-content: center; padding: 10px; font-size: 14.5px; letter-spacing: 6px; }
.lg-foot {
  margin-top: 15px; padding-top: 12px; border-top: 1px dashed var(--border);
  text-align: center; font-size: 11.8px; color: var(--muted); line-height: 1.7;
}

/* v2.20.2 备案页脚（登录页 + 侧边栏）：小号灰字，链接同色不抢视觉 */
.foot-beian {
  margin-top: 8px; font-size: 11px; color: var(--muted); line-height: 1.7;
  text-align: center; letter-spacing: .2px;
}
.sidebar-foot .foot-beian { text-align: left; }
.foot-beian a { color: var(--muted); text-decoration: none; }
.foot-beian a:hover { color: var(--text-2); text-decoration: underline; }

/* ---------------- 全局水印 ---------------- */
.wm-layer {
  position: fixed; inset: 0; z-index: 150; pointer-events: none;
  background-repeat: repeat; display: none;
}

/* ---------------- 服务器状态 ---------------- */
.ops-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 14px;
}
.ops-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 9px;
  box-shadow: var(--shadow-sm);
}
.ops-title { font-size: 12.5px; font-weight: 640; color: var(--muted); letter-spacing: .3px; }
.ops-big { font-size: 24px; font-weight: 700; color: var(--text); line-height: 1.2; }
.ops-sub { font-size: 12px; color: var(--muted); line-height: 1.55; word-break: break-all; }
.meter { display: flex; align-items: center; gap: 10px; }
.meter-bar {
  flex: 1; height: 9px; border-radius: 6px; background: #eceef6; overflow: hidden;
}
.meter-bar i {
  display: block; height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, #6a6ae8, #8b7cf0); transition: width .4s;
}
.meter-bar i.warn { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.meter-bar i.danger { background: linear-gradient(90deg, #dc2626, #ef4444); }
.meter-num { flex: 0 0 auto; font-size: 13px; font-weight: 680; color: var(--text-2); min-width: 44px; text-align: right; }

/* ---------------- 顶栏用户 ---------------- */
.user-chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  padding: 3px 6px 3px 4px;
}
.user-chip .u-avatar {
  width: 26px; height: 26px; border-radius: 8px; flex: 0 0 26px;
  background: linear-gradient(135deg, #6a6ae8, #4f4fd0); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
}
.user-chip .u-text { display: flex; flex-direction: column; line-height: 1.25; }
.user-chip .u-text b { font-size: 12.5px; font-weight: 600; }
.user-chip .u-text i { font-size: 11px; color: var(--muted); font-style: normal; }
.user-chip .btn { padding: 3px 8px; font-size: 12px; }

/* ---------------- 批量操作 ---------------- */
.batch-bar {
  display: none; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 16px; background: #f3f4ff; border-bottom: 1px solid #e2e5fb;
  font-size: 12.8px; color: #43418f;
}
.batch-bar.show { display: flex; }
.batch-bar b { font-size: 13.5px; }
.batch-bar .spacer { flex: 1; }
th.chk-col, td.chk-col { width: 38px; text-align: center; padding-left: 10px !important; padding-right: 4px !important; }
td.chk-col input, th.chk-col input { width: 15px; height: 15px; cursor: pointer; accent-color: var(--brand); }
tr.row-selected { background: #f7f8ff; }

/* ---------------- 分组规整行（v2.8.9 日常业务需求：按营期等字段分组） ---------------- */
#m-tbody tr.group-row td {
  background: #f4f3fb; color: #4a4694; font-weight: 600; font-size: 12.2px;
  padding: 7px 12px; border-top: 1px solid #e6e4f6; letter-spacing: .3px;
}
#m-tbody tr.group-row td i {
  font-style: normal; font-weight: 400; font-size: 11.4px; color: #8a87c0; margin-left: 8px;
}

/* ---------------- Excel 导入结果 ---------------- */
.imp-file {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--text); font-weight: 600;
  padding-bottom: 9px; border-bottom: 1px dashed var(--border);
}
.imp-file svg { width: 15px; height: 15px; color: var(--brand); flex: 0 0 15px; }
.imp-sum {
  margin: 10px 0 12px; font-size: 12.6px; color: var(--text-2);
  background: #f7f8ff; border: 1px solid #e6e8fb; border-radius: 9px; padding: 8px 11px; line-height: 1.7;
}
.imp-sum b { color: var(--brand); font-size: 13.4px; }
.imp-row { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 9px; }
.imp-row.bad { border-color: #f2d9d9; background: #fffafa; }
.imp-row-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.imp-sheet { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; }
.imp-sheet svg { width: 14px; height: 14px; color: var(--text-3); flex: 0 0 14px; }
.imp-arrow { color: var(--text-3); font-size: 13px; }
.imp-mod { font-size: 13px; color: var(--brand); font-weight: 600; flex: 1; }
.imp-mod.warn { color: #c0392b; }
.imp-row-b { margin-top: 7px; display: flex; gap: 6px; flex-wrap: wrap; }
.imp-tag { font-size: 11.6px; padding: 2px 8px; border-radius: 20px; border: 1px solid transparent; }
.imp-tag.ok { background: #e9f7ef; color: #1e7e46; border-color: #cdead9; }
.imp-tag.warn { background: #fff6e5; color: #a06a00; border-color: #f3e2bd; }
.imp-tag.gray { background: #f4f5f7; color: var(--text-3); border-color: #e6e7ea; }
.imp-note { margin-top: 7px; font-size: 12px; color: var(--text-3); line-height: 1.7; }
.imp-sync {
  margin-top: 4px; font-size: 12.6px; line-height: 1.8;
  background: #f1fbf5; border: 1px solid #d7f0e0; border-radius: 9px; padding: 8px 11px; color: #1e7e46;
}
.imp-sync.muted { background: #f8f9fa; border-color: var(--border); color: var(--text-3); }
.imp-body .imp-note:last-child { margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--border); }

/* ---------------- 权限管理中心 ---------------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); padding: 0 4px; }
.tab {
  padding: 9px 15px 10px; font-size: 13.2px; color: var(--text-2); cursor: pointer;
  border: none; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px;
  display: flex; align-items: center; gap: 6px;
}
.tab:hover { color: var(--brand); }
.tab.active { color: #4441c4; font-weight: 650; border-bottom-color: var(--brand); }
.tab svg { width: 15px; height: 15px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.sec-title {
  display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 650;
  padding: 14px 16px 0;
}
.sec-title .sub { font-size: 12px; color: var(--muted); font-weight: 400; }
.pad { padding: 14px 16px; }

/* ---- 权限矩阵（v2.8.1：角色 tab + 分组卡片 + 查看/编辑分段开关） ---- */
.mx-roles { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.mx-role {
  border: 1px solid var(--border); background: var(--panel); border-radius: 10px;
  padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--text-2);
  cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: .15s;
}
.mx-role i { font-style: normal; font-size: 11px; font-weight: 500; color: var(--muted); background: #f2f4f9; border-radius: 999px; padding: 1px 7px; }
.mx-role:hover { border-color: #c3c6f2; }
.mx-role.on { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(91,91,214,.28); }
.mx-role.on i { background: rgba(255,255,255,.22); color: #fff; }
.mx-panel { display: flex; flex-direction: column; gap: 12px; }
.mx-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 13px 16px; box-shadow: var(--shadow-sm);
}
.mx-card.mx-super { display: flex; align-items: center; gap: 12px; background: #f6f7ff; border-color: #dfe2fb; }
.mx-card.mx-super .ic { width: 22px; height: 22px; color: var(--brand); flex: 0 0 22px; }
.mx-card.mx-super b { font-size: 13.5px; }
.mx-sec-head { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 650; }
.mx-sec-head + .mx-common, .mx-sec-head + .mx-mods { margin-top: 10px; }
.mx-common { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.mx-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 12.8px; cursor: pointer; white-space: nowrap; }
.mx-chk input { width: 14px; height: 14px; accent-color: var(--brand); cursor: pointer; }
.mx-custom { font-size: 11.5px; color: #b45309; background: #fef3c7; border-radius: 999px; padding: 1px 8px; font-weight: 500; }
.mx-mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 4px 22px; }
.mx-mod {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 6px 0; border-bottom: 1px dashed var(--border-soft);
}
.mx-mods .mx-mod:nth-last-child(-n+2) { border-bottom: none; }
.mx-name { font-size: 12.8px; color: var(--text-2); }
.mx-foot { display: flex; align-items: center; gap: 12px; padding: 2px 2px 6px; }
.mx-foot .hint { font-size: 11.8px; color: var(--muted); }
/* v2.9.0 矩阵落库诊断行：所见（面板）与所存（数据库）一一对照 */
.mx-dbhint { margin: 2px 2px 10px; padding: 8px 12px; border: 1px dashed var(--border, #d9d7ee); border-radius: 8px; background: var(--bg-soft, #f7f6fc); font-size: 12px; color: var(--muted); line-height: 1.7; word-break: break-all; }
.mx-dbhint span { color: var(--text, #33326e); font-family: Consolas, Monaco, monospace; }
.mx-dbhint b { color: #b45309; }
/* v2.9.1：矩阵面板「失效权限项」红色警告 + 旧版缓存页面升级提示条 */
.mx-unkwarn { margin: 0 0 6px; padding: 7px 10px; border-radius: 7px; background: #fdecec; border: 1px solid #f5b5b5; color: #b42323; font-size: 12px; line-height: 1.65; }
#upgrade-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 4000; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 9px 16px; background: linear-gradient(90deg, #b45309, #d97706); color: #fff; font-size: 13px; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
#upgrade-banner button { border: none; border-radius: 7px; padding: 5px 14px; cursor: pointer; font-weight: 700; font-size: 12.5px; background: #fff; color: #b45309; }
#upgrade-banner button:hover { filter: brightness(.94); }
/* v2.9.1：企微设置页「封禁日报多时段」行 */
.wecom-time-row { display: flex; align-items: center; gap: 8px; }
.wecom-time-row .wecom-time-val { width: 120px; padding: 6px 8px; }

/* 三态分段开关（编辑 / 查看 / 无） */
.seg { display: inline-flex; background: #f0f1f7; border-radius: 8px; padding: 2px; gap: 2px; flex: 0 0 auto; }
.seg-b {
  border: none; background: transparent; cursor: pointer; font-size: 11.8px; font-weight: 600;
  color: var(--muted); padding: 3px 10px; border-radius: 6px; transition: .13s; white-space: nowrap;
}
.seg-b:hover { color: var(--text-2); }
.seg-b.on { background: #fff; color: #4441c4; box-shadow: 0 1px 4px rgba(20,22,60,.14); }
.seg-b.on[data-m="view"] { color: #0e7490; }
.seg-b.on[data-m="none"] { color: var(--muted); }

/* 仅查看徽章（模块工具栏） */
.tag-ro {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600;
  color: #92400e; background: #fef3c7; border: 1px solid #fde68a;
  border-radius: 999px; padding: 4px 12px; white-space: nowrap;
}

.cfg-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 0; border-bottom: 1px dashed var(--border-soft); }
.cfg-row:last-child { border-bottom: none; }
.cfg-row .fl { min-width: 168px; font-size: 13px; font-weight: 550; }
.cfg-row .fl i { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); font-weight: 400; }
.cfg-row .mode-sel { width: 118px; }
.cfg-row .opts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; flex: 1; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12.2px;
  background: #f2f4f9; border-radius: 6px; padding: 3px 7px; color: var(--text-2);
}
.chip button { border: none; background: none; cursor: pointer; color: var(--muted); padding: 0; font-size: 14px; line-height: 1; }
.chip button:hover { color: var(--red); }
.cfg-row input.opt-in { width: 128px; font-size: 12.5px; padding: 5px 8px; }

.kv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.kv-item { border: 1px solid var(--border-soft); border-radius: 10px; padding: 10px 13px; background: #fcfdff; }
.kv-item .kv-l { font-size: 11.8px; color: var(--muted); }
.kv-item .kv-v { font-size: 15px; font-weight: 650; margin-top: 2px; }
.kv-item .kv-v small { font-size: 11.5px; color: var(--muted); font-weight: 400; margin-left: 2px; }

/* v2.9.0 批量新增：表格形式填写（每行一节，班级数自动计算） */
.badd-tbl { max-height: 320px; border: 1px solid var(--border, #e3e1f0); border-radius: 10px; }
.badd-tbl table { width: 100%; font-size: 12.3px; }
.badd-tbl thead th {
  position: sticky; top: 0; z-index: 1; background: var(--bg-soft, #f7f6fc);
  padding: 7px 6px; text-align: left; font-size: 11.8px; color: var(--muted); white-space: nowrap;
}
.badd-tbl td { padding: 4px 6px; border-bottom: 1px dashed var(--border-soft); }
.badd-tbl tr:last-child td { border-bottom: none; }
.badd-tbl input[type="text"], .badd-tbl input[type="date"] {
  width: 100%; padding: 5px 7px; font-size: 12.3px; min-width: 0;
}
.badd-tbl .badd-count { background: var(--bg-soft, #f2f3fa); color: var(--text-2); font-weight: 600; cursor: default; }
.badd-tbl .badd-op { width: 44px; text-align: center; }
/* v2.10.1：合播名单多行输入（自动增高） */
.badd-tbl textarea.badd-ta { width: 100%; min-height: 48px; resize: vertical; line-height: 1.6; overflow: hidden; }
.badd-tbl .badd-del-row { color: var(--muted); }
.badd-tbl .badd-del-row:hover { color: var(--red, #d64545); }

/* v2.9.0 企微分模块机器人：每模块一行（名称 + webhook + 测试） */
#wecom-mods {
  display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow: auto;
  border: 1px solid var(--border, #e3e1f0); border-radius: 10px; padding: 9px 10px; background: #fcfdff;
}
.wecom-mod-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 8px; align-items: center; }
.wecom-mod-name {
  font-size: 12.5px; color: var(--text-2); font-weight: 550;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wecom-mod-row .wecom-mod-hook { width: 100%; font-size: 12.3px; padding: 6px 8px; }
/* v2.10.1：模块级实时推送勾选 */
.wecom-mod-rt { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.wecom-mod-rt input { width: 14px; height: 14px; accent-color: var(--brand); cursor: pointer; }

/* ---------------- 行内编辑（v2.10.0） ---------------- */
.cell-edit {
  width: 100%; max-width: 108px; font-size: 12px; padding: 2px 4px;
  border: 1px solid var(--border); border-radius: 7px;
  background: var(--panel); color: var(--text); cursor: pointer; font-family: inherit;
}
.cell-edit:hover { border-color: var(--brand); }
.cell-edit:focus { outline: 2px solid rgba(91,91,214,.25); border-color: var(--brand); }
.cell-edit-txt {
  display: inline-block; max-width: 100%; min-height: 15px; padding-bottom: 1px;
  cursor: pointer; border-bottom: 1px dashed #c3c9d6;
}
.cell-edit-txt:hover { color: var(--brand); border-bottom-color: var(--brand); }
.cell-edit-txt.ie-editing { border-bottom-color: transparent; }
.ie-input {
  width: 140px; font-size: 12px; padding: 2px 6px; font-family: inherit;
  border: 1px solid var(--brand); border-radius: 7px; outline: 2px solid rgba(91,91,214,.22);
  background: var(--panel); color: var(--text);
}
td.ie-busy { opacity: .55; pointer-events: none; }

/* ---------------- 权限矩阵生效预览（v2.10.0） ---------------- */
.mx-eff {
  margin-top: 10px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel-2);
}
.mx-eff-head { font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.mx-eff-body { display: flex; flex-wrap: wrap; gap: 6px; }
.eff-chip {
  font-size: 11.8px; padding: 2px 9px; border-radius: 999px;
  background: var(--brand-soft); color: #4046a3; border: 1px solid #dfe2f7;
}
.eff-chip.view { background: #fff7e8; color: #9a6b12; border-color: #f3e2bd; }
.eff-chip.view i { font-style: normal; font-size: 10.5px; margin-left: 3px; opacity: .85; }
/* v2.10.1：草稿态（未保存）预览——虚线橙框提示「这是改完还没保存的样子」 */
.mx-eff.draft { border-style: dashed; border-color: #eab308; background: #fffbeb; }
.mx-eff.draft .mx-eff-head { color: #92400e; }
.eff-none { color: var(--red); font-size: 12.5px; font-weight: 600; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1200px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .sidebar { display: none; }
  .content { padding: 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
}

/* ---------------- v2.11.0 images 多图字段 ---------------- */
.upload-multi { border: 1.5px dashed var(--line, #d8d5e6); border-radius: 10px; padding: 10px; background: var(--bg-soft, #fafafd); }
.upload-multi.drag { border-color: #5b53c9; background: #f2f0ff; }
.upload-multi .um-list { display: flex; flex-wrap: wrap; gap: 8px; }
.upload-multi .um-list:empty { display: none; }
.um-item { position: relative; width: 86px; height: 86px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line, #e2e0ee); background: #fff; }
.um-item img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; display: block; }
.um-item .um-del { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; line-height: 16px; text-align: center; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 13px; cursor: pointer; user-select: none; }
.um-item .um-del:hover { background: #d64541; }
.um-add { margin-top: 8px; padding: 6px 14px; border: 1px dashed #b9b3dd; border-radius: 8px; background: #fff; color: #5b53c9; font-size: 12.5px; cursor: pointer; }
.um-add:hover { background: #f2f0ff; }
.um-badge { margin-left: 4px; padding: 1px 6px; border-radius: 9px; background: #eef0ff; color: #5b53c9; font-size: 11px; vertical-align: middle; }
.um-cell { display: inline-flex; align-items: center; }

/* ---------------- v2.11.1 图片灯箱：平台内看图 ---------------- */
.img-lk { display: inline-flex; align-items: center; cursor: zoom-in; }
.img-lk .thumb { cursor: zoom-in; }
.lb-mask { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; background: rgba(15,17,26,.88); }
.lb-mask.show { display: flex; }
.lb-mask img { max-width: 88vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 12px 48px rgba(0,0,0,.5); cursor: zoom-out; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: none; background: rgba(255,255,255,.14); color: #fff; font-size: 30px; line-height: 44px; text-align: center; cursor: pointer; user-select: none; }
.lb-nav:hover { background: rgba(255,255,255,.3); }
.lb-prev { left: 26px; }
.lb-next { right: 26px; }
.lb-bar { position: absolute; top: 18px; right: 22px; display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,.85); font-size: 13px; }
.lb-bar a { color: rgba(255,255,255,.7); text-decoration: none; font-size: 12px; border-bottom: 1px dashed rgba(255,255,255,.4); }
.lb-bar a:hover { color: #fff; }
.lb-close { width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(255,255,255,.14); color: #fff; font-size: 18px; cursor: pointer; line-height: 30px; }
.lb-close:hover { background: #d64541; }
