:root {
  --bg: #0B1220;
  --panel: rgba(15, 23, 42, .88);
  --panel-2: rgba(17, 24, 39, .84);
  --line: rgba(148, 163, 184, .16);
  --muted: #94a3b8;
  --text: #e5e7eb;
  --blue: #3B82F6;
  --blue-2: #60A5FA;
  --cyan: #06B6D4;
  --green: #10B981;
  --amber: #F59E0B;
  --red: #EF4444;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(59,130,246,.18), transparent 32%),
    radial-gradient(circle at 80% 20%, rgba(6,182,212,.14), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 288px;
  background: rgba(2, 6, 23, .74);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px);
  padding: 18px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}
.brand { display: flex; gap: 12px; align-items: center; padding: 8px 8px 20px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: white; font-weight: 800;
  box-shadow: 0 20px 44px rgba(59,130,246,.34);
}
.brand strong { display: block; font-size: 17px; }
.brand span { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.nav-section { margin: 8px 0; }
.nav-section-title {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #94a3b8;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px 0 12px;
  cursor: pointer;
  text-align: left;
}
.nav-section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.nav-section-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  color: #93c5fd;
  background: rgba(59,130,246,.12);
  border: 1px solid rgba(96,165,250,.18);
  font-size: 14px;
  font-weight: 800;
  flex: 0 0 auto;
}
.nav-section-title:hover,
.nav-section.open > .nav-section-title {
  background: rgba(59,130,246,.10);
  color: #e5e7eb;
}
.nav-section.active > .nav-section-title {
  color: white;
}
.nav-section.active .nav-section-icon,
.nav-section.open .nav-section-icon {
  color: #ecfeff;
  background: linear-gradient(135deg, rgba(59,130,246,.42), rgba(6,182,212,.24));
  border-color: rgba(96,165,250,.38);
}
.nav-section-title i {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .18s ease;
  opacity: .78;
  flex: 0 0 auto;
}
.nav-section.open > .nav-section-title i {
  transform: rotate(45deg);
}
.nav-section-items {
  display: none;
  padding: 5px 0 8px 10px;
}
.nav-section.open > .nav-section-items {
  display: block;
}
.nav-item {
  display: flex; align-items: center;
  min-height: 36px; padding: 0 12px;
  border-radius: 10px;
  color: #cbd5e1;
  font-size: 14px;
  margin: 3px 0;
}
.nav-item:hover { background: rgba(59,130,246,.12); color: white; }
.nav-item.active {
  background: linear-gradient(135deg, rgba(59,130,246,.24), rgba(6,182,212,.14));
  color: white;
  border: 1px solid rgba(96,165,250,.26);
}
.main { flex: 1; min-width: 0; }
.topbar {
  height: 72px;
  display: flex; align-items: center; gap: 18px;
  padding: 0 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(11,18,32,.72);
  backdrop-filter: blur(18px);
  position: sticky; top: 0; z-index: 10;
}
.icon-button {
  border: 1px solid var(--line);
  background: rgba(15,23,42,.88);
  color: white;
  width: 38px; height: 38px;
  border-radius: 10px;
  cursor: pointer;
}
.topbar-title { flex: 1; }
.topbar-title strong { display: block; font-size: 18px; }
.topbar-title span { color: var(--muted); font-size: 12px; }
.topbar-actions { display: flex; gap: 10px; align-items: center; }
.status-pill, .user-chip, .risk-pill {
  border: 1px solid var(--line);
  background: rgba(15,23,42,.76);
  color: #cbd5e1;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 12px;
}
a.user-chip { text-decoration: none; transition: border-color .2s ease, color .2s ease; }
a.user-chip:hover, a.user-chip.active { color: #dbeafe; border-color: rgba(96,165,250,.52); }
.risk-pill { color: #fecaca; border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.12); }
.content { padding: 26px; }
.hero-panel {
  display: flex; justify-content: space-between; gap: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(15,23,42,.95), rgba(17,24,39,.72));
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(2,6,23,.28);
}
.eyebrow { color: var(--cyan); text-transform: uppercase; font-size: 12px; margin: 0 0 10px; letter-spacing: .08em; }
.hero-panel h1 { font-size: 34px; margin: 0 0 10px; letter-spacing: 0; }
.hero-panel p { color: var(--muted); margin: 0; max-width: 680px; line-height: 1.7; }
.hero-summary { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; justify-content: flex-end; }
.hero-summary span {
  border: 1px solid rgba(96,165,250,.22);
  background: rgba(59,130,246,.12);
  color: #bfdbfe;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.report-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}
.metric-grid.single-column {
  grid-template-columns: 1fr;
  margin-top: 0;
}
.metric-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 16px;
  padding: 18px;
}
.metric-card span { display: block; color: var(--muted); font-size: 13px; }
.metric-card strong { display: block; font-size: 26px; margin: 10px 0 8px; letter-spacing: 0; }
.metric-card em { font-style: normal; font-size: 12px; color: #cbd5e1; }
.metric-card.blue strong { color: var(--blue-2); }
.metric-card.green strong { color: var(--green); }
.metric-card.amber strong { color: var(--amber); }
.metric-card.red strong { color: var(--red); }
.metric-card.cyan strong { color: var(--cyan); }
.metric-card.purple strong { color: #a78bfa; }
.standalone-metric { min-height: 148px; display: flex; flex-direction: column; justify-content: center; }
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.panel {
  border: 1px solid var(--line);
  background: var(--panel-2);
  border-radius: 16px;
  padding: 18px;
  min-height: 260px;
  overflow-x: auto;
}
.span-2 { grid-column: span 2; }
.panel-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 12px; }
.panel h2 { margin: 0 0 4px; font-size: 17px; }
.panel p { margin: 0; color: var(--muted); font-size: 12px; }
.chart { height: 320px; }
.chart.small { height: 220px; }
.rank-list, .insight-list { display: grid; gap: 10px; }
.rank-row {
  display: grid; grid-template-columns: 28px 1fr auto auto;
  gap: 10px; align-items: center;
  padding: 12px;
  border: 1px solid rgba(148,163,184,.12);
  border-radius: 12px;
  background: rgba(15,23,42,.62);
}
.rank-row b { color: var(--cyan); }
.rank-row span { color: #e5e7eb; }
.rank-row strong { color: var(--green); }
.rank-row em { color: var(--muted); font-style: normal; }
.rank-row.action-row {
  grid-template-columns: 28px 1fr auto 42px;
}
.rank-row.action-row span em {
  display: block;
  margin-top: 3px;
  font-size: 12px;
}
.insight {
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.14);
  background: rgba(15,23,42,.62);
}
.insight strong { display: block; margin-bottom: 6px; }
.insight span { color: var(--muted); font-size: 13px; line-height: 1.6; }
.insight p { margin: 8px 0 0; color: #cbd5e1; line-height: 1.6; }
.insight-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.insight.high { border-color: rgba(239,68,68,.32); }
.insight.critical { border-color: rgba(239,68,68,.5); background: rgba(127,29,29,.16); }
.insight.medium { border-color: rgba(245,158,11,.32); }
.insight.low { border-color: rgba(16,185,129,.24); }
.ai-filter-row { margin-bottom: 12px; }
.ghost-btn.active-filter {
  border-color: rgba(96,165,250,.48);
  background: rgba(59,130,246,.24);
  color: white;
}
.report-content {
  white-space: pre-wrap;
  border: 1px solid rgba(148,163,184,.14);
  background: rgba(2,6,23,.36);
  border-radius: 12px;
  padding: 12px;
  color: #d1d5db;
  max-height: 360px;
  overflow: auto;
}
.empty-state {
  min-height: 520px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}
.empty-mark {
  width: 70px; height: 70px; margin: 0 auto 16px;
  display: grid; place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-weight: 800;
}
.empty-state p { color: var(--muted); }
.logout-link {
  color: #bfdbfe;
  font-size: 13px;
  border: 1px solid rgba(96,165,250,.24);
  padding: 8px 12px;
  border-radius: 999px;
}
.page-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 16px;
}
.form-stack { display: grid; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
input, textarea, select {
  width: 100%;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(2,6,23,.42);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 13px;
  outline: none;
}
textarea { min-height: 88px; resize: vertical; }
input:focus, textarea:focus, select:focus {
  border-color: rgba(96,165,250,.55);
  box-shadow: 0 0 0 3px rgba(59,130,246,.16);
}
.primary-btn {
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: white;
  min-height: 42px;
  padding: 0 16px;
  font-weight: 700;
  cursor: pointer;
}
.primary-btn:disabled { opacity: .46; cursor: not-allowed; }
.alert {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 12px;
}
.alert.warn {
  color: #fde68a;
  background: rgba(245,158,11,.12);
  border: 1px solid rgba(245,158,11,.25);
}
.alert.error {
  color: #fecaca;
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.25);
}
.alert.success {
  color: #bbf7d0;
  background: rgba(16,185,129,.12);
  border: 1px solid rgba(16,185,129,.25);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th {
  color: #cbd5e1;
  background: rgba(15,23,42,.68);
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.data-table td {
  color: #d1d5db;
  padding: 12px;
  border-bottom: 1px solid rgba(148,163,184,.1);
}
.data-table tr:hover td { background: rgba(59,130,246,.06); }
.data-table input[type="checkbox"] { width: auto; }
.table-toolbar { justify-content: flex-end; margin: 4px 0 10px; }
.table-toolbar input {
  min-height: 36px;
  width: min(280px, 100%);
  padding: 8px 10px;
  border-radius: 10px;
}
.table-action {
  border: 1px solid rgba(96,165,250,.28);
  background: rgba(59,130,246,.12);
  color: #bfdbfe;
  border-radius: 10px;
  padding: 7px 10px;
  cursor: pointer;
}
.table-action:hover { background: rgba(59,130,246,.22); color: white; }
.table-thumb {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  background: rgba(15,23,42,.82);
  border: 1px solid rgba(148,163,184,.16);
  color: var(--muted);
  font-size: 12px;
}
.table-product-title {
  max-width: 220px;
  margin-top: 8px;
  color: #e5e7eb;
  font-size: 12px;
  line-height: 1.45;
  word-break: break-word;
}
.muted { color: var(--muted); font-size: 12px; }
.text-success { color: var(--green); }
.text-danger { color: var(--red); }
.mini-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  margin: 2px 4px 2px 0;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(15,23,42,.72);
  color: #cbd5e1;
  font-size: 12px;
  white-space: nowrap;
}
.mini-pill.warn, .status-pill.warn {
  color: #fde68a;
  border-color: rgba(245,158,11,.28);
  background: rgba(245,158,11,.12);
}
.mini-pill.danger, .ghost-btn.danger {
  color: #fecaca;
  border-color: rgba(239,68,68,.32);
  background: rgba(239,68,68,.12);
}
.mini-pill.info, .status-badge.info {
  color: #bfdbfe;
  border-color: rgba(96,165,250,.32);
  background: rgba(59,130,246,.14);
}
.mini-pill.purple, .status-badge.purple {
  color: #ddd6fe;
  border-color: rgba(167,139,250,.34);
  background: rgba(124,58,237,.14);
}
.mini-pill.neutral, .status-badge.neutral {
  color: #cbd5e1;
  border-color: rgba(148,163,184,.2);
  background: rgba(15,23,42,.72);
}
.status-badge { font-weight: 600; }
.inline-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 8px;
  align-items: center;
  min-width: 640px;
}
.inline-form.shop-assign-form {
  grid-template-columns: minmax(130px, 180px) minmax(180px, 260px) auto;
  min-width: 460px;
  align-items: stretch;
}
.inline-form.shop-edit-form {
  grid-template-columns: repeat(5, minmax(120px, 1fr)) auto;
  min-width: 760px;
  margin-bottom: 8px;
}
.inline-form.company-edit-form {
  grid-template-columns: repeat(4, minmax(120px, 1fr)) auto;
  min-width: 760px;
}
.inline-form.user-edit-form {
  grid-template-columns: repeat(5, minmax(120px, 1fr)) auto;
  min-width: 780px;
}
.inline-form.team-edit-form {
  grid-template-columns: minmax(140px, 1fr) minmax(180px, 1.4fr) 90px auto;
  min-width: 520px;
}
.inline-form.refund-form {
  grid-template-columns: minmax(120px, 160px) minmax(180px, 1fr) auto;
  min-width: 420px;
}
.inline-form.account-adjust-form {
  grid-template-columns: minmax(110px, 140px) minmax(100px, 130px) minmax(160px, 1fr) auto;
  min-width: 520px;
}
.shop-assign-form select[multiple] {
  min-height: 98px;
}
.button-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.filter-bar {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(4, minmax(120px, 1fr)) auto auto auto;
  gap: 8px;
  align-items: center;
  margin: 12px 0 16px;
}
.filter-bar input,
.filter-bar select {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 10px;
}
.filter-bar.sync-filter-bar {
  grid-template-columns: minmax(220px, 1.4fr) minmax(120px, .7fr) minmax(120px, .7fr) auto auto;
}
.filter-bar.audit-filter-bar {
  grid-template-columns: minmax(180px, 1.2fr) minmax(150px, .9fr) minmax(160px, 1fr) minmax(120px, .8fr) 130px 130px auto auto;
}
.sync-detail {
  border: 1px solid rgba(96,165,250,.22);
  background: rgba(59,130,246,.1);
  border-radius: 12px;
  padding: 12px;
  margin: 10px 0 14px;
}
.sync-detail strong,
.sync-detail span {
  display: block;
}
.sync-detail span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.sync-detail p {
  margin-top: 8px;
  color: #cbd5e1;
  white-space: pre-wrap;
}
.audit-detail pre {
  margin: 10px 0 0;
  white-space: pre-wrap;
  color: #d1d5db;
  background: rgba(2,6,23,.34);
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 10px;
  padding: 10px;
  max-height: 320px;
  overflow: auto;
}
.pager {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}
.role-list { display: grid; gap: 8px; }
.role-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,.14);
  background: rgba(15,23,42,.56);
}
.role-item.active {
  border-color: rgba(96,165,250,.38);
  background: rgba(59,130,246,.14);
}
.role-item strong { font-size: 14px; }
.role-item span { color: var(--muted); font-size: 12px; }
.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.permission-group {
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 12px;
  background: rgba(15,23,42,.48);
  padding: 12px;
}
.permission-group h3 {
  margin: 0 0 10px;
  font-size: 14px;
  color: #bfdbfe;
}
.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-top: 1px solid rgba(148,163,184,.08);
}
.check-row:first-of-type { border-top: 0; }
.check-row input { width: auto; margin-top: 2px; }
.check-row span { display: grid; gap: 3px; }
.check-row strong { font-size: 13px; }
.check-row em { color: var(--muted); font-style: normal; font-size: 12px; }
.inline-form input,
.inline-form select {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 10px;
}
.ghost-btn {
  min-height: 36px;
  border: 1px solid rgba(96,165,250,.28);
  background: rgba(59,130,246,.12);
  color: #bfdbfe;
  border-radius: 10px;
  padding: 0 12px;
  cursor: pointer;
  white-space: nowrap;
}
.ghost-btn:hover { background: rgba(59,130,246,.22); color: white; }
.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.mini-card {
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 12px;
  background: rgba(15,23,42,.42);
  padding: 14px;
  display: grid;
  gap: 6px;
}
.mini-card span {
  color: var(--muted);
  font-size: 12px;
}
.mini-card strong {
  color: #e5e7eb;
  font-size: 13px;
  word-break: break-word;
}
.mini-pill.good {
  background: rgba(16,185,129,.14);
  color: #86efac;
  border-color: rgba(16,185,129,.28);
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.profile-summary { margin-top: 16px; }
.detail-block {
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 12px;
  background: rgba(15,23,42,.42);
  padding: 14px;
  display: grid;
  gap: 6px;
}
.detail-block span {
  color: var(--muted);
  font-size: 12px;
}
.detail-block strong {
  color: #f8fafc;
  font-size: 16px;
  word-break: break-word;
}
.compact-table th {
  width: 118px;
  color: var(--muted);
  font-weight: 500;
}
.soft-separator {
  border: 0;
  border-top: 1px solid rgba(148,163,184,.14);
  margin: 16px 0;
}
.login-wrap {
  min-height: calc(100vh - 124px);
  display: grid;
  place-items: center;
}
.login-card {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  background: rgba(15,23,42,.86);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 30px 90px rgba(2,6,23,.35);
}
.brand-mark.large {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  margin-bottom: 18px;
}
.login-card h1 { margin: 0 0 8px; }
.login-card p { margin: 0 0 20px; color: var(--muted); }
.login-card label { display: grid; gap: 7px; margin-bottom: 14px; color: #cbd5e1; font-size: 13px; }
.install-card { width: min(520px, 100%); }
.install-link { display: inline-block; margin-top: 14px; color: #bfdbfe; }
.sidebar-collapsed .sidebar { width: 92px; }
.sidebar-collapsed .brand span,
.sidebar-collapsed .brand strong,
.sidebar-collapsed .nav-section-title,
.sidebar-collapsed .nav-item span { display: none; }
.sidebar-collapsed .nav { display: none; }
.sidebar-collapsed .nav-item { justify-content: center; }
@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .page-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .sidebar { display: none; }
  .content { padding: 16px; }
  .hero-panel { display: block; }
  .hero-summary { justify-content: flex-start; margin-top: 18px; }
  .metric-grid { grid-template-columns: 1fr; }
  .mini-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .topbar-actions { display: none; }
}

/* 参考摇光的浅色运营后台主题 */
:root {
  --bg: #eef5ff;
  --panel: rgba(255, 255, 255, .94);
  --panel-2: rgba(255, 255, 255, .9);
  --line: rgba(37, 99, 235, .14);
  --muted: #64748b;
  --text: #102033;
  --blue: #2563eb;
  --blue-2: #1d4ed8;
  --cyan: #0891b2;
  --green: #059669;
  --amber: #d97706;
  --red: #dc2626;
}

body {
  background:
    linear-gradient(135deg, rgba(239, 246, 255, .96), rgba(248, 250, 252, .92)),
    var(--bg);
  color: var(--text);
}

.sidebar {
  background: linear-gradient(180deg, #122341 0%, #173a68 100%);
  border-right-color: rgba(255, 255, 255, .22);
  box-shadow: 18px 0 44px rgba(15, 23, 42, .08);
}
.brand strong,
.nav-section.active > .nav-section-title,
.nav-item.active,
.nav-item:hover {
  color: #fff;
}
.brand span,
.nav-section-title,
.nav-item {
  color: rgba(226, 232, 240, .82);
}
.nav-section-icon {
  color: #dbeafe;
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .18);
}
.nav-section-title:hover,
.nav-section.open > .nav-section-title,
.nav-item:hover {
  background: rgba(255, 255, 255, .1);
}
.nav-item.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, .72), rgba(8, 145, 178, .48));
  border-color: rgba(255, 255, 255, .28);
}

