/* ============================================================
   小老虎集团江西公司 · 销售业绩可视化系统
   视觉系统 v2：深空蓝调 / 玻璃层次 / 品牌金
   ============================================================ */

:root {
  --accent: #4f8dff;
  --accent-rgb: 79, 141, 255;
  --cyan: #3ad9f2;
  --gold: #f2c66d;
  --silver: #c8d4e6;
  --bronze: #d79a6b;
  --bg: #04070f;
  --bg-soft: #070d1a;
  --text: #eef4ff;
  --muted: #8a9cbc;
  --line: rgba(150, 178, 230, 0.12);
  --line-soft: rgba(150, 178, 230, 0.07);
  --radius: 20px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "Bahnschrift", "DIN Alternate", "Segoe UI", "PingFang SC", sans-serif;
  --shadow-sm: 0 20px 45px -30px rgba(0, 0, 0, 0.9);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font-family: inherit; }

.hidden { display: none !important; }

::selection { background: rgba(79, 141, 255, 0.35); color: #fff; }

*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(150, 178, 230, 0.16); border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(150, 178, 230, 0.28); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(70, 230, 164, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(70, 230, 164, 0); }
  100% { box-shadow: 0 0 0 0 rgba(70, 230, 164, 0); }
}

/* ============================ 数据看板 ============================ */

body.dashboard-body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(1100px 620px at 8% -18%, rgba(79, 141, 255, 0.17), transparent 62%),
    radial-gradient(900px 520px at 102% -6%, rgba(120, 96, 255, 0.09), transparent 58%),
    radial-gradient(800px 520px at 50% 118%, rgba(58, 217, 242, 0.05), transparent 60%),
    linear-gradient(180deg, #060b16 0%, #04070f 46%, #03050b 100%);
}

.bg-decor { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.bg-decor::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.055;
  mix-blend-mode: overlay;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
  padding: 0 34px;
  background: rgba(4, 7, 15, 0.66);
  border-bottom: 1px solid rgba(150, 178, 230, 0.08);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 141, 255, 0.55), transparent);
  opacity: 0.5;
}

.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }

.brand-logo {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.045), 0 12px 28px rgba(0, 0, 0, 0.55);
}

