/* ===== Admin Console (PC) ===== */
body.is-admin {
  background: #f0f3f7;
  --admin-bg: #f0f3f7;
  --admin-surface: #ffffff;
  --admin-line: #e6eaf0;
  --admin-text: #1a1f2e;
  --admin-muted: #8b95a5;
  --admin-blue: #2f7cf6;
  --admin-warn: #f5b400;
  --admin-danger: #e5484d;
  --admin-ok: #1aa87a;
  --admin-side-bg: #0a1a2e;
  --admin-shadow: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --admin-shadow-md: 0 4px 12px rgba(15,23,42,.06), 0 2px 4px rgba(15,23,42,.04);
  --admin-shadow-lg: 0 8px 28px rgba(15,23,42,.08);
  --admin-gradient: linear-gradient(135deg, #2f7cf6 0%, #5b9aff 100%);
  --admin-radius: 12px;
  --admin-radius-sm: 8px;
  --admin-radius-xs: 6px;
}
body.is-admin #topbar,
body.is-admin #tabbar { display: none !important; }
body.is-admin #main {
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  background: var(--admin-bg);
}

/* ── 登录页 ── */
.admin-login-wrap {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background:
    radial-gradient(700px 320px at 15% 10%, rgba(47,134,255,.16), transparent 60%),
    radial-gradient(600px 280px at 90% 90%, rgba(34,181,209,.12), transparent 55%),
    linear-gradient(160deg, #0b1f3a 0%, #123966 45%, #1a4f8c 100%);
}
.admin-login-card {
  width: min(420px, 100%);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 32px 28px 28px;
  box-shadow: 0 24px 60px rgba(5, 20, 45, .28);
}
.admin-login-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.admin-login-logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
}
.admin-login-logo h1 {
  font-size: 20px;
  font-weight: 580;
  color: var(--admin-text);
}
.admin-login-logo p {
  margin-top: 3px;
  font-size: 13px;
  color: var(--admin-muted);
}
.admin-login-card .inp {
  display: block;
  width: 100%;
  padding: 11px 14px;
  margin-top: 12px;
  border: 1.5px solid var(--admin-line);
  border-radius: 10px;
  font-size: 14px;
  background: #f8fafc;
  transition: all .2s;
  outline: none;
}
.admin-login-card .inp:focus {
  border-color: var(--admin-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47,124,246,.12);
}
.admin-login-card .btn-block {
  margin-top: 18px;
  width: 100%;
  padding: 11px;
  font-size: 15px;
  font-weight: 520;
  border-radius: 10px;
}
.admin-login-tip {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--admin-danger);
  min-height: 20px;
}
.admin-login-card .pwd-wrap {
  position: relative;
  margin-top: 12px;
}
.admin-login-card .pwd-wrap .inp {
  margin-top: 0;
  padding-right: 40px;
}
.admin-login-card .pwd-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  border-radius: 8px;
  user-select: none;
  opacity: .6;
  transition: opacity .2s;
}
.admin-login-card .pwd-toggle:hover { opacity: 1; }

/* ── 后台布局 ── */
.admin-main {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* ── 顶部栏 ── */
.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
  height: 56px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--admin-line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-top h1 {
  font-size: 18px;
  font-weight: 560;
  color: var(--admin-text);
}
.admin-top p {
  font-size: 12px;
  color: var(--admin-muted);
  margin-top: 2px;
}
.admin-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--admin-muted);
}
.admin-top-actions .btn {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 8px;
}

/* ── 主体区域（侧栏 + 内容） ── */
.admin-body {
  display: flex;
  flex: 1;
  min-height: 0;
}

/* ── 侧栏 ── */
.admin-side {
  width: 220px;
  flex: none;
  background: linear-gradient(180deg, #0c1f3a 0%, #081527 62%, #060f1e 100%);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 56px);
}
.admin-side::after {
  content: '';
  position: fixed;
  left: 0;
  bottom: 0;
  width: 220px;
  height: 160px;
  pointer-events: none;
  background: radial-gradient(ellipse at 20% 100%, rgba(47,124,246,.16), transparent 70%);
}
.admin-side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 10px;
}
.admin-side-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}
.admin-side-brand strong {
  display: block;
  font-size: 14px;
  color: #fff;
  font-weight: 520;
}
.admin-side-brand span {
  font-size: 11px;
  opacity: .5;
  color: #8ab4ff;
  letter-spacing: .06em;
}
.admin-side-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
/* —— 分组导航（一级/二级菜单） —— */
.admin-nav-group { margin: 1px 0; }
.admin-nav-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  color: #8fa3bd;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  cursor: pointer;
  user-select: none;
  transition: background .15s, color .15s;
}
.admin-nav-title:hover { background: rgba(255,255,255,.06); color: #d7e3f0; }
.admin-nav-title .g-ico { display: inline-flex; width: 17px; height: 17px; color: #5f86b8; flex: none; }
.admin-nav-title .g-ico svg { width: 16px; height: 16px; }
.admin-nav-title .g-arrow {
  margin-left: auto;
  width: 7px; height: 7px;
  border-right: 1.6px solid #64809f;
  border-bottom: 1.6px solid #64809f;
  transform: rotate(-45deg);
  transition: transform .28s cubic-bezier(.4,0,.2,1), border-color .15s;
  opacity: .85;
  flex: none;
}
.admin-nav-group.open > .admin-nav-title .g-arrow { transform: rotate(45deg); }
.admin-nav-items {
  max-height: 0;
  overflow: hidden;
  transition: max-height .32s cubic-bezier(.4,0,.2,1);
}
.admin-nav-group.open .admin-nav-items { max-height: 480px; }
.admin-nav-items .admin-side-item {
  padding: 8px 10px 8px 34px;
  position: relative;
  font-size: 13px;
}
.admin-nav-items .admin-side-item::before {
  content: '';
  position: absolute;
  left: 18px; top: 50%;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  transform: translateY(-50%);
  transition: background .15s, box-shadow .15s;
}
.admin-nav-items .admin-side-item:hover::before { background: #8ab4ff; }
.admin-nav-items .admin-side-item.active::before { background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.28); }

.admin-side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,.6);
  font-size: 13px;
  transition: all .15s;
  text-decoration: none;
}
.admin-side-item svg {
  width: 16px;
  height: 16px;
  flex: none;
  opacity: .7;
}
.admin-side-item:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.admin-side-item.active {
  background: linear-gradient(135deg, var(--admin-blue), #3ca9ff);
  color: #fff;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(47,134,255,.3);
}
.admin-side-item.active svg { opacity: 1; }
.admin-side-foot {
  padding: 12px 12px 4px;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255,255,255,.4);
}

/* ── 内容区 ── */
.admin-content {
  flex: 1;
  padding: 24px 28px 48px;
  min-width: 0;
  max-width: 1280px;
}

