/* =============================================================
   TVYS Admin · 白色主题样式（原生 CSS，无第三方依赖）
   目标分辨率 1920×1080，左侧导航 + 右侧内容区
   2026-11-03 全后台白色化：白色主题下沉为 :root 基础主题，
   总台 / 门店 / 登录页统一白色；TV 预览框（tv-frame / desk-canvas /
   boot / hero / marquee 预览）保留深色以模拟电视屏幕。
   ============================================================= */

/* ---------- 设计变量 ---------- */
:root {
  --bg: #f4f6fa;
  --bg-soft: #ffffff;
  --panel: #ffffff;
  --panel-2: #f7f9fc;
  --panel-3: #eef2f7;
  --border: #e4e9f0;
  --border-strong: #c9d4e0;
  --text: #1b2733;
  --text-dim: #51627a;
  --text-mute: #8595a9;
  --accent: #0e9fc4;
  --accent-2: #2f7ef0;
  --accent-soft: rgba(14, 159, 196, 0.10);
  --accent-line: rgba(14, 159, 196, 0.32);
  --success: #0d9268;
  --warn: #b45309;
  --danger: #cf3f3f;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 48px rgba(24, 40, 72, 0.14);
  --sidebar-w: 250px;
  --topbar-h: 78px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Mono", "JetBrains Mono", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }

/* hidden 属性优先级：避免被组件自身的 display 规则覆盖 */
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(14, 159, 196, 0.07), transparent 62%),
    radial-gradient(1100px 620px at 100% 0%, rgba(47, 126, 240, 0.06), transparent 60%),
    radial-gradient(800px 600px at 60% 120%, rgba(14, 159, 196, 0.04), transparent 65%);
}

a { color: var(--accent); text-decoration: none; }

h1, h2, h3, h4, p { margin: 0; }

svg.ico { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: -3px; }
svg.ico.lg { width: 22px; height: 22px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cfd9e4; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #b9c7d6; }

/* ---------- 应用骨架 ---------- */
.shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #ffffff;
  border-right: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #22d3ee 0%, #3b82f6 100%);
  box-shadow: 0 10px 24px rgba(34, 211, 238, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  color: #04121f;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text b { font-size: 16px; letter-spacing: 0.02em; }
.brand-text i {
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--text-mute);
  margin-top: 2px;
}

.nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 12px 22px;
}

.nav-group { margin-bottom: 18px; }
.nav-group:last-child { margin-bottom: 0; }

.nav-label {
  padding: 0 10px 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-mute);
  text-transform: uppercase;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  height: 42px;
  padding: 0 12px;
  margin-bottom: 3px;
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 13.5px;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.nav-item:hover { background: #eef3f9; color: var(--text); }
.nav-item.active {
  color: #0b6fa0;
  background: linear-gradient(90deg, rgba(14, 159, 196, 0.12), rgba(47, 126, 240, 0.05) 70%, transparent);
  box-shadow: inset 0 0 0 1px rgba(14, 159, 196, 0.20);
}
.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 10px rgba(14, 159, 196, 0.35);
}
.nav-item.active svg.ico { color: var(--accent); }
.nav-item svg.ico { color: var(--text-mute); transition: color 0.16s ease; }
.nav-item:hover svg.ico { color: var(--accent); }

.sidebar-foot {
  padding: 16px 20px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-mute);
}
.sidebar-foot .status-line { display: flex; align-items: center; gap: 7px; color: var(--text-dim); }
.sidebar-foot .status-line .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.8);
}
.sidebar-foot .version { letter-spacing: 0.06em; }

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

.topbar {
  position: relative;
  z-index: 10;
  flex: none;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
}

.topbar-left { min-width: 0; }
.topbar-left h1 { font-size: 20px; font-weight: 650; letter-spacing: 0.01em; }
.topbar-left p { margin-top: 3px; font-size: 12.5px; color: var(--text-mute); }

.topbar-right { display: flex; align-items: center; gap: 12px; flex: none; }

.user-chip { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border: 1px solid var(--border); border-radius: 999px; background: #f7f9fc; }
.user-chip .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(34, 211, 238, 0.9), rgba(59, 130, 246, 0.9));
  color: #04121f; font-weight: 700; font-size: 13px;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.2; }
.user-meta b { font-size: 12.5px; font-weight: 600; }
.user-meta span { font-size: 10.5px; color: var(--text-mute); }

.page {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 28px 48px;
  scroll-behavior: smooth;
}
.page-inner { width: 100%; max-width: 1720px; margin: 0 auto; }

/* ---------- 通用文本 ---------- */
.muted { color: var(--text-mute); }
.dim { color: var(--text-dim); }
.mono { font-family: var(--mono); font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.ellipsis { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub { display: block; margin-top: 3px; font-size: 11.5px; color: var(--text-mute); }
.text-right { text-align: right; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--panel-2);
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease;
  -webkit-user-select: none;
  user-select: none;
}
.btn:hover { background: var(--panel-3); border-color: var(--accent-line); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn svg.ico { width: 16px; height: 16px; }

.btn.primary {
  background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
  border-color: transparent;
  color: #04121f;
  font-weight: 650;
  box-shadow: 0 10px 26px rgba(34, 211, 238, 0.22);
}
.btn.primary:hover { filter: brightness(1.07); box-shadow: 0 12px 30px rgba(34, 211, 238, 0.3); }
.btn.primary:disabled { filter: grayscale(0.5); }

.btn.ghost { background: transparent; border-color: var(--border); }
.btn.ghost:hover { background: #e8eef6; }

.btn.danger { background: rgba(248, 113, 113, 0.08); border-color: rgba(248, 113, 113, 0.35); color: #cf3f3f; }
.btn.danger:hover { background: rgba(248, 113, 113, 0.16); border-color: rgba(248, 113, 113, 0.55); }

.btn.warn { background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.35); color: #a16207; }
.btn.warn:hover { background: rgba(251, 191, 36, 0.18); }

.btn.sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; gap: 5px; }
.btn.sm svg.ico { width: 14px; height: 14px; }
.btn.icon { width: 36px; padding: 0; }
.btn.icon.sm { width: 30px; }

.btn .busy-dot { display: none; }
.btn.is-busy .busy-dot { display: inline-block; }
.btn.is-busy > svg.ico, .btn.is-busy > span.lbl { opacity: 0.5; }

.link-btn {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-family: inherit;
  font-size: 12.5px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 6px;
}
.link-btn:hover { background: var(--accent-soft); }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label { font-size: 12.5px; color: var(--text-dim); display: flex; align-items: center; gap: 4px; }
.field > label .req { color: var(--danger); }
.field .hint { font-size: 11.5px; color: var(--text-mute); line-height: 1.55; }
/* 2026-11-03 白色主题：表单控件白底 + 稍强描边（沿用总台已验证的观感） */
.field .input, .field .select, .field .textarea { border-color: var(--border-strong); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-section { margin-top: 22px; }
.form-section-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; font-weight: 600; color: var(--text-dim);
  padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--border);
}

.input, .select, .textarea {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--border-strong); }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 159, 196, 0.13);
  background: #ffffff;
}
.input.invalid, .select.invalid, .textarea.invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.13);
}
.input::placeholder, .textarea::placeholder { color: var(--text-mute); }
.input:disabled, .select:disabled { opacity: 0.6; cursor: not-allowed; }

.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, #7c8cab 50%), linear-gradient(135deg, #7c8cab 50%, transparent 50%);
  background-position: calc(100% - 17px) 17px, calc(100% - 12px) 17px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.select option { background: #ffffff; color: var(--text); }

.textarea { height: auto; min-height: 92px; padding: 10px 12px; line-height: 1.65; resize: vertical; }
.textarea.code { font-family: var(--mono); font-size: 12.5px; min-height: 220px; }

.check-row { display: flex; align-items: center; gap: 9px; min-height: 40px; font-size: 13px; color: var(--text-dim); cursor: pointer; }
.check-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

.check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 190px;
  overflow-y: auto;
  padding: 2px;
}
.check-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #ffffff;
  color: var(--text-dim);
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.check-chip input { width: 14px; height: 14px; accent-color: var(--accent); cursor: pointer; }
.check-chip:hover { border-color: var(--border-strong); color: var(--text); }
.check-chip:has(input:checked) { border-color: var(--accent-line); color: var(--text); background: var(--accent-soft); }

