
:root {
  --bg-1: #030814;
  --bg-2: #071225;
  --bg-3: #0b1730;
  --panel: rgba(10, 22, 40, 0.72);
  --panel-2: rgba(8, 19, 36, 0.88);
  --panel-3: rgba(11, 26, 49, 0.92);
  --border: rgba(112, 180, 255, 0.18);
  --border-strong: rgba(112, 205, 255, 0.36);
  --text: #ecf5ff;
  --muted: #9fb4d2;
  --muted-2: #7d93b6;
  --accent: #4aa8ff;
  --accent-2: #14d7c8;
  --accent-3: #6f7bff;
  --danger: #ff6b81;
  --warning: #ffb454;
  --success: #4ee3a2;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
  --glow: 0 0 22px rgba(74, 168, 255, 0.22), 0 0 44px rgba(20, 215, 200, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(74,168,255,0.20), transparent 18%),
    radial-gradient(circle at 88% 14%, rgba(20,215,200,0.13), transparent 16%),
    radial-gradient(circle at 50% 120%, rgba(111,123,255,0.15), transparent 26%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 48%, #030915 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.42;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0%, rgba(74,168,255,0.025) 48%, transparent 100%);
  animation: scanGlow 6s linear infinite;
  opacity: 0.75;
}

@keyframes scanGlow {
  0% { transform: translateY(-28%); }
  100% { transform: translateY(28%); }
}

@keyframes drift {
  0%, 100% { transform: translate3d(-50%, -50%, 0); }
  50% { transform: translate3d(calc(-50% + 8px), calc(-50% - 10px), 0); }
}

@keyframes driftFree {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(10px, -12px, 0); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(74,168,255,0), 0 0 0 rgba(20,215,200,0); }
  50% { box-shadow: 0 0 22px rgba(74,168,255,0.18), 0 0 40px rgba(20,215,200,0.08); }
}

@keyframes rotateAura {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes shimmer {
  0% { transform: translateX(-135%); }
  100% { transform: translateX(135%); }
}

.wrapper {
  max-width: 1720px;
  margin: 0 auto;
  padding: 24px 24px 34px;
  position: relative;
  z-index: 1;
}

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

.brand-logo {
  width: 290px;
  height: auto;
  display: block;
  flex: none;
}

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

.header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(8,20,39,0.90), rgba(8,19,36,0.75)),
    radial-gradient(circle at left top, rgba(74,168,255,0.13), transparent 28%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.header::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 26px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(74,168,255,0.45), rgba(20,215,200,0.12), rgba(111,123,255,0.28));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.header h1 {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-shadow: 0 0 18px rgba(74,168,255,0.18);
}

.subtitle {
  color: var(--muted);
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.65;
}

.header-right {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.badge, .nav-chip, .action-link, .hero-metric {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(15,32,58,0.82), rgba(10,20,38,0.90));
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  transition: all 0.28s ease;
}

.badge strong { margin-left: 6px; }

.badge:hover, .nav-chip:hover, .action-link:hover, .hero-metric:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow), var(--glow);
}

.badge.mysql { color: #b8ffd6; border-color: rgba(78,227,162,0.28); }
.badge.api { color: #c6ebff; border-color: rgba(74,168,255,0.34); }
.badge.demo { color: #ffdcb0; border-color: rgba(255,180,84,0.26); }

.nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.nav-chip {
  color: #cddcff;
  min-width: 122px;
  position: relative;
  overflow: hidden;
}

.nav-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: translateX(-140%);
}

.nav-chip:hover::after,
.action-link:hover::after {
  animation: shimmer 1.2s ease;
}

.nav-chip.active {
  color: white;
  border-color: rgba(127, 198, 255, 0.52);
  background:
    linear-gradient(135deg, rgba(34,113,255,0.84), rgba(18,150,221,0.62), rgba(20,215,200,0.48));
  box-shadow: var(--shadow), 0 0 28px rgba(74,168,255,0.20);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 18px;
}

.date-filter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(15,32,58,0.82), rgba(10,20,38,0.90));
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.date-filter input {
  height: 34px;
  min-width: 142px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(112, 180, 255, 0.24);
  color: var(--text);
  background: rgba(5, 14, 28, 0.82);
  outline: none;
  font-family: inherit;
}

.date-filter span {
  color: var(--muted);
  font-size: 13px;
}

.date-filter-title {
  color: #e6f2ff !important;
  font-weight: 700;
  white-space: nowrap;
}

.action-link {
  color: #e2edff;
  position: relative;
  overflow: hidden;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 22px 22px 18px;
  border-radius: 28px;
  border: 1px solid rgba(96, 183, 255, 0.20);
  background:
    radial-gradient(circle at left top, rgba(74,168,255,0.18), transparent 24%),
    radial-gradient(circle at 90% 18%, rgba(20,215,200,0.10), transparent 22%),
    linear-gradient(180deg, rgba(9,21,39,0.96), rgba(6,15,29,0.92));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.03);
  backdrop-filter: blur(14px);
}