/* ── 面板 ── */
.panel {
  background: var(--admin-surface);
  border-radius: var(--admin-radius);
  border: 1px solid var(--admin-line);
  overflow: hidden;
  margin-bottom: 14px;
  transition: box-shadow .2s;
}
.panel:hover {
  box-shadow: var(--admin-shadow-md);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid #f0f2f5;
}
.panel-head h2,
.panel-head h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--admin-text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.panel-head h3::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--admin-gradient);
  flex: none;
}
.panel-head .panel-sub,
.panel-head > span {
  font-size: 12px;
  color: var(--admin-muted);
}
.panel-wide {
  grid-column: 1 / -1;
}

/* ── KPI 卡片网格 ── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.kpi-card {
  display: block;
  background: var(--admin-surface);
  border-radius: var(--admin-radius);
  padding: 16px 18px;
  border: 1px solid var(--admin-line);
  cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--admin-gradient);
  opacity: 0;
  transition: opacity .25s;
}
.kpi-card:hover::before { opacity: 1; }
.kpi-card:hover {
  border-color: transparent;
  box-shadow: var(--admin-shadow-md);
  transform: translateY(-2px);
}
.kpi-card .kpi-label {
  font-size: 11px;
  color: var(--admin-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.kpi-card .kpi-label svg {
  width: 12px;
  height: 12px;
  color: var(--admin-blue);
}
.kpi-card .kpi-value {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 4px;
  color: var(--admin-text);
  letter-spacing: -.02em;
}
.kpi-card .kpi-sub {
  font-size: 11px;
  color: var(--admin-muted);
  margin-top: 2px;
}
.kpi-card .kpi-delta {
  font-size: 11px;
  margin-top: 2px;
  font-weight: 500;
}
.kpi-card .kpi-delta.up { color: var(--admin-danger); }
.kpi-card .kpi-delta.down { color: var(--admin-ok); }
.kpi-card .kpi-delta.flat { color: var(--admin-muted); }
.kpi-card.warn .kpi-value { color: var(--admin-warn); }
.kpi-card.danger .kpi-value { color: var(--admin-danger); }

@media (max-width: 1100px) { .kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── 看板双栏网格 ── */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.dash-grid .panel { margin-bottom: 0; }
@media (max-width: 1000px) { .dash-grid { grid-template-columns: 1fr; } }

/* ── 图表 ── */
.chart-box {
  padding: 8px 18px 14px;
}
.chart-legend {
  display: flex;
  gap: 18px;
  font-size: 12px;
  color: var(--admin-muted);
  padding: 4px 18px 10px;
}
.chart-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 5px;
  vertical-align: -1px;
}
.chart-box svg {
  display: block;
  width: 100%;
  height: auto;
}

/* 环形图 + 图例 */
.donut-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 8px 0;
}
.donut-legend-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.donut-legend {
  font-size: 12px;
  color: var(--admin-muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.donut-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: none;
}
.donut-legend b {
  margin-left: auto;
  color: var(--admin-text);
  font-weight: 600;
}

/* 横向柱状图（工具占比） */
.admin-bars { padding: 6px 0; }
.admin-bar-row {
  display: grid;
  grid-template-columns: 80px 1fr 44px;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
  font-size: 13px;
}
.admin-bar-row:first-child { margin-top: 0; }
.admin-bar-row .hbar-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--admin-text);
  font-weight: 500;
}
.admin-bar {
  height: 8px;
  border-radius: 99px;
  background: #eef2f7;
  overflow: hidden;
}
.admin-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--admin-gradient);
  transition: width .6s cubic-bezier(.4,0,.2,1);
}
.admin-bar-row b {
  text-align: right;
  color: var(--admin-text);
  font-weight: 600;
  font-size: 12px;
}
.admin-bar-row b em {
  font-style: normal;
  font-size: 10px;
  color: var(--admin-muted);
  margin-left: 2px;
}

/* ── 待办区 ── */
.todo-area {
  display: flex;
  flex-direction: column;
}
.todo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid #f3f5f7;
  font-size: 13px;
  transition: all .15s;
}
.todo-row:last-child { border-bottom: 0; }
.todo-row:hover {
  background: #f8faff;
  padding-left: 22px;
}
.todo-row .todo-marker {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  background: var(--admin-blue);
}
.todo-row.warn .todo-marker { background: var(--admin-warn); }
.todo-row.danger .todo-marker { background: var(--admin-danger); }
.todo-row .todo-main {
  min-width: 0;
  flex: 1;
  color: var(--admin-text);
  font-weight: 500;
}
.todo-row em {
  font-style: normal;
  color: var(--admin-muted);
  font-size: 12px;
  white-space: nowrap;
}
.todo-row.warn .todo-main { color: var(--admin-warn); }
.todo-row .btn {
  flex: none;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--admin-radius-xs);
}

/* ── 健康条 ── */
.health-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
  background: var(--admin-surface);
  border-radius: var(--admin-radius);
  border: 1px solid var(--admin-line);
  font-size: 13px;
  color: var(--admin-muted);
  flex-wrap: wrap;
  transition: box-shadow .2s;
}
.health-strip:hover { box-shadow: var(--admin-shadow); }
.health-strip span { color: var(--admin-muted); }
.health-strip b {
  font-weight: 600;
  color: var(--admin-text);
  margin-right: 8px;
}
.health-strip b.ok { color: var(--admin-ok); }
.health-strip b.err { color: var(--admin-danger); }

/* ── 告警条 ── */
.admin-alert {
  padding: 12px 18px;
  border-radius: var(--admin-radius);
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-alert.warn {
  background: #fff8e6;
  border: 1px solid #fce6a3;
  color: #8a6300;
}
.admin-alert b {
  font-weight: 600;
  margin: 0 2px;
}

/* ── 筛选栏 ── */
.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 14px 18px;
  background: var(--admin-surface);
  border-radius: var(--admin-radius);
  border: 1px solid var(--admin-line);
  margin-bottom: 16px;
  transition: box-shadow .2s;
}
.admin-filters:focus-within { box-shadow: var(--admin-shadow); }
.admin-filters .inp-sm {
  height: 34px;
  border: 1.5px solid var(--admin-line);
  border-radius: var(--admin-radius-xs);
  font-size: 12px;
  padding: 0 12px;
  background: #fafcfe;
  color: var(--admin-text);
  min-width: 110px;
  outline: none;
  transition: all .2s;
}
.admin-filters .inp-sm:focus {
  border-color: var(--admin-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47,124,246,.1);
}
.admin-filters input[type="date"] { min-width: 130px; }
.admin-filters .filter-sep {
  font-size: 12px;
  color: var(--admin-muted);
}
.admin-filters .btn {
  height: 34px;
  font-size: 12px;
  padding: 0 16px;
  border-radius: var(--admin-radius-xs);
}

/* 分段按钮组 */
.seg {
  display: inline-flex;
  gap: 3px;
  background: #f1f4f9;
  border-radius: var(--admin-radius-xs);
  padding: 3px;
}
.seg-btn {
  border: 0;
  background: transparent;
  font-size: 12px;
  color: var(--admin-muted);
  padding: 5px 14px;
  border-radius: 5px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  font-weight: 500;
}
.seg-btn.active {
  background: #fff;
  color: var(--admin-blue);
  box-shadow: var(--admin-shadow);
  font-weight: 600;
}
.seg-btn:hover:not(.active) { color: var(--admin-text); }