.field-error { font-size: 11.5px; color: #cf3f3f; }

/* ---------- 工具栏 / 筛选 ---------- */
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.toolbar .spacer { flex: 1 1 auto; }
.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filters .select, .filters .input { width: auto; min-width: 168px; height: 38px; }
.filters .select { min-width: 180px; }
.actions { display: flex; align-items: center; gap: 10px; }

.search-box { position: relative; display: inline-flex; align-items: center; }
.search-box svg.ico { position: absolute; left: 12px; color: var(--text-mute); width: 16px; height: 16px; pointer-events: none; }
.search-box .input { padding-left: 36px; min-width: 270px; height: 38px; }

/* ---------- 卡片 / KPI ---------- */
.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 26px rgba(24, 40, 72, 0.07);
  overflow: hidden;
}
.card + .card { margin-top: 18px; }
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.card-title { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 600; }
.card-title svg.ico { color: var(--accent); }
.card-body { padding: 20px; }

/* 单选卡片（存储方式等） */
.store-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.store-option {
  position: relative; display: flex; gap: 10px; align-items: flex-start;
  padding: 14px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: #fff; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease;
}
.store-option input { margin-top: 2px; flex: 0 0 auto; }
.store-option.is-active { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34, 211, 238, .12); }
.store-option-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.store-option-main b { font-size: 13px; }
.store-option-main i { font-style: normal; font-size: 11.5px; color: var(--text-mute); line-height: 1.5; }
@media (max-width: 900px) { .store-options { grid-template-columns: 1fr; } }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; }

.kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.kpi {
  position: relative;
  overflow: hidden;
  min-height: 128px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(24, 40, 72, 0.07);
}
.kpi::after {
  content: "";
  position: absolute;
  right: -46px;
  top: -52px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 159, 196, 0.12), transparent 68%);
  pointer-events: none;
}
.kpi.blue::after { background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent 68%); }
.kpi.green::after { background: radial-gradient(circle, rgba(52, 211, 153, 0.16), transparent 68%); }
.kpi.amber::after { background: radial-gradient(circle, rgba(251, 191, 36, 0.16), transparent 68%); }
.kpi.violet::after { background: radial-gradient(circle, rgba(167, 139, 250, 0.18), transparent 68%); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; color: var(--text-dim); font-size: 12.5px; }
.kpi-icon {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(14, 159, 196, 0.10); color: var(--accent); border: 1px solid rgba(14, 159, 196, 0.18);
}
.kpi.blue .kpi-icon { background: rgba(59, 130, 246, 0.10); color: #2563eb; border-color: rgba(59, 130, 246, 0.22); }
.kpi.green .kpi-icon { background: rgba(16, 185, 129, 0.10); color: #059669; border-color: rgba(16, 185, 129, 0.22); }
.kpi.amber .kpi-icon { background: rgba(251, 191, 36, 0.14); color: #d97706; border-color: rgba(245, 158, 11, 0.26); }
.kpi.violet .kpi-icon { background: rgba(167, 139, 250, 0.12); color: #7c3aed; border-color: rgba(167, 139, 250, 0.24); }
.kpi-value { margin-top: 14px; font-size: 34px; font-weight: 720; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi-foot { margin-top: 8px; font-size: 11.5px; color: var(--text-mute); display: flex; align-items: center; gap: 6px; }
.kpi-foot .up { color: var(--success); }
.kpi-foot .down { color: var(--danger); }

.dash-updated { font-size: 12px; color: var(--text-mute); }

/* TOP 影片 */
.rank-list { display: flex; flex-direction: column; }
.rank-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed rgba(28, 41, 64, 0.7); }
.rank-item:last-child { border-bottom: 0; padding-bottom: 2px; }
.rank-no {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: var(--text-mute);
  background: #eef2f7; border: 1px solid var(--border);
}
.rank-item:nth-child(1) .rank-no { color: #04121f; background: linear-gradient(135deg, #22d3ee, #3b82f6); border-color: transparent; }
.rank-item:nth-child(2) .rank-no { color: #2563eb; background: rgba(59, 130, 246, 0.12); border-color: rgba(59, 130, 246, 0.3); }
.rank-item:nth-child(3) .rank-no { color: #b45309; background: rgba(251, 191, 36, 0.16); border-color: rgba(251, 191, 36, 0.3); }
.rank-title { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-bar { margin-top: 7px; height: 5px; border-radius: 5px; background: #e4eaf2; overflow: hidden; }
.rank-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #0e9fc4, #2f7ef0); }
.rank-count { font-size: 12.5px; color: var(--text-dim); font-variant-numeric: tabular-nums; }

/* 告警 */
.alert-list { display: flex; flex-direction: column; gap: 9px; }
.alert-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px; border-radius: 11px;
  background: #f7f9fc; border: 1px solid var(--border);
}
.alert-item .alert-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; background: rgba(248, 113, 113, 0.1); color: #cf3f3f; }
.alert-item.warn .alert-ico { background: rgba(251, 191, 36, 0.12); color: #b45309; }
.alert-item.info .alert-ico { background: rgba(14, 159, 196, 0.1); color: var(--accent); }
.alert-body { min-width: 0; flex: 1; }
.alert-msg { font-size: 13px; word-break: break-word; }
.alert-meta { margin-top: 3px; font-size: 11px; color: var(--text-mute); }

/* ---------- 表格 ---------- */
.table-wrap { width: 100%; overflow-x: auto; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
table.tbl th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 12px 16px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  background: #f2f5f9;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.tbl td { padding: 13px 16px; border-bottom: 1px solid #edf1f6; vertical-align: middle; }
table.tbl tbody tr { transition: background 0.14s ease; }
table.tbl tbody tr:hover { background: #f6f9fc; }
table.tbl tbody tr:last-child td { border-bottom: 0; }
table.tbl td.actions { white-space: nowrap; }
table.tbl td.actions .btn + .btn, table.tbl td.actions .btn + .link-btn { margin-left: 6px; }
table.tbl .td-strong { color: var(--text); font-weight: 550; }
table.tbl .cell-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
table.tbl .num { font-variant-numeric: tabular-nums; }

.table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 13px 18px;
  border-top: 1px solid var(--border);
  background: #f7f9fc;
}
.table-total { font-size: 12.5px; color: var(--text-mute); }
.table-total b { color: var(--text-dim); font-weight: 600; font-variant-numeric: tabular-nums; }

.pager { display: flex; align-items: center; gap: 5px; }
.page-btn {
  min-width: 32px; height: 32px; padding: 0 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: 0.15s ease;
}
.page-btn:hover:not(:disabled) { background: var(--panel-3); color: var(--text); }
.page-btn.active { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); font-weight: 650; }
.page-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.pager-gap { padding: 0 2px; color: var(--text-mute); font-size: 12px; }
.page-size { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-mute); }
.page-size .select { height: 30px; min-width: 74px; padding: 0 26px 0 9px; font-size: 12px; background-position: calc(100% - 13px) 13px, calc(100% - 8px) 13px; }

/* 空态 / 加载态 */
.state-block { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 56px 20px; text-align: center; color: var(--text-mute); }
.state-block p { font-size: 13.5px; color: var(--text-dim); }
.state-block span { font-size: 12px; max-width: 460px; line-height: 1.7; }
.state-block .empty-ico {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: #eef2f7; border: 1px solid var(--border); color: var(--text-mute);
}
.state-block .empty-ico svg.ico { width: 24px; height: 24px; }
.state-block.error p { color: #cf3f3f; }

.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(14, 159, 196, 0.22);
  border-top-color: var(--accent);
  animation: spin 0.75s linear infinite;
}
.btn .spinner { width: 14px; height: 14px; border-width: 2px; }

.skeleton { height: 13px; border-radius: 6px; background: linear-gradient(90deg, #e9eef5 25%, #f5f8fc 37%, #e9eef5 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; }

/* ---------- 徽标 / 标签 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid transparent;
  background: #eef2f7;
  color: var(--text-dim);
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.badge.success { color: #0d9268; background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.28); }
.badge.danger { color: #cf3f3f; background: rgba(248, 113, 113, 0.12); border-color: rgba(248, 113, 113, 0.30); }
.badge.warn { color: #a16207; background: rgba(251, 191, 36, 0.16); border-color: rgba(245, 158, 11, 0.35); }
.badge.info { color: #0b7a99; background: rgba(14, 159, 196, 0.10); border-color: rgba(14, 159, 196, 0.30); }
.badge.muted { color: var(--text-mute); background: #eef2f7; border-color: var(--border); }
.badge.plain { background: transparent; border-color: var(--border); }

.tag {
  display: inline-flex; align-items: center;
  height: 22px; padding: 0 8px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--text-dim);
  background: #eef2f7;
  border: 1px solid var(--border);
  white-space: nowrap;
}
.tag + .tag { margin-left: 5px; }
.tag.quality { color: #0b7a99; border-color: rgba(14, 159, 196, 0.30); background: rgba(14, 159, 196, 0.08); }

/* 缩略图 */
.thumb {
  position: relative;
  width: 46px;
  height: 62px;
  flex: none;
  border-radius: 7px;
  overflow: hidden;
  background: #eef2f7;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-mute);
}
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb svg.ico { width: 18px; height: 18px; }
.thumb.wide { width: 104px; height: 48px; }

.avatar-cell {
  width: 32px; height: 32px; flex: none; border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(14, 159, 196, 0.10); border: 1px solid rgba(14, 159, 196, 0.18);
  color: var(--accent); font-size: 12px; font-weight: 700;
}

/* ---------- 模态框 ---------- */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(24, 40, 72, 0.45);
  animation: fadeIn 0.16s ease;
}
.modal-root.leaving { animation: fadeOut 0.15s ease forwards; }
.modal {
  width: min(640px, 100%);
  max-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  box-shadow: var(--shadow);
  animation: popIn 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal-root.leaving .modal { animation: popOut 0.15s ease forwards; }
.modal-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 15.5px; font-weight: 600; }
.modal-x {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid transparent;
  background: transparent; color: var(--text-mute); cursor: pointer;
  display: grid; place-items: center;
}
.modal-x:hover { background: var(--panel-3); color: var(--text); }
.modal-body { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 22px; }
.modal-foot {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 15px 22px;
  border-top: 1px solid var(--border);
  background: #f7f9fc;
}
.modal-foot .left { margin-right: auto; }
.confirm-text { font-size: 13.5px; color: var(--text-dim); line-height: 1.75; white-space: pre-line; }
.confirm-text b { color: var(--text); }

/* 激活码展示 */
.code-display {
  padding: 26px 20px;
  border-radius: 14px;
  border: 1px dashed rgba(14, 159, 196, 0.45);
  background: radial-gradient(circle at 50% 0%, rgba(14, 159, 196, 0.10), rgba(14, 159, 196, 0.02) 70%);
  text-align: center;
  font-family: var(--mono);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #0b7a99;
  text-shadow: none;
  -webkit-user-select: all;
  user-select: all;
}
.code-hint { margin-top: 16px; font-size: 12.5px; color: var(--text-dim); line-height: 1.8; }
.code-hint ol { margin: 8px 0 0; padding-left: 20px; }
.code-meta { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; }

/* ---------- Toast ---------- */
.toast-root {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 250px;
  max-width: 430px;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(24, 40, 72, 0.18);
  animation: toastIn 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  font-size: 13px;
  line-height: 1.55;
}
.toast.leaving { animation: toastOut 0.18s ease forwards; }
.toast > svg.ico { margin-top: 2px; color: var(--accent); }
.toast.success { border-color: rgba(52, 211, 153, 0.4); }
.toast.success > svg.ico { color: var(--success); }
.toast.error { border-color: rgba(248, 113, 113, 0.42); }
.toast.error > svg.ico { color: var(--danger); }
.toast.warn { border-color: rgba(251, 191, 36, 0.42); }
.toast.warn > svg.ico { color: var(--warn); }
.toast-msg { flex: 1; min-width: 0; word-break: break-word; }
.toast-close { border: 0; background: transparent; color: var(--text-mute); cursor: pointer; padding: 2px; border-radius: 6px; display: grid; place-items: center; }
.toast-close:hover { color: var(--text); background: var(--panel-3); }
.toast-close svg.ico { width: 14px; height: 14px; }

/* ---------- 标签页 ---------- */
.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f2f5f9;
  margin-bottom: 18px;
}
.tab {
  height: 34px;
  padding: 0 18px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: 0.16s ease;
}
.tab:hover { color: var(--text); background: #e8eef6; }
.tab.active { color: var(--text); background: #ffffff; box-shadow: inset 0 0 0 1px var(--border-strong); }
.tab .count { margin-left: 6px; font-size: 11px; color: var(--text-mute); }

/* ---------- 多线路 / 介绍页编辑器 ---------- */
.src-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 34px;
  gap: 9px;
  align-items: center;
  margin-bottom: 9px;
}
.src-row .select, .src-row .input { height: 38px; }

.pages-editor { display: flex; flex-direction: column; gap: 12px; }
.page-editor {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: #ffffff;
}
.page-editor-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.page-editor-head .idx { font-size: 11.5px; color: var(--text-mute); letter-spacing: 0.08em; }
.page-editor .row-actions { display: flex; gap: 5px; }
.page-editor .form-grid { gap: 12px; }
.page-editor .textarea { min-height: 70px; }

.intro-mode-grid, .intro-color-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.mode-card {
  flex: 1 1 150px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #ffffff;
  cursor: pointer;
  transition: 0.16s ease;
}
.mode-card:hover { border-color: var(--border-strong); }
.mode-card input { margin-top: 3px; accent-color: var(--accent); }
.mode-card:has(input:checked) { border-color: var(--accent-line); background: var(--accent-soft); }
.mode-card b { display: block; font-size: 13px; font-weight: 600; }
.mode-card span { display: block; margin-top: 2px; font-size: 11.5px; color: var(--text-mute); }

.color-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 15px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #ffffff;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--text-dim);
}
.color-chip .swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.22); }
.color-chip.cyan .swatch { background: linear-gradient(135deg, #22d3ee, #0891b2); }
.color-chip.blue .swatch { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.color-chip.brown .swatch { background: linear-gradient(135deg, #d4a373, #92400e); }
.color-chip input { display: none; }
.color-chip:has(input:checked) { border-color: var(--accent-line); color: var(--text); background: var(--accent-soft); }

.poster-preview {
  width: 108px;
  height: 150px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #eef2f7;
  display: grid;
  place-items: center;
  color: var(--text-mute);
  flex: none;
}
.poster-preview img { width: 100%; height: 100%; object-fit: cover; }

.inline-hint { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-mute); }
.inline-hint svg.ico { width: 14px; height: 14px; }

/* ---------- 登录页 ---------- */
body.is-login { overflow: auto; }
body.is-login::before { display: none; }

.login-root { position: relative; z-index: 1; min-height: 100vh; }

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  background:
    radial-gradient(1100px 620px at -10% -20%, rgba(14, 159, 196, 0.10), transparent 60%),
    radial-gradient(900px 700px at 110% 10%, rgba(47, 126, 240, 0.10), transparent 58%),
    linear-gradient(160deg, #f4f6fa 0%, #ffffff 55%, #eef3f8 100%);
}
.login-page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse at 30% 35%, rgba(14, 159, 196, 0.05), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(238, 243, 248, 0.4));
}

.login-hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 96px);
}
.login-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 46px; }
.login-brand .brand-mark { width: 48px; height: 48px; font-size: 17px; border-radius: 15px; }
.login-brand .brand-text b { font-size: 18px; }
.login-brand .brand-text i { font-size: 10.5px; }
.login-hero h1 {
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1.18;
  font-weight: 720;
  letter-spacing: -0.015em;
  max-width: 620px;
}
.login-hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #22d3ee, #60a5fa 60%, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.login-hero > p {
  margin-top: 18px;
  max-width: 520px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text-dim);
}
.login-points { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; max-width: 560px; }
.login-points li {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(14, 159, 196, 0.26);
  background: rgba(14, 159, 196, 0.07);
  color: #0b7a99;
  font-size: 12px;
}
.login-points li svg.ico { width: 14px; height: 14px; }
.login-hero-foot { margin-top: auto; padding-top: 56px; font-size: 11.5px; color: var(--text-mute); letter-spacing: 0.14em; }

.login-panel {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-card {
  width: min(420px, 100%);
  padding: 38px 36px 30px;
  border-radius: 22px;
  border: 1px solid rgba(201, 212, 224, 0.9);
  background: #ffffff;
  box-shadow: 0 30px 70px rgba(24, 40, 72, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.login-card h2 { font-size: 22px; font-weight: 680; letter-spacing: 0.01em; }
.login-sub { margin-top: 7px; font-size: 12.5px; color: var(--text-mute); }
.login-fields { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.login-fields .input { height: 46px; font-size: 14px; }
.login-error {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.08);
  color: #cf3f3f;
  font-size: 12.5px;
}
.login-submit { width: 100%; height: 46px; margin-top: 24px; font-size: 14.5px; letter-spacing: 0.14em; }
.login-hint { margin-top: 18px; font-size: 11.5px; color: var(--text-mute); text-align: center; line-height: 1.7; }
.login-card .field label { font-size: 12px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1480px) {
  .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1280px) {
  :root { --sidebar-w: 220px; }
  .page { padding: 20px 22px 40px; }
  .topbar { padding: 0 22px; }
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-box .input { min-width: 200px; }
}
@media (max-width: 1024px) {
  .login-page { grid-template-columns: minmax(0, 1fr); }
  .login-hero { display: none; }
  .login-panel { padding: 24px; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 72px minmax(0, 1fr); }
  .brand { padding: 16px 14px; justify-content: center; }
  .brand-text, .nav-label, .nav-item span, .sidebar-foot .version, .sidebar-foot .status-line { display: none; }
  .nav-item { justify-content: center; padding: 0; }
  .topbar { height: auto; padding: 14px 16px; flex-wrap: wrap; }
  .page { padding: 16px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .table-foot { justify-content: center; }
}

/* ---------- 动画 ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes popOut { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(8px) scale(0.99); } }
@keyframes toastIn { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(22px); } }

/* ---------- 桌面配置（主题编辑器） ---------- */
.theme-editor {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr) 322px;
  gap: 16px;
  align-items: start;
}
.theme-side { display: flex; flex-direction: column; min-height: 0; }
.theme-side .card-head { padding: 14px 16px; }
.theme-list { display: flex; flex-direction: column; gap: 8px; padding: 12px; max-height: 560px; overflow-y: auto; }
.theme-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #ffffff;
  cursor: pointer;
  transition: 0.15s ease;
}
.theme-item:hover { border-color: var(--border-strong); background: #f0f4f9; }
.theme-item.active { border-color: var(--accent-line); background: linear-gradient(90deg, rgba(14, 159, 196, 0.14), rgba(14, 159, 196, 0.03)); }
.theme-item.active::before {
  content: "";
  position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
.theme-item .theme-icon {
  width: 30px; height: 30px; flex: none; border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(14, 159, 196, 0.10); border: 1px solid rgba(14, 159, 196, 0.16); color: var(--accent);
}
.theme-item .theme-meta { min-width: 0; flex: 1; }
.theme-item .theme-name { font-size: 13px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-item .theme-sub { margin-top: 2px; font-size: 10.5px; color: var(--text-mute); }
.theme-item .theme-current { flex: none; font-size: 10px; color: var(--success); border: 1px solid rgba(52, 211, 153, 0.28); background: rgba(52, 211, 153, 0.08); border-radius: 999px; padding: 2px 7px; }
.theme-side-foot { padding: 10px 12px 12px; border-top: 1px solid var(--border); display: flex; gap: 8px; flex-wrap: wrap; }
.theme-side-foot .btn { flex: 1; }

.desk-canvas-wrap { padding: 16px 18px 8px; }
.desk-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background-color: #080d16;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: crosshair;
  -webkit-user-select: none;
  user-select: none;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.45);
}
.desk-canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(34, 211, 238, 0.07), transparent 62%);
}
.desk-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.075) 1px, transparent 1px);
  background-size: calc(100% / 64) calc(100% / 36);
  opacity: 0.9;
}
.desk-widget { position: absolute; padding: 3px; cursor: grab; z-index: 1; }
.desk-widget.dragging { cursor: grabbing; z-index: 5; }
.desk-widget.has-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 10px;
  overflow: hidden;
}
.desk-widget.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(7, 12, 18, 0.45), rgba(7, 12, 18, 0.72));
  pointer-events: none;
}
.desk-widget > .desk-icon, .desk-widget > .desk-name { position: relative; z-index: 1; }
.desk-widget-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  background: linear-gradient(160deg, rgba(24, 37, 60, 0.9), rgba(11, 18, 30, 0.9));
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}
.desk-widget:hover .desk-widget-inner { border-color: rgba(34, 211, 238, 0.65); }
.desk-widget.selected .desk-widget-inner {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.65), 0 0 32px rgba(34, 211, 238, 0.22);
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.18), rgba(11, 18, 30, 0.92));
}
.desk-widget .desk-icon { width: 34%; height: 34%; min-width: 18px; min-height: 18px; display: grid; place-items: center; color: #a5f3fc; }
.desk-widget .desk-icon img { width: 100%; height: 100%; object-fit: contain; }
.desk-widget .desk-name {
  max-width: 100%;
  font-size: clamp(9px, 1.05vw, 13px);
  color: #eaf6ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.desk-widget .desk-action {
  position: absolute;
  right: 5px; top: 4px;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 9px;
  color: rgba(214, 231, 248, 0.6);
  background: rgba(7, 11, 18, 0.72);
  opacity: 0;
  transition: opacity 0.14s ease;
}
.desk-widget.selected .desk-action { opacity: 1; }
.desk-widget .desk-handle { display: none; position: absolute; right: 2px; bottom: 2px; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.desk-widget.selected .desk-handle { display: block; }
.desk-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #9fb0c3;
  font-size: 12.5px;
  pointer-events: none;
}
.desk-hint { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 18px 16px; font-size: 11.5px; color: var(--text-mute); }
.desk-hint .badge { font-size: 10.5px; }
.desk-zoom { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--text-mute); }