.topbar {
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}
.icon-button,
.status-pill,
.user-chip,
.risk-pill,
.logout-link {
  background: rgba(255, 255, 255, .78);
  color: #334155;
}
a.user-chip:hover,
a.user-chip.active {
  color: var(--blue);
}
.risk-pill {
  color: #b91c1c;
  background: #fff1f2;
}

.hero-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(239, 246, 255, .9));
  box-shadow: 0 20px 55px rgba(37, 99, 235, .1);
}
.hero-panel p,
.panel p,
.metric-card span,
.rank-row em,
.insight span,
.muted,
.mini-card span,
.detail-block span,
.pager,
.role-item span,
.check-row em {
  color: var(--muted);
}
.hero-summary span {
  background: #eff6ff;
  color: #1d4ed8;
}

.metric-card,
.panel,
.empty-state,
.login-card,
.mini-card,
.detail-block,
.permission-group,
.role-item,
.insight,
.rank-row,
.report-content,
.sync-detail,
.audit-detail pre {
  background: rgba(255, 255, 255, .86);
  border-color: rgba(37, 99, 235, .13);
  box-shadow: 0 12px 32px rgba(15, 23, 42, .04);
}
.metric-card em,
.rank-row span,
.mini-card strong,
.detail-block strong,
.insight p,
.data-table td,
.table-product-title {
  color: #1e293b;
}

