﻿/* ═══════════════════════════════════════════════════════════
   云间小卖铺 — Sky Cloud Theme
   天空蓝 · 白云 · 雪花 · 雨滴 意境
   v1.5.4
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&family=Quicksand:wght@400;500;600;700&display=swap');

:root {
  /* ── 天空蓝主题色 ── */
  --sky-deep: #1a3a5c;
  --sky-mid: #4a90d9;
  --sky-light: #87ceeb;
  --sky-pale: #b8e0f7;
  --sky-ice: #e8f4fc;
  --sky-white: #f0f8ff;
  
  /* ── 云朵白 ── */
  --cloud-white: #ffffff;
  --cloud-soft: #f5faff;
  --cloud-border: rgba(255, 255, 255, 0.8);
  
  /* ── 雪花/雨滴金 ── */
  --snow-gold: #f0c27f;
  --snow-silver: #e0e8f0;
  --rain-drop: #7ec8e3;
  
  /* ── 文字色 ── */
  --text-primary: #1a2a3a;
  --text-secondary: #4a6274;
  --text-dim: #8a9ab0;
  --text-inverse: #ffffff;
  
  /* ── 状态色 ── */
  --success: #38bdf8;
  --warning: #fbbf24;
  --danger: #f87171;
  --info: #7dd3fc;
  
  /* ── 尺寸 ── */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --sidebar-width: 260px;
  --header-height: 64px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════════════════
   基础重置
═══════════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Noto Sans SC', 'Quicksand', -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-primary);
  background: linear-gradient(180deg, 
    #0f2b4a 0%, 
    #1a4a7a 30%, 
    #3a7bd5 60%, 
    #87ceeb 85%, 
    #b8e0f7 100%
  );
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════
   背景层（固定，不随页面滚动）
═══════════════════════════════════════════════════════════ */
.sky-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(255,255,255,0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 30%, rgba(135,206,235,0.2) 0%, transparent 50%),
    linear-gradient(180deg, #0f2b4a 0%, #1a4a7a 30%, #3a7bd5 60%, #87ceeb 85%, #b8e0f7 100%);
}

/* 远处的云 */
.sky-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 120% 40% at 15% 15%, rgba(255,255,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 80% 30% at 75% 25%, rgba(255,255,255,0.06) 0%, transparent 50%),
    radial-gradient(ellipse 100% 25% at 50% 70%, rgba(255,255,255,0.05) 0%, transparent 40%);
  animation: cloud-drift 60s linear infinite;
}

/* 近处的云 */
.sky-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: 
    radial-gradient(ellipse 90% 100% at 10% 100%, rgba(255,255,255,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 70% 80% at 85% 100%, rgba(255,255,255,0.08) 0%, transparent 50%);
  animation: cloud-drift 45s linear infinite reverse;
}

@keyframes cloud-drift {
  0% { transform: translateX(0); }
  100% { transform: translateX(40px); }
}

/* ═══════════════════════════════════════════════════════════
   粒子画布（雪花/雨滴）
═══════════════════════════════════════════════════════════ */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   登录页
═══════════════════════════════════════════════════════════ */
.login-page {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
}

.login-container {
  width: 100%;
  max-width: 400px;
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

/* 登录卡片 */
.login-box {
  padding: 2.5rem 2rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  box-shadow: 
    0 8px 32px rgba(26, 58, 92, 0.18),
    0 2px 8px rgba(255, 255, 255, 0.4) inset,
    0 0 0 1px rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

/* 顶部光带 */
.login-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--sky-light), 
    var(--snow-gold), 
    var(--sky-light), 
    transparent
  );
  opacity: 0.8;
}

/* 底部光晕 */
.login-box::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200%;
  height: 120px;
  background: radial-gradient(ellipse, rgba(135, 206, 235, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* Logo 区域 */
.logo-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px;
  box-shadow: 0 4px 12px rgba(26, 58, 92, 0.15);
}

.brand-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  margin-bottom: 0.2rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 2px;
}

/* 标题 */
.login-title {
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.2rem;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.login-sub {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 1.75rem;
  letter-spacing: 0.08em;
}

/* 表单组 */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
  letter-spacing: 0.04em;
}

.cyber-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid rgba(135, 206, 235, 0.35);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.cyber-input::placeholder {
  color: var(--text-dim);
}

.cyber-input:focus {
  border-color: var(--sky-mid);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.12);
}

.input-wrapper {
  position: relative;
}

.toggle-pwd {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
  transition: color 0.2s;
}

