/* 导航后台 — 浅色毛玻璃主题（对齐 videoadmin 首页） */
body.admin-body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  background: linear-gradient(180deg, #eef1fb 0%, #f4f6fd 45%, #f8f9fc 100%);
  color: #0f172a;
  min-height: 100vh;
}

body.admin-body.admin-body--dash-home {
  background: linear-gradient(180deg, #eef1fb 0%, #f4f6fd 45%, #f8f9fc 100%);
}

.admin-login {
  max-width: 360px;
  margin: 12vh auto;
  padding: 28px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 12px 40px rgba(15, 23, 42, 0.1);
}

.admin-login h1 {
  margin: 0 0 20px;
  font-size: 20px;
  text-align: center;
  color: #0f172a;
}

.admin-login label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: #64748b;
}

.admin-login input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 15px;
}

.admin-login button {
  width: 100%;
  padding: 11px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.admin-login .msg {
  margin-top: 12px;
  font-size: 13px;
  color: #dc2626;
  min-height: 1.2em;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-side {
  width: 212px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.78);
  padding: 16px 0;
  border-right: 1px solid rgba(148, 163, 184, 0.35);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 4px 0 24px rgba(15, 23, 42, 0.04);
}

.admin-side__brand {
  padding: 0 18px 16px;
  font-weight: 800;
  font-size: 15px;
  color: #1e293b;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.admin-menu {
  margin: 4px 6px 0;
  padding-bottom: 12px;
}

.admin-menu > .admin-menu__link,
.admin-menu__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  width: calc(100% - 12px);
  margin: 0 6px 8px;
  padding: 11px 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #546a88;
  text-decoration: none;
  text-align: left;
  border: none;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.admin-menu > .admin-menu__link:hover,
.admin-menu > .admin-menu__link:focus,
.admin-menu__toggle:hover,
.admin-menu__toggle:focus {
  color: #27456f;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(242, 248, 255, 0.88) 100%);
  transform: translateY(-2px);
  box-shadow:
    0 6px 14px rgba(53, 93, 168, 0.14),
    inset 0 0 0 1px rgba(120, 165, 255, 0.22);
}

.admin-menu > .admin-menu__link.active {
  color: #1f4fa5;
  font-weight: 600;
  background: linear-gradient(90deg, rgba(82, 140, 255, 0.22) 0%, rgba(82, 140, 255, 0.12) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(105, 153, 252, 0.28),
    0 2px 6px rgba(64, 111, 203, 0.12);
}

.admin-menu a.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.admin-menu__arrow {
  flex-shrink: 0;
  width: 0;
  height: 0;
  margin-right: 4px;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid rgba(122, 139, 166, 0.65);
  transition: transform 0.2s ease, border 0.2s ease;
}

.admin-menu__item--sub.open > .admin-menu__toggle {
  color: #4a617f;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.35);
}

.admin-menu__item--sub.open > .admin-menu__toggle .admin-menu__arrow {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(122, 139, 166, 0.75);
  border-bottom: none;
  transform: translateY(1px);
}

.admin-menu__subs {
  display: none;
  margin: 0 6px 8px;
  padding: 4px 0 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.28);
}

.admin-menu__item--sub.open > .admin-menu__subs {
  display: block;
}

.admin-menu a.admin-menu__sub {
  display: block;
  margin: 0 4px;
  padding: 0 12px 0 36px;
  line-height: 33px;
  font-size: 13px;
  font-weight: 500;
  color: #6a7f9e;
  text-decoration: none;
  border-radius: 7px;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.admin-menu a.admin-menu__sub:hover {
  color: #4b6180;
  background: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(53, 93, 168, 0.1);
}

.admin-menu a.admin-menu__sub.active {
  color: #1f4fa5;
  font-weight: 600;
  background: linear-gradient(90deg, rgba(82, 140, 255, 0.24) 0%, rgba(82, 140, 255, 0.14) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(105, 153, 252, 0.3),
    0 2px 5px rgba(64, 111, 203, 0.1);
}

.admin-main {
  flex: 1;
  padding: 20px 28px 32px;
  min-width: 0;
}

.admin-main--dash {
  position: relative;
  isolation: isolate;
}

.admin-main--dash::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 58% 48% at 6% 14%, rgba(99, 102, 241, 0.14) 0%, transparent 58%),
    radial-gradient(ellipse 52% 44% at 94% 10%, rgba(168, 85, 247, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 88% 72%, rgba(56, 189, 248, 0.08) 0%, transparent 52%);
}

.admin-main--dash > * {
  position: relative;
  z-index: 1;
}

.admin-page-title {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.admin-main h2:not(.admin-page-title) {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.admin-main .hint {
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.admin-main .hint code {
  font-size: 12px;
  background: rgba(148, 163, 184, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  padding: 10px 14px;
  font-size: 13px;
  color: #64748b;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.admin-topbar strong {
  color: #0f172a;
}

.admin-topbar__link {
  color: #4f46e5 !important;
  text-decoration: none;
  margin-right: 12px;
  font-weight: 600;
}

.admin-topbar button {
  padding: 6px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  font-size: 13px;
}

.admin-topbar button:hover {
  border-color: #94a3b8;
}

/* —— 概览统计卡（videoadmin dash-metrics）—— */
.admin-dash-page {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 4px 0 20px;
}

.admin-metrics-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
  padding-bottom: 8px;
}

.admin-metrics-row--4 {
  flex-wrap: nowrap;
}

.admin-metrics-row--4 .admin-metric-cell {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
}

.admin-metrics-row--4 .admin-stat-card {
  padding: 14px 12px 12px;
}

.admin-metrics-row--4 .admin-stat-card__value {
  font-size: 30px;
}

.admin-metrics-row--4 .admin-stat-card__label {
  font-size: 13px;
}

.admin-metrics-row--4 .admin-stat-card__sub {
  margin-top: 8px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .admin-metrics-row--4 {
    flex-wrap: wrap;
  }
  .admin-metrics-row--4 .admin-metric-cell {
    flex: 1 1 calc(50% - 20px);
    min-width: 140px;
  }
}

/* 概述：首卡数字红色，其余黑色 */
#dash-summary .admin-metric-cell:first-child .admin-stat-card__value {
  color: #dc2626;
}

#dash-summary .admin-metric-cell:not(:first-child) .admin-stat-card__value {
  color: #0f172a;
  text-shadow: none;
}

.admin-metrics-row--6 {
  flex-wrap: nowrap;
}

.admin-metrics-row--6 .admin-metric-cell {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
}

.admin-metrics-row--6 .admin-stat-card {
  padding: 14px 12px 12px;
}

.admin-metrics-row--6 .admin-stat-card__value {
  font-size: 30px;
}

.admin-metrics-row--6 .admin-stat-card__label {
  font-size: 13px;
}

.admin-metrics-row--6 .admin-stat-card__sub {
  margin-top: 8px;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .admin-metrics-row--6 {
    flex-wrap: wrap;
  }
  .admin-metrics-row--6 .admin-metric-cell {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 140px;
  }
}

/* 有效用户：今日/历史双行展示 */
.admin-stat-card__pair {
  margin-top: 2px;
}

.admin-stat-card__pair-row {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.45;
  color: #475569;
}

.admin-stat-card__pair-row:last-child {
  margin-bottom: 0;
}

.admin-stat-card__pair-k {
  font-weight: 500;
  color: #64748b;
}

.admin-stat-card__pair-v {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

#effective-summary .admin-stat-card__pair-row--today .admin-stat-card__pair-v {
  color: #0f172a;
}

#effective-summary .admin-metric-cell:first-child .admin-stat-card__pair-row--today .admin-stat-card__pair-v {
  color: #dc2626;
}

#jump-summary .admin-metric-cell:first-child .admin-stat-card__pair-row--today .admin-stat-card__pair-v {
  color: #dc2626;
}

#visitors-summary .admin-metric-cell:first-child .admin-stat-card__pair-row--today .admin-stat-card__pair-v {
  color: #dc2626;
}