/* ── 表格 ── */
.table-wrap {
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th,
.admin-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f0f2f5;
  text-align: left;
  vertical-align: middle;
}
.admin-table th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tbody tr {
  transition: background .12s;
}
.admin-table tbody tr:hover td { background: #f8faff; }
.admin-table .c-mono { font-family: 'SF Mono', 'Courier New', monospace; font-size: 12px; }
.admin-table .c-ok { color: var(--admin-ok); font-weight: 600; }
.admin-table .c-err { color: var(--admin-danger); font-weight: 600; }
.admin-table .c-warn { color: var(--admin-warn); font-weight: 600; }
.admin-table .td-detail { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-table .td-ua { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--admin-muted); }
.admin-table .td-ops { white-space: nowrap; }
.admin-table .row-alert td { background: #fffbf5; }
.admin-table .row-alert:hover td { background: #fff9ef; }
.admin-table .td-avatar { width: 44px; }
.admin-table .admin-user-avatar { width: 34px; height: 34px; border-radius: 50%; cursor: pointer; object-fit: cover; border: 2px solid transparent; transition: all .2s; }
.admin-table .admin-user-avatar:hover { border-color: var(--admin-blue); opacity: 0.85; transform: scale(1.1); }
.admin-table .rate {
  font-weight: 600;
  color: var(--admin-ok);
}
.admin-table .vip-req-tag {
  display: inline-block;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  background: #fff7e6;
  color: #d48806;
  margin-left: 4px;
  font-weight: 500;
}

/* ── 分页器 ── */
.admin-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  font-size: 13px;
  color: var(--admin-muted);
  border-top: 1px solid #f0f2f5;
}
.admin-pager .btn {
  height: 30px;
  padding: 0 14px;
  font-size: 12px;
  border-radius: var(--admin-radius-xs);
}
.admin-pager span {
  font-weight: 600;
  color: var(--admin-text);
}

/* ── 空状态 ── */
.admin-empty {
  padding: 48px 16px;
  text-align: center;
  color: var(--admin-muted);
  font-size: 13px;
}
.admin-empty.small { padding: 28px 16px; }

/* ── 加载中 / 错误 ── */
.admin-loading {
  padding: 56px 16px;
  text-align: center;
  color: var(--admin-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.admin-loading::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--admin-line);
  border-top-color: var(--admin-blue);
  border-radius: 50%;
  animation: admin-spin .6s cubic-bezier(.4,0,.2,1) infinite;
  flex: none;
}
@keyframes admin-spin {
  to { transform: rotate(360deg); }
}
.admin-error {
  padding: 48px 16px;
  text-align: center;
  color: var(--admin-danger);
  font-size: 14px;
}

/* ── 级别标签 ── */
.lv {
  display: inline-flex;
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
}
.lv-info { background: #e8f3ff; color: #1d4ed8; }
.lv-warn { background: #fff7e6; color: #d48806; }
.lv-err { background: #fff1f0; color: #cf1322; }
.lv-muted { background: #f0f2f5; color: #8b95a5; }

/* ── 统计页：设备/身份徽标与统计卡 ── */
.admin-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 14px 0; }
.admin-kpis .kpi-card { background: var(--admin-bg, #fff); border: 1px solid var(--admin-line, #e6eaf0); border-radius: 12px; padding: 14px 16px; box-shadow: 0 1px 2px rgba(16,24,40,.03); }
.admin-kpis .kpi-title { font-size: 12px; color: var(--admin-muted, #8b95a5); font-weight: 600; margin-bottom: 10px; }
.stat-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.stat-chip { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #f7f9fc; border: 1px solid var(--admin-line, #e6eaf0); border-radius: 10px; padding: 8px 16px; min-width: 68px; }
.stat-chip .stat-num { font-size: 20px; font-weight: 700; line-height: 1; }
.stat-chip .stat-label { font-size: 11px; color: var(--admin-muted, #8b95a5); }
.dev-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 11px; font-weight: 600; }
.dev-badge.mobile { background: #e8f3ff; color: #1d4ed8; }
.dev-badge.desktop { background: #f0f2f5; color: #64748b; }

/* ── 状态标签 ── */
.chip {
  display: inline-flex;
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
}
.chip-vip { background: #fff7e6; color: #d48806; }
.chip-member { background: #f0f4f9; color: #64748b; }

/* ── VIP 审核 ── */
.vip-date-picker {
  padding: 6px 10px;
  border: 1.5px solid var(--admin-line);
  border-radius: var(--admin-radius-xs);
  font-size: 13px;
  background: #fff;
  color: var(--admin-text);
  outline: none;
  min-width: 130px;
  transition: all .2s;
}
.vip-date-picker:focus {
  border-color: var(--admin-blue);
  box-shadow: 0 0 0 3px rgba(47,124,246,.12);
}

/* ── 账号安全 ── */
.admin-account-form {
  padding: 24px 20px;
  max-width: 420px;
}
.admin-account-form .field {
  margin-bottom: 16px;
}
.admin-account-form .field label {
  display: block;
  font-size: 12px;
  color: var(--admin-muted);
  margin-bottom: 5px;
  font-weight: 500;
}
.admin-account-form .field input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--admin-line);
  border-radius: var(--admin-radius-sm);
  font-size: 14px;
  background: #fafcfe;
  outline: none;
  transition: all .2s;
}
.admin-account-form .field input:focus {
  border-color: var(--admin-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47,124,246,.1);
}
.admin-account-form .field input:disabled {
  background: #f1f5f9;
  color: var(--admin-muted);
}
.admin-account-form .btn { margin-top: 8px; }

/* ── Banner 管理 ── */
.admin-banner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 18px;
}
.admin-banner-card {
  border: 1px solid var(--admin-line);
  border-radius: var(--admin-radius);
  padding: 14px;
  background: #fbfdff;
  transition: all .2s;
}
.admin-banner-card:hover {
  border-color: var(--admin-blue);
  box-shadow: var(--admin-shadow-md);
}
.admin-banner-preview {
  aspect-ratio: 16/9;
  border-radius: var(--admin-radius-sm);
  overflow: hidden;
  background: #eef2f7;
  margin-bottom: 12px;
}
.admin-banner-preview img,
.admin-banner-preview .ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-banner-preview .ph {
  display: grid;
  place-items: center;
  color: var(--admin-muted);
  font-size: 13px;
}
.admin-banner-card .field { margin-top: 8px; }
.admin-banner-card .field input {
  border: 1.5px solid var(--admin-line);
  border-radius: var(--admin-radius-xs);
  padding: 7px 10px;
  font-size: 12px;
  width: 100%;
  outline: none;
  transition: all .2s;
  background: #fafcfe;
}
.admin-banner-card .field input:focus {
  border-color: var(--admin-blue);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(47,124,246,.1);
}
.admin-banner-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.admin-banner-actions label.btn { cursor: pointer; }

/* ── 搜索输入框 ── */
.admin-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.admin-search-input {
  flex: 1;
  max-width: 300px;
  height: 36px;
  padding: 0 14px;
  border: 1.5px solid var(--admin-line);
  border-radius: var(--admin-radius-xs);
  font-size: 13px;
  outline: none;
  background: #fafcfe;
  transition: all .2s;
}
.admin-search-input:focus {
  border-color: var(--admin-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47,124,246,.1);
}

/* ── 咨询与许愿 ── */
.fb-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--admin-line);
}
.fb-tab {
  padding: 10px 20px;
  font-size: 13px;
  color: var(--admin-muted);
  cursor: pointer;
  border: 0;
  background: transparent;
  border-bottom: 2px solid transparent;
  transition: all .15s;
}
.fb-tab.active {
  color: var(--admin-blue);
  border-bottom-color: var(--admin-blue);
  font-weight: 520;
}
.fb-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f3f5f7;
  font-size: 13px;
}
.fb-item:last-child { border-bottom: 0; }
.fb-item .fb-main { flex: 1; min-width: 0; }
.fb-item .fb-content {
  color: var(--admin-text);
  line-height: 1.5;
}
.fb-item .fb-meta {
  font-size: 11px;
  color: var(--admin-muted);
  margin-top: 4px;
}
.fb-item .fb-actions {
  flex: none;
  display: flex;
  gap: 6px;
  align-items: center;
}
.fb-note {
  width: 140px;
  height: 28px;
  padding: 0 8px;
  border: 1.5px solid var(--admin-line);
  border-radius: 6px;
  font-size: 11px;
  outline: none;
}
.fb-note:focus {
  border-color: var(--admin-blue);
}
.fb-item.handled { opacity: .6; }

/* ── 圈子管理 ── */
.circle-search { width: 240px; }
.circle-reply-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}
.circle-reply-panel {
  background: #fff;
  border-radius: 14px;
  width: min(640px, 100%);
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.circle-reply-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--admin-line);
  font-size: 14px;
  font-weight: 520;
}
.circle-reply-item {
  padding: 10px 18px;
  border-bottom: 1px solid #f3f5f7;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.circle-reply-item:last-child { border-bottom: 0; }
.circle-reply-item .r-body { flex: 1; }
.circle-reply-item .r-meta {
  font-size: 11px;
  color: var(--admin-muted);
  margin-top: 2px;
}

/* ── 响应式 ── */
@media (max-width: 1100px) {
  .admin-banner-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .admin-side { width: 56px; padding: 12px 6px; }
  .admin-side-brand { justify-content: center; padding: 4px 0 10px; }
  .admin-side-brand strong,
  .admin-side-brand span,
  .admin-side-item span { display: none; }
  .admin-side-item { justify-content: center; padding: 10px; }
  .admin-side-item svg { width: 18px; height: 18px; }
  /* 分组导航移动端：图标 + 浮层展开 */
  .admin-nav-title { justify-content: center; padding: 10px 0; }
  .admin-nav-title span,
  .admin-nav-title .g-arrow { display: none; }
  .admin-nav-title .g-ico { color: #6f93c0; }
  .admin-nav-group { position: relative; }
  .admin-nav-group .admin-nav-items { max-height: 0; }
  .admin-nav-group.mobile-open .admin-nav-items {
    position: absolute;
    left: 50px; top: -4px;
    z-index: 70;
    max-height: 460px;
    width: 176px;
    padding: 6px;
    background: #0d2140;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(2,10,24,.55);
  }
  .admin-nav-group.mobile-open .admin-nav-items .admin-side-item {
    justify-content: flex-start;
    padding: 10px 12px 10px 18px;
  }
  .admin-nav-group.mobile-open .admin-nav-items .admin-side-item span { display: inline; }
  .admin-nav-group.mobile-open .admin-nav-items .admin-side-item::before { left: 9px; }
  .admin-content { padding: 14px; }
  .admin-top { padding: 0 14px; }
  .admin-top h1 { font-size: 16px; }
  .admin-top p { display: none; }
  .admin-banner-grid { grid-template-columns: 1fr; }
}
/* ── 管理员新认证通知弹窗 ── */
.admin-vip-notify {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  max-width: 360px;
  animation: adminVipNotifyIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: opacity 0.4s, transform 0.4s;
}
.admin-vip-notify-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  border-left: 4px solid var(--admin-blue, #2f7cf6);
}
.admin-vip-notify-icon {
  font-size: 28px;
  line-height: 1;
}
.admin-vip-notify-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-vip-notify-text strong {
  font-size: 14px;
  color: #1a1f2e;
  font-weight: 600;
}
.admin-vip-notify-text span {
  font-size: 12px;
  color: #8b95a5;
}
.admin-vip-notify-users {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-vip-notify-user {
  font-size: 13px;
  color: #4a5568;
  display: flex;
  align-items: center;
  gap: 6px;
}
.admin-vip-notify-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2f7cf6;
  flex-shrink: 0;
}
.admin-vip-notify-more {
  font-size: 12px;
  color: #8b95a5;
  margin-top: 4px;
}
.admin-vip-notify-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.admin-vip-notify-actions .btn {
  white-space: nowrap;
}
.admin-vip-notify-close {
  width: 24px;
  height: 24px;
  border: none;
  background: #f0f2f5;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  color: #8b95a5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.admin-vip-notify-close:hover {
  background: #e0e4ea;
}
@keyframes adminVipNotifyIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
/* ============ 薪酬数据库页：样本表单 / 过滤区 / 记录区 ============ */
/* 样本表单栅格 */
.sal-grid-4, .sal-grid-5 {
  display: grid;
  gap: 12px;
}
.sal-grid-4 { grid-template-columns: repeat(4, 1fr); }
.sal-grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1180px) {
  .sal-grid-4, .sal-grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .sal-grid-4, .sal-grid-5 { grid-template-columns: 1fr; }
}
/* 样本表单字段：统一 select/textarea 与 input 同款小字号，修复示例字体过大 */
.sal-grid-4 .admin-banner-card, .sal-grid-5 .admin-banner-card {
  margin: 0;
  padding: 12px 14px;
}
.sal-grid-4 .field, .sal-grid-5 .field { min-width: 0; }
.sal-grid-4 .field label, .sal-grid-5 .field label {
  font-size: 12px;
  color: #5a6b82;
  margin-bottom: 6px;
}
.admin-banner-card .field input,
.admin-banner-card .field select,
.admin-banner-card .field textarea {
  width: 100%;
  font-size: 12px;
  line-height: 1.5;
  color: #24314a;
  background: #fff;
  border: 1px solid var(--admin-line, #dbe2ec);
  border-radius: 8px;
  padding: 8px 10px;
  transition: border-color .2s, box-shadow .2s;
}
.admin-banner-card .field input::placeholder,
.admin-banner-card .field textarea::placeholder {
  font-size: 12px;
  color: #9aa8ba;
}
.admin-banner-card .field input:focus,
.admin-banner-card .field select:focus,
.admin-banner-card .field textarea:focus {
  outline: none;
  border-color: var(--admin-blue, #2f7cf6);
  box-shadow: 0 0 0 3px rgba(47, 124, 246, .12);
}
.admin-banner-card.field.pod-err input,
.admin-banner-card.field.pod-err textarea,
.admin-banner-card.field.pod-err select {
  border-color: #e5484d;
  box-shadow: 0 0 0 3px rgba(229, 72, 77, .12);
}
.admin-banner-card.field.pod-err label::after {
  content: '（必填）';
  color: #e5484d;
  font-size: 11px;
  margin-left: 4px;
}
/* 过滤区 select 与搜索框同款小字号 */
.admin-search-bar select,
.admin-search-bar .inp-sm,
.admin-search-bar input[type="date"],
.admin-search-bar input[type="text"] {
  font-size: 12px;
  border: 1px solid var(--admin-line, #dbe2ec);
  border-radius: 8px;
  padding: 7px 10px;
  background: #fff;
  color: #24314a;
}
.admin-search-bar select:focus {
  outline: none;
  border-color: var(--admin-blue, #2f7cf6);
}
/* 表单说明 / 操作区 */
.sal-legend {
  font-size: 12px;
  color: #8a97ab;
  margin-bottom: 10px;
}
.sal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.sal-actions .btn { font-size: 12.5px; }
/* 样本列表 / 评估记录卡片间距与表头 */
.admin-banner-card .admin-table th {
  font-size: 12px;
  white-space: nowrap;
}
.admin-banner-card .admin-table td {
  font-size: 12px;
}
.admin-banner-card .c-mono {
  font-variant-numeric: tabular-nums;
}
/* 分页控件 */
.admin-pager {
  margin-top: 14px;
}
.admin-pager .btn {
  font-size: 12.5px;
  min-width: 32px;
  padding: 5px 10px;
}
.admin-pager .btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.sal-records-empty {
  padding: 22px 0;
  text-align: center;
  font-size: 13px;
  color: #8a97ab;
}
/* ================= 站内消息推送 ================= */
.sys-msg-panel .panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.sys-msg-cols {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px;
}
@media (max-width: 980px) {
  .sys-msg-cols { grid-template-columns: 1fr; }
}
.sys-msg-form-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}
.sys-msg-form-sub {
  font-size: 12px;
  color: #8a97ab;
  font-weight: 400;
}
.sys-msg-form {
  background: var(--surface, #fff);
  border: 1px solid var(--card-border, #e6ebf1);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.sys-msg-form-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink, #16273b);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sys-msg-form-title::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--brand, #2563eb);
}
.sys-msg-form .field label {
  font-size: 12px;
  font-weight: 600;
  color: #5b6b7f;
  margin-bottom: 6px;
}
.sys-msg-form textarea {
  min-height: 104px;
  resize: vertical;
  padding: 10px 12px;
  border: 1px solid #dfe6ee;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  width: 100%;
  color: var(--ink, #16273b);
  background: #fbfcfe;
  transition: border-color .15s, box-shadow .15s;
}
.sys-msg-form textarea:focus {
  outline: none;
  border-color: var(--brand, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
  background: #fff;
}
.sys-msg-actions {
  margin-top: 4px;
}
.sys-msg-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sys-msg-list-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}
.sys-msg-list-count {
  font-size: 12px;
  color: #8a97ab;
  font-weight: 400;
}
.sys-msg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand, #2563eb);
  flex-shrink: 0;
}
.sys-msg-item {
  background: var(--surface, #fff);
  border: 1px solid var(--card-border, #e6ebf1);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  transition: box-shadow .15s, transform .15s;
}
.sys-msg-item:hover {
  box-shadow: 0 4px 14px rgba(16, 24, 40, .08);
  transform: translateY(-1px);
}
.sys-msg-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.sys-msg-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink, #16273b);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sys-msg-time {
  font-size: 12px;
  color: #8a97ab;
  white-space: nowrap;
}
.sys-msg-body {
  font-size: 13px;
  color: #45566b;
  line-height: 1.7;
  margin-bottom: 10px;
  white-space: pre-wrap;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sys-msg-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px dashed #edf1f6;
}
.sys-msg-read-bar {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #edf1f6;
  overflow: hidden;
}
.sys-msg-read-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand, #2563eb), #5b8def);
  transition: width .3s;
}

/* ── EHS播客：生成结果预览卡 ── */
.pod-preview-card { margin-bottom: 16px; }
.pod-prev-title { font-size: 15px; margin: 6px 0 4px; }
.pod-prev-bullets { margin: 8px 0 0 18px; color: #374151; line-height: 1.7; }
.pod-prev-bullets li { margin: 2px 0; }
.pod-prev-details { margin-top: 8px; }
.pod-prev-details summary { cursor: pointer; color: var(--brand, #2563eb); font-size: 13px; user-select: none; }
.pod-prev-script { margin-top: 8px; padding: 10px 12px; background: #f5f7fa; border-radius: 8px; font-size: 13px; line-height: 1.8; color: #333; white-space: pre-wrap; max-height: 220px; overflow:auto; }

/* ══════════ EHS 播客 · 电台工作台 ══════════ */
.pod-admin { --pod-grad: linear-gradient(135deg,#1e3a8a,#3b82f6 55%,#7c3aed); }
/* 顶部横幅 */
.pod-hero { position:relative; overflow:hidden; border-radius:16px; padding:22px 24px; color:#fff;
  background: radial-gradient(120% 160% at 0% 0%, rgba(59,130,246,.45), rgba(30,41,59,.2) 45%), linear-gradient(135deg,#172554,#1e40af 60%,#4c1d95);
  box-shadow:0 12px 32px -12px rgba(30,64,175,.5); margin-bottom:18px; }
.pod-hero::after { content:"✦"; position:absolute; right:20px; top:10px; font-size:64px; opacity:.12; }
.pod-hero h3 { margin:0 0 6px; font-size:20px; letter-spacing:.5px; }
.pod-hero .pod-hero-sub { font-size:13px; color:#dbeafe; opacity:.9; line-height:1.7; max-width:720px; }
.pod-steps { display:flex; gap:10px; margin-top:18px; flex-wrap:wrap; }
.pod-step-on { flex:1; min-width:150px; display:flex; gap:10px; align-items:center; padding:12px 14px; border-radius:12px; background:rgba(255,255,255,.1); backdrop-filter:blur(6px); border:1px solid rgba(255,255,255,.18); }
.pod-step-on b { display:flex; align-items:center; justify-content:center; width:38px; height:38px; flex:0 0 38px; border-radius:10px; font-size:18px; background:rgba(255,255,255,.18); box-shadow:inset 0 0 0 1px rgba(255,255,255,.25); }
.pod-step-on .tt { font-size:13px; font-weight:600; }
.pod-step-on .ts { font-size:11px; color:#c7d2fe; opacity:.9; }
/* KPI */
.pod-kpis { display:grid; grid-template-columns:repeat(auto-fit,minmax(148px,1fr)); gap:12px; margin:16px 0; }
.pod-kpi { background:#fff; border:1px solid var(--admin-line,#eef1f6); border-radius:14px; padding:14px 16px; box-shadow:0 2px 10px rgba(15,23,42,.04); position:relative; overflow:hidden; }
.pod-kpi::before { content:""; position:absolute; left:0; top:0; bottom:0; width:4px; background:linear-gradient(#3b82f6,#8b5cf6); }
.pod-kpi b { display:block; font-size:22px; color:#0f172a; line-height:1.2; }
.pod-kpi span { font-size:12px; color:#64748b; }
/* 向导 */
.pod-wizard { border-radius:16px; }
.pod-wizard-head h3 { font-size:16px; }
.pod-wizard .sal-grid-2,.pod-wizard .sal-grid-3 { gap:14px; }
.pod-wizard .admin-banner-card.field { border-radius:12px; }
.pod-wizard .admin-banner-card.field > label { font-weight:600; color:#334155; }
.pod-wizard .admin-input:focus { outline:none; border-color:#3b82f6; box-shadow:0 0 0 3px rgba(59,130,246,.15); }
.pod-actions { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-top:16px; padding-top:16px; border-top:1px dashed var(--admin-line,#e6ebf3); }
/* 台账 */
.pod-ledger .admin-table th { background:#f8fafc; color:#475569; letter-spacing:.3px; }
.pod-ledger .admin-table td { padding:12px 12px; }
.pod-ledger .pod-rec-id { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:11px; color:#94a3b8; }
.pod-ledger .admin-row-actions .btn { white-space:nowrap; }
/* 状态胶囊 */
.pod-status { display:inline-flex; align-items:center; gap:6px; padding:3px 10px; border-radius:999px; font-size:12px; font-weight:600; line-height:1.6; }
.pod-status::before { content:""; width:7px; height:7px; border-radius:50%; background:currentColor; opacity:.9; }
.lv-ok.pod-status { background:#ecfdf5; color:#059669; box-shadow:inset 0 0 0 1px #d1fae5; }
.lv-process.pod-status { background:#eff6ff; color:#2563eb; box-shadow:inset 0 0 0 1px #dbeafe; }
.lv-warn.pod-status { background:#fffbeb; color:#d97706; box-shadow:inset 0 0 0 1px #fde68a; }
.lv-muted.pod-status { background:#f1f5f9; color:#64748b; box-shadow:inset 0 0 0 1px #e2e8f0; }
/* 当前状态标签 */
.pod-cur-status { font-weight:600; color:#334155; background:#f8fafc; padding:4px 10px; border-radius:8px; font-size:12px; box-shadow:inset 0 0 0 1px #e2e8f0; }
/* 播放块 */
.pod-audio-box { margin-top:14px; }
.pod-audio-box audio { width:100%; border-radius:10px; }
/* 按钮微调 */
.pod-wizard .btn-lg { font-size:14px; padding:10px 18px; border-radius:10px; }

/* 顶部标题区 */
.pod-hero-ttl { display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; }
.pod-hero-ttl h3 { margin:0; }
.pod-hero-ttl span { font-size:13px; color:#c7d2fe; }
/* hero 内步骤条（数字圈 + 连线） */
.pod-hero .pod-steps { display:flex; align-items:center; gap:4px; flex-wrap:wrap; margin-top:18px; }
.pod-hero .pod-steps span { display:flex; align-items:center; gap:6px; font-size:12px; color:#a5b4fc; padding:6px 8px; border-radius:8px; }
.pod-hero .pod-steps span.on { color:#fff; background:rgba(255,255,255,.16); font-weight:600; }
.pod-hero .pod-steps span i { display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; border-radius:50%; background:#fff; color:#1e3a8a; font-style:normal; font-size:11px; font-weight:700; }
.pod-hero .pod-steps span.on i { background:linear-gradient(135deg,#3b82f6,#8b5cf6); color:#fff; }
.pod-hero .pod-steps b { width:18px; height:2px; background:rgba(255,255,255,.25); border-radius:1px; }
/* KPI 数值配色 */
.pod-kpi.ok b { color:#059669; }
.pod-kpi.warn b { color:#d97706; }
.pod-kpi [class] b { color:#0f172a; }
/* 步骤卡片 */
.pod-step { margin-top:18px; padding-top:16px; border-top:1px dashed var(--admin-line,#e6ebf3); }
.pod-step-head { display:flex; align-items:center; gap:8px; font-weight:600; color:#1e293b; margin-bottom:10px; font-size:14px; }
.pod-step-head i { display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:50%; background:linear-gradient(135deg,#3b82f6,#8b5cf6); color:#fff; font-style:normal; font-size:12px; font-weight:700; }
.pod-step textarea { font-size:13px; line-height:1.8; }
/* 台账空态 */
.pod-empty { text-align:center; padding:34px 16px; color:#94a3b8; }
.pod-empty i { font-size:40px; display:block; margin-bottom:10px; opacity:.6; }
/* select 与 input 对齐 */
.pod-wizard select { padding:9px 10px; border-radius:10px; border:1px solid var(--admin-line,#dde3ee); background:#fff; font-size:13px; color:#334155; min-width:200px; }
.pod-wizard select:focus { outline:none; border-color:#3b82f6; box-shadow:0 0 0 3px rgba(59,130,246,.15); }
/* 试听提示块 */
.pod-audio-tip { display:flex; gap:8px; align-items:center; color:#64748b; font-size:12px; background:#f8fafc; border-radius:10px; padding:8px 12px; margin-top:8px; box-shadow:inset 0 0 0 1px #e2e8f0; }

/* 视频课件管理 */
.course-admin-block { margin: 14px 0 4px; }
.course-astats { display: flex; gap: 18px; font-size: 12.5px; color: #64748b; margin: 10px 0 14px; flex-wrap: wrap; }
.course-astats b { color: #111; font-weight: 700; }
.course-apanel { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px; }
.course-apanel input, .course-apanel textarea { width: 100%; box-sizing: border-box; border: 1px solid #d7dde6; border-radius: 8px; padding: 10px 12px; font-size: 13px; margin: 0 0 10px; background: #fff; }
.course-apanel input::placeholder, .course-apanel textarea::placeholder { color: #94a3b8; }
.course-apanel textarea { resize: vertical; }
.course-aup { display: flex; align-items: center; gap: 10px; margin: 4px 0 10px; }
.course-afname { font-size: 12px; color: #475569; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.course-abtn { border: 1px solid #cbd5e1; background: #fff; color: #334155; border-radius: 8px; padding: 8px 14px; font-size: 13px; cursor: pointer; }
.course-abtn:hover { background: #f1f5f9; }
.course-abtn.primary { background: #d9304f; border-color: #d9304f; color: #fff; }
.course-abtn.primary:hover { background: #b6203a; }
.course-aprogwrap { background: #e2e8f0; height: 6px; border-radius: 6px; overflow: hidden; margin: 2px 0 12px; }
.course-aprog { height: 100%; width: 0; background: linear-gradient(90deg, #d9304f, #9f1239); transition: width .2s; }
.course-arow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid #eef2f7; border-radius: 10px; margin-bottom: 9px; background: #fff; }
.course-arow-main { min-width: 0; }
.course-arow-main b { display: block; color: #111; font-size: 13.5px; }
.course-asub { color: #64748b; font-size: 12px; display: flex; gap: 8px; align-items: center; margin-top: 3px; flex-wrap: wrap; }
.course-asub i { font-style: normal; padding: 1px 7px; border-radius: 999px; font-size: 11px; }
.course-asub i.c-on { color: #0a7d43; background: #e7f6ec; }
.course-asub i.c-off { color: #8a5a00; background: #fdf3d7; }
.course-aops { display: flex; gap: 6px; flex-wrap: wrap; flex-shrink: 0; }
.course-aops .course-abtn { padding: 6px 10px; font-size: 12px; }
@media (max-width: 640px) { .course-arow { flex-direction: column; align-items: flex-start; } }

/* ═══ 课件横幅（course-ppt banner）管理 ═══ */
.cpptb-row { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #e7ebf2; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.cpptb-thumb { width: 150px; min-width: 150px; aspect-ratio: 43 / 15; border-radius: 8px; overflow: hidden; background: #eef1f6; display: flex; align-items: center; justify-content: center; }
.cpptb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cpptb-thumb-ph { color: #a4adbc; font-size: 12px; }
.cpptb-main { flex: 1; min-width: 0; }
.cpptb-main > b { display: block; color: #243047; font-size: 14px; }
.cpptb-sub { display: block; margin-top: 4px; color: #7a8499; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpptb-sub i { font-style: normal; padding: 1px 7px; border-radius: 999px; font-size: 11px; }
.cpptb-sub i.c-on { color: #0a7d43; background: #e7f6ec; }
.cpptb-sub i.c-off { color: #8a5a00; background: #fdf3d7; }
.cpptb-fileline { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.cpptb-fileline .course-abtn { padding: 4px 9px; font-size: 12px; }
.cpptb-vname { color: #98a1b3; font-size: 11.5px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpptb-newrow { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.cpptb-new-fields { flex: 1; min-width: 240px; }
.cpptb-new-up { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cpptb-tip { color: #98a1b3; font-size: 12px; margin: 6px 0 0; }
.course-abtn.danger { color: #d9304f; border-color: #f3c1c8; }
.course-abtn.danger:hover { background: #fdeef0; }
.course-abtn:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 720px) {
  .cpptb-row { flex-wrap: wrap; }
  .cpptb-thumb { width: 100%; min-width: 0; }
  .cpptb-newrow { flex-direction: column; }
}

/* ================= 组件规范补齐（后台统一） ================= */
/* 侧栏 VIP 红胶囊徽标 */
.admin-side-badge {
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: #e5484d; color: #fff;
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
  margin-left: auto; flex: none;
}
.admin-side-badge.hide { display: none; }

/* 侧栏当前项左侧亮条 */
.admin-side-item { position: relative; }
.admin-side-item.active::before {
  content: ''; position: absolute; left: 0; top: 7px; bottom: 7px;
  width: 3px; border-radius: 2px; background: #2f7cf6;
}

/* 侧栏底部出口 */
.admin-side-foot { display: flex; flex-direction: column; gap: 8px; }
.admin-side-exit { display: flex; align-items: center; justify-content: space-between; }
.admin-side-exit a { color: #9db4d0; font-size: 12px; text-decoration: none; }
.admin-side-exit a:hover { color: #fff; }
.admin-side-exit button { border: 0; background: none; color: #9db4d0; font-size: 12px; cursor: pointer; padding: 0; }
.admin-side-exit button:hover { color: #fda4af; }

/* 内容区主栏宽度约束：约 1320px 居左，留呼吸 */
.admin-content { max-width: 1320px; }
@media (min-width: 1600px) { .admin-content { max-width: 1400px; } }

/* 圆形可点头像（用户列表） */
.admin-avatar-btn {
  width: 34px; height: 34px; padding: 0; border-radius: 50%;
  border: 2px solid #dbe6f3; background: #f1f5f9; cursor: pointer; overflow: hidden;
  transition: border-color .18s;
}
.admin-avatar-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-avatar-btn:hover { border-color: #2f7cf6; }

/* 状态胶囊：正常蓝灰 / 停用红 / VIP 金 / 待审核橙 */
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; line-height: 18px;
  background: #eef2f7; color: #64748b;
}
.pill-ok { background: #e7f6f0; color: #12805f; }
.pill-danger { background: #fdecec; color: #d33d41; }
.pill-vip { background: #fdf6e3; color: #b7890b; }
.pill-warn { background: #fef4dd; color: #a16207; }

/* 危险红字幽灵按钮 */
.btn-danger-ghost {
  background: #fff; color: #e5484d; border: 1px solid #f6c9cb;
}
.btn-danger-ghost:hover { background: #fdecec; border-color: #e5484d; }

/* 待办行左色条 */
.todo-row { border-left: 4px solid #d5e6fb; }
.todo-row.bar-blue { border-left-color: #2f7cf6; }
.todo-row.bar-red { border-left-color: #e5484d; }
.todo-row.bar-yellow { border-left-color: #f5b400; }

/* 顶栏警示条（撞库）可关闭 */
.admin-alert {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-radius: 10px; margin-bottom: 14px;
  background: #fdf6e3; border: 1px solid #f3d489; color: #8a6100;
  font-size: 13px;
}
.admin-alert.warn b { color: #6b4d00; }
.admin-alert .alert-close {
  border: 0; background: none; color: #8a6100; font-size: 18px; line-height: 1;
  cursor: pointer; padding: 0 2px; opacity: .7;
}
.admin-alert .alert-close:hover { opacity: 1; }

/* 统一页头（内容管理模块共用）：标题 + 职责说明 + 主 CTA */
.admin-page-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  margin-bottom: 12px;
}
.admin-page-head h3 { margin: 0; font-size: 16px; color: #16324a; }
.admin-page-head p { margin: 4px 0 0; font-size: 12px; color: #8aa0b8; }

/* 统计条：数量 / 已上架 / 草稿 等 */
.admin-stat-bar {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  padding: 10px 14px; margin-bottom: 14px;
  background: #f8fafc; border: 1px solid #e6eaf0; border-radius: 10px;
  font-size: 12px; color: #64748b;
}
.admin-stat-bar b { color: #16324a; font-size: 14px; margin: 0 2px; }

/* 工具条：搜索框伸展，换行不错位 */
.admin-filters { flex-wrap: wrap; }
.admin-filter-grow { flex: 1 1 220px; min-width: 180px; }

/* 通用表：表头吸顶 + 行 hover + 等宽数字 */
.admin-table { width: 100%; border-collapse: collapse; background: #fff; }
.admin-table thead th {
  position: sticky; top: 0; z-index: 1;
  background: #f8fafc; color: #7a8ea5; font-size: 11px; font-weight: 600;
  text-align: left; padding: 9px 8px; border-bottom: 1px solid #e6eaf0;
}
.admin-table tbody td { padding: 10px 8px; border-bottom: 1px solid #eef2f7; font-size: 12.5px; color: #33475b; font-variant-numeric: tabular-nums; }
.admin-table tbody tr:hover { background: #f7fafd; }
.admin-table .sw-name { font-size: 13px; color: #16324a; }
.admin-table .sw-id { color: #94a3b8; font-size: 11px; margin-top: 2px; }
.admin-table .muted { color: #94a3b8; font-size: 11.5px; }

/* EHS 软件编辑面板（页内大卡片） */
.sw-panel {
  margin-top: 14px; background: #fff; border: 1px solid #e6eaf0; border-radius: 12px;
  padding: 16px 18px; box-shadow: var(--admin-shadow, 0 1px 4px rgba(15,23,42,.06));
}
.sw-panel-title { font-weight: 700; font-size: 14px; color: #16324a; margin-bottom: 12px; }
.sw-form-row { display: flex; gap: 10px; flex-wrap: wrap; }
.sw-field { display: block; font-size: 12px; color: #64748b; margin-bottom: 10px; }
.sw-field-grow { flex: 1 1 220px; }
.sw-field-cat { width: 150px; }
.sw-field-ver { width: 130px; }
.sw-field input, .sw-field select, .sw-field textarea {
  width: 100%; margin-top: 4px; border: 1px solid #cbd5e1; border-radius: 8px;
  padding: 8px 10px; font-size: 13px; color: #1e293b; background: #fff;
  font-family: inherit; resize: vertical;
}
.sw-field input.err, .sw-field textarea.err { border-color: #e5484d; }
.sw-field-block { margin-bottom: 12px; }
.sw-field-label { font-size: 12px; color: #64748b; margin-bottom: 6px; }
.sw-shots { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sw-shot {
  position: relative; width: 96px; height: 64px; border-radius: 8px; overflow: hidden;
  border: 1px solid #e6eaf0; background: #f1f5f9;
}
.sw-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sw-shot-rm {
  position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%;
  border: 0; background: rgba(15,23,42,.72); color: #fff; font-size: 11px; line-height: 18px;
  cursor: pointer; padding: 0;
}
.sw-shot-rm:hover { background: #e5484d; }
.sw-shot-add {
  width: 96px; height: 64px; border: 1px dashed #94a3b8; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; color: #64748b;
  font-size: 12px; cursor: pointer; background: #fbfdff;
}
.sw-shot-add input { display: none; }
.sw-shot-add:hover { border-color: #2f7cf6; color: #2f7cf6; }
.sw-file-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sw-file-pick {
  border: 1px dashed #94a3b8; border-radius: 8px; padding: 8px 14px;
  color: #475569; font-size: 12px; cursor: pointer; background: #fbfdff;
}
.sw-file-pick:hover { border-color: #2f7cf6; color: #2f7cf6; }
.sw-file-pick input { display: none; }
.sw-fstate { font-size: 12px; color: #94a3b8; }
.sw-fstate.ok { color: #12805f; }
.sw-upbar { flex-basis: 100%; }
.sw-upbar-track { height: 5px; border-radius: 3px; background: #e2e8f0; overflow: hidden; }
.sw-upfill { height: 100%; width: 0; background: linear-gradient(90deg, #0ea5a4, #0891b2); transition: width .2s; }
.sw-uptext { font-size: 11px; color: #64748b; margin-top: 3px; }
.sw-panel-actions { display: flex; gap: 10px; align-items: center; }

/* 按钮尺寸统一：btn-sm 高 32 / btn-xs 高 26 */
.btn.btn-sm { height: 32px; padding: 0 14px; line-height: 30px; font-size: 12.5px; }
.btn.btn-xs { height: 26px; padding: 0 10px; line-height: 24px; font-size: 11.5px; border-radius: 7px; }

/* 加载态：细进度条 */
.admin-loading {
  padding: 26px 18px; color: #8aa0b8; font-size: 13px; text-align: center;
  position: relative; overflow: hidden;
}
.admin-loading::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #2f7cf6, transparent);
  animation: admin-loading-slide 1.1s ease-in-out infinite;
}
@keyframes admin-loading-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* 分页器居中，当前页加粗，禁用真禁用 */
.admin-pager { display: flex; justify-content: center; align-items: center; gap: 8px; }
.admin-pager button:disabled { opacity: .45; cursor: not-allowed; }
.admin-pager .cur { font-weight: 700; color: #16324a; }

/* VIP 审核卡：左头像昵称 / 中星球信息 / 右操作 */
.vip-card {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 13px 15px; background: #fff; border: 1px solid #e6eaf0; border-radius: 12px;
  margin-bottom: 10px;
}
.vip-card .vc-user { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.vip-card .vc-user img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #dbe6f3; }
.vip-card .vc-user b { font-size: 13px; color: #16324a; display: block; }
.vip-card .vc-user span { font-size: 12px; color: #8aa0b8; font-variant-numeric: tabular-nums; }
.vip-card .vc-meta { flex: 1 1 220px; font-size: 12px; color: #64748b; line-height: 1.7; }
.vip-card .vc-meta b { color: #33475b; }
.vip-card .vc-ops { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vip-card .vc-ops input[type="date"] {
  border: 1px solid #cbd5e1; border-radius: 8px; padding: 6px 9px; font-size: 12.5px; color: #1e293b;
}
@media (max-width: 760px) { .vip-card { align-items: flex-start; flex-direction: column; } }

/* ===== 图库下载统计与流水（后台） ===== */
.gl-dl-panel { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.gl-dl-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.gl-dl-head h3 { margin: 0; font-size: 15px; color: #1e293b; }
.gl-dl-search { display: flex; gap: 8px; align-items: center; }
.gl-dl-search input {
  border: 1px solid #cbd5e1; border-radius: 8px; padding: 6px 10px; font-size: 12.5px; width: 200px; color: #1e293b;
}
.gl-dl-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.gl-dl-stat {
  flex: 1 1 150px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 9px 12px;
}
.gl-dl-stat b { display: block; font-size: 19px; color: #1e293b; line-height: 1.25; }
.gl-dl-stat span { font-size: 12px; color: #64748b; }
.gl-dl-top { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.gl-dl-top .pill { font-weight: 500; }
.gl-dl-panel .admin-table { margin-bottom: 0; }
.gl-dl-panel .admin-pager { margin-top: 10px; }
.gl-dl-empty { color: #94a3b8; font-size: 13px; text-align: center; padding: 18px 0; }
.gl-dl-name { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) { .gl-dl-search input { width: 130px; } .gl-dl-name { max-width: 150px; } }