input,
textarea,
select {
  background: rgba(255, 255, 255, .92);
  border-color: rgba(37, 99, 235, .18);
  color: #0f172a;
}
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(37, 99, 235, .5);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.data-table th {
  background: #f1f5f9;
  color: #475569;
}
.data-table td {
  border-bottom-color: rgba(37, 99, 235, .08);
}
.data-table tr:hover td {
  background: #eff6ff;
}

.ghost-btn,
.table-action {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, .18);
}
.ghost-btn:hover,
.ghost-btn.active,
.ghost-btn.active-filter,
.table-action:hover {
  background: #dbeafe;
  color: #1e40af;
}
.mini-pill,
.status-badge.neutral,
.mini-pill.neutral {
  background: #f8fafc;
  color: #475569;
}
.mini-pill,
.status-badge {
  font-weight: 800;
  border-width: 1px;
}
.mini-pill.info,
.status-badge.info {
  color: #075985;
  background: #e0f2fe;
  border-color: rgba(2, 132, 199, .28);
}
.mini-pill.purple,
.status-badge.purple {
  color: #5b21b6;
  background: #ede9fe;
  border-color: rgba(124, 58, 237, .34);
}
.table-thumb {
  background: #f8fafc;
  color: #64748b;
}
.alert.warn,
.mini-pill.warn,
.status-pill.warn {
  color: #92400e;
  background: #fffbeb;
}
.alert.error,
.mini-pill.danger,
.ghost-btn.danger {
  color: #b91c1c;
  background: #fff1f2;
}
.alert.success,
.mini-pill.good {
  color: #047857;
  background: #ecfdf5;
}