.toggle-pwd:hover { color: var(--sky-mid); }

/* 记住账号 */
.remember-row {
  display: flex;
  align-items: center;
  margin: 1rem 0 1.25rem;
}

.remember-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.remember-checkbox input {
  width: 15px;
  height: 15px;
  accent-color: var(--sky-mid);
  cursor: pointer;
}

/* 按钮 */
.cyber-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.cyber-btn-block {
  width: 100%;
}

.cyber-btn-primary {
  background: linear-gradient(135deg, var(--sky-mid), #5ba3d9);
  color: white;
  box-shadow: 0 4px 16px rgba(74, 144, 217, 0.35);
}

.cyber-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(74, 144, 217, 0.45);
}

.cyber-btn-primary:active {
  transform: translateY(0);
}

.cyber-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.cyber-btn-ghost {
  background: rgba(255, 255, 255, 0.6);
  border: 1.5px solid rgba(135, 206, 235, 0.3);
  color: var(--text-secondary);
}

.cyber-btn-ghost:hover {
  border-color: var(--sky-mid);
  color: var(--sky-mid);
  background: rgba(255, 255, 255, 0.8);
}

.cyber-btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
}

/* 错误提示 */
.login-error {
  display: none;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.85rem;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: var(--radius-sm);
  color: #dc2626;
  font-size: 0.82rem;
  text-align: center;
}

.login-error.show { display: block; }

/* 底部状态 */
.login-footer {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
  margin-right: 5px;
  vertical-align: middle;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ═══════════════════════════════════════════════════════════
   Dashboard 布局
═══════════════════════════════════════════════════════════ */
.dashboard-layout {
  display: flex;
  height: 100vh;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

/* 侧边栏 */
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-right: 1px solid rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 10;
  box-shadow: 4px 0 24px rgba(26, 58, 92, 0.08);
}

.sidebar-brand {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(135, 206, 235, 0.15);
}

.brand-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sky-deep);
  letter-spacing: 0.06em;
}

.brand-version {
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
  letter-spacing: 0.08em;
}

.sidebar-nav {
  flex: 1;
  padding: 0.75rem 0.6rem;
  overflow-y: auto;
}

.nav-section-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.4rem 0.75rem 0.25rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.2rem;
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid transparent;
  text-decoration: none;
}

.nav-item:hover {
  color: var(--sky-mid);
  background: rgba(135, 206, 235, 0.08);
  border-color: rgba(135, 206, 235, 0.15);
}

.nav-item.active {
  color: white;
  background: linear-gradient(135deg, var(--sky-mid), #5ba3d9);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(74, 144, 217, 0.3);
}

.nav-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.95rem;
  background: rgba(135, 206, 235, 0.1);
  flex-shrink: 0;
  transition: var(--transition);
}

.nav-item.active .nav-icon {
  background: rgba(255, 255, 255, 0.2);
}

.nav-item:hover .nav-icon {
  background: rgba(135, 206, 235, 0.15);
}

.sidebar-footer {
  padding: 0.85rem 1rem;
  border-top: 1px solid rgba(135, 206, 235, 0.12);
}

.user-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky-mid), var(--snow-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  overflow: hidden;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

/* 主内容区 */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.top-bar {
  height: var(--header-height);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 16px rgba(26, 58, 92, 0.06);
}

.page-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.page-title span {
  color: var(--sky-mid);
}

.time-display {
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.view-container {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  background: transparent;
}

.view-container::-webkit-scrollbar {
  width: 6px;
}

.view-container::-webkit-scrollbar-track {
  background: transparent;
}

.view-container::-webkit-scrollbar-thumb {
  background: rgba(135, 206, 235, 0.3);
  border-radius: 3px;
}

.view-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.loader-ring {
  width: 32px;
  height: 32px;
  border: 2.5px solid rgba(135, 206, 235, 0.2);
  border-top-color: var(--sky-mid);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 0.75rem;
}

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

/* ═══════════════════════════════════════════════════════════
   通用组件
═══════════════════════════════════════════════════════════ */

/* Glass 面板 */
.glass-panel {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(26, 58, 92, 0.07);
}

/* 视图头部 */
.view-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.view-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.view-header p {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
}

/* 统计卡片 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.stat-card {
  padding: 1.15rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 58, 92, 0.12);
}

.stat-icon {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.stat-card.cyan .stat-value { color: var(--sky-mid); }
.stat-card.purple .stat-value { color: #8b5cf6; }
.stat-card.green .stat-value { color: #34d399; }
.stat-card.orange .stat-value { color: var(--snow-gold); }

/* 数据表格 */
.data-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  table-layout: fixed;
}

.data-table th,
.data-table td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0.8rem 0.75rem;
}