.admin-stat-card__sub--tight {
  margin-top: 8px;
  font-size: 12px;
}

.effective-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.effective-list-period {
  flex-shrink: 0;
}

.effective-list-hint {
  margin: 0;
  flex: 1 1 200px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.admin-op-log-detail {
  max-width: 360px;
  white-space: normal;
  word-break: break-word;
  line-height: 1.45;
  font-size: 13px;
  color: #334155;
}

.admin-metric-cell {
  flex: 1 1 200px;
  min-width: 168px;
  max-width: 100%;
  padding: 0 10px;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.admin-stat-card {
  --stat-glow: rgba(99, 102, 241, 0.12);
  position: relative;
  border-radius: 13px;
  padding: 18px 18px 16px;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: linear-gradient(
    168deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(248, 250, 252, 0.98) 42%,
    rgba(226, 232, 240, 0.95) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 -2px 6px rgba(148, 163, 184, 0.18) inset,
    0 5px 0 rgba(203, 213, 225, 0.4),
    0 8px 16px rgba(15, 23, 42, 0.08),
    0 16px 32px var(--stat-glow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

body.admin-body--dash-home .admin-stat-card {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 -2px 6px rgba(148, 163, 184, 0.14) inset,
    0 4px 0 rgba(203, 213, 225, 0.35),
    0 6px 14px rgba(15, 23, 42, 0.07),
    0 10px 22px var(--stat-glow);
}

.admin-stat-card:hover {
  transform: translateY(-3px);
}

.admin-stat-card--indigo {
  --stat-glow: rgba(99, 102, 241, 0.14);
}

.admin-stat-card--sky {
  --stat-glow: rgba(56, 189, 248, 0.14);
}

.admin-stat-card--amber {
  --stat-glow: rgba(251, 146, 60, 0.16);
}

.admin-stat-card--amber .admin-stat-card__value {
  color: #ea580c;
}

.admin-stat-card__icon {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 22px;
  opacity: 0.45;
  line-height: 1;
}

.admin-stat-card__label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #64748b;
  margin-bottom: 10px;
}

.admin-stat-card__value {
  font-size: 34px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95),
    0 -1px 0 rgba(15, 23, 42, 0.05);
}

.admin-stat-card__sub {
  margin: 12px 0 0;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
}

.admin-dash-trends {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  position: relative;
  z-index: 0;
}

.admin-trend-panel {
  border-radius: 13px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: linear-gradient(
    168deg,
    rgba(255, 255, 255, 0.99) 0%,
    rgba(248, 250, 252, 0.97) 55%,
    rgba(241, 245, 249, 0.96) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 -2px 6px rgba(148, 163, 184, 0.12) inset,
    0 5px 0 rgba(203, 213, 225, 0.35),
    0 10px 24px rgba(15, 23, 42, 0.08);
}

.admin-trend-panel--users {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 -2px 6px rgba(148, 163, 184, 0.12) inset,
    0 5px 0 rgba(203, 213, 225, 0.35),
    0 10px 28px rgba(99, 102, 241, 0.12);
}

.admin-trend-panel--ips {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 -2px 6px rgba(148, 163, 184, 0.12) inset,
    0 5px 0 rgba(203, 213, 225, 0.35),
    0 10px 28px rgba(14, 165, 233, 0.1);
}

.admin-trend-panel--city {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 -2px 6px rgba(148, 163, 184, 0.12) inset,
    0 5px 0 rgba(203, 213, 225, 0.35),
    0 10px 28px rgba(249, 115, 22, 0.1);
}

.admin-trend-panel__head {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  min-height: 40px;
  padding: 11px 18px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.55) 100%);
}

.admin-trend-panel__head-left {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 14px 16px;
  min-width: 0;
  max-width: 58%;
}

.admin-trend-panel__head .dash-period-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  transform: translate(-50%, -50%);
  margin: 0;
}

.admin-trend-panel__title {
  margin: 0;
  flex: 0 0 auto;
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.25;
  white-space: nowrap;
}

.admin-trend-panel__meta {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-trend-meta__num {
  color: #dc2626;
  font-weight: 700;
}

.admin-trend-meta__sep {
  display: inline-block;
  width: 1.1em;
}

.admin-trend-panel__body {
  padding: 4px 12px 12px;
}

.admin-trend-chart {
  display: block;
  width: 100%;
  height: 200px;
  vertical-align: top;
}

.admin-trend-chart__axis {
  stroke: #e2e8f0;
  stroke-width: 1;
}

.admin-trend-chart__grid {
  stroke-dasharray: 4 6;
  stroke-width: 1;
  opacity: 0.9;
}

.admin-trend-chart__line {
  fill: none;
  stroke-width: 2.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.admin-trend-chart__area {
  vector-effect: non-scaling-stroke;
}

.admin-trend-chart__label {
  font-size: 11px;
  fill: #94a3b8;
  font-weight: 500;
}

.admin-trend-chart__ylabel {
  font-size: 11px;
  fill: #94a3b8;
  font-weight: 600;
}

.admin-trend-chart__value {
  font-size: 11px;
  font-weight: 700;
  fill: #dc2626;
}

.admin-trend-chart__value--dense {
  font-size: 9px;
}

.admin-city-bar-chart__bar {
  shape-rendering: geometricPrecision;
}

.admin-city-bar-chart__value {
  font-size: 11px;
  font-weight: 700;
  fill: #dc2626;
}

.admin-city-bar-chart__label {
  font-size: 10px;
  fill: #64748b;
  font-weight: 500;
}

.admin-city-bar-chart__label--tilt {
  font-size: 9px;
}

.admin-city-bar-chart__empty {
  font-size: 13px;
  fill: #94a3b8;
}

/* 概述页：周期切换（小按钮，勿复用 catalog-tab） */
.dash-period-bar {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0;
}

.dash-period-btn {
  padding: 5px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    background 0.15s ease;
}

.dash-period-btn:hover {
  border-color: #a5b4fc;
  color: #4f46e5;
}

.dash-period-btn.is-active {
  border-color: #6366f1;
  color: #fff;
  background: linear-gradient(180deg, #818cf8 0%, #6366f1 48%, #7c3aed 100%);
  box-shadow: 0 1px 4px rgba(99, 102, 241, 0.35);
}

.dash-period-btn.is-active:hover {
  color: #fff;
}

/* —— 内容卡片 / 表格 —— */
.admin-card {
  background: linear-gradient(
    168deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(248, 250, 252, 0.92) 100%
  );
  border-radius: 13px;
  padding: 18px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 6px 20px rgba(15, 23, 42, 0.06);
}

.admin-card h3 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

/* —— 前台页面：分块设置 —— */
.admin-settings-block {
  margin-bottom: 24px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07);
  overflow: hidden;
}

.admin-settings-block--title {
  border-top: 4px solid #6366f1;
}

.admin-settings-block--announce {
  border-top: 4px solid #f59e0b;
}

.admin-settings-block__head {
  padding: 18px 20px 14px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-bottom: 1px solid #e2e8f0;
}

.admin-settings-block--title .admin-settings-block__head {
  background: linear-gradient(180deg, #eef2ff 0%, #fff 70%);
}

.admin-settings-block--announce .admin-settings-block__head {
  background: linear-gradient(180deg, #fffbeb 0%, #fff 70%);
}

.admin-settings-block__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}

.admin-settings-block__desc {
  margin: 6px 0 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
}

.admin-settings-block__body {
  padding: 18px 20px;
}

.admin-settings-block__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 8px;
}

.admin-settings-block__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  max-width: 720px;
}

.admin-settings-block__row .admin-settings-block__input {
  flex: 1 1 200px;
  min-width: 0;
}

.admin-settings-block__row .admin-btn-primary {
  flex-shrink: 0;
}

.admin-settings-block__input {
  display: block;
  width: 100%;
  max-width: 480px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  color: #0f172a;
  box-sizing: border-box;
}

.admin-settings-block__hint {
  margin: 8px 0 0;
}

.admin-settings-block__switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

.admin-settings-block__switch input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.admin-settings-block__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 14px 20px 18px;
  background: #f8fafc;
  border-top: 1px dashed #cbd5e1;
}

.admin-main--frontend-settings .admin-toast {
  margin: 10px 0 0;
}

.admin-card textarea,
textarea.admin-textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 120px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}