.theme-props .card-body { padding: 14px 16px 16px; }
.theme-props .card-head { padding: 13px 16px; }
.prop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prop-grid .full { grid-column: 1 / -1; }
.prop-grid .field { gap: 5px; }
.prop-grid .field > label { font-size: 11.5px; }
.prop-grid .input, .prop-grid .select { height: 34px; font-size: 12.5px; }
.prop-grid .textarea { min-height: 64px; font-size: 12.5px; }
.prop-actions { display: flex; gap: 8px; margin-top: 14px; }
.prop-actions .btn { flex: 1; }
.prop-desc { margin: 0 0 12px; font-size: 11.5px; line-height: 1.7; color: var(--text-mute); }
.prop-empty { padding: 22px 4px; text-align: center; color: var(--text-mute); font-size: 12px; line-height: 1.8; }
.prop-empty .empty-ico {
  width: 42px; height: 42px; margin: 0 auto 10px; border-radius: 12px;
  display: grid; place-items: center; background: #eef2f7; border: 1px solid var(--border); color: var(--text-mute);
}
.prop-section + .prop-section { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.prop-section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 12px; font-weight: 600; color: var(--text-dim); }
.dirty-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--warn);
  border: 1px solid rgba(251, 191, 36, 0.3); background: rgba(251, 191, 36, 0.08);
  border-radius: 999px; padding: 2px 8px;
}
.unsaved-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 8px var(--warn); }

@media (max-width: 1560px) {
  .theme-editor { grid-template-columns: 224px minmax(0, 1fr) 300px; }
}
@media (max-width: 1280px) {
  .theme-editor { grid-template-columns: 220px minmax(0, 1fr); }
  .theme-props { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .theme-editor { grid-template-columns: minmax(0, 1fr); }
  .theme-side { order: 1; }
  .theme-stage { order: 2; }
  .theme-props { order: 3; }
}

/* ---------- 音乐专辑 ---------- */
.album-tracks { display: flex; flex-direction: column; gap: 8px; }
.album-track-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1.25fr) 82px 96px;
  gap: 8px;
  align-items: center;
}
.album-track-row .track-idx { font-size: 11px; color: var(--text-mute); text-align: center; font-variant-numeric: tabular-nums; }
.album-track-row .input { height: 34px; font-size: 12.5px; }
.album-track-row .row-actions { display: flex; gap: 4px; justify-content: flex-end; }
.album-track-empty { padding: 18px; text-align: center; font-size: 12px; color: var(--text-mute); border: 1px dashed var(--border); border-radius: 10px; }
.album-cover {
  width: 48px; height: 48px; flex: none; border-radius: 9px; overflow: hidden;
  border: 1px solid var(--border); background: #eef2f7; display: grid; place-items: center; color: var(--text-mute);
}
.album-cover img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .album-track-row { grid-template-columns: 22px minmax(0, 1fr) minmax(0, 1fr); }
  .album-track-row .row-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ---------- 门店信息 / 锁屏欢迎页预览 ---------- */
.hotel-grid {
  display: grid;
  grid-template-columns: minmax(0, 470px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.hotel-form-card .card-body { padding: 18px 20px 20px; }
.hotel-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.hotel-form-actions .spacer { flex: 1; }
.hotel-preview-card .card-head { align-items: center; }
.hotel-preview-card .card-body { padding: 16px 18px 18px; }
.hotel-preview-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--text-mute);
  line-height: 1.7;
}
.hotel-preview-note svg.ico { flex: none; }

