/* ==========================================================================
   FitTrack Studio - 运营控制大盘专属视觉样式系统 (Operations Radar)
   Linear / Raycast / Vercel Grade Dark Frosted Glassmorphism
   ========================================================================== */

#section-dashboard {
  animation: dashboardFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

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

/* --------------------------------------------------------------------------
   0. 大盘专属 Hero 概览横幅 (Radar Cockpit Hero)
   -------------------------------------------------------------------------- */
.dash-hero-banner {
  position: relative;
  background: radial-gradient(120% 120% at 85% 10%, rgba(6, 182, 212, 0.16), transparent 55%),
              radial-gradient(100% 100% at 15% 90%, rgba(139, 92, 246, 0.12), transparent 50%),
              linear-gradient(180deg, rgba(17, 26, 46, 0.95) 0%, rgba(10, 16, 30, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px 30px;
  margin-bottom: 24px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  overflow: hidden;
}

.dash-hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #06B6D4 30%, #3B82F6 60%, #8B5CF6 85%, transparent 100%);
  opacity: 0.9;
}

.dash-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #38BDF8;
  margin-bottom: 8px;
  background: rgba(56, 189, 248, 0.1);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.22);
}

.dash-hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 10px #10B981, 0 0 4px #10B981;
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.dash-hero-title {
  font-size: 22px;
  font-weight: 750;
  color: #F8FAFC;
  letter-spacing: -0.4px;
  margin: 0 0 6px 0;
  line-height: 1.25;
}

.dash-hero-desc {
  color: #94A3B8;
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
  max-width: 620px;
}

.dash-quick-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

.dash-quick-actions .btn-primary {
  background: linear-gradient(135deg, #0284C7 0%, #2563EB 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #FFFFFF;
}

.dash-quick-actions .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.45);
  filter: brightness(1.06);
}

/* --------------------------------------------------------------------------
   1. 顶部 5 大 KPI 核心卡片 (Core Metric Cards)
   -------------------------------------------------------------------------- */
#section-dashboard .metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 1400px) {
  #section-dashboard .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  #section-dashboard .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  #section-dashboard .metrics-grid {
    grid-template-columns: 1fr;
  }
}

#section-dashboard .metric-card-interactive {
  cursor: pointer;
}

#section-dashboard .metric-card-interactive:hover {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.38), 0 0 24px rgba(56, 189, 248, 0.16);
  transform: translateY(-4px);
}

#section-dashboard .metric-card {
  position: relative;
  background: linear-gradient(180deg, rgba(20, 30, 52, 0.8) 0%, rgba(13, 20, 36, 0.85) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28),
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease,
              box-shadow 0.2s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#section-dashboard .metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

#section-dashboard .metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.38), 0 0 24px rgba(56, 189, 248, 0.12);
}

#section-dashboard .metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

#section-dashboard .metric-label {
  font-size: 13px;
  font-weight: 600;
  color: #94A3B8;
  letter-spacing: 0.2px;
}

#section-dashboard .metric-header .svg-icon {
  width: 17px;
  height: 17px;
  padding: 6px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #38BDF8;
  transition: all 0.2s ease;
}

#section-dashboard .metric-card:hover .metric-header .svg-icon {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.25);
  color: #22D3EE;
}

#section-dashboard .metric-value {
  font-size: 34px;
  font-weight: 800;
  color: #F8FAFC;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  letter-spacing: -0.8px;
  line-height: 1.1;
  margin-bottom: 14px;
}

#section-dashboard .metric-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #64748B;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
  margin-top: auto;
  gap: 8px;
}

#section-dashboard .metric-trend {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 11px;
  font-weight: 500;
  color: #94A3B8;
  white-space: nowrap;
}

#section-dashboard .metric-meta {
  font-size: 12px;
  color: #94A3B8;
  white-space: nowrap;
}

#section-dashboard .metric-meta b {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   2. 内容质量雷达评测卡片 (Quality Radar & Health Hub)
   -------------------------------------------------------------------------- */
#section-dashboard .quality-section {
  background: linear-gradient(180deg, rgba(20, 30, 52, 0.85) 0%, rgba(12, 18, 34, 0.9) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.32),
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#section-dashboard .quality-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 18px;
  margin-bottom: 22px;
}