.admin-table th,
.admin-table td {
  border: 1px solid #e2e8f0;
  padding: 10px 12px;
  text-align: left;
  color: #334155;
}

.admin-table th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 600;
  font-size: 13px;
}

.admin-table input[type="text"],
.admin-table input[type="number"],
.admin-table input[type="password"] {
  width: 100%;
  min-width: 60px;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-actions button,
.admin-card > button,
.admin-form-row button {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  cursor: pointer;
  font-weight: 500;
}

/* 表格内保存/删除见文末「表格操作按钮」统一样式 */

.admin-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 8px;
  --admin-form-control-h: 38px;
}

.admin-form-row label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.admin-form-row input[type="text"],
.admin-form-row input[type="number"],
.admin-form-row input[type="password"],
.admin-form-row input[type="file"],
.admin-form-row textarea {
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.25;
  min-width: 140px;
}

.admin-form-row input[type="text"],
.admin-form-row input[type="number"],
.admin-form-row input[type="password"] {
  height: var(--admin-form-control-h);
}

.admin-form-row > button {
  align-self: flex-end;
  flex-shrink: 0;
  box-sizing: border-box;
  height: var(--admin-form-control-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 18px;
  font-size: 14px;
  line-height: 1.25;
}

.admin-form-row > .admin-btn-primary {
  border-radius: 8px;
  padding: 0 20px;
}

.admin-form-row textarea {
  width: 100%;
  min-height: 88px;
  resize: vertical;
}

.admin-toast {
  margin-top: 8px;
  font-size: 13px;
  min-height: 1.2em;
  color: #059669;
}

.admin-toast.error {
  color: #dc2626;
}

/* —— 卡片广告页：居中、大字号、统一底（无底栏色块）—— */
.admin-main--catalog {
  background: linear-gradient(180deg, #eef1fb 0%, #f4f6fd 45%, #f8f9fc 100%);
}

.admin-main--catalog .admin-main--dash::before {
  display: none;
}

.catalog-page {
  width: 100%;
}

.catalog-page__title {
  margin: 0 0 20px;
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
}

.admin-main--catalog .hint {
  font-size: 15px;
}

.admin-main--catalog .admin-card--flat {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px 26px;
  margin-bottom: 20px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}

.admin-main--catalog .section-meta-card h3,
.admin-main--catalog .add-link-card h3,
.admin-main--catalog .link-list-block__title {
  font-size: 17px;
}

.admin-main--catalog .section-meta-row input,
.admin-main--catalog .admin-form-row input {
  font-size: 15px;
  padding: 10px 12px;
}

.admin-main--catalog .admin-form-row label {
  font-size: 13px;
}

.admin-main--catalog .admin-btn-primary {
  padding: 11px 24px;
  font-size: 15px;
}

.link-list-block {
  margin-top: 8px;
  padding-top: 8px;
}

.link-list-block__title {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}

.link-list-block__scroll {
  overflow-x: auto;
}

.admin-table--catalog {
  font-size: 15px;
}

.admin-table--catalog th {
  font-size: 14px;
  padding: 12px 14px;
}

.admin-table--catalog td {
  padding: 12px 14px;
}

.admin-table--catalog input {
  font-size: 14px !important;
  padding: 8px 10px !important;
}

/* 顶部分类 Tab + 主按钮 */
.catalog-tab-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 20px;
  padding: 8px 0 12px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.effective-period-block {
  margin-bottom: 0;
}

.catalog-tab-bar--effective {
  margin: 0;
  padding: 4px 0 6px;
}

.effective-period-hint {
  margin: 0 0 8px;
  text-align: center;
  width: 100%;
  line-height: 1.45;
}

.catalog-tab {
  flex: 0 0 auto;
  padding: 11px 53px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  border-bottom-color: #b8c0cc;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  color: #475569;
  font-size: 22.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 2px 0 #e2e8f0,
    0 5px 14px rgba(15, 23, 42, 0.1);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.12s ease;
}

.catalog-tab:hover {
  border-color: #c7d2fe;
  color: #4338ca;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 3px 0 #e2e8f0,
    0 8px 18px rgba(99, 102, 241, 0.15);
}

.catalog-tab:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 2px 4px rgba(15, 23, 42, 0.08),
    0 1px 0 #e2e8f0,
    0 2px 6px rgba(15, 23, 42, 0.08);
}

.catalog-tab--active {
  border-color: #5b21b6;
  border-bottom-color: #4c1d95;
  color: #fff;
  background: linear-gradient(180deg, #818cf8 0%, #6366f1 35%, #7c3aed 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 3px 0 #5b21b6,
    0 8px 20px rgba(99, 102, 241, 0.45);
}

.catalog-tab--active:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 4px 0 #5b21b6,
    0 10px 24px rgba(99, 102, 241, 0.5);
}

.catalog-tab--active:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 6px rgba(49, 46, 129, 0.35),
    0 1px 0 #5b21b6,
    0 4px 12px rgba(99, 102, 241, 0.35);
}