.brand-text { min-width: 0; }
.brand-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-sub {
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #6d81a3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }

.range-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(150, 178, 230, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.range-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 7px 15px;
  font-size: 12px;
  letter-spacing: 0.4px;
  color: #7f92b2;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.range-btn:hover { color: #dfe9fa; }
.range-btn.active {
  color: #fff;
  background: rgba(var(--accent-rgb), 0.2);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.4), 0 6px 16px -8px rgba(var(--accent-rgb), 0.6);
}

.clock-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  padding-left: 18px;
  border-left: 1px solid var(--line-soft);
}
.clock-label { font-size: 8.5px; letter-spacing: 1.8px; text-transform: uppercase; color: #5f7294; }
.clock { font-family: var(--font-num); font-size: 14px; letter-spacing: 1.6px; color: #cddbf1; line-height: 1; }

.icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9fb0cc;
  background: transparent;
  border: 1px solid rgba(150, 178, 230, 0.14);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.icon-btn:hover { color: #fff; border-color: rgba(var(--accent-rgb), 0.45); background: rgba(var(--accent-rgb), 0.12); }
.icon-btn.active { color: #fff; border-color: rgba(var(--accent-rgb), 0.55); background: rgba(var(--accent-rgb), 0.16); }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn.spin svg { animation: spin 0.9s linear infinite; }

.dash {
  position: relative;
  z-index: 1;
  max-width: 1680px;
  margin: 0 auto;
  padding: 38px 34px 46px;
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 42px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 22px;
}

.hero-copy { min-width: 0; }

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10.5px;
  letter-spacing: 2.6px;
  color: #7488aa;
}

.kicker-line { width: 36px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
.kicker-sub { padding-left: 12px; border-left: 1px solid var(--line-soft); letter-spacing: 1.8px; color: #5f7294; }

.hero-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin: 18px 0 0;
  font-size: 46px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
}

.hero-title em {
  font-style: normal;
  margin-left: 14px;
  background: linear-gradient(100deg, #ffffff 0%, #cfe0ff 38%, #6fa8ff 82%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 18px;
  padding: 5px 11px;
  border: 1px solid rgba(70, 230, 164, 0.26);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  color: #6fe0a7;
}

.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #46e6a4;
  animation: pulse 2.4s infinite;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-size: 11.5px;
  letter-spacing: 0.3px;
  color: #8a9cbc;
}

.hero-meta b { font-family: var(--font-num); font-weight: 500; letter-spacing: 0.6px; color: #dbe8ff; }
.dot-sep { width: 3px; height: 3px; flex: none; border-radius: 50%; background: rgba(160, 190, 255, 0.28); }

.hero-target {
  flex: none;
  width: 332px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
  box-shadow: var(--shadow-sm);
}

.ht-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 10.5px;
  letter-spacing: 1.4px;
  color: #8a9cbc;
}
.ht-head b { font-family: var(--font-num); font-size: 30px; font-weight: 600; letter-spacing: 0.5px; color: #fff; line-height: 1; }
.ht-head b small { margin-left: 2px; font-size: 11px; font-weight: 400; color: #8a9cbc; }

.ht-bar { height: 4px; margin: 14px 0 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.ht-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.55);
  transition: width 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.ht-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 10.5px; color: #7184a6; }
.ht-foot b { font-family: var(--font-num); font-weight: 500; color: #cddbf1; }
.hero-target.is-empty .ht-bar { opacity: 0.25; }

.error-banner {
  margin-bottom: 20px;
  padding: 12px 18px;
  font-size: 12.5px;
  color: #ffd9d9;
  background: rgba(255, 86, 86, 0.08);
  border: 1px solid rgba(255, 86, 86, 0.28);
  border-radius: 12px;
}

.section { margin-bottom: 18px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.kpi {
  position: relative;
  overflow: hidden;
  padding: 22px 24px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.kpi::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(140, 180, 255, 0.55), transparent);
}

.kpi:hover { transform: translateY(-3px); border-color: rgba(140, 180, 255, 0.2); }
.kpi-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.kpi-label { display: inline-flex; align-items: center; gap: 9px; font-size: 10.5px; letter-spacing: 2px; color: #7f92b2; text-transform: uppercase; }
.kpi-label::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.kpi-idx { font-family: var(--font-num); font-size: 10px; letter-spacing: 1px; color: rgba(160, 190, 255, 0.32); }

.kpi-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 18px 0 10px;
  font-family: var(--font-num);
  font-size: 42px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.5px;
  color: #fff;
}
.kpi-value small { font-size: 11.5px; font-weight: 400; letter-spacing: 0.5px; color: #8a9cbc; }
.kpi-value .num.is-muted { font-size: 20px; letter-spacing: 0; color: #8a9cbc; }

.kpi-foot { font-size: 11px; letter-spacing: 0.4px; line-height: 1.6; color: #8295b5; }

.kpi-progress { height: 3px; margin-top: 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.kpi-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.duel-grid { display: grid; grid-template-columns: minmax(0, 1fr) 332px; gap: 16px; }
.duel-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; min-width: 0; }

.group-card {
  position: relative;
  overflow: hidden;
  padding: 24px 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.group-card:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.18); }
.group-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 26px;
  right: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--g, #4f8dff), transparent);
  opacity: 0.55;
}
.group-card::after {
  content: "";
  position: absolute;
  top: -100px;
  right: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--g, #4f8dff), transparent 66%);
  opacity: 0.14;
  pointer-events: none;
}

.gc-head { position: relative; z-index: 1; display: flex; align-items: center; gap: 13px; }
.gc-badge {
  width: 40px;
  height: 40px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-num);
  font-size: 17px;
  font-weight: 600;
  color: var(--g, var(--accent));
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}
.gc-title { flex: 1; min-width: 0; }
.gc-title h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: 0.6px; }
.gc-title p {
  margin: 4px 0 0;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #7488aa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gc-rank {
  flex: none;
  padding: 4px 10px;
  font-size: 9.5px;
  letter-spacing: 1.2px;
  color: #8ea1c1;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}
.gc-rank.is-champion { color: var(--gold); border-color: rgba(242, 198, 109, 0.34); background: rgba(242, 198, 109, 0.07); }

.gc-main { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 8px; margin: 22px 0 6px; }
.gc-main .num { font-family: var(--font-num); font-size: 56px; font-weight: 600; line-height: 1; letter-spacing: 0.5px; color: #fff; }
.gc-main .unit { font-size: 12px; color: #8a9cbc; }
.gc-main .tag { margin-left: 6px; }

.gc-bar { height: 4px; margin: 16px 0 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.gc-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background-color: var(--g, #4f8dff);
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 72%);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.gc-note { font-size: 11px; letter-spacing: 0.3px; color: #8295b5; }
.gc-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 22px;
  margin: 20px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line-soft);
  list-style: none;
}
.gc-stats li { display: flex; flex-direction: column; gap: 6px; }
.gc-stats span { font-size: 10px; letter-spacing: 1.3px; color: #7184a6; }
.gc-stats b { font-family: var(--font-num); font-size: 17px; font-weight: 500; color: #e9f1ff; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 9.5px;
  letter-spacing: 0.8px;
  color: #a9bbd8;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}
.tag .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--g, var(--accent)); }

.ring-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  box-shadow: var(--shadow-sm);
}
.ring-card h3 { margin: 0; font-size: 10px; font-weight: 500; letter-spacing: 2.2px; color: #7f92b2; text-transform: uppercase; }
.ring-wrap { position: relative; width: 186px; height: 186px; margin: 14px 0 8px; }
.ring-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: rgba(255, 255, 255, 0.06); stroke-width: 9; }
.ring-value {
  fill: none;
  stroke: url(#ringGrad);
  stroke-width: 9;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.3s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 0 7px rgba(var(--accent-rgb), 0.5));
}
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.ring-center b { font-family: var(--font-num); font-size: 42px; font-weight: 600; line-height: 1; }
.ring-center b small { margin-left: 2px; font-size: 13px; color: #8a9cbc; }
.ring-center span { font-size: 9.5px; letter-spacing: 1.6px; color: #7184a6; }
.ring-stats { display: flex; width: 100%; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.ring-stats div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ring-stats div + div { border-left: 1px solid var(--line-soft); }
.ring-stats b { font-family: var(--font-num); font-size: 17px; font-weight: 500; }
.ring-stats span { font-size: 9.5px; letter-spacing: 1px; color: #7184a6; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
.grid-2-wide { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }

.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
  box-shadow: var(--shadow-sm);
}
.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(140, 180, 255, 0.32), transparent);
}

.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 16px; font-weight: 600; letter-spacing: 0.6px; }
.panel-head h2::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: linear-gradient(180deg, var(--accent), rgba(var(--accent-rgb), 0.12)); }
.panel-head p { margin: 6px 0 0; font-size: 11px; letter-spacing: 0.5px; color: #7488aa; }
.panel-tag {
  padding: 4px 10px;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #8ea1c1;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
  text-transform: uppercase;
}
.panel-body { flex: 1; min-width: 0; }

.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 12px; margin-bottom: 18px; }
.podium-card {
  position: relative;
  padding: 18px 14px 16px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.008));
  overflow: hidden;
}
.podium-card.is-first {
  padding-top: 20px;
  background: linear-gradient(180deg, rgba(242, 198, 109, 0.1), rgba(255, 255, 255, 0.015));
  border-color: rgba(242, 198, 109, 0.34);
  transform: translateY(-6px);
  box-shadow: 0 28px 60px -40px rgba(242, 198, 109, 0.5);
}
.podium-card.is-first::before {
  content: "NO.1";
  position: absolute;
  top: 9px;
  right: 11px;
  font-family: var(--font-num);
  font-size: 8.5px;
  letter-spacing: 1.4px;
  color: rgba(242, 198, 109, 0.6);
}
.podium-rank {
  width: 22px;
  height: 22px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 500;
  color: #9fb0cc;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}
.is-first .podium-rank { color: var(--gold); border-color: rgba(242, 198, 109, 0.45); background: rgba(242, 198, 109, 0.08); }
.is-third .podium-rank { color: var(--bronze); border-color: rgba(215, 154, 107, 0.4); }

.podium-avatar {
  width: 46px;
  height: 46px;
  margin: 0 auto 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 500;
  color: #dfe9fa;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
}
.is-first .podium-avatar {
  width: 54px;
  height: 54px;
  font-size: 20px;
  color: #ffe8b3;
  border-color: rgba(242, 198, 109, 0.4);
  background: rgba(242, 198, 109, 0.08);
  box-shadow: 0 0 0 3px rgba(242, 198, 109, 0.06);
}

.podium-name { font-size: 14px; font-weight: 600; }
.podium-group { margin-top: 4px; font-size: 9.5px; color: #7184a6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podium-value { margin-top: 8px; font-family: var(--font-num); font-size: 24px; font-weight: 600; letter-spacing: 0.5px; }
.podium-value small { margin-left: 2px; font-size: 10px; font-weight: 400; color: #7f92b2; }
.podium-sub { margin-top: 3px; font-size: 9.5px; color: #667a9c; }

.rank-list { display: flex; flex-direction: column; gap: 2px; }
.rank-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) minmax(70px, 32%) 64px;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 10px;
  transition: background 0.2s ease;
}
.rank-row:hover { background: rgba(255, 255, 255, 0.035); }
.rank-no { font-family: var(--font-num); font-size: 13px; font-weight: 500; letter-spacing: 0.5px; color: #7488aa; text-align: center; }
.rank-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rank-dot { width: 5px; height: 5px; flex: none; border-radius: 50%; }
.rank-who b { font-size: 13px; font-weight: 500; color: #e9f1ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-who span { font-size: 9.5px; color: #7184a6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-bar { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.rank-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background-color: var(--g, var(--accent));
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 80%);
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.rank-val { display: flex; align-items: baseline; justify-content: flex-end; gap: 3px; font-family: var(--font-num); }
.rank-val b { font-size: 15px; font-weight: 600; }
.rank-val span { font-size: 9px; color: #7184a6; }

.dir-list { display: flex; flex-direction: column; gap: 6px; }
.dir-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 58px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.022);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.dir-row:hover { background: rgba(255, 255, 255, 0.04); border-color: var(--line-soft); }
.dir-rank {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-num);
  font-size: 11px;
  color: #8ea1c1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
}
.dir-row:nth-child(1) .dir-rank { color: var(--gold); border-color: rgba(242, 198, 109, 0.4); background: rgba(242, 198, 109, 0.07); }
.dir-row:nth-child(2) .dir-rank { color: var(--silver); border-color: rgba(200, 212, 230, 0.32); background: rgba(200, 212, 230, 0.05); }
.dir-row:nth-child(3) .dir-rank { color: var(--bronze); border-color: rgba(215, 154, 107, 0.34); background: rgba(215, 154, 107, 0.05); }
.dir-main { min-width: 0; }
.dir-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.dir-name { font-size: 13px; font-weight: 500; color: #e9f1ff; }
.dir-name span { margin-left: 6px; font-size: 9.5px; color: #7184a6; }
.dir-bar { height: 4px; margin-top: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.dir-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background-color: var(--g, var(--accent));
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 80%);
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.dir-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; font-size: 9.5px; color: #7184a6; }
.dir-num { font-family: var(--font-num); font-size: 17px; font-weight: 600; text-align: right; white-space: nowrap; }
.dir-num small { margin-left: 2px; font-size: 9.5px; font-weight: 400; color: #7f92b2; }

.mini-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 12px;
  font-size: 9px;
  letter-spacing: 2px;
  color: #667a9c;
  text-transform: uppercase;
}
.mini-divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-soft), transparent); }

.conv-list { display: flex; flex-direction: column; gap: 10px; }
.conv-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) 44px; align-items: center; gap: 10px; }
.conv-name { font-size: 10.5px; color: #9fb0cc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-bar { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.conv-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background-color: var(--g, var(--accent));
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 80%);
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.conv-val { font-family: var(--font-num); font-size: 10.5px; color: #c9d8f0; text-align: right; }
.panel-note { margin-top: 14px; font-size: 9.5px; line-height: 1.7; color: #667a9c; }

.chart-scroll { width: 100%; }
.chart-box { position: relative; width: 100%; min-height: 220px; aspect-ratio: 880 / 300; }
.chart-box svg { display: block; width: 100%; height: 100%; overflow: visible; }

.chart-legend { display: flex; align-items: center; gap: 20px; margin-top: 10px; font-size: 10px; letter-spacing: 0.6px; color: #7f92b2; }
.legend-item { display: inline-flex; align-items: center; gap: 7px; }
.legend-swatch { width: 12px; height: 6px; border-radius: 3px; }
.legend-line { position: relative; width: 18px; height: 2px; border-radius: 2px; background: var(--cyan); }
.legend-line::after { content: ""; position: absolute; top: -2px; right: -2px; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }

.lead-group {
  padding: 14px 16px;
  margin-bottom: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.022);
}
.lg-head { display: flex; align-items: center; gap: 9px; font-size: 12px; }
.lg-head .dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--g, var(--accent)); }
.lg-head b { font-weight: 500; color: #dfe9fa; }
.lg-head .lg-total { margin-left: auto; font-family: var(--font-num); font-size: 18px; font-weight: 600; }
.lg-head .lg-total small { margin-left: 3px; font-size: 9px; font-weight: 400; color: #7f92b2; }

.lg-bar { display: flex; width: 100%; height: 6px; margin: 12px 0 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.lg-bar .member { display: block; height: 100%; background-color: var(--g, var(--accent)); background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 80%); }
.lg-bar .pool { display: block; height: 100%; background: rgba(255, 255, 255, 0.14); }

.lg-foot { display: flex; flex-wrap: wrap; gap: 14px; font-size: 9.5px; color: #7184a6; }
.lg-foot b { margin-left: 2px; font-family: var(--font-num); font-size: 10.5px; font-weight: 500; color: #c9d8f0; }

.lead-feed { display: flex; flex-direction: column; }
.lead-feed-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  font-size: 11px;
  border-bottom: 1px solid rgba(150, 178, 230, 0.05);
}
.lead-feed-row:last-child { border-bottom: 0; }
.lead-feed-row .date { font-family: var(--font-num); font-size: 9.5px; color: #667a9c; }
.lead-feed-row .txt { color: #b9c9e2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead-feed-row .val { font-family: var(--font-num); font-size: 11px; color: #8fd9ff; }

.table-wrap { overflow: auto; max-height: 430px; border: 1px solid var(--line-soft); border-radius: 14px; }
table.dt { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 12px; }
table.dt thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 11px 14px;
  text-align: left;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #7184a6;
  background: #070d18;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}
table.dt tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(150, 178, 230, 0.05);
  color: #c9d8f0;
  white-space: nowrap;
}
table.dt tbody tr { transition: background 0.18s ease; }
table.dt tbody tr:hover td { background: rgba(var(--accent-rgb), 0.045); }
table.dt tbody tr:last-child td { border-bottom: 0; }

.cell-rank { width: 44px; font-family: var(--font-num); font-weight: 600; color: #8ea1c1; }
.cell-rank.gold { color: var(--gold); }
.cell-rank.silver { color: var(--silver); }
.cell-rank.bronze { color: var(--bronze); }
.cell-name { font-weight: 500; color: #fff; }
.num-cell { font-family: var(--font-num); font-weight: 500; }
.muted-cell { color: #7184a6; }

.feed { display: flex; flex-direction: column; max-height: 430px; overflow: auto; padding-right: 4px; }
.feed-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 11px;
  padding: 10px 6px;
  border-bottom: 1px solid rgba(150, 178, 230, 0.05);
  border-radius: 8px;
}
.feed-row:hover { background: rgba(255, 255, 255, 0.03); }
.feed-row:last-child { border-bottom: 0; }
.feed-ico {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  font-size: 10px;
  border-radius: 7px;
}
.feed-ico.franchise { color: #f2c66d; background: rgba(242, 198, 109, 0.08); border: 1px solid rgba(242, 198, 109, 0.22); }
.feed-ico.leads { color: #7fdcf5; background: rgba(58, 217, 242, 0.07); border: 1px solid rgba(58, 217, 242, 0.18); }
.feed-main { min-width: 0; }
.feed-title { font-size: 11.5px; line-height: 1.55; color: #dbe6f7; }
.feed-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; font-size: 9.5px; color: #667a9c; }
.feed-date { padding-top: 2px; font-family: var(--font-num); font-size: 9.5px; color: #667a9c; white-space: nowrap; }

.empty {
  padding: 36px 14px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: #667a9c;
  border: 1px dashed rgba(150, 178, 230, 0.16);
  border-radius: 12px;
}

.dash-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 10px;
  letter-spacing: 0.4px;
  color: #5f7294;
}
.dash-footer a { color: #7184a6; text-decoration: none; transition: color 0.2s ease; }
.dash-footer a:hover { color: #cddbf1; }
.foot-admin { margin-left: 6px; }

.dash > .section { animation: fadeUp 0.6s ease both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================ 配置后台 ============================ */

body.admin-body {
  margin: 0;
  background: #eef3fb;
  color: #1b2a44;
  min-height: 100vh;
}

/* ---------- 登录 ---------- */

.login-view {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(800px 500px at 15% 0%, rgba(61, 139, 255, 0.35), transparent 60%),
    radial-gradient(700px 500px at 90% 100%, rgba(51, 214, 245, 0.18), transparent 60%),
    linear-gradient(160deg, #071327, #050b16 70%);
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: 34px 32px 30px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(150, 180, 255, 0.18);
  border-radius: 22px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  color: #eaf1ff;
  animation: fadeUp 0.5s ease both;
}

.login-brand { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 26px; }

.login-brand img {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 6px rgba(61, 139, 255, 0.18), 0 16px 34px rgba(0, 0, 0, 0.4);
}

.login-brand h1 { margin: 14px 0 0; font-size: 19px; letter-spacing: 0.6px; }
.login-brand p { margin: 7px 0 0; font-size: 12px; color: #8ea3c9; letter-spacing: 1px; }

.login-field { margin-bottom: 14px; }
.login-field label { display: block; margin-bottom: 6px; font-size: 12px; color: #9fb3d6; }
.login-field input {
  width: 100%;
  padding: 11px 13px;
  font-family: inherit;
  font-size: 13px;
  color: #eaf1ff;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(150, 180, 255, 0.24);
  border-radius: 10px;
  outline: none;
  transition: border 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.login-field input::placeholder { color: #7186ab; }
.login-field input:focus { background: rgba(255, 255, 255, 0.09); border-color: rgba(127, 196, 255, 0.75); box-shadow: 0 0 0 3px rgba(61, 139, 255, 0.18); }

.login-error {
  min-height: 18px;
  margin: 2px 0 10px;
  font-size: 12px;
  color: #ff9c9c;
}

.login-btn {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #04101f;
  background: linear-gradient(135deg, #7fc4ff, #3d8bff);
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(61, 139, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-btn:hover { transform: translateY(-1px); box-shadow: 0 16px 30px rgba(61, 139, 255, 0.45); }
.login-btn:disabled { opacity: 0.65; cursor: wait; transform: none; }

.login-hint {
  margin-top: 18px;
  padding: 10px 12px;
  font-size: 11.5px;
  color: #8ea3c9;
  line-height: 1.7;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(150, 180, 255, 0.22);
  border-radius: 10px;
}

.login-foot { margin-top: 16px; text-align: center; font-size: 11.5px; color: #7f95bb; }
.login-foot a { color: #8fc4ff; text-decoration: none; }

/* ---------- 主体布局 ---------- */

.admin-app { display: grid; grid-template-columns: 246px minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px 14px 16px;
  background:
    radial-gradient(400px 300px at 20% 0%, rgba(61, 139, 255, 0.25), transparent 70%),
    linear-gradient(180deg, #0b1a30, #071223);
  color: #dfe9fa;
  border-right: 1px solid rgba(150, 180, 255, 0.12);
}

.sb-brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 20px; border-bottom: 1px solid rgba(150, 180, 255, 0.12); }
.sb-brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #fff; border: 2px solid rgba(255, 255, 255, 0.85); flex: none; }
.sb-brand b { display: block; font-size: 13.5px; letter-spacing: 0.3px; }
.sb-brand small { display: block; margin-top: 2px; font-size: 10.5px; color: #8ea3c9; letter-spacing: 0.6px; }

.sb-nav { display: flex; flex-direction: column; gap: 3px; margin-top: 16px; flex: 1; overflow: auto; }

.sb-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  font-size: 13px;
  color: #b9cbe9;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
}

.sb-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

.sb-btn.active {
  color: #fff;
  background: linear-gradient(120deg, rgba(61, 139, 255, 0.9), rgba(41, 110, 230, 0.75));
  box-shadow: 0 10px 24px rgba(61, 139, 255, 0.28);
}

.sb-ico { width: 18px; text-align: center; font-size: 13px; opacity: 0.95; }
.sb-count { margin-left: auto; font-family: var(--font-num); font-size: 10.5px; padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
.sb-btn.active .sb-count { background: rgba(255, 255, 255, 0.24); }

.sb-foot { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid rgba(150, 180, 255, 0.12); }
.sb-foot a, .sb-foot button {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; font-size: 12.5px; color: #b9cbe9;
  background: transparent; border: 1px solid rgba(150, 180, 255, 0.16); border-radius: 9px;
  text-decoration: none; cursor: pointer; text-align: left;
}
.sb-foot a:hover, .sb-foot button:hover { color: #fff; border-color: rgba(150, 180, 255, 0.4); background: rgba(255, 255, 255, 0.05); }

.admin-main { min-width: 0; padding: 22px 26px 40px; }

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.admin-topbar h1 { margin: 0; font-size: 21px; color: #10203a; letter-spacing: 0.3px; }
.admin-topbar p { margin: 5px 0 0; font-size: 12.5px; color: #6f81a1; }

.admin-user { display: flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; background: #fff; border: 1px solid #e2e9f5; border-radius: 999px; box-shadow: 0 6px 18px rgba(31, 60, 110, 0.06); }
.admin-user .avatar { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: #fff; background: linear-gradient(140deg, #5aa2ff, #2f74e0); border-radius: 50%; }
.admin-user b { display: block; font-size: 12.5px; color: #1b2a44; }
.admin-user small { display: block; font-size: 10.5px; color: #8a99b5; }

.a-card {
  background: #fff;
  border: 1px solid #e5ebf6;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(31, 60, 110, 0.05);
}

.a-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; border-bottom: 1px solid #eef2f9; }
.a-card-head h2 { margin: 0; font-size: 15px; color: #16263f; }
.a-card-head p { margin: 4px 0 0; font-size: 12px; color: #7d8cab; }

.a-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }

.a-stat { position: relative; overflow: hidden; padding: 17px 18px; background: #fff; border: 1px solid #e5ebf6; border-radius: 15px; box-shadow: 0 10px 26px rgba(31, 60, 110, 0.05); }
.a-stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 100px; height: 100px; border-radius: 50%; background: radial-gradient(circle, rgba(61, 139, 255, 0.12), transparent 70%); }
.a-stat .st-label { font-size: 12px; color: #7d8cab; }
.a-stat .st-value { margin-top: 8px; font-family: var(--font-num); font-size: 26px; font-weight: 700; color: #12233c; line-height: 1; }
.a-stat .st-value small { font-size: 11px; font-weight: 400; color: #8a99b5; margin-left: 3px; }
.a-stat .st-foot { margin-top: 8px; font-size: 11px; color: #8a99b5; }

.a-grid-2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; }

.a-toolbar { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid #eef2f9; flex-wrap: wrap; }
.a-toolbar .spacer { flex: 1; }

.role-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: #f2f6fc;
  border-radius: 9px;
}
.role-tabs button {
  border: 0;
  background: transparent;
  color: #687894;
  font-size: 12px;
  line-height: 1;
  padding: 7px 10px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease;
}
.role-tabs button b {
  margin-left: 3px;
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 500;
  color: #8a99b5;
}
.role-tabs button:hover { color: #1f3556; }
.role-tabs button.active {
  background: #fff;
  color: #1f3556;
  box-shadow: 0 1px 3px rgba(24, 52, 96, 0.14);
}
.role-tabs button.active b { color: #2f6fed; }

.a-search { position: relative; }
.a-search input { width: 230px; padding: 9px 13px 9px 32px; font-size: 12.5px; color: #1b2a44; background: #f5f8fd; border: 1px solid #e2e9f5; border-radius: 9px; outline: none; transition: border 0.2s ease, background 0.2s ease; }
.a-search input:focus { background: #fff; border-color: #8fbcff; box-shadow: 0 0 0 3px rgba(61, 139, 255, 0.12); }
.a-search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: #93a3bf; }

.a-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  font-size: 12.5px;
  color: #37496b;
  background: #fff;
  border: 1px solid #dfe7f4;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.a-btn:hover { border-color: #a9c8f5; color: #1f5fce; background: #f6faff; }
.a-btn.primary { color: #fff; background: linear-gradient(135deg, #4f97ff, #2f74e0); border-color: transparent; box-shadow: 0 8px 18px rgba(47, 116, 224, 0.25); }
.a-btn.primary:hover { box-shadow: 0 10px 22px rgba(47, 116, 224, 0.34); transform: translateY(-1px); }
.a-btn.danger { color: #c22f3d; border-color: #f2ccd1; }
.a-btn.danger:hover { background: #fff5f6; border-color: #e8a3ab; }
.a-btn.ghost { background: transparent; }
.a-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.a-btn.sm { padding: 5px 10px; font-size: 11.5px; border-radius: 7px; }
.a-btn.sm + .a-btn.sm { margin-left: 6px; }

.a-table-wrap { overflow: auto; }
table.a-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.a-table th { position: sticky; top: 0; z-index: 1; padding: 11px 16px; text-align: left; font-size: 11px; font-weight: 500; color: #7d8cab; background: #f9fbfe; border-bottom: 1px solid #e9eef7; white-space: nowrap; }
table.a-table td { padding: 11px 16px; border-bottom: 1px solid #f0f4fa; color: #2a3a55; white-space: nowrap; }
table.a-table tbody tr:hover td { background: #f7faff; }
table.a-table tbody tr:last-child td { border-bottom: 0; }
table.a-table .cell-actions { text-align: right; }
table.a-table .muted { color: #8a99b5; }
table.a-table .money { font-family: var(--font-num); }

.a-empty { padding: 46px 20px; text-align: center; color: #8a99b5; font-size: 13px; }

.a-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; font-size: 11px; border-radius: 999px; background: #eff4fd; color: #35507a; }
.a-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--g, #3d8bff); }
.a-tag.green { background: #ecfbf3; color: #1c7c4d; }
.a-tag.gray { background: #f2f4f8; color: #7c8aa5; }

.a-progress { display: inline-block; width: 80px; height: 6px; background: #eef3fb; border-radius: 999px; overflow: hidden; vertical-align: middle; margin-right: 8px; }
.a-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4f97ff, #2f74e0); }

.a-note { margin: 0 20px; padding: 12px 14px; font-size: 12px; line-height: 1.7; color: #607195; background: #f6f9ff; border: 1px dashed #d9e5f8; border-radius: 10px; }

.public-link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.public-link-card { padding: 14px; background: #fbfdff; border: 1px solid #e2ebf7; border-radius: 12px; }
.public-link-card h3 { margin: 0; font-size: 14px; color: #1f3556; }
.public-link-card p { margin: 5px 0 10px; min-height: 34px; font-size: 11.5px; line-height: 1.5; color: #7a8da9; }
.public-link-url { display: flex; gap: 6px; }
.public-link-url input {
  flex: 1;
  min-width: 0;
  padding: 8px 9px;
  font-size: 11.5px;
  color: #405574;
  background: #fff;
  border: 1px solid #dfe9f6;
  border-radius: 8px;
  outline: none;
}
.qr-wrap { display: flex; align-items: center; justify-content: center; min-height: 166px; margin-top: 12px; padding: 8px; background: #fff; border: 1px solid #eef3fb; border-radius: 10px; }
.qr-wrap svg { display: block; width: 150px; height: 150px; }
.qr-error { font-size: 11px; color: #a12e2e; }
.public-link-note { margin-top: 14px; padding: 10px 12px; font-size: 11.5px; line-height: 1.6; color: #6b7e9c; background: #f6f9ff; border: 1px dashed #d9e5f8; border-radius: 9px; }
@media (max-width: 560px) {
  .public-link-grid { grid-template-columns: 1fr; }
}

/* ---------- 系统配置 ---------- */

.settings-form { padding: 4px 20px 20px; }

.set-section { padding: 18px 0; border-bottom: 1px solid #eef2f9; }
.set-section:last-child { border-bottom: 0; padding-bottom: 4px; }
.set-section h3 { margin: 0 0 4px; font-size: 13.5px; color: #16263f; }
.set-section > p { margin: 0 0 14px; font-size: 12px; color: #8291ad; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; color: #44567a; }
.field label em { font-style: normal; color: #c22f3d; margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 13px;
  color: #1b2a44;
  background: #fff;
  border: 1px solid #dfe7f4;
  border-radius: 9px;
  outline: none;
  transition: border 0.18s ease, box-shadow 0.18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: #7fb2ff; box-shadow: 0 0 0 3px rgba(61, 139, 255, 0.12); }
.field small { font-size: 11px; color: #8a99b5; line-height: 1.5; }

.combo { position: relative; }
.combo-input { padding-right: 34px !important; }
.combo-caret {
  position: absolute;
  top: 9px;
  right: 12px;
  color: #8a99b5;
  font-size: 12px;
  pointer-events: none;
}
.combo-list {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  max-height: 250px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #dbe5f2;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(24, 52, 96, 0.16);
  z-index: 60;
}
.combo-list.open { display: block; }
.combo-group {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 7px 12px 5px;
  font-size: 11px;
  color: #7a8da9;
  background: #f8fbff;
  border-bottom: 1px solid #edf3fa;
}
.combo-group b { margin-left: 2px; font-family: var(--font-num); font-weight: 500; color: #a3b2c8; }
.combo-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  font-size: 13px;
  color: #243b5c;
  cursor: pointer;
}
.combo-opt:hover, .combo-opt.active { background: #f0f6ff; }
.combo-role {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 6px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
}
.combo-role.is-dir { color: #8a5a00; background: #fff3d8; border: 1px solid #f0d49a; }
.combo-role.is-member { color: #2b5ea8; background: #eaf3ff; border: 1px solid #c7ddf8; }
.combo-name { font-weight: 600; white-space: nowrap; }
.combo-groupname { margin-left: auto; color: #7a8da9; font-size: 12px; white-space: nowrap; }
.combo-empty { padding: 16px 12px; text-align: center; color: #8a99b5; font-size: 12px; }

.upload-row input[type="file"] {
  padding: 8px 10px;
  font-size: 12px;
  color: #44567a;
  background: #f8fbff;
  border: 1px dashed #cbd9ee;
  border-radius: 9px;
  cursor: pointer;
}
.upload-preview {
  margin-top: 4px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fbff;
  border: 1px solid #e8eef8;
  border-radius: 9px;
  overflow: hidden;
}
.upload-preview img { max-width: 100%; max-height: 160px; display: block; }
.upload-empty { color: #9aabc2; font-size: 12px; }

.cb-label { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: #44567a; cursor: pointer; }
.cb-label input { width: 16px; height: 16px; accent-color: #2f74e0; }

.field.inline { flex-direction: row; align-items: center; gap: 10px; padding-top: 18px; }
.field.inline label { font-size: 12.5px; color: #44567a; }
.field.inline input[type="checkbox"] { width: 16px; height: 16px; accent-color: #2f74e0; }

.color-row { display: flex; align-items: center; gap: 9px; }
.color-row input[type="color"] { width: 54px; height: 38px; flex: none; padding: 3px; border: 1px solid #dfe7f4; border-radius: 9px; background: #fff; cursor: pointer; }
.color-row input[type="text"] { flex: 1; font-family: var(--font-num); letter-spacing: 0.5px; text-transform: uppercase; }

.a-toolbar .muted { font-size: 12px; color: #8a99b5; }
.a-auto-refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #7a8da9;
  white-space: nowrap;
}
.a-auto-refresh i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #26ac6a;
  box-shadow: 0 0 0 3px rgba(38, 172, 106, 0.12);
}
.a-auto-refresh.is-updated { color: #1b7a4b; }
.a-auto-refresh.is-updated i { animation: autoRefreshPulse 0.9s ease 2; }
@keyframes autoRefreshPulse {
  50% { opacity: 0.3; }
}

.log-date {
  padding: 8px 10px;
  font-family: inherit;
  font-size: 12px;
  color: #44567a;
  background: #fff;
  border: 1px solid #dfe7f4;
  border-radius: 8px;
  outline: none;
}
.log-time { white-space: nowrap; font-size: 11.5px; }
.log-admin { display: flex; flex-direction: column; gap: 1px; line-height: 1.25; }
.log-admin b { font-size: 12px; color: #243b5c; font-weight: 600; }
.log-admin small { font-size: 10px; color: #8a99b5; }
.log-action {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}
.log-action.is-create { color: #1d7a4a; background: #e8f7ef; border: 1px solid #bde7d1; }
.log-action.is-update { color: #8a5a00; background: #fff5df; border: 1px solid #f0d49a; }
.log-action.is-delete { color: #b23a3a; background: #fdecec; border: 1px solid #f3c6c6; }
.log-action.is-login { color: #3b5f91; background: #edf4ff; border: 1px solid #c9ddf8; }
.log-action.is-import { color: #6b4ca0; background: #f3eeff; border: 1px solid #d9ccf5; }
.log-action.is-muted { color: #66758d; background: #f2f5fa; border: 1px solid #dde5f0; }
.log-target {
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: #3c5273;
}
.log-detail {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: #5b6c86;
}
.log-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 20px;
  border-top: 1px solid #eef2f9;
  font-size: 12px;
  color: #7a8da9;
}

.status-current {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  margin-bottom: 14px;
  background: #f7faff;
  border: 1px solid #e3ecf8;
  border-radius: 9px;
  font-size: 12px;
  color: #6a7d99;
}
.status-history {
  margin-top: 16px;
  border-top: 1px solid #edf2fa;
  padding-top: 12px;
  max-height: 220px;
  overflow-y: auto;
}
.status-history-head {
  font-size: 12px;
  font-weight: 600;
  color: #405574;
  margin-bottom: 8px;
}
.status-history-row {
  display: flex;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px dashed #edf2fa;
}
.status-history-row:last-child { border-bottom: 0; }
.status-history-time {
  flex: none;
  width: 112px;
  font-size: 10.5px;
  color: #8a99b5;
  font-family: var(--font-num);
}
.status-history-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: #566a8c;
}
.status-history-main span { color: #7a8da9; }
.status-history-main i { color: #a5b4c9; font-style: normal; }
.status-history-main b { color: #1f3556; font-weight: 600; }
.status-history-main small { width: 100%; font-size: 10.5px; color: #8a99b5; }

.form-actions { display: flex; align-items: center; gap: 10px; padding-top: 18px; }

/* ---------- 弹窗 ---------- */

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(8, 17, 33, 0.62);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.18s ease both;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  width: 100%;
  max-width: 620px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(3, 12, 28, 0.4);
  animation: modalIn 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
  overflow: hidden;
}

@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(0.985); } to { opacity: 1; transform: none; } }

.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 17px 22px; border-bottom: 1px solid #eef2f9; }
.modal-head h3 { margin: 0; font-size: 15px; color: #16263f; }
.modal-close { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #8a99b5; background: transparent; border: 0; border-radius: 8px; cursor: pointer; }
.modal-close:hover { background: #f2f5fb; color: #2a3a55; }

#modalForm { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.modal-body { flex: 1 1 auto; min-height: 0; padding: 20px 22px; overflow: auto; }
.modal-foot { flex: none; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid #eef2f9; background: #fbfcff; }

.form-error { margin-bottom: 14px; padding: 9px 12px; font-size: 12px; color: #b4232f; background: #fff3f4; border: 1px solid #f6cdd1; border-radius: 8px; }

.confirm-text { margin: 0; font-size: 13.5px; line-height: 1.75; color: #37496b; }

/* ---------- Toast ---------- */

.image-preview-mask {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 17, 33, 0.82);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.18s ease both;
}
.image-preview-card {
  width: min(860px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(3, 12, 28, 0.55);
  overflow: hidden;
  animation: modalIn 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.image-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #eef2f9;
}
.image-preview-head h3 { margin: 0; font-size: 14px; color: #16263f; }
.image-preview-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: #0b1220;
  overflow: auto;
}
.image-preview-body img {
  display: block;
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
}
.image-preview-foot {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid #eef2f9;
  background: #fbfcff;
}
.image-preview-foot span { font-size: 11.5px; color: #8a99b5; }
.image-preview-actions { display: flex; align-items: center; gap: 10px; flex: none; }
body.preview-open { overflow: hidden; }
@media (max-width: 560px) {
  .image-preview-foot { flex-wrap: wrap; }
  .image-preview-foot span { display: none; }
  .image-preview-actions { width: 100%; justify-content: flex-end; }
}

.toast-wrap { position: fixed; right: 22px; bottom: 22px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }

.toast {
  min-width: 220px;
  max-width: 380px;
  padding: 12px 16px;
  font-size: 12.5px;
  color: #fff;
  background: #1d2f4c;
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(3, 12, 28, 0.3);
  animation: toastIn 0.24s ease both;
}

.toast.ok { background: #157347; }
.toast.err { background: #b4232f; }

@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.toast { transition: opacity 0.3s ease, transform 0.3s ease; }

@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn.spin svg { animation: spin 0.9s linear infinite; }

.a-table-wrap.scroll { max-height: 64vh; }

.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 20px; }



/* ---------- 响应式 ---------- */

@media (max-width: 1500px) {
  .kpi-value { font-size: 38px; }
  .hero-title { font-size: 42px; }
  .gc-main .num { font-size: 50px; }
}

@media (max-width: 1240px) {
  .duel-grid { grid-template-columns: minmax(0, 1fr); }
  .ring-card { flex-direction: row; gap: 34px; padding: 22px 26px; justify-content: flex-start; }
  .ring-card h3 { display: none; }
  .ring-wrap { flex: none; width: 158px; height: 158px; margin: 0; }
  .ring-stats { flex-direction: column; width: auto; margin: 0; padding: 0; border-top: 0; gap: 12px; }
  .ring-stats div { flex-direction: row; justify-content: flex-start; align-items: baseline; gap: 7px; }
  .ring-stats div + div { border-left: 0; border-top: 1px solid var(--line-soft); padding-top: 12px; }
  .grid-2, .grid-2-wide { grid-template-columns: 1fr; }
  .a-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero-target { width: 100%; }
  .clock-wrap { display: none; }
  .topbar { padding: 0 22px; }
  .topbar::after { left: 22px; right: 22px; }
}

@media (max-width: 1024px) {
  .admin-app { grid-template-columns: 76px minmax(0, 1fr); }
  .sidebar { padding: 18px 10px; }
  .sb-brand div, .sb-brand small, .sb-btn .sb-text, .sb-count, .sb-foot span { display: none; }
  .sb-brand { justify-content: center; padding: 0 0 16px; }
  .sb-btn { justify-content: center; padding: 11px 0; }
  .sb-ico { font-size: 15px; }
  .sb-foot a, .sb-foot button { justify-content: center; padding: 9px; }
  .admin-main { padding: 18px 16px 30px; }
}

@media (max-width: 820px) {
  .dash { padding: 26px 18px 34px; }
  .topbar { padding: 0 18px; }
  .topbar::after { left: 18px; right: 18px; }
  .hero-title { font-size: 34px; }
  .hero-kicker { letter-spacing: 1.6px; }
  .kicker-sub { display: none; }
  .hero-live { margin-left: 12px; }
  .group-card { padding: 20px 22px; }
  .panel { padding: 20px; }
  .form-grid, .form-grid.cols-3 { grid-template-columns: 1fr; }
  .a-stats { grid-template-columns: 1fr; }
  .chart-scroll { overflow-x: auto; padding-bottom: 4px; }
  .chart-scroll .chart-box { min-width: 620px; }
  .podium { grid-template-columns: 1fr; }
  .podium-card {
    display: grid;
    grid-template-columns: 26px 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    text-align: left;
  }
  .podium-card.is-first { transform: none; padding: 12px 14px; }
  .podium-rank { margin: 0; }
  .podium-avatar { margin: 0; width: 38px; height: 38px; font-size: 15px; }
  .is-first .podium-avatar { width: 38px; height: 38px; font-size: 15px; box-shadow: none; }
  .podium-value { margin: 0; font-size: 19px; }
  .podium-group, .podium-sub { display: none; }
  .podium-card.is-first::before { display: none; }
  .table-wrap { max-height: none; }
}

@media (max-width: 620px) {
  .topbar { height: auto; flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
  .topbar::after { display: none; }
  .brand-sub { display: none; }
  .brand-title { font-size: 15px; }
  .brand-logo { width: 40px; height: 40px; }
  .topbar-right { width: 100%; justify-content: space-between; gap: 10px; }
  .topbar-actions { gap: 6px; }
  .icon-btn { width: 34px; height: 34px; }
  .range-btn { padding: 6px 12px; font-size: 11.5px; }
  .dash { padding: 22px 16px 30px; }
  .hero { gap: 20px; padding-bottom: 24px; }
  .hero-title { font-size: 29px; }
  .hero-live { padding: 4px 9px; font-size: 8px; }
  .hero-meta { gap: 8px; font-size: 10.5px; margin-top: 14px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .kpi { padding: 18px 20px; }
  .kpi-value { font-size: 36px; margin: 14px 0 8px; }
  .duel-groups { grid-template-columns: 1fr; }
  .gc-main .num { font-size: 46px; }
  .gc-stats { gap: 12px 16px; }
  .ring-card { flex-direction: column; gap: 12px; }
  .ring-stats { flex-direction: row; width: 100%; padding-top: 14px; border-top: 1px solid var(--line-soft); }
  .ring-stats div { flex-direction: column; align-items: center; }
  .ring-stats div + div { border-top: 0; border-left: 1px solid var(--line-soft); padding-top: 0; }
  .rank-row { grid-template-columns: 24px minmax(0, 1fr) 56px; }
  .rank-bar { display: none; }
  .rank-who span { display: none; }
  table.dt { min-width: 0; }
  .v2-board .panel-latest table.dt th:nth-child(4), .v2-board .panel-latest table.dt td:nth-child(4),
  .v2-board .panel-latest table.dt th:nth-child(5), .v2-board .panel-latest table.dt td:nth-child(5),
  .v2-board .panel-latest table.dt th:nth-child(7), .v2-board .panel-latest table.dt td:nth-child(7) { display: none; }
  .panel { padding: 18px; }
  .panel-head { margin-bottom: 14px; }
  .panel-head h2 { font-size: 15px; }
  .dash-footer { font-size: 9px; }
  .admin-user { display: none; }
  .a-search input { width: 150px; }
  .modal-card { max-height: 92vh; }
}

@media (max-width: 420px) {
  .hero-title { font-size: 26px; }
  .hero-live { display: none; }
  .kpi-value { font-size: 33px; }
  .ht-head b { font-size: 26px; }
  .gc-title h2 { font-size: 16px; }
}
