/* ==========================================================================
 * admin.css — 后台管理系统样式
 * 布局：固定侧边栏 + 顶部条 + 滚动内容区；≤900px 侧边栏抽屉化。
 * 表单控件统一 40px 高度、8-10px 圆角， dense 但可点。
 * ========================================================================== */
:root {
  --sb-w: 248px;
  --top-h: 60px;
  --ink: #0B0B0D;
  --primary: #12B5CB;
  --primary2: #5B6BF5;
  --accent: #12B5CB;
  --bg: #F4F6FA;
  --panel: #FFFFFF;
  --line: #E4E7EF;
  --text: #14161A;
  --soft: #6B7385;
  --ok: #16A34A;
  --warn: #D97706;
  --danger: #DC2626;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 14.5px; line-height: 1.6;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.3; }
a { color: var(--accent); text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- 登录 ---------- */
.login { min-height: 100%; display: grid; place-items: center; padding: 24px; background: radial-gradient(60% 60% at 50% 0%, #1b2030, #0B0B0D); }
.login__card { width: 100%; max-width: 380px; background: var(--panel); border-radius: 18px; padding: 34px 30px; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.login__card h1 { font-size: 22px; margin-bottom: 6px; }
.login__card p { color: var(--soft); font-size: 13.5px; margin-bottom: 22px; }
.login__err { color: var(--danger); font-size: 13px; min-height: 20px; margin-top: 10px; }
.login__hint { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--soft); }

/* ---------- 骨架 ---------- */
.app { display: none; min-height: 100%; }
.app.is-on { display: block; }
.sb {
  position: fixed; inset: 0 auto 0 0; width: var(--sb-w); z-index: 40;
  background: #0F1218; color: #C9CFDB; display: flex; flex-direction: column;
  overflow-y: auto; transition: transform .24s ease;
}
.sb__brand { display: flex; align-items: center; gap: 10px; padding: 18px 20px; font-weight: 800; font-size: 17px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.sb__brand i { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--primary), var(--primary2)); display: grid; place-items: center; flex: none; }
.sb__brand svg { width: 17px; height: 17px; color: #fff; }
.sb__grp { padding: 16px 14px 6px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #6B7385; font-weight: 700; }
.sb a, .sb button.item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 10px 14px; margin: 2px 8px; border-radius: 10px;
  color: #C9CFDB; font-size: 14px; font-weight: 500; text-align: left;
  transition: background .16s ease, color .16s ease; background: none; border: 0;
}
.sb a svg, .sb button.item svg { width: 17px; height: 17px; flex: none; opacity: .8; }
.sb a:hover, .sb button.item:hover { background: rgba(255,255,255,.07); color: #fff; }
.sb a.is-on { background: linear-gradient(135deg, var(--primary), var(--primary2)); color: #fff; font-weight: 700; }
.sb a.is-on svg { opacity: 1; }
.sb__foot { margin-top: auto; padding: 14px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12.5px; color: #6B7385; display: flex; flex-direction: column; }
.sb__foot a { display: flex; align-items: center; gap: 8px; padding: 0; margin: 0; background: none; color: #C9CFDB; font-size: 12.5px; }
.sb__foot a:hover { background: none; color: #fff; }

/* ---------- 顶栏 ---------- */
.top {
  position: sticky; top: 0; z-index: 30; height: var(--top-h);
  margin-left: var(--sb-w); display: flex; align-items: center; gap: 14px;
  padding: 0 22px; background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.top h2 { font-size: 16px; font-weight: 700; }
.top__spacer { flex: 1; }
.save {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; background: #ECFDF5; color: var(--ok);
  transition: opacity .2s ease;
}
.save.is-busy { background: #FFFBEB; color: var(--warn); }
.save i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.burger2 { display: none; width: 38px; height: 38px; border-radius: 10px; align-items: center; justify-content: center; }
.burger2 svg { width: 20px; height: 20px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; border-radius: 9px; font-size: 13.5px; font-weight: 600;
  border: 1px solid var(--line); background: #fff; color: var(--text);
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.btn svg { width: 15px; height: 15px; }
.btn:hover { background: #F7F8FC; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: linear-gradient(135deg, var(--primary), var(--primary2)); border-color: transparent; color: #fff; }
.btn--primary:hover { filter: brightness(1.05); background: linear-gradient(135deg, var(--primary), var(--primary2)); }
.btn--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--dark:hover { background: #22252C; }
.btn--ghost { background: transparent; }
.btn--danger { color: var(--danger); border-color: #F2C7C7; background: #FEF2F2; }
.btn--danger:hover { background: #FEE2E2; }
.btn--sm { padding: 6px 11px; font-size: 12.5px; }
.btn--icon { padding: 7px; border-radius: 8px; }

/* ---------- 主区 ---------- */
.main { margin-left: var(--sb-w); padding: 26px 22px 80px; }
.page { display: none; max-width: 940px; }
.page.is-on { display: block; }
.page__head { margin-bottom: 22px; }
.page__head h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.page__head p { color: var(--soft); font-size: 13.5px; margin-top: 5px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 18px; }
.panel__hd { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.panel__hd h3 { font-size: 15px; font-weight: 700; }
.panel__hd .btn { margin-left: auto; }
.panel__tip { font-size: 12.5px; color: var(--soft); background: #F7F8FC; border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 16px; }

/* 活跃人数实时预览（对应「活跃人数」页） */
.onlinePrev {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px; border-radius: 12px; background: #0B0B0D;
  font-size: 13px; color: rgba(255,255,255,.58); margin-bottom: 14px;
}
.onlinePrev b { color: #fff; font-size: 22px; font-weight: 900; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.onlinePrev .dot { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 4px rgba(34,197,94,.2); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

/* ---------- 表单 ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.f { margin-bottom: 14px; }
.f:last-child { margin-bottom: 0; }
.f > label { display: block; font-size: 12.5px; font-weight: 600; color: #3D4553; margin-bottom: 6px; }
.f .hint { font-size: 11.5px; color: var(--soft); margin-top: 5px; }
.inp, .ta, .sel {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px;
  background: #fff; font-size: 14px; transition: border-color .16s ease, box-shadow .16s ease;
}
.inp:focus, .ta:focus, .sel:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(18,181,203,.12); }
.ta { min-height: 84px; resize: vertical; line-height: 1.6; }
.sel { height: 40px; }
.row { display: flex; gap: 8px; align-items: center; }
.row .inp { flex: 1; }

/* 颜色选择 */
.swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.swatch { width: 34px; height: 34px; border-radius: 9px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatch.is-on { box-shadow: 0 0 0 2px var(--ink); }
.inp--color { width: 58px; height: 40px; padding: 3px; }

/* 开关 */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch i { width: 42px; height: 24px; border-radius: 999px; background: #D5D9E3; position: relative; transition: background .2s ease; flex: none; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s ease; }
.switch input:checked + i { background: var(--primary); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch span { font-size: 13.5px; font-weight: 600; }

/* ---------- 列表编辑器 ---------- */
.items { display: flex; flex-direction: column; gap: 12px; }
.item {
  border: 1px solid var(--line); border-radius: 12px; background: #FCFCFE; padding: 14px;
  transition: border-color .16s ease;
}
.item:hover { border-color: #CDD3E0; }
.item__hd { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.item__idx {
  width: 24px; height: 24px; border-radius: 7px; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 700; flex: none;
}
.item__title { font-size: 13px; font-weight: 700; color: #3D4553; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item__ops { margin-left: auto; display: flex; gap: 4px; }
.item__ops .btn { padding: 5px 7px; }
.item__ops svg { width: 14px; height: 14px; }
.empty { text-align: center; padding: 26px; color: var(--soft); font-size: 13.5px; border: 1px dashed var(--line); border-radius: 12px; }

/* ---------- 匹配人物库表格 ---------- */
.rt__bar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rt__count { margin-right: auto; font-size: 13px; color: var(--soft); }
.rt__count b { color: var(--text); font-size: 15px; }
.rt__scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
/* min-width 要跟列数走：加了「照片」列后 880 会把语言/国家挤成一条缝 */
.rt { width: 100%; min-width: 1060px; border-collapse: collapse; font-size: 13px; }
.rt thead th {
  text-align: left; white-space: nowrap; padding: 11px 12px; font-size: 11.5px; font-weight: 700;
  color: #6B7385; background: #F7F8FC; border-bottom: 1px solid var(--line);
}
.rt tbody td { padding: 8px 12px; border-bottom: 1px solid #EFF1F6; vertical-align: middle; }
.rt tbody tr:last-child td { border-bottom: 0; }
.rt tbody tr:hover > td { background: #FAFBFE; }
.rt tbody tr.is-open > td { background: #FFF7F3; }
.rt__c-no { width: 46px; }
.rt__c-ava { width: 66px; }
.rt__c-sex { width: 96px; }
.rt__c-vid { width: 132px; }
/* 视频列 = 手动下架开关 + 已传条数，两个都要在一行里放得下 */
.rt__vcell { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.rt__vcell .rt__pill { padding: 2px 8px; font-size: 11.5px; }
.rt__c-ops { width: 158px; }
.rt__no {
  display: inline-flex; width: 24px; height: 24px; border-radius: 7px; background: #F1F3F9;
  color: #6B7385; font-size: 11.5px; font-weight: 700; align-items: center; justify-content: center;
}
.rt__avabox { width: 40px; height: 40px; }
.rt__ava {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; cursor: pointer;
  background: #EEF0F5; border: 1px solid var(--line); display: block;
}
.rt__ava:hover { border-color: var(--primary); }
.rt__ava--ph {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(18,181,203,.16), rgba(18,181,203,.12));
  color: var(--primary); font-weight: 800; font-size: 15px;
}
.rt__inp, .rt__sel {
  width: 100%; padding: 7px 9px; font-size: 13px; border-radius: 8px;
  border: 1px solid transparent; background: transparent; color: var(--text);
}
.rt__inp::placeholder { color: #A8AFBE; }
.rt__inp:hover, .rt__sel:hover { border-color: var(--line); background: #fff; }
.rt__inp:focus, .rt__sel:focus { outline: none; border-color: var(--primary); background: #fff; }
.rt__pill {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  background: rgba(18,181,203,.1); color: #12B5CB; font-size: 12px; font-weight: 700; white-space: nowrap;
}
.rt__pill.is-off { background: #F1F3F9; color: #8A90A0; }
.rt__ops { display: flex; gap: 6px; }
.rt__detail > td { padding: 0 !important; }
.rt__detailHd {
  padding: 12px 16px; font-size: 12.5px; font-weight: 700; color: var(--primary);
  background: #FFF4EF; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.rt__detailGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 16px; background: #FCFCFE; }

/* ---------- 媒体字段 ---------- */
.media { display: flex; gap: 14px; align-items: flex-start; }
.media__prev {
  width: 148px; height: 96px; border-radius: 10px; border: 1px solid var(--line);
  background: #F7F8FC center/cover no-repeat; display: grid; place-items: center;
  color: var(--soft); font-size: 12px; flex: none; overflow: hidden; position: relative;
}
.media__prev img { width: 100%; height: 100%; object-fit: cover; }
/* 视频用 contain：竖屏视频在后台预览时也能看到完整画面，不会被裁成大头照 */
.media__prev video { width: 100%; height: 100%; object-fit: contain; background: #0B0B0D; }
.media__prev svg { width: 24px; height: 24px; opacity: .45; }
.media__body { flex: 1; min-width: 0; }
.media__body .row { margin-bottom: 8px; }
.media__meta { font-size: 11.5px; color: var(--soft); word-break: break-all; }

/* ---------- 媒体库 ---------- */
.lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.lib__item { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.lib__thumb { height: 108px; background: #F2F4F9 center/cover no-repeat; display: grid; place-items: center; position: relative; }
.lib__thumb img, .lib__thumb video { width: 100%; height: 100%; object-fit: cover; }
.lib__thumb svg { width: 26px; height: 26px; color: var(--soft); }
.lib__meta { padding: 9px 11px; font-size: 12px; }
.lib__meta b { display: block; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib__meta span { color: var(--soft); }
.lib__ops { display: flex; gap: 6px; padding: 0 11px 11px; }
.lib__ops .btn { flex: 1; padding: 6px; font-size: 12px; }

/* ---------- 预览 ---------- */
.preview { position: fixed; inset: 0; z-index: 90; background: rgba(10,12,16,.72); display: none; padding: 22px; }
.preview.is-on { display: flex; }
.preview__box { margin: auto; width: 100%; max-width: 1280px; height: 100%; background: #fff; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.preview__hd { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #FAFBFD; }
.preview__hd .btn { margin-left: auto; }
.preview iframe { flex: 1; width: 100%; border: 0; background: #fff; }
.devbar { display: flex; gap: 8px; }
.devbar button { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 12px; font-weight: 600; }
.devbar button.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 120;
  background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; opacity: 0; pointer-events: none;
  transition: opacity .22s ease, transform .22s ease; box-shadow: 0 12px 32px rgba(0,0,0,.3);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .grid3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .sb { transform: translateX(-100%); }
  .sb.is-open { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.5); }
  .top, .main { margin-left: 0; }
  .burger2 { display: inline-flex; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .media { flex-direction: column; }
  .media__prev { width: 100%; height: 150px; }
  .rt__detailGrid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .main { padding: 18px 14px 60px; }
  .panel { padding: 16px; }
  .item__ops { flex-wrap: wrap; }
}

/* ================= 人物库表格：年龄 / 在线 ================= */
.rt__inp--num { max-width: 74px; text-align: center; }
.rt__c-age { width: 74px; }
.rt__c-on { width: 64px; }
.switch--sm i { width: 36px; height: 20px; }
.switch--sm i::after { top: 2px; left: 2px; width: 16px; height: 16px; }
.switch--sm input:checked + i::after { transform: translateX(16px); }
.rt td .switch--sm { justify-content: center; }

/* ================= 人物库 · 照片墙照片编辑器 ================= */
.rt__c-ph { width: 128px; }
.rt__photos { border-top: 1px solid var(--line); }
.phed { padding: 16px; background: #FCFCFE; }
.phed__tip {
  font-size: 12.5px; line-height: 1.75; color: #5B6472;
  background: #FFF; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; margin-bottom: 12px;
}
.phed__tip b { color: var(--text); }
.phed__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 12px; }
.phed__card {
  display: grid; grid-template-columns: 96px 1fr; grid-template-rows: auto auto;
  gap: 10px; padding: 10px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px;
}
.phed__card.is-paid { border-color: #FBD9A8; background: #FFFCF6; }
.phed__thumb {
  width: 96px; height: 124px; border-radius: 9px; overflow: hidden; cursor: pointer;
  border: 1px dashed #C9CFDD; background: #F5F6FA;
  display: grid; place-items: center; align-content: center; gap: 4px;
  color: #98A0B0; position: relative;
}
.phed__thumb:hover { border-color: var(--primary); color: var(--primary); }
.phed__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phed__thumb svg { width: 22px; height: 22px; }
.phed__thumb i { font-style: normal; font-size: 11px; }
.phed__body { display: grid; gap: 8px; align-content: start; min-width: 0; }
.phed__body .f { margin: 0; }
.phed__body .f label { font-size: 11.5px; margin-bottom: 3px; }
.phed__body .inp { padding: 7px 9px; font-size: 12.5px; }
.phed__badge {
  font-size: 11.5px; font-weight: 700; padding: 5px 9px; border-radius: 8px;
  text-align: center;
}
.phed__badge.is-paid { background: #FFF3E0; color: #B45309; }
.phed__badge.is-free { background: #E8F7EF; color: #15803D; }
.phed__ops {
  grid-column: 1 / -1; display: flex; gap: 6px; justify-content: flex-end;
  border-top: 1px dashed var(--line); padding-top: 8px;
}
.phed__bar { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }

/* ================= Discover 照片墙 · 统计 ================= */
.phstat { display: flex; flex-wrap: wrap; gap: 12px; }
.phstat__i {
  min-width: 116px; padding: 12px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: #FAFBFE;
  display: grid; gap: 2px;
}
.phstat__i b { font-size: 24px; font-weight: 900; letter-spacing: -.03em; }
.phstat__i span { font-size: 12.5px; color: var(--soft); }
.phstat__i.is-warn { border-color: #FBD9A8; background: #FFFCF6; }
.phstat__i.is-warn b { color: #B45309; }

/* ================= 示例照片操作条 ================= */
.phsample { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.phsample__t { font-size: 13px; color: var(--soft); }
.phsample__t:empty { display: none; }

/* ================= 主播条预览 ================= */
.livePreview {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 14px; border-radius: 12px;
  background: #0F1013; border: 1px solid var(--line);
}
/* 预览卡片与前台 .lv 保持同一套层级：右上国旗、左上绿点、底部渐变带昵称+年龄 */
.livePreview__c {
  position: relative; width: 78px; height: 104px; border-radius: 13px; overflow: hidden;
  background: #23252C; border: 1px solid rgba(255, 255, 255, .06);
}
.livePreview__c.is-off { opacity: .6; }
.livePreview__img {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 25px; font-weight: 800;
  background: linear-gradient(135deg, #3A3D46, #23252C);
}
.livePreview__img img { width: 100%; height: 100%; object-fit: cover; }
/* 付费照片在预览里也要糊 —— 后台看着清晰、前台却是糊的，运营会以为是 bug */
.livePreview__c.is-locked .livePreview__img img { filter: blur(16px) saturate(.9) brightness(.72); }
.livePreview__lock {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  padding: 2px 7px; border-radius: 999px; font-style: normal;
  background: rgba(10, 12, 16, .72); border: 1px solid rgba(255, 255, 255, .16);
  color: #F5C544; font-size: 10px; font-weight: 800; line-height: 1;
}
.livePreview__dot {
  position: absolute; left: 6px; top: 6px; width: 8px; height: 8px; border-radius: 50%;
  background: #22C55E; box-shadow: 0 0 0 2px rgba(0, 0, 0, .5);
}
.livePreview__flag {
  position: absolute; right: 5px; top: 4px;
  font-size: 13px; line-height: 1; font-style: normal;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .65));
}
.livePreview__foot {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: baseline; justify-content: space-between; gap: 3px;
  padding: 18px 7px 6px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .78));
}
.livePreview__foot b { font-size: 10.5px; font-weight: 800; color: #fff; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.livePreview__foot i { flex: none; font-size: 10px; font-weight: 700; font-style: normal; color: rgba(255, 255, 255, .66); }

/* ================= 会员充值：后台预览 =================
 * 预览块直接复用 vip.css 的 .vip__* 标记，这里只负责外面那层舞台。 */
.vp__frame {
  border-radius: 18px; padding: 18px;
  background: #14141A;
  border: 1px solid #2A2A33;
}
.vp__stage {
  max-width: 780px; margin: 0 auto;
  display: flex; flex-direction: column;
}
.vp__stage .vip__body, .vp__stage.vip__body { padding: 0; }
.vp__stage .vip__box { max-height: none; }

/* ================= 注册用户表 ================= */
.ut__scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.ut { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 900px; }
.ut thead th {
  text-align: left; font-weight: 700; color: var(--soft);
  padding: 11px 12px; background: #F7F8FC; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.ut tbody td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ut tbody tr:last-child td { border-bottom: 0; }
.ut tbody tr:hover { background: #FAFBFD; }
.ut__c-no { width: 46px; }
.ut__c-dia { width: 120px; }
.ut__c-mc { width: 88px; }
.ut__c-ops { width: 260px; }
.ut__user { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.ut__ava {
  width: 28px; height: 28px; flex: none;
  display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #5B6BF5);
  color: #fff; font-size: 12px; font-weight: 800;
}
.ut__tag {
  font-style: normal; font-size: 11px; font-weight: 700;
  padding: 1px 7px; border-radius: 999px;
  background: #FEE2E2; color: #B91C1C;
}
.ut__mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; color: #3A4152;
}
.ut__dim { color: var(--soft); font-size: 12px; white-space: nowrap; }
/* 匹配次数：数字本身要显眼（运营靠它判断要不要补素材），
 * 0 次则弱化成灰色 —— 一眼区分「没用起来」和「用得少」。 */
.ut__mc {
  display: inline-block; min-width: 26px; padding: 2px 8px;
  border-radius: 7px; background: #EEF6FF; color: #1D4ED8;
  font-size: 12.5px; font-weight: 800; text-align: center;
  font-variant-numeric: tabular-nums;
}
.ut__mc.is-zero { background: #F4F5F7; color: #9AA1AE; font-weight: 600; }
.ut__pwd { display: flex; align-items: center; gap: 6px; }
.ut__mini {
  border: 1px solid var(--line); background: #fff; border-radius: 8px;
  padding: 3px 8px; font-size: 11.5px; font-weight: 600; color: #5A6274; cursor: pointer;
}
.ut__mini:hover { border-color: var(--primary); color: var(--primary); }
.ut__mini svg { width: 14px; height: 14px; vertical-align: -2px; }
.ut__dia { display: flex; align-items: center; gap: 6px; color: #F59E0B; }
.ut__dia svg { width: 16px; height: 16px; flex: none; }

/* ---------- 落地页清单（后台「落地页」页用） ---------- */
.rt__link { color: var(--primary); text-decoration: none; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.rt__link:hover { text-decoration: underline; }
/* 指标超出建议区间时标黄（SEO 标题太短/太长都会被截断或信息不足） */
.rt__pill--warn { background: rgba(255, 199, 44, .16); color: #FFC72C; }

/* ---------- 批量导入（媒体库页） ---------- */
/* 三选一：清单 CSV / 视频文件夹 / 头像文件夹。
 * 用网格而不是竖排，是为了在 1280px 宽的后台里一行放下，
 * 减少「点了才知道还要选什么」的往返。 */
.bulk__pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.bulk__pickCell {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.bulk__pickInfo {
  font-size: 12px; color: var(--soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.bulk__chk { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; cursor: pointer; }
.bulk__sum {
  padding: 10px 14px; margin-bottom: 10px; border-radius: 10px;
  background: #F4F9FF; color: #1E40AF; font-size: 13.5px; font-weight: 600;
}
.bulk__sum b { font-weight: 800; }
/* 有行配不上时必须显眼 —— 静默通过的导入器比没有更糟 */
.bulk__sum.is-warn { background: #FFF8EC; color: #B45309; }
.bulk__scroll { max-height: 340px; overflow: auto; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 10px; }
/* 配不上的行标红 */
.rt__cell--warn { color: #C2410C; font-size: 12.5px; }
@media (max-width: 900px) { .bulk__pick { grid-template-columns: 1fr; } }
.bulk__hint { font-size: 12px; color: var(--soft); line-height: 1.55; }