.catalog-tab--muted:not(.catalog-tab--active) {
  opacity: 0.55;
}

.admin-btn-primary {
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.admin-btn-primary:hover {
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.45);
}

.admin-btn-primary:active {
  transform: translateY(1px);
}

.admin-btn-ghost {
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid #fecaca;
  background: #fff;
  color: #b91c1c;
  cursor: pointer;
}

.section-tab-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.section-tab {
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  border-bottom-color: #b8c0cc;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  color: #475569;
  font-size: 16.8px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 2px 0 #e2e8f0,
    0 5px 14px rgba(15, 23, 42, 0.1);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.12s ease;
}

.section-tab:hover {
  border-color: #c7d2fe;
  color: #4338ca;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 3px 0 #e2e8f0,
    0 8px 18px rgba(99, 102, 241, 0.12);
}

.section-tab:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 2px 4px rgba(15, 23, 42, 0.08),
    0 1px 0 #e2e8f0,
    0 2px 6px rgba(15, 23, 42, 0.08);
}

.section-tab--active {
  border-color: #5b21b6;
  border-bottom-color: #4c1d95;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(180deg, #818cf8 0%, #6366f1 40%, #7c3aed 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 3px 0 #5b21b6,
    0 8px 22px rgba(99, 102, 241, 0.48);
}

