/* ============================================================
   火花续期 · 统一视觉主题系统
   主题：渐变火花（靛蓝紫 #667eea → 紫 #764ba2 → 粉 #f093fb）
   ============================================================ */

:root {
  --spark-grad: linear-gradient(135deg, #667eea 0%, #764ba2 55%, #f093fb 100%);
  --spark-grad-soft: linear-gradient(135deg, rgba(102,126,234,.12), rgba(240,147,251,.12));
  --bg-dark: #181825;
  --bg-main: #f0f2f5;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.05);
  --shadow-hover: 0 4px 12px rgba(0,0,0,.07), 0 18px 44px rgba(118,75,162,.16);
  --text-main: #2c3e50;
  --text-sub: #8a90a8;
}

/* ========== 通用动画 ========== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes floatUp  { 0% { transform: translateY(0) scale(1); opacity: 0; } 12% { opacity: .9; } 88% { opacity: .9; } 100% { transform: translateY(-115vh) scale(.6); opacity: 0; } }
@keyframes glowPulse { 0%, 100% { box-shadow: 0 0 18px rgba(118,75,162,.35); } 50% { box-shadow: 0 0 34px rgba(240,147,251,.55); } }
@keyframes shimmer  { to { background-position: 200% center; } }

.anim-up  { animation: fadeInUp .55s cubic-bezier(.22,.8,.36,1) both; }
.anim-up-1 { animation: fadeInUp .55s .08s cubic-bezier(.22,.8,.36,1) both; }
.anim-up-2 { animation: fadeInUp .55s .16s cubic-bezier(.22,.8,.36,1) both; }
.anim-up-3 { animation: fadeInUp .55s .24s cubic-bezier(.22,.8,.36,1) both; }
.anim-up-4 { animation: fadeInUp .55s .32s cubic-bezier(.22,.8,.36,1) both; }

/* ========== 火花粒子（登录/注册/首页背景） ========== */
.spark-particles { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.spark-particle { position: absolute; bottom: -30px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,147,251,.95), rgba(102,126,234,.5) 55%, transparent 72%);
  animation: floatUp linear infinite; }

/* ========== 渐变文字 / 发光 ========== */
.grad-text { background: var(--spark-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.glow { animation: glowPulse 3s ease-in-out infinite; }

/* ========== 管理端 · 页面头部 ========== */
.page-head { position: relative; display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; padding-bottom: 14px; }
.page-head::after { content: ''; position: absolute; left: 0; bottom: 0; width: 64px; height: 3px; border-radius: 3px; background: var(--spark-grad); }
.page-head h1 { font-size: 22px; color: var(--text-main); display: flex; align-items: center; gap: 10px; }

/* ========== 管理端 · 卡片统一 ========== */
.el-card { border-radius: var(--radius) !important; border: none !important; box-shadow: var(--shadow) !important; transition: box-shadow .25s, transform .25s; }
.el-card.is-hover-shadow:hover { box-shadow: var(--shadow-hover) !important; transform: translateY(-2px); }

/* ========== 统计卡片（概览） ========== */
.stat-card { border-radius: var(--radius); padding: 20px; color: #fff; position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.stat-card .stat-icon { position: absolute; right: -10px; top: -10px; font-size: 64px; opacity: .18; transform: rotate(-8deg); }
.stat-card .stat-label { font-size: 13px; opacity: .85; margin-bottom: 8px; }
.stat-card .stat-value { font-size: 30px; font-weight: 800; letter-spacing: .5px; }
.stat-g1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.stat-g2 { background: linear-gradient(135deg, #764ba2, #f093fb); }
.stat-g3 { background: linear-gradient(135deg, #22c1c3, #2fb55c); }
.stat-g4 { background: linear-gradient(135deg, #f093fb, #ff6b8a); }

/* ========== 日志面板（终端风格） ========== */
.term { background: #11131f; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #1c1f33; }
.term-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.term-bar .dot-r { background: #ff5f57; } .term-bar .dot-y { background: #febc2e; } .term-bar .dot-g { background: #28c840; }
.term-bar .term-title { color: #8a90a8; font-size: 12px; margin-left: 8px; letter-spacing: .3px; }
.term-body { padding: 14px; color: #cdd6f4; font-family: 'SFMono-Regular', Consolas, monospace; font-size: 12px; line-height: 1.8; max-height: 440px; overflow-y: auto; white-space: pre-wrap; word-break: break-all; }

/* ========== 表格优化 ========== */
.el-table { border-radius: var(--radius-sm); }
.el-table th.el-table__cell { background: #f7f8fc !important; color: var(--text-sub); font-weight: 600; }

/* ========== 抽屉 / 弹窗圆角 ========== */
.el-drawer__header { color: var(--text-main); font-weight: 700; }
.el-button { border-radius: 8px !important; }
.el-button--primary { background: linear-gradient(135deg, #667eea, #764ba2) !important; border: none !important; }
.el-button--primary:hover { background: linear-gradient(135deg, #764ba2, #f093fb) !important; box-shadow: 0 6px 16px rgba(118,75,162,.4); }
.el-button--success { background: linear-gradient(135deg, #22c1c3, #2fb55c) !important; border: none !important; }

/* ========== 用户端 ========== */
.user-nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(0,0,0,.06); }
.user-nav .logo { font-size: 19px; font-weight: 800; background: var(--spark-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.user-card { border-radius: var(--radius) !important; border: none !important; box-shadow: var(--shadow) !important; }
.user-card:hover { box-shadow: var(--shadow-hover) !important; }

/* ========== 响应式 ========== */
@media (max-width: 900px) { .stat-card .stat-value { font-size: 24px; } }