.data-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(240, 248, 255, 0.5);
  border-bottom: 1px solid rgba(135, 206, 235, 0.15);
}

.data-table td {
  border-bottom: 1px solid rgba(135, 206, 235, 0.08);
  color: var(--text-primary);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background 0.15s;
}

.data-table tbody tr:hover {
  background: rgba(135, 206, 235, 0.06);
}

/* 徽章 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-active {
  color: #047857;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.badge-inactive {
  color: var(--text-dim);
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.badge-warning {
  color: #b45309;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.badge-danger {
  color: #dc2626;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* 操作按钮 */
.action-btns {
  display: flex;
  gap: 0.35rem;
}

.action-btn {
  padding: 0.3rem 0.65rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(135, 206, 235, 0.2);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.action-btn:hover {
  border-color: var(--sky-mid);
  color: var(--sky-mid);
  background: rgba(135, 206, 235, 0.08);
}

.action-btn.danger:hover {
  border-color: var(--danger);
  color: var(--danger);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 30, 50, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  width: 100%;
  max-width: 500px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(26, 58, 92, 0.2);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.show .modal-box {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.modal-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.modal-close:hover { color: var(--danger); }

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

/* 搜索框 */
.toolbar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 320px;
}

.search-box input {
  width: 100%;
  padding: 0.6rem 0.85rem 0.6rem 2.2rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid rgba(135, 206, 235, 0.25);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--sky-mid);
  background: rgba(255, 255, 255, 0.9);
}

.search-box .search-icon {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* 图表面板 */
.chart-panel {
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  min-height: 220px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 160px;
  padding-top: 0.75rem;
  gap: 0.5rem;
}

.chart-bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 60px;
}

.chart-bar {
  width: 100%;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--sky-mid), rgba(74, 144, 217, 0.4));
  transition: height 0.8s ease-out;
  position: relative;
  min-height: 3px;
}

.chart-bar.purple {
  background: linear-gradient(180deg, #8b5cf6, rgba(139, 92, 246, 0.4));
}

.chart-bar-label {
  margin-top: 0.45rem;
  font-size: 0.7rem;
  color: var(--text-dim);
}

.chart-bar-value {
  position: absolute;
  top: -1.1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  color: var(--sky-mid);
  font-weight: 600;
  white-space: nowrap;
}

/* 活动列表 */
.activity-list {
  list-style: none;
}

.activity-item {
  display: flex;
  gap: 0.85rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(135, 206, 235, 0.1);
}

.activity-item:last-child { border-bottom: none; }

.activity-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.activity-dot.cyan { background: var(--sky-mid); box-shadow: 0 0 6px rgba(74, 144, 217, 0.4); }
.activity-dot.green { background: #34d399; box-shadow: 0 0 6px rgba(52, 211, 153, 0.4); }
.activity-dot.orange { background: var(--snow-gold); }
.activity-dot.red { background: var(--danger); }

.activity-content { flex: 1; }
.activity-text { font-size: 0.85rem; margin-bottom: 0.15rem; }
.activity-time { font-size: 0.72rem; color: var(--text-dim); }

/* Toast */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  animation: toastIn 0.25s ease;
  border: 1px solid;
  max-width: 320px;
  box-shadow: 0 8px 24px rgba(26, 58, 92, 0.12);
}

.toast-success {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.25);
  color: #047857;
}

.toast-error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #dc2626;
}

.toast-info {
  background: rgba(135, 206, 235, 0.12);
  border-color: rgba(135, 206, 235, 0.25);
  color: var(--sky-deep);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-dim);
}

.empty-state .empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.5;
}

/* 工具类 */
.mono {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: var(--sky-mid);
  letter-spacing: 0.03em;
}

.icon { color: var(--sky-mid); font-size: 0.75rem; }

/* 两列布局 */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

/* ═══════════════════════════════════════════════════════════
   响应式
═══════════════════════════════════════════════════════════ */
.menu-toggle {
  display: none;
  background: none;
  border: 1.5px solid rgba(135, 206, 235, 0.3);
  color: var(--text-primary);
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
}

@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    height: 100vh;
    z-index: 100;
    transition: left 0.3s ease;
  }
  .sidebar.open { left: 0; }
  .menu-toggle { display: flex !important; }
  .grid-2col { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .login-box { padding: 2rem 1.25rem; }
  .view-container { padding: 1rem; }
}