.section-tab--active:hover {
  color: #fff;
  border-color: #5b21b6;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 4px 0 #5b21b6,
    0 10px 26px rgba(99, 102, 241, 0.52);
}

.section-tab--active:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 6px rgba(49, 46, 129, 0.35),
    0 1px 0 #5b21b6,
    0 4px 14px rgba(99, 102, 241, 0.38);
}

.section-meta-card h3,
.add-link-card h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.section-meta-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.section-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  margin-bottom: 4px;
}

.section-meta-row label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  flex: 0 1 auto;
  min-width: 120px;
}

.section-meta-row input[type="text"],
.section-meta-row input[type="number"] {
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  min-width: 140px;
}

.section-meta-row .meta-check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  font-size: 13px;
  color: #334155;
  min-width: auto;
}

.section-meta-row .btn-save-sec {
  margin-left: auto;
  flex-shrink: 0;
  margin-bottom: 2px;
}

.add-link-form-row {
  align-items: flex-end;
}

.add-link-form-row .btn-add-link {
  margin-left: auto;
  flex-shrink: 0;
  margin-bottom: 2px;
}

.add-link-card {
  margin-top: 0;
}

.add-link-card .admin-form-row {
  margin-top: 0;
}


.catalog-empty {
  padding: 28px 20px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

.layout-tag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.12);
  color: #4338ca;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* —— 后台居中弹窗（替代 alert / confirm）—— */