.tv-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(900px 460px at 16% -10%, rgba(34, 211, 238, 0.2), transparent 60%),
    radial-gradient(760px 460px at 92% 14%, rgba(59, 130, 246, 0.2), transparent 58%),
    linear-gradient(158deg, #070c14 0%, #0a1220 52%, #0c1727 100%);
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.55), 0 20px 48px rgba(0, 0, 0, 0.35);
  container-type: inline-size;
  -webkit-user-select: none;
  user-select: none;
}
.tv-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.05) 1px, transparent 1px);
  background-size: 4.6cqw 4.6cqw;
  mask-image: radial-gradient(ellipse at 50% 42%, rgba(0, 0, 0, 0.9), transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 42%, rgba(0, 0, 0, 0.9), transparent 72%);
  pointer-events: none;
}
.tv-frame::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.5), transparent);
}
.tv-top {
  position: absolute;
  top: 4.5%;
  left: 5.5%;
  right: 5.5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2cqw;
  font-size: 1.35cqw;
  letter-spacing: 0.16em;
  color: rgba(165, 196, 226, 0.75);
}
.tv-brand { display: inline-flex; align-items: center; gap: 0.8cqw; }
.tv-brand .tv-dot { width: 0.7cqw; height: 0.7cqw; border-radius: 50%; background: var(--success); box-shadow: 0 0 1.2cqw var(--success); }
.tv-store { font-size: 1.35cqw; color: #a5f3fc; letter-spacing: 0.08em; }
.tv-top-right { display: inline-flex; align-items: center; gap: 2cqw; }
.tv-clock { font-variant-numeric: tabular-nums; letter-spacing: 0.1em; }
.tv-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.8cqw;
  padding: 0 9%;
  text-align: center;
}
.tv-welcome {
  margin: 0;
  font-size: 4.4cqw;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f2f8ff;
  text-shadow: 0 0 4cqw rgba(34, 211, 238, 0.25);
  word-break: break-word;
}
.tv-rule { width: 7cqw; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 1.6cqw rgba(34, 211, 238, 0.6); }
.tv-notice {
  margin: 0;
  max-width: 88%;
  font-size: 1.85cqw;
  line-height: 1.7;
  color: rgba(196, 214, 238, 0.82);
  word-break: break-word;
}
.tv-info {
  position: absolute;
  left: 5.5%;
  right: 5.5%;
  bottom: 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.4cqw;
}
.tv-info-item {
  display: inline-flex;
  align-items: center;
  gap: 0.7cqw;
  padding: 0.75cqw 1.5cqw;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  background: rgba(8, 14, 24, 0.62);
  font-size: 1.5cqw;
  color: rgba(214, 231, 248, 0.9);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tv-info-item svg { width: 1.7cqw; height: 1.7cqw; flex: none; color: var(--accent); }
.tv-info-item b { font-weight: 600; color: #eaf6ff; }
.tv-info-item .tv-label { color: #9fb0c3; }
.tv-empty { color: #9fb0c3; }
.tv-hint {
  position: absolute;
  right: 5.5%;
  bottom: 5%;
  font-size: 1.2cqw;
  color: rgba(120, 143, 173, 0.8);
  letter-spacing: 0.08em;
}
.hotel-save-state { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-mute); }
.hotel-save-state.dirty { color: var(--warn); }
.hotel-save-state .unsaved-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

@media (max-width: 1400px) {
  .hotel-grid { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); }
}
@media (max-width: 1180px) {
  .hotel-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 双后台：门店作用域 / 角色 ---------- */
.topbar-scope { display: flex; align-items: center; }
.scope-chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 13px;
  border-radius: 10px; border: 1px solid var(--border);
  background: #f7f9fc;
  color: var(--text-dim); font-size: 12.5px;
}

/* ---------- v12：图文介绍逐页编辑器（admin-web/pages/intro-editor.js） ---------- */
.intro-editor { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 18px; align-items: start; }
.intro-editor-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.intro-editor-main .card + .card { margin-top: 0; }
.intro-title-row { margin-top: 14px; }
.intro-cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.intro-cat-tab {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 15px;
  border-radius: 9px; border: 1px solid var(--border); background: #ffffff;
  color: var(--text-dim); font-family: inherit; font-size: 12.5px; cursor: pointer; transition: 0.16s ease;
}
.intro-cat-tab:hover { border-color: var(--border-strong); color: var(--text); }
.intro-cat-tab.active { border-color: var(--accent-line); background: var(--accent-soft); color: var(--text); }
.intro-cat-tab .count { font-size: 11px; color: var(--text-mute); font-variant-numeric: tabular-nums; }
.intro-cat-tab.active .count { color: var(--accent); }
/* 分类管理：图标修改 / 新增 / 排序 / 折叠 */
.intro-cat-manager { margin-bottom: 14px; border: 1px solid var(--border); border-radius: 12px; background: #f7f9fc; overflow: hidden; }
.intro-cat-manager-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.intro-cat-manager-head .card-title { font-size: 13.5px; }
.intro-cat-manager-head .spacer { flex: 1; }
.intro-cat-manager-list { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; }
.intro-cat-manager-row { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1px solid var(--border); border-radius: 10px; background: #ffffff; padding: 10px; }
.intro-cat-manager-row.active { border-color: var(--accent-line); box-shadow: inset 0 0 0 1px rgba(14, 159, 196, 0.10); }
.intro-cat-manager-pick { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; color: inherit; text-align: left; padding: 0; cursor: pointer; min-width: 0; }
.intro-cat-manager-icon { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: #f2f5f9; color: var(--accent); font-size: 17px; font-weight: 700; }
.intro-cat-manager-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.intro-cat-manager-meta { min-width: 0; }
.intro-cat-manager-meta b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.intro-cat-manager-meta i { display: block; margin-top: 2px; font-size: 11px; color: var(--text-mute); font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.intro-cat-manager-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; min-width: 0; }
.intro-cat-manager-fields .input { height: 34px; font-size: 12.5px; }
.intro-cat-icon-row { grid-column: 1 / -1; display: flex; gap: 7px; align-items: center; }
.intro-cat-icon-row .input { flex: 1; min-width: 0; }
.intro-cat-manager-actions { display: flex; gap: 4px; flex: none; }
.intro-cat-manager-actions .btn.icon { width: 30px; height: 30px; }
.intro-cat-manager-tip { margin: 2px 0 0; font-size: 11.5px; color: var(--text-mute); line-height: 1.6; }
@media (max-width: 1100px) { .intro-cat-manager-row { grid-template-columns: 1fr; } .intro-cat-manager-fields { grid-template-columns: 1fr; } }
.intro-page-list { display: flex; flex-direction: column; gap: 10px; }
.intro-page-row { border: 1px solid var(--border); border-radius: 12px; background: #ffffff; overflow: hidden; }
.intro-page-row.is-expanded { border-color: var(--accent-line); box-shadow: inset 0 0 0 1px rgba(14, 159, 196, 0.08); }
.intro-page-head { display: flex; align-items: center; gap: 12px; padding: 11px 14px; cursor: pointer; }
.intro-page-thumb { width: 74px; height: 42px; flex: none; display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); background: #eef2f7; }
.intro-page-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.intro-tpl-badge {
  flex: none; padding: 3px 9px; border-radius: 999px; font-size: 11px; white-space: nowrap;
  color: var(--accent); background: rgba(14, 159, 196, 0.10); border: 1px solid rgba(14, 159, 196, 0.26);
}
.intro-page-title { flex: 1; min-width: 0; }
.intro-page-title b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.intro-page-title span { display: block; margin-top: 2px; font-size: 11.5px; color: var(--text-mute); }
.intro-page-actions { display: flex; gap: 4px; flex: none; }
.intro-page-actions .btn.icon { width: 30px; height: 30px; }
.intro-page-body { padding: 2px 14px 16px; border-top: 1px solid var(--border); }
.intro-page-body .intro-fields { padding-top: 12px; }
.intro-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.intro-fields > .field.full { grid-column: 1 / -1; }
.intro-fields .textarea { min-height: 74px; }
.intro-group {
  border: 1px dashed var(--border-strong); border-radius: 10px; padding: 11px 12px;
  background: #f7f9fc;
}
.intro-group-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.intro-group-head > label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-dim); }
.intro-group-items { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.intro-group-item { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: #f7f9fc; }
.intro-group-item-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 11px; color: var(--text-mute); }
.intro-group-item-head .btn.icon { width: 26px; height: 26px; }
.intro-group-item .intro-fields { grid-template-columns: minmax(0, 1fr); }
.intro-group-empty { padding: 12px; border: 1px dashed var(--border); border-radius: 8px; text-align: center; font-size: 12px; color: var(--text-mute); }
.intro-bg-row { display: flex; gap: 8px; align-items: center; }
.intro-bg-row .select { width: 210px; flex: none; }
.intro-bg-row .input { flex: 1; min-width: 0; }
.intro-page-empty { padding: 26px 16px; }
.intro-editor-tip {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; padding: 10px 12px;
  border: 1px dashed var(--border); border-radius: 10px; color: var(--text-mute); font-size: 12px; line-height: 1.65;
}
.intro-editor-tip svg.ico { width: 15px; height: 15px; margin-top: 1px; color: var(--text-dim); flex: none; }

.intro-preview-col { position: sticky; top: 16px; min-width: 0; }
.intro-preview-card .card-body { padding: 16px; }
.intro-preview-actions { display: flex; align-items: center; gap: 8px; }
.intro-preview-actions .btn.icon { width: 30px; height: 30px; }
.intro-preview-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #05080f; }
.intro-preview-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.intro-preview-mask { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; background: #0a101b; }
.intro-preview-mask.is-hidden { display: none; }
/* 预览遮罩在深色 TV 预览框内：固定浅色文字，不随主题变量变化 */
.intro-preview-mask-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: #9fb0c3; font-size: 12px; line-height: 1.6; }
.intro-preview-mask-inner b { font-size: 13px; font-weight: 600; color: #d5dfe9; }
.intro-preview-note { margin-top: 10px; font-size: 11.5px; line-height: 1.65; color: var(--text-mute); }

.intro-tpl-menu { display: flex; flex-direction: column; gap: 12px; }
.intro-tpl-tip { font-size: 12.5px; color: var(--text-mute); }
.intro-tpl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.intro-tpl-option {
  display: flex; flex-direction: column; gap: 5px; text-align: left; padding: 13px 14px;
  border-radius: 11px; border: 1px solid var(--border); background: #ffffff; color: var(--text);
  font-family: inherit; cursor: pointer; transition: 0.16s ease;
}
.intro-tpl-option:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.intro-tpl-option b { font-size: 13.5px; font-weight: 600; }
.intro-tpl-option span { font-size: 11.5px; line-height: 1.55; color: var(--text-mute); }

@media (max-width: 1240px) {
  .intro-editor { grid-template-columns: minmax(0, 1fr); }
  .intro-preview-col { position: static; max-width: 760px; }
}
@media (max-width: 760px) {
  .intro-tpl-grid, .intro-fields { grid-template-columns: minmax(0, 1fr); }
  .intro-page-thumb { display: none; }
  .intro-bg-row { flex-wrap: wrap; }
  .intro-bg-row .select { width: 100%; }
}


/* =============================================================
   v13 · 预览 / 辅助样式补齐（恢复丢失的 style.css 尾部）
   -------------------------------------------------------------
   说明：图文介绍改造时 style.css 被整体重写，原文件尾部约 288 行
   （开机画面、首页大图、滚动字幕、共享目录/同步、全局内容页、
     应用图标、登录角色说明、锁屏预览补充）被工具截断丢失；
   这里按各页面的真实 DOM 结构重建，保持与现有深色主题一致。
   ============================================================= */

/* ---------- 通用 ---------- */
.form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.tab-pane { display: block; }
.tab-pane[hidden] { display: none !important; }

/* ---------- 应用图标 ---------- */
.app-icon {
  width: 46px; height: 46px; flex: none; border-radius: 11px;
  display: grid; place-items: center; overflow: hidden;
  background: #eef2f7; border: 1px solid var(--border);
  color: var(--text-mute);
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-icon svg.ico { width: 20px; height: 20px; }

/* ---------- 登录页角色说明 ---------- */
.login-role-tip {
  display: grid; gap: 6px; margin-top: 14px; padding: 12px 14px;
  border-radius: 10px; border: 1px dashed var(--border-strong);
  background: #f7f9fc;
  font-size: 11.5px; line-height: 1.75; color: var(--text-mute);
}
.login-role-tip b { color: var(--text-dim); }

/* ---------- 开机画面预览 ---------- */
.boot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
/* 2026-11-03：预览与 TV 实际一致——未配置开机图时浅绿默认底（#e9eeec 与桌面同色）+ 深色大字；
   配置图片后深色底 + 白字（.has-image，由 boot.js renderPreview 切换） */
.boot-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border-strong); background: #e9eeec;
  box-shadow: 0 18px 40px rgba(24, 40, 72, 0.14);
}
.boot-frame.has-image { background: #050a12; box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.6), 0 18px 40px rgba(0, 0, 0, 0.3); }
.boot-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.boot-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px;
  background: none;
}
.boot-frame.has-image .boot-overlay { background: linear-gradient(180deg, rgba(2, 6, 12, 0) 40%, rgba(2, 6, 12, 0.72) 100%); }
.boot-empty { display: flex; align-items: center; justify-content: center; gap: 10px; flex: 1; color: rgba(47, 59, 57, 0.55); font-size: 13px; }
.boot-frame.has-image .boot-empty { color: #9fb0c3; }
.boot-empty svg.ico { width: 26px; height: 26px; }
/* 启动时背景文字预览：模拟 TV 启动屏中央大字（随预览底色切换深/浅字色） */
.boot-splash-title {
  position: absolute;
  left: 0; right: 0; top: 34%;
  text-align: center;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #2f3b39;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 16px;
  pointer-events: none;
}
.boot-frame.has-image .boot-splash-title { color: #f2f8ff; text-shadow: 0 8px 40px rgba(0, 0, 0, 0.6); }
.boot-badge {
  align-self: flex-end; padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: rgba(7, 11, 18, 0.72);
  color: #d5dfe9; font-size: 11px;
}
.sync-meta { margin-top: 10px; font-size: 11.5px; line-height: 1.7; color: var(--text-mute); word-break: break-all; }
.sync-meta .mono { color: var(--text-dim); }

/* ---------- 首页大图（Hero）预览 ---------- */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 18px; align-items: start; }
.hero-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border-strong); background: #050a12;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #9fb0c3; font-size: 13px; }
.hero-empty svg.ico { width: 28px; height: 28px; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 8, 15, 0.86) 0%, rgba(3, 8, 15, 0.45) 38%, rgba(3, 8, 15, 0.1) 70%),
    linear-gradient(0deg, rgba(3, 8, 15, 0.85), rgba(3, 8, 15, 0) 55%);
}
.hero-badge {
  position: absolute; top: 14px; left: 16px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(7, 11, 18, 0.66); border: 1px solid rgba(255, 255, 255, 0.12);
  color: #9fb0c3; font-size: 11px;
}
.hero-content { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.hero-play {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(232, 238, 248, 0.14); border: 1px solid rgba(255, 255, 255, 0.22); color: #fff;
}
.hero-title { font-size: 20px; font-weight: 700; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6); line-height: 1.3; }
.hero-meta { font-size: 11.5px; color: rgba(232, 238, 248, 0.72); }
.hero-movie-tip {
  display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 9px 12px;
  border-radius: 10px; border: 1px solid var(--border);
  background: #f7f9fc; font-size: 12px; color: var(--text-dim);
}
.hero-movie-tip svg.ico { color: var(--accent); flex: none; }

/* ---------- 滚动字幕预览 ---------- */
.marquee-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 18px; align-items: start; }
.marquee-screen {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border-strong);
  background: linear-gradient(158deg, #070c14, #0a1220 55%, #0c1727);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.5);
}
.marquee-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  color: #9fb0c3; font-size: 11.5px;
}
.marquee-brand { display: inline-flex; align-items: center; gap: 7px; color: #d5dfe9; }
.marquee-bar { position: relative; overflow: hidden; height: 54px; display: flex; align-items: center; background: rgba(34, 211, 238, 0.06); }
.marquee-text {
  position: absolute; white-space: nowrap; padding-left: 100%;
  color: #67e8f9; font-size: 16px; will-change: transform;
  animation: marquee-scroll linear infinite;
}
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.marquee-meta { padding: 9px 14px; border-top: 1px solid var(--border); font-size: 11px; color: #9fb0c3; }
.range-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-mute); margin-top: 4px; }

/* ---------- 共享目录 / 片库同步 ---------- */
.share-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.share-result {
  display: flex; align-items: flex-start; gap: 9px; margin-top: 12px; padding: 10px 12px;
  border-radius: 10px; border: 1px solid var(--border);
  background: #f7f9fc; font-size: 12px; line-height: 1.7;
  color: var(--text-dim); word-break: break-all;
}
.share-result.ok { border-color: rgba(52, 211, 153, 0.25); background: rgba(52, 211, 153, 0.08); color: #0d9268; }
.share-result.danger { border-color: rgba(248, 113, 113, 0.25); background: rgba(248, 113, 113, 0.08); color: #cf3f3f; }
.share-result-ico { display: grid; place-items: center; flex: none; width: 20px; height: 20px; }
.share-result-ico svg.ico { width: 16px; height: 16px; }
.token-label { font-size: 12px; color: var(--text-mute); margin-bottom: 8px; }
.token-box {
  padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border);
  background: #f2f5f9; font-family: var(--mono); font-size: 12px;
  line-height: 1.7; color: var(--text-dim); word-break: break-all;
}
.token-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.sync-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sync-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sync-stat {
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border);
  background: #f7f9fc; display: flex; flex-direction: column; gap: 5px;
}
.sync-stat-label { font-size: 11.5px; color: var(--text-mute); }
.sync-stat b { font-size: 17px; color: var(--text); font-weight: 600; }
.sync-stat .sub { font-size: 11px; color: var(--text-mute); }
.sync-note { margin-top: 12px; font-size: 11.5px; line-height: 1.7; color: var(--text-mute); }
.sync-bar { margin-bottom: 4px; }
.sync-bar-inner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border);
  background: #f7f9fc; font-size: 12px; color: var(--text-dim);
}
.sync-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
  border-radius: 999px; border: 1px solid var(--border-strong);
  background: #eef2f7; font-size: 11.5px; color: var(--text-dim);
}
.sync-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sync-pill.success { color: #0d9268; border-color: rgba(52, 211, 153, 0.25); background: rgba(52, 211, 153, 0.08); }
.sync-pill.warn { color: #a16207; border-color: rgba(251, 191, 36, 0.25); background: rgba(251, 191, 36, 0.08); }
.sync-pill.danger { color: #cf3f3f; border-color: rgba(248, 113, 113, 0.25); background: rgba(248, 113, 113, 0.08); }
.sync-info { font-size: 11.5px; color: var(--text-mute); }
.sync-info b { color: var(--text-dim); font-weight: 600; }
.sync-error { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #cf3f3f; font-size: 11.5px; }

/* ---------- 全局内容页 ---------- */
.global-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.global-page-head h1 { font-size: 22px; font-weight: 700; letter-spacing: 0.02em; }
.global-page-head p { margin-top: 6px; font-size: 12.5px; }
.global-tabs-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.global-tabs { margin-bottom: 0; }
.global-source { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--text-mute); }
.global-source .select { min-width: 190px; }
.global-section-head { display: flex; align-items: center; gap: 14px; margin: 4px 0 14px; }
.global-section-title { display: flex; align-items: center; gap: 9px; }
.global-section-title h2 { font-size: 16px; font-weight: 600; }
.global-section-title svg.ico { color: var(--accent); }
.global-section-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.global-empty { border: 1px dashed var(--border); border-radius: 12px; }
.global-card { background: #ffffff; }

/* ---------- 锁屏预览补充（tv-frame 内部，按容器宽度缩放） ---------- */
.tv-logo { display: block; height: 4.6cqw; max-width: 22cqw; object-fit: contain; }
.tv-slogan { margin: 0; font-size: 2.1cqw; letter-spacing: 0.22em; color: rgba(214, 231, 248, 0.78); }
.tv-qr {
  position: absolute; top: 9%; right: 5.5%;
  display: flex; flex-direction: column; align-items: center; gap: 0.6cqw;
}
.tv-qr img { width: 7.4cqw; height: 7.4cqw; border-radius: 0.5cqw; background: #fff; padding: 0.4cqw; }
.tv-qr span { font-size: 0.95cqw; color: #9fb0c3; letter-spacing: 0.1em; }

/* ---------- 响应式 ---------- */
@media (max-width: 1360px) {
  .hero-grid, .marquee-grid, .share-grid, .boot-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .sync-stats { grid-template-columns: minmax(0, 1fr); }
  .global-tabs-row { align-items: flex-start; }
}

/* ---------- 上传输入行 / 预览 iframe（补充） ---------- */
.input-upload { display: flex; align-items: center; gap: 9px; }
.input-upload .input { flex: 1; min-width: 0; }
.input-upload .btn { flex: none; }
.intro-preview-iframe {
  display: block; width: 100%; aspect-ratio: 16 / 9;
  border: 1px solid var(--border-strong); border-radius: 12px;
  background: #0b0b0b; overflow: hidden;
}

/* ---------- v14：音乐欣赏（专辑 + 音乐） ---------- */
.music-topbar { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 12px; margin-bottom: 16px; }
.music-topbar-left { justify-self: start; }
.music-topbar-center { justify-self: center; }
.music-topbar-right { justify-self: end; }
.music-grid { display: grid; grid-template-columns: minmax(230px, 1fr) minmax(460px, 2fr) minmax(230px, 1fr); gap: 16px; align-items: start; }
.music-col .card-body { min-height: 320px; }
.album-table { margin: 0; }
.album-row { cursor: pointer; }
.album-row td { vertical-align: middle; }
.album-row.active td { background: rgba(72, 170, 255, 0.14); }
.album-row-main .td-strong { margin-bottom: 2px; }
.album-row-actions { width: 92px; text-align: right; white-space: nowrap; }
.album-row-actions .btn.icon { width: 30px; height: 30px; min-width: 30px; padding: 0; border-radius: 50%; }
.album-cover-box { width: 100%; aspect-ratio: 15 / 13; border-radius: 14px; overflow: hidden; background: #eef2f7; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.album-cover-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album-cover-box svg.ico { width: 54px; height: 54px; color: var(--text-dim); }
.album-cover-name { margin-top: 14px; font-weight: 700; font-size: 15px; }
.album-cover-preview { width: 132px; height: 132px; border-radius: 12px; overflow: hidden; background: #eef2f7; border: 1px solid var(--border); margin-bottom: 10px; display: flex; align-items: center; justify-content: center; }
.album-cover-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 1180px) {
  .music-grid { grid-template-columns: 1fr; }
  .music-topbar { grid-template-columns: 1fr; }
  .music-topbar-center { justify-self: start; }
}

/* ---------- v15：音乐欣赏截图对齐 / 素材选择器 ---------- */
.album-act, .music-act { color: var(--accent); border-color: rgba(72, 170, 255, 0.35); }
.album-act:hover, .music-act:hover { background: rgba(72, 170, 255, 0.16); }
.album-row-actions .album-act, .music-actions .music-act { width: 30px; height: 30px; min-width: 30px; padding: 0; border-radius: 50%; }
.music-actions { white-space: nowrap; }
.music-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.music-total { color: var(--text-dim); font-size: 13px; }
.music-page-btns { display: flex; align-items: center; gap: 6px; }
.page-btn { min-width: 30px; height: 30px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--text-dim); cursor: pointer; font-size: 13px; }
.page-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #06121e; font-weight: 700; }
.page-btn:disabled { opacity: 0.35; cursor: default; }
.page-ellipsis { color: var(--text-dim); padding: 0 2px; }
.material-cover-preview, .material-file-box { position: relative; display: flex; align-items: center; gap: 10px; min-height: 40px; }
.material-cover-preview { width: 150px; height: 130px; border: 1px dashed var(--border); border-radius: 10px; overflow: hidden; justify-content: center; background: #eef2f7; margin-bottom: 10px; }
.material-cover-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.material-remove { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: #e5484d; color: #fff; font-size: 16px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.material-file-box { min-height: 40px; border: 1px dashed var(--border); border-radius: 10px; padding: 8px 36px 8px 12px; margin-bottom: 10px; color: var(--text-dim); }
.material-file-box .material-remove { top: 8px; right: 8px; }
.material-picker { min-width: 0; }
.material-filters { display: grid; grid-template-columns: 110px minmax(150px, 1fr) 140px 140px 130px auto auto; gap: 8px; align-items: center; margin-bottom: 12px; }
.material-list-head { color: var(--text-dim); font-size: 13px; margin-bottom: 8px; }
.material-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; max-height: 420px; overflow: auto; padding: 2px; }
.material-item { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 10px; padding: 8px; cursor: pointer; min-width: 0; }
.material-item:hover { border-color: rgba(72, 170, 255, 0.5); }
.material-item.selected { border-color: var(--accent); background: rgba(72, 170, 255, 0.12); }
.material-thumb { width: 44px; height: 44px; border-radius: 8px; background: #eef2f7; display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; color: var(--text-dim); }
.material-thumb img { width: 100%; height: 100%; object-fit: cover; }
.material-info { min-width: 0; }
.material-info .td-strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.material-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.material-pager { display: flex; align-items: center; gap: 6px; }
.batch-upload-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.batch-file-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.batch-file-chip { display: inline-block; padding: 3px 8px; border-radius: 999px; background: rgba(72, 170, 255, 0.12); border: 1px solid rgba(72, 170, 255, 0.3); color: var(--text-dim); font-size: 12px; }
@media (max-width: 900px) {
  .material-filters { grid-template-columns: 1fr 1fr; }
  .material-filters .btn { width: 100%; }
}

/* ---------- v16：专辑应用徽标 / 音频素材多选 ---------- */
.material-selected-count { margin-left: 10px; color: var(--accent); font-size: 12px; }
.material-check { width: 18px; height: 18px; flex: none; border-radius: 4px; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; color: #06121e; background: transparent; }
.material-item.selected .material-check { background: var(--accent); border-color: var(--accent); }
.selected-music-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; min-height: 38px; border: 1px dashed var(--border); border-radius: 10px; padding: 8px 12px; }
.selected-music-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--border); border-radius: 8px; padding: 6px 34px 6px 10px; position: relative; }
.selected-music-main { min-width: 0; }
.selected-music-item .material-remove { top: 8px; right: 8px; }


/* =============================================================
   v16 · 图文介绍页面列表：单页折叠
   ============================================================= */
.intro-page-head-actions { display: flex; align-items: center; gap: 8px; }
.intro-collapse-btn { width: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.intro-caret {
  display: inline-block; width: 0; height: 0;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 6px solid var(--text-dim);
  transform: rotate(-90deg); transition: transform .18s ease, border-color .18s ease;
}
.intro-page-row.is-expanded .intro-caret { transform: rotate(0deg); border-top-color: var(--accent); }
#page .intro-page-row .intro-page-head { cursor: pointer; }

/* ---------- v17：专辑 / 音乐拖拽排序 ---------- */
.drag-cell { width: 30px; text-align: center; padding-left: 6px !important; padding-right: 4px !important; }
.drag-handle { display: inline-grid; grid-template-columns: repeat(2, 3px); grid-auto-rows: 3px; gap: 2px; justify-content: center; align-content: center; cursor: grab; color: var(--text-dim); padding: 4px 2px; }
.drag-handle i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; display: block; }
.drag-handle:hover { color: var(--accent); }
.drag-handle.is-disabled { opacity: 0.22; cursor: not-allowed; }
tr.dragging > td { opacity: 0.45; }
tr.drag-over > td { background: rgba(72, 170, 255, 0.2); box-shadow: inset 0 2px 0 var(--accent); }

/* ---------- v18：开机语音介绍 ---------- */
.intro-audio-preview { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 32px; margin: 8px 0 4px; }
.intro-audio-player { height: 36px; max-width: 340px; width: 100%; }
.intro-audio-preview .sub { max-width: 220px; }
.intro-audio-preview .btn { flex: none; }

/* ---------- v19：语音交互 ---------- */
.voice-page { display: flex; flex-direction: column; gap: 16px; }
.voice-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.voice-enable-row { display: flex; align-items: center; gap: 16px; }
.voice-enable-row p { margin: 4px 0 0; font-size: 12px; }
.voice-key-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.voice-key-row .input { flex: 1; min-width: 220px; }
.code-block { margin: 0; padding: 12px 14px; background: #f2f5f9; border: 1px solid var(--border); border-radius: 10px; color: var(--text-dim); font-size: 12px; line-height: 1.65; white-space: pre-wrap; word-break: break-all; overflow-x: auto; }
.voice-example-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.voice-example { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: rgba(72, 170, 255, 0.08); color: var(--text); font-size: 13px; }
.voice-alias-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.voice-test-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.voice-test-row .input { flex: 1; }
.voice-result { margin-top: 12px; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: rgba(72, 170, 255, 0.06); }
.voice-result-head { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 10px; color: var(--accent); }
.voice-result-grid { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 8px 12px; align-items: start; font-size: 13px; margin-bottom: 8px; }
.voice-result-grid > span { color: var(--text-dim); }
.voice-result-grid .code-block { width: 100%; }
.switch { position: relative; display: inline-flex; width: 46px; height: 26px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-slider { position: absolute; inset: 0; border-radius: 999px; background: var(--border); transition: background 0.2s; cursor: pointer; }
.switch-slider::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.switch input:checked + .switch-slider { background: var(--accent); }
.switch input:checked + .switch-slider::before { transform: translateX(20px); }
@media (max-width: 1180px) { .voice-grid { grid-template-columns: minmax(0, 1fr); } }

/* =============================================================
   v20 · 推荐管理（admin-web/pages/recommend.js）
   已推荐影片卡片（16:9 背景大图预览）+ 全部影片表格
   ============================================================= */
.rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }

.rec-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.rec-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(24, 40, 72, 0.14);
}

.rec-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: #eef2f7;
  color: var(--text-mute);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}
.rec-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rec-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 8, 14, 0.4) 0%, rgba(4, 8, 14, 0) 36%, rgba(4, 8, 14, 0.72) 100%);
}
.rec-cover-ico { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.rec-cover-ico svg.ico { width: 32px; height: 32px; }
.rec-cover-status { position: absolute; top: 10px; left: 10px; z-index: 2; }
.rec-cover-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(7, 11, 18, 0.78);
  color: #eaf6ff;
  font-size: 11px;
  opacity: 0;
  transition: opacity 0.16s ease;
}
.rec-cover-hint svg.ico { width: 12px; height: 12px; }
.rec-card:hover .rec-cover-hint { opacity: 1; }

.rec-card-body { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 0; padding: 12px 14px 14px; }
.rec-title { font-size: 14px; font-weight: 600; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-meta { font-size: 11.5px; color: var(--text-mute); }
.rec-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }

.rec-preview-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-mute);
}
.rec-preview-note svg.ico { flex: none; margin-top: 2px; color: var(--text-dim); }