/* 更贴近摇光首页的明亮层次 */
body {
  background:
    linear-gradient(90deg, #eef9ff 0%, #f8fcff 24%, #e7fbf8 100%);
}
.app-shell {
  background:
    linear-gradient(90deg, rgba(207, 245, 255, .68), rgba(255, 255, 255, .82) 18%, rgba(198, 242, 233, .58) 100%);
}
.sidebar {
  background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(238, 250, 255, .9));
  border-right-color: rgba(14, 165, 233, .16);
  box-shadow: 18px 0 54px rgba(14, 165, 233, .12);
}
.brand strong {
  color: #13233a;
}
.brand span,
.nav-section-title,
.nav-item {
  color: #52677f;
}
.nav-section-icon {
  color: #0284c7;
  background: #e0f7ff;
  border-color: rgba(14, 165, 233, .18);
}
.nav-section-title:hover,
.nav-section.open > .nav-section-title,
.nav-item:hover {
  background: linear-gradient(135deg, rgba(224, 247, 255, .8), rgba(218, 251, 244, .72));
  color: #0f172a;
}
.nav-section.active > .nav-section-title {
  color: #0f172a;
}
.nav-section.active .nav-section-icon,
.nav-section.open .nav-section-icon {
  color: white;
  background: linear-gradient(135deg, #0ea5e9, #14b8a6);
  border-color: transparent;
}
.nav-item.active {
  color: #0f172a;
  background: linear-gradient(135deg, rgba(186, 240, 255, .9), rgba(204, 251, 241, .88));
  border-color: rgba(14, 165, 233, .26);
  box-shadow: inset 3px 0 0 #0ea5e9;
}
.nav-item.active:hover {
  color: #0f172a;
}
.main {
  background:
    linear-gradient(180deg, rgba(207, 245, 255, .58), rgba(240, 253, 250, .42) 42%, rgba(248, 250, 252, .78));
}
.topbar {
  height: 76px;
  background: rgba(255, 255, 255, .9);
  border-bottom-color: rgba(14, 165, 233, .12);
}
.content {
  padding: 22px 28px 30px;
}
.hero-panel,
.filter-bar,
.metric-card,
.panel,
.mini-card,
.detail-block,
.empty-state,
.login-card,
.permission-group,
.role-item,
.insight,
.rank-row {
  border-color: rgba(14, 165, 233, .14);
}
.filter-bar {
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(14, 165, 233, .13);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 16px 38px rgba(14, 165, 233, .07);
}
.command-hero {
  min-height: 288px;
  align-items: stretch;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .97) 0%, rgba(246, 253, 255, .94) 54%, rgba(221, 248, 244, .92) 100%);
  border-radius: 20px;
  box-shadow: 0 22px 60px rgba(14, 165, 233, .11);
  position: relative;
  overflow: hidden;
}
.command-hero::after {
  content: "";
  position: absolute;
  inset: auto 14% -42% auto;
  width: 44%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(224, 247, 250, .75);
  pointer-events: none;
}
.command-main,
.command-risk-card {
  position: relative;
  z-index: 1;
}
.command-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.hero-kicker {
  display: inline-block;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}