.admin-dialog {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-dialog[hidden] {
  display: none !important;
}

.admin-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.admin-dialog__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 380px);
  padding: 22px 24px 20px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 24px 48px rgba(15, 23, 42, 0.18);
  animation: admin-dialog-in 0.22s ease;
}

.admin-dialog__panel--wide {
  width: min(100%, 520px);
}

@keyframes admin-dialog-in {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.admin-dialog__title {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
}

.admin-dialog__msg {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.55;
  color: #475569;
  text-align: center;
  word-break: break-word;
}

.admin-dialog__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.admin-pwd-dialog__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 4px;
}

.admin-pwd-dialog__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.admin-pwd-dialog__field input {
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.25;
}

.admin-pwd-dialog__field[hidden] {
  display: none !important;
}

.admin-pwd-dialog__err {
  margin: 0;
  min-height: 0;
}

.admin-form-hint {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.45;
}

.admin-pwd-dialog__hint {
  margin-top: -4px;
}

input.admin-input--invalid {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.35);
}

.admin-form-row select {
  box-sizing: border-box;
  height: var(--admin-form-control-h);
  min-width: 120px;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
}

.user-self-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #5b21b6;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.2), rgba(129, 140, 248, 0.16));
  border-radius: 999px;
  vertical-align: middle;
}

/* —— 用户管理：普通用户「我的账号」 —— */
.user-account-card__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.user-account-card__profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-account-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #6366f1 0%, #8b5cf6 55%, #a855f7 100%);
  box-shadow:
    0 8px 20px rgba(99, 102, 241, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.user-account-card__name {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.02em;
}

.user-account-card__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.user-account-card__pwd {
  min-width: 132px;
  padding: 11px 28px;
  border-radius: 12px;
}

.user-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.user-role-badge--admin {
  color: #5b21b6;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.22), rgba(99, 102, 241, 0.12));
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.2);
}

.user-role-badge--user {
  color: #0369a1;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(14, 165, 233, 0.1));
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.22);
}