.hero-panel::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  left: 50%;
  top: 54%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(74,168,255,0.18) 0%, rgba(20,215,200,0.08) 36%, rgba(0,0,0,0) 68%);
  filter: blur(18px);
  pointer-events: none;
}

.hero-panel::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(74,168,255,0.06);
  pointer-events: none;
  animation: pulseGlow 4.6s ease-in-out infinite;
}

.hero-head {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.hero-title-wrap { max-width: 860px; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
  color: #c9ebff;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(89, 186, 255, 0.22);
  background: rgba(11, 31, 58, 0.56);
}

.hero-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
  text-shadow: 0 0 18px rgba(74,168,255,0.16);
}

.hero-subtitle {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.hero-metric {
  min-width: 120px;
  padding: 12px 14px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.hero-metric-label {
  color: var(--muted-2);
  font-size: 12px;
}

.hero-metric-value {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 800;
}

.hero-metric-foot {
  margin-top: 6px;
  color: #9fc0e6;
  font-size: 12px;
}

.cloud-stage {
  position: relative;
  z-index: 2;
  height: 330px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(100, 177, 255, 0.12);
  background:
    radial-gradient(circle at center, rgba(74,168,255,0.08), transparent 30%),
    linear-gradient(180deg, rgba(8, 19, 36, 0.45), rgba(6, 15, 29, 0.72));
}

.cloud-stage::before,
.cloud-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  pointer-events: none;
}

.cloud-stage::before {
  width: 360px;
  height: 360px;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(74,168,255,0.14);
  box-shadow: 0 0 60px rgba(74,168,255,0.08) inset;
}

.cloud-stage::after {
  width: 200px;
  height: 200px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(20,215,200,0.16);
}

.orbit-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.orbit-ring.r1 {
  width: 450px;
  height: 450px;
  border: 1px solid rgba(74,168,255,0.06);
  animation: rotateAura 24s linear infinite;
}

.orbit-ring.r2 {
  width: 280px;
  height: 280px;
  border: 1px dashed rgba(20,215,200,0.10);
  animation: rotateAura 16s linear infinite reverse;
}

.floating-word {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #ecf7ff;
  background: linear-gradient(135deg, rgba(20,36,64,0.82), rgba(16,52,78,0.40));
  border: 1px solid rgba(118, 188, 255, 0.20);
  box-shadow: 0 10px 26px rgba(0,0,0,0.20), 0 0 18px rgba(74,168,255,0.08);
  white-space: nowrap;
  backdrop-filter: blur(10px);
  animation: driftFree var(--float-duration, 7.8s) ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.floating-word:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: rgba(136, 206, 255, 0.42);
  box-shadow: 0 18px 36px rgba(0,0,0,0.25), 0 0 22px rgba(74,168,255,0.20);
}

.floating-word.center {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 14px 22px;
  border-color: rgba(118, 209, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(33,63,112,0.88), rgba(21,131,160,0.38)),
    radial-gradient(circle at center, rgba(74,168,255,0.18), transparent 62%);
  box-shadow:
    0 18px 50px rgba(0,0,0,0.32),
    0 0 24px rgba(74,168,255,0.18),
    0 0 44px rgba(20,215,200,0.12);
  animation: drift var(--float-duration, 6.2s) ease-in-out infinite;
  z-index: 16;
}

.floating-word-text {
  font-weight: 800;
  letter-spacing: 0.5px;
}

.floating-word-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #06111f;
  background: linear-gradient(135deg, #9be7ff, #7dffce);
  box-shadow: 0 0 12px rgba(155,231,255,0.20);
}

.section-grid-4, .section-grid-3, .section-grid-2 {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.section-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.section-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.section-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(12, 25, 45, 0.92), rgba(7, 16, 30, 0.96));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.panel:hover {
  transform: translateY(-4px);
  border-color: rgba(129, 199, 255, 0.30);
  box-shadow: var(--shadow), var(--glow);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(74,168,255,0.08), transparent 22%),
    radial-gradient(circle at left bottom, rgba(20,215,200,0.05), transparent 18%);
  pointer-events: none;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(74,168,255,0.9), rgba(20,215,200,0.72), transparent);
}

.kpi-title {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.8px;
}

.kpi-value {
  font-size: 36px;
  font-weight: 800;
  margin-top: 14px;
  line-height: 1.1;
  text-shadow: 0 0 18px rgba(74,168,255,0.10);
}

.kpi-foot {
  margin-top: 12px;
  color: #9fb5d4;
  font-size: 13px;
  line-height: 1.55;
}

.kpi-mini {
  display: inline-flex;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #9cf5df;
  border: 1px solid rgba(78,227,162,0.18);
  background: rgba(78,227,162,0.08);
}