#section-dashboard .quality-header h3 {
  font-size: 17px;
  font-weight: 650;
  color: #F8FAFC;
  letter-spacing: -0.3px;
  margin: 0;
}

#section-dashboard .quality-header p {
  font-size: 12px;
  color: #94A3B8;
  margin: 4px 0 0 0;
}

#section-dashboard .quality-score-badge {
  display: flex;
  align-items: baseline;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.16) 0%, rgba(59, 130, 246, 0.09) 100%);
  border: 1px solid rgba(6, 182, 212, 0.35);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  padding: 8px 22px;
  border-radius: 12px;
}

#section-dashboard .score-num {
  font-size: 34px;
  font-weight: 800;
  color: #22D3EE;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  margin-right: 4px;
  letter-spacing: -0.6px;
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.4);
}

#section-dashboard .score-unit {
  font-size: 13px;
  color: #38BDF8;
  font-weight: 600;
}

#section-dashboard .quality-body {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
  align-items: stretch;
}

@media (max-width: 992px) {
  #section-dashboard .quality-body {
    grid-template-columns: 1fr;
  }
}

#section-dashboard .quality-metrics {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

#section-dashboard .quality-metric-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#section-dashboard .metric-row-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  color: #E2E8F0;
}

#section-dashboard .metric-row-header b {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #38BDF8;
  font-size: 13px;
}

#section-dashboard .progress-bar-bg {
  height: 9px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

#section-dashboard .progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

#section-dashboard .fill-success {
  background: linear-gradient(90deg, #10B981, #34D399);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.45);
}

#section-dashboard .fill-warning {
  background: linear-gradient(90deg, #F59E0B, #FBBF24);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.45);
}

#section-dashboard .fill-primary {
  background: linear-gradient(90deg, #06B6D4, #38BDF8);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.45);
}

/* 待办事项盒子 (Todo Radar) */
#section-dashboard .todo-notice-box {
  background: rgba(8, 14, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#section-dashboard .todo-title {
  font-size: 13px;
  font-weight: 650;
  color: #F8FAFC;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}

#section-dashboard .todo-title::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #F59E0B;
  box-shadow: 0 0 8px #F59E0B;
}

#section-dashboard .todo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#section-dashboard .todo-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: #94A3B8;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.15s ease;
}

#section-dashboard .todo-item:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.1);
}

/* --------------------------------------------------------------------------
   3. 底部网格：运营动态与运营提醒 (Activity & Alerts)
   -------------------------------------------------------------------------- */
#section-dashboard .dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 992px) {
  #section-dashboard .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

#section-dashboard .dashboard-grid .panel {
  background: linear-gradient(180deg, rgba(20, 30, 52, 0.85) 0%, rgba(12, 18, 34, 0.9) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.28),
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#section-dashboard .panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

#section-dashboard .panel-header h3 {
  font-size: 15px;
  font-weight: 650;
  color: #F8FAFC;
  margin: 0;
  letter-spacing: -0.2px;
}

#section-dashboard .panel-header .text-sub {
  font-size: 12px;
  color: #64748B;
}

#section-dashboard .activity-feed,
#section-dashboard .alert-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#section-dashboard .feed-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(8, 14, 26, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.18s ease;
}

#section-dashboard .feed-item:hover {
  background: rgba(16, 26, 48, 0.7);
  border-color: rgba(56, 189, 248, 0.25);
  transform: translateX(3px);
}

#section-dashboard .feed-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: #22D3EE;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#section-dashboard .feed-content {
  flex: 1;
  min-width: 0;
}

#section-dashboard .feed-title {
  font-size: 13px;
  font-weight: 500;
  color: #E2E8F0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#section-dashboard .feed-time {
  font-size: 11px;
  color: #64748B;
  margin-top: 2px;
  font-family: 'JetBrains Mono', monospace;
}

/* 提醒卡片 (Ops Alert Cards) */
#section-dashboard .alert-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

#section-dashboard .alert-item.alert-warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.22);
}

#section-dashboard .alert-item.alert-danger {
  background: rgba(244, 63, 94, 0.08);
  border-color: rgba(244, 63, 94, 0.22);
}

#section-dashboard .alert-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

#section-dashboard .badge-warn {
  background: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
}

#section-dashboard .badge-danger {
  background: rgba(244, 63, 94, 0.2);
  color: #FB7185;
}