.rec-hero-badge svg.ico { width: 13px; height: 13px; }
.badge > .spinner { width: 10px; height: 10px; border-width: 2px; }

@media (max-width: 900px) {
  .rec-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- v20：音乐欣赏专辑列表（纵向卡片，pages/music.js） ---------- */
.album-list { display: flex; flex-direction: column; gap: 8px; }
.album-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px; min-width: 0;
  border: 1px solid var(--border); border-radius: 10px;
  background: #ffffff; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
/* 2026-11-03 白色主题：专辑行去掉蓝色框线（选中仅保留浅蓝底色提示，悬停用中性灰描边） */
.album-row:hover { border-color: var(--border-strong); }
.album-row.active { background: rgba(72, 170, 255, 0.14); }
.album-row .thumb { width: 36px; height: 36px; border-radius: 8px; }
.album-row .thumb svg.ico { width: 16px; height: 16px; }
.album-row-main { flex: 1 1 auto; min-width: 0; }
.album-row-name { display: flex; align-items: center; gap: 5px; min-width: 0; }
.album-row-name .td-strong { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.album-row-name .badge { flex: none; }
.album-row-sub { display: block; margin-top: 3px; font-size: 11.5px; color: var(--text-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.album-row-actions { display: flex; align-items: center; gap: 4px; flex: none; width: auto; text-align: left; }
.album-row-actions .album-act { width: 26px; height: 26px; min-width: 26px; padding: 0; border-radius: 50%; }



/* ---------- v13：门店图文介绍「正在使用全局图文模板」提示（admin-web/pages/intro.js） ---------- */
.intro-global-fallback {
  align-items: flex-start;
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px dashed var(--accent-line);
  background: var(--accent-soft);
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.65;
}
.intro-global-fallback svg.ico { flex: none; margin-top: 2px; color: var(--accent); }

/* 2026-11-03 全后台白色主题：原「总台白色极简主题（body.role-super）」覆盖块已删除。
   白色配色已下沉为 :root 基础主题（见文件头），总台 / 门店 / 登录页统一白色；
   历次深色残留清扫的组件级规则（输入框 / 卡片 / 弹窗 / 徽章 / 表格 /
   TV 预览遮罩文字等）已全部合并进上方基础规则，不再需要按角色覆盖。 */

/* 门店图文作用域状态条：跟随全局 / 本店独立 + 恢复按钮 */
.intro-scope-tip { margin-bottom: 10px; }
.intro-scope-tip .btn { margin-left: auto; }