.panel-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 6px;
}

.panel-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.6;
}

.chart-panel { min-height: 400px; }
.chart-box { height: 320px; }

.note {
  margin-top: 10px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 180, 84, 0.08);
  border: 1px solid rgba(255, 180, 84, 0.16);
  color: #ffd9aa;
  font-size: 13px;
  line-height: 1.6;
}

.table-wrap {
  overflow: auto;
  max-height: 540px;
  border-radius: 18px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1120px;
}

.table th, .table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(112,152,220,0.10);
  text-align: left;
  font-size: 13px;
  vertical-align: top;
}

.table th {
  color: #9cb6d8;
  font-weight: 700;
  position: sticky;
  top: 0;
  background: rgba(7, 18, 32, 0.98);
  z-index: 1;
}

.table tr:hover {
  background: rgba(255,255,255,0.028);
}

.badge-inline {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-done { background: rgba(78,227,162,0.12); color: #aef7cf; border: 1px solid rgba(78,227,162,0.18); }
.status-pending { background: rgba(255,180,84,0.10); color: #ffd7a6; border: 1px solid rgba(255,180,84,0.18); }
.sat-good { background: rgba(78,227,162,0.12); color: #aef7cf; border: 1px solid rgba(78,227,162,0.18); }
.sat-bad { background: rgba(255,107,129,0.12); color: #ffc1cb; border: 1px solid rgba(255,107,129,0.16); }
.sat-none { background: rgba(74,168,255,0.10); color: #cfe0ff; border: 1px solid rgba(74,168,255,0.16); }

.empty {
  color: #8ea5c7;
  padding: 24px 0;
  text-align: center;
}

.footer {
  margin-top: 18px;
  color: #8099bc;
  font-size: 12px;
  text-align: center;
  line-height: 1.7;
}

@media (max-width: 1400px) {
  .section-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-grid-3 { grid-template-columns: 1fr; }
  .section-grid-2 { grid-template-columns: 1fr; }
  .hero-head { flex-direction: column; }
  .hero-metrics { justify-content: flex-start; }
}

@media (max-width: 860px) {
  .wrapper { width: 100%; padding: 10px; }
  .header {
    flex-direction: column;
    gap: 14px;
    margin-bottom: 12px;
    padding: 14px;
    border-radius: 18px;
  }
  .brand-block {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .brand-logo { width: 240px; max-width: 100%; }
  .brand-copy { width: 100%; }
  .header h1 {
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }
  .subtitle { margin-top: 6px; font-size: 12px; }
  .header-right {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .badge {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding: 9px 11px;
    box-shadow: none;
  }
  .nav-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0;
  }
  .nav-chip { width: 100%; min-width: 0; padding: 10px 8px; }
  .date-filter {
    grid-column: 1 / -1;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
  }
  .date-filter-title { grid-column: 1 / -1; }
  .date-filter input { width: 100%; min-width: 0; padding: 0 7px; }
  .date-filter .action-link { grid-column: 1 / -1; width: 100%; }
  .hero-panel { padding: 14px; border-radius: 20px; }
  .hero-head { gap: 12px; }
  .hero-title { font-size: 22px; }
  .hero-subtitle { font-size: 12px; line-height: 1.6; }
  .hero-metrics {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .hero-metric { width: 100%; min-width: 0; padding: 10px; box-shadow: none; }
  .hero-metric:last-child { grid-column: 1 / -1; }
  .hero-metric-value { font-size: 17px; overflow-wrap: anywhere; }
  .section-grid-4 { grid-template-columns: 1fr; }
  .cloud-stage { height: 270px; border-radius: 18px; }
  .cloud-stage::before { width: 240px; height: 240px; }
  .cloud-stage::after { width: 130px; height: 130px; }
  .orbit-ring.r1 { width: 290px; height: 290px; }
  .orbit-ring.r2 { width: 180px; height: 180px; }
  .floating-word {
    max-width: 46%;
    padding: 6px 9px;
    gap: 5px;
    font-size: 12px !important;
  }
  .floating-word.center {
    max-width: 74%;
    padding: 10px 14px;
    font-size: 25px !important;
  }
  .floating-word-text { overflow: hidden; text-overflow: ellipsis; }
  .floating-word-count { min-width: 22px; height: 22px; padding: 0 6px; }
  .actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 12px 0; }
  .action-link { width: 100%; padding: 10px 12px; }
  .panel { padding: 14px; border-radius: 18px; }
  .panel:hover { transform: none; }
  .kpi-value { margin-top: 10px; font-size: 30px; }
  .chart-panel { min-height: 340px; }
  .chart-box { height: 280px; min-width: 0; overflow: hidden; }
  .table-wrap { width: 100%; -webkit-overflow-scrolling: touch; }
}