/* —— 用户管理：管理员列表 —— */
.admin-table--users th.admin-col-pwd,
.admin-table--users td.admin-col-pwd {
  min-width: 124px;
  width: 124px;
  text-align: center;
  white-space: nowrap;
}

.admin-table--users th.admin-col-del,
.admin-table--users td.admin-col-del {
  min-width: 96px;
  width: 96px;
  text-align: center;
}

.admin-table--users .users-col-id {
  width: 72px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #64748b;
}

.admin-table--users .users-col-name {
  font-weight: 600;
  color: #0f172a;
}

.admin-table--visitors .visitors-col-id {
  min-width: 17.5rem;
  width: 17.5rem;
  max-width: 20rem;
  font-family: ui-monospace, Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.45;
  word-break: break-all;
  white-space: normal;
  vertical-align: top;
  color: #334155;
}

.admin-dialog__actions .admin-btn-primary,
.admin-dialog__actions .admin-btn-ghost {
  min-width: 100px;
}

.icon-pick-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.icon-pick {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-pick__thumb {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-pick--row .icon-pick__thumb {
  width: 40px;
  height: 40px;
}

.icon-pick--popup .icon-pick__thumb {
  width: 52px;
  height: 78px;
}

.icon-pick--banner .icon-pick__thumb {
  width: 88px;
  height: 44px;
}

.icon-pick--row.icon-pick--popup .icon-pick__thumb {
  width: 52px;
  height: 78px;
}

.icon-pick--row.icon-pick--banner .icon-pick__thumb {
  width: 88px;
  height: 44px;
}

.icon-pick--popup .icon-pick__thumb img,
.icon-pick--banner .icon-pick__thumb img {
  object-fit: contain;
  background: #f8fafc;
}

.icon-pick__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-table td.cell-image-pick {
  min-width: 180px;
  vertical-align: middle;
}

.icon-pick__thumb img[hidden] {
  display: none !important;
}

.icon-pick__placeholder {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  opacity: 0.65;
}

.icon-pick__placeholder[hidden] {
  display: none !important;
}

.icon-pick__file {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.icon-pick__btn {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.icon-pick__btn:hover {
  border-color: #a5b4fc;
  color: #4338ca;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.12);
}

/* 表单行内选图：与输入框同高底对齐（列表行仍用大预览） */
.admin-form-row .icon-pick-field {
  gap: 4px;
  font-weight: 500;
}

.admin-form-row .icon-pick:not(.icon-pick--row) {
  height: var(--admin-form-control-h);
}

.admin-form-row .icon-pick:not(.icon-pick--row) .icon-pick__btn {
  box-sizing: border-box;
  height: var(--admin-form-control-h);
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-form-row .icon-pick:not(.icon-pick--row):not(.icon-pick--popup):not(.icon-pick--banner) .icon-pick__thumb {
  width: var(--admin-form-control-h);
  height: var(--admin-form-control-h);
}

.admin-form-row .icon-pick--popup:not(.icon-pick--row) .icon-pick__thumb {
  height: var(--admin-form-control-h);
  width: 28px;
}

.admin-form-row .icon-pick--banner:not(.icon-pick--row) .icon-pick__thumb {
  height: var(--admin-form-control-h);
  width: calc(var(--admin-form-control-h) * 2.05);
}

.admin-main--catalog .admin-form-row {
  --admin-form-control-h: 42px;
}

.admin-table td.cell-icon {
  min-width: 150px;
  vertical-align: middle;
}

.admin-table th.link-col-drag,
.admin-table td.link-col-drag {
  width: 72px;
  text-align: center;
  vertical-align: middle;
}

.link-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 32px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -2px;
  color: #94a3b8;
  border-radius: 8px;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}

.link-drag-handle:hover {
  color: #6366f1;
  background: rgba(99, 102, 241, 0.08);
}

.link-drag-handle:active {
  cursor: grabbing;
}

tr.link-row--dragging {
  opacity: 0.88;
  background: #f8fafc;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

body.link-drag-active {
  user-select: none;
  cursor: grabbing;
}

.link-tbody--saving {
  opacity: 0.72;
  pointer-events: none;
}

.admin-table td.link-sort-num {
  width: 52px;
  text-align: center;
  font-weight: 600;
  color: #4338ca;
  font-variant-numeric: tabular-nums;
}

.admin-table th.admin-col-act,
.admin-table td.admin-col-act {
  min-width: 92px;
  width: 92px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

/* —— 表格操作按钮（弹窗 / 轮播 / 卡片广告 / 分类 / 用户管理等全站统一） —— */
.admin-table .btn-save,
.admin-table .btn-danger,
.admin-table .admin-btn-table {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.admin-table .btn-save:active:not(:disabled),
.admin-table .btn-danger:active:not(:disabled),
.admin-table .admin-btn-table:active:not(:disabled) {
  transform: translateY(1px);
}

.admin-table .btn-save:disabled,
.admin-table .btn-danger:disabled,
.admin-table .admin-btn-table:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.admin-table .btn-save,
.admin-table .admin-btn-table--save,
.admin-table .admin-btn-table--pwd {
  color: #4338ca;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(139, 92, 246, 0.12));
  box-shadow:
    inset 0 0 0 1px rgba(99, 102, 241, 0.28),
    0 2px 6px rgba(99, 102, 241, 0.08);
}

.admin-table .btn-save:hover:not(:disabled),
.admin-table .admin-btn-table--save:hover:not(:disabled),
.admin-table .admin-btn-table--pwd:hover:not(:disabled) {
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.38);
}

.admin-table .btn-danger,
.admin-table .admin-btn-table--del {
  color: #b91c1c;
  background: linear-gradient(135deg, rgba(254, 226, 226, 0.95), rgba(254, 242, 242, 0.9));
  box-shadow:
    inset 0 0 0 1px rgba(248, 113, 113, 0.35),
    0 2px 6px rgba(239, 68, 68, 0.06);
}

.admin-table .btn-danger:hover:not(:disabled),
.admin-table .admin-btn-table--del:hover:not(:disabled) {
  color: #fff;
  background: linear-gradient(135deg, #f87171, #ef4444);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.32);
}

.domain-cert-email-fixed {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.domain-cert-email-value {
  display: inline-flex;
  align-items: center;
  min-height: var(--admin-form-control-h, 38px);
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  min-width: 220px;
  box-sizing: border-box;
}

.domain-role-tabs {
  margin-bottom: 16px;
}

/* 域名管理：四按钮统一为 catalog 风格（对齐 videoadmin 短域名工具条） */
.domain-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 0 0 8px;
}

.domain-action-btn {
  flex: 0 0 auto;
  min-width: 132px;
  padding: 11px 28px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  border-bottom-color: #b8c0cc;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  color: #475569;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 2px 0 #e2e8f0,
    0 5px 14px rgba(15, 23, 42, 0.1);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.12s ease;
}

.domain-action-btn:hover:not(:disabled) {
  border-color: #c7d2fe;
  color: #4338ca;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 3px 0 #e2e8f0,
    0 8px 18px rgba(99, 102, 241, 0.15);
}

.domain-action-btn:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow:
    inset 0 2px 4px rgba(15, 23, 42, 0.08),
    0 1px 0 #e2e8f0,
    0 2px 6px rgba(15, 23, 42, 0.08);
}

.domain-action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.domain-toolbar-toast {
  margin: 0 0 16px;
  min-height: 0;
}

.admin-main--domains .admin-card {
  margin-top: 0;
}

.domain-batch-text {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.5;
  font-family: ui-monospace, Consolas, monospace;
  resize: vertical;
}

.domain-batch-text--dialog {
  min-height: 200px;
  margin: 12px 0 8px;
}

.domain-batch-dialog__hint {
  margin: 4px 0 0;
  font-size: 13px;
}

.admin-table--domains .domain-host-cell {
  font-weight: 600;
  color: #0f172a;
  word-break: break-all;
}

.domain-ssl {
  display: inline-flex;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
}

.domain-ssl--none {
  color: #64748b;
  background: #f1f5f9;
}

.domain-ssl--pending {
  color: #b45309;
  background: #fef3c7;
}

.domain-ssl--ok {
  color: #047857;
  background: #d1fae5;
}

.domain-ssl--fail {
  color: #b91c1c;
  background: #fee2e2;
  cursor: help;
}

@media (max-width: 640px) {
  .admin-layout {
    flex-direction: column;
  }
  .admin-side {
    width: 100%;
  }
  .admin-menu {
    display: block;
    padding: 0 4px 8px;
  }
  .admin-menu > .admin-menu__link,
  .admin-menu__toggle {
    width: calc(100% - 12px);
  }
  .admin-main {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-stat-card {
    transition: none;
  }
  .admin-stat-card:hover {
    transform: none;
  }
}