.command-hero h1 {
  color: #059669;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1;
  margin: 0 0 18px;
}
.command-note {
  max-width: 980px;
  margin-top: 18px !important;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(224, 247, 255, .9), rgba(220, 252, 231, .72));
  color: #164e63 !important;
  font-weight: 700;
}
.command-risk-card {
  width: min(360px, 100%);
  align-self: center;
  border: 1px solid rgba(14, 165, 233, .14);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 18px 45px rgba(14, 165, 233, .08);
}
.risk-head,
.risk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.risk-head strong {
  font-size: 18px;
}
.risk-head span,
.risk-row span {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}
.risk-head .good,
.risk-row span {
  color: #059669;
  background: #d1fae5;
}
.risk-head .warn {
  color: #d97706;
  background: #fef3c7;
}
.risk-head .danger {
  color: #dc2626;
  background: #fee2e2;
}
.risk-score {
  color: #0284c7;
  font-size: 42px;
  font-weight: 900;
  margin: 16px 0 10px;
}
.risk-score small {
  display: inline-block;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  margin-left: 8px;
}
.risk-row {
  padding: 11px 0;
  border-top: 1px solid rgba(14, 165, 233, .1);
}
.risk-row b {
  color: #334155;
  font-size: 13px;
}
.metric-card {
  min-height: 118px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.metric-card::after {
  content: "";
  position: absolute;
  top: -42px;
  right: -34px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: rgba(14, 165, 233, .08);
}
.metric-card strong {
  font-size: 28px;
}
.dashboard-grid {
  gap: 18px;
}
.panel {
  border-radius: 18px;
  box-shadow: 0 16px 42px rgba(14, 165, 233, .07);
}
.panel h2 {
  color: #172033;
}
.chart {
  background: rgba(255, 255, 255, .22);
  border-radius: 12px;
}
.primary-btn {
  background: linear-gradient(135deg, #0284c7, #14b8a6);
  box-shadow: 0 10px 22px rgba(14, 165, 233, .18);
}
.ghost-btn,
.table-action {
  background: #f0f9ff;
  color: #0369a1;
}
.ghost-btn:hover,
.ghost-btn.active,
.ghost-btn.active-filter,
.table-action:hover {
  background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
  color: #075985;
}
.data-table .mini-pill,
.data-table .status-badge {
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9), 0 4px 12px rgba(15, 23, 42, .04);
}

@media (max-width: 1180px) {
  .command-hero {
    display: grid;
  }
  .command-risk-card {
    width: 100%;
  }
}
