* { box-sizing: border-box; }
html, body, #app { margin: 0; height: 100%; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif; color: #1e293b; }
[v-cloak] { display: none; }

:root {
  --el-color-primary: #2563eb;
  --el-color-primary-light-3: #60a5fa;
  --el-color-primary-light-5: #93c5fd;
  --el-color-primary-light-7: #bfdbfe;
  --el-color-primary-light-8: #dbeafe;
  --el-color-primary-light-9: #eff6ff;
  --el-color-success: #16a34a;
  --el-color-warning: #f59e0b;
  --el-color-danger: #ef4444;
  --el-border-radius-base: 8px;
  --el-text-color-primary: #1e293b;
  --el-text-color-regular: #475569;
}

/* ===== 登录页 ===== */
.login-page { display: flex; height: 100vh; background: #fff; }
.login-brand { flex: 1; background: linear-gradient(150deg, #0b1220 0%, #1e3a8a 55%, #2563eb 100%); color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 72px; position: relative; overflow: hidden; }
.login-brand::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: rgba(59,130,246,.18); }
.login-brand::before { content: ""; position: absolute; right: 40px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%; background: rgba(251,191,36,.12); }
.login-brand-img { width: 150px; height: 150px; object-fit: contain; margin-bottom: 22px; filter: drop-shadow(0 6px 18px rgba(0,0,0,.4)); }
.login-brand-logo { font-size: 48px; font-weight: 800; letter-spacing: 8px; line-height: 1; }
.login-brand-slogan { font-size: 22px; font-weight: 600; margin: 20px 0 12px; letter-spacing: 1px; }
.login-brand-desc { font-size: 14px; color: rgba(255,255,255,.72); line-height: 1.8; }
.login-features { list-style: none; padding: 0; margin: 44px 0 0; }
.login-features li { font-size: 14px; color: rgba(255,255,255,.86); padding: 11px 0; display: flex; align-items: center; gap: 10px; }
.login-features li::before { content: "✓"; color: #fbbf24; font-weight: 800; width: 20px; height: 20px; border-radius: 50%; background: rgba(251,191,36,.16); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.login-form-side { width: 500px; background: #fff; display: flex; align-items: center; justify-content: center; }
.login-form-card { width: 320px; }
.login-form-title { font-size: 26px; font-weight: 700; }
.login-form-sub { font-size: 13px; color: #94a3b8; margin: 10px 0 30px; }
.login-form-card .el-input__wrapper { padding: 6px 14px; border-radius: 8px; }
.login-btn { width: 100%; height: 44px; font-size: 15px; font-weight: 600; border-radius: 8px; }
.login-tip { margin-top: 20px; font-size: 12px; color: #94a3b8; line-height: 1.8; }
.login-icp { margin-top: 16px; font-size: 12px; color: #cbd5e1; }

/* ===== 主布局 ===== */
.layout { height: 100vh; }
.side { background: #0b1220; display: flex; flex-direction: column; }
.side-brand { padding: 20px 20px 16px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid rgba(255,255,255,.07); }
.side-logo { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.side-name { color: #fff; font-size: 17px; font-weight: 700; letter-spacing: 1px; }
.side-sub { color: #64748b; font-size: 11px; margin-top: 2px; }
.side-menu { flex: 1; padding: 14px 0; overflow-y: auto; }
.side .el-menu { border-right: none; background: transparent; }
.side .el-menu-item { height: 44px; line-height: 44px; margin: 3px 12px; border-radius: 8px; color: #94a3b8; font-size: 14px; }
.side .el-menu-item:hover { background: rgba(255,255,255,.06); color: #e2e8f0; }
.side .el-menu-item.is-active { background: #2563eb; color: #fff; font-weight: 600; }
.side-foot { padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.07); color: #64748b; font-size: 12px; }
.side-icp { color: #475569; font-size: 11px; margin-top: 4px; }

.topbar { background: #fff; border-bottom: 1px solid #eef2f7; display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 24px; }
.top-title { font-size: 17px; font-weight: 700; }
.top-right { display: flex; align-items: center; gap: 18px; }
.balance-pill { background: #eff6ff; color: #2563eb; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; }
.balance-pill b { font-size: 16px; }
.uname { cursor: pointer; color: #334155; font-size: 14px; font-weight: 600; }
.main { background: #f5f7fb; }

/* ===== 卡片 ===== */
.el-card { border: 1px solid #eef2f7; border-radius: 12px; box-shadow: none; }
.el-card + .el-card { margin-top: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-title { font-size: 15px; font-weight: 700; }

/* ===== 搜索区 ===== */
.search-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.search-row .el-input { width: 300px; }

/* ===== 指标卡 ===== */
.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.stat-card { background: #fff; border: 1px solid #eef2f7; border-radius: 12px; padding: 18px; }
.stat-num { font-size: 28px; font-weight: 800; color: #1e293b; line-height: 1.1; }
.stat-label { color: #94a3b8; font-size: 13px; margin-top: 8px; }
.stat-card.accent .stat-num { color: #2563eb; }

/* ===== 趋势图 ===== */
.trend-card { background: #fff; border: 1px solid #eef2f7; border-radius: 12px; padding: 18px; margin-top: 14px; }
.trend-title { font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.trend-chart { display: flex; align-items: flex-end; gap: 16px; height: 160px; padding: 0 8px; }
.trend-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.trend-bar { width: 100%; max-width: 44px; background: linear-gradient(180deg, #60a5fa, #2563eb); border-radius: 6px 6px 0 0; min-height: 4px; position: relative; }
.trend-val { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: 12px; color: #475569; font-weight: 600; }
.trend-label { font-size: 11px; color: #94a3b8; margin-top: 8px; }

/* ===== 表格 ===== */
.el-table { --el-table-border-color: #eef2f7; --el-table-header-bg-color: #f8fafc; }
.el-table th.el-table__cell { background: #f8fafc; color: #64748b; font-weight: 600; }
.el-table .el-table__row:hover > td.el-table__cell { background: #f5f9ff; }
.mask { color: #b0b7c3; letter-spacing: 1px; }
.plus { color: #16a34a; font-weight: 600; }
.minus { color: #ef4444; font-weight: 600; }

/* ===== 徽章/标签 ===== */
.el-tag { border-radius: 999px; border: none; }

/* ===== 套餐卡 ===== */
.pkg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pkg-card { border: 1px solid #eef2f7; border-radius: 12px; background: #fff; padding: 24px 18px; text-align: center; transition: transform .15s; }
.pkg-card:hover { transform: translateY(-3px); border-color: #bfdbfe; }
.pkg-name { font-size: 15px; color: #475569; font-weight: 600; }
.pkg-points { font-size: 36px; font-weight: 800; color: #2563eb; margin: 14px 0 2px; }
.pkg-points span { font-size: 13px; font-weight: 400; color: #94a3b8; }
.pkg-price { color: #f97316; font-size: 15px; margin: 8px 0 18px; }
.pkg-btn { width: 100%; }

/* ===== 详情抽屉 ===== */
.sec-title { font-size: 15px; font-weight: 700; margin: 0 0 12px; }
.detail-tags { margin-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.info-item { display: flex; gap: 8px; }
.info-label { color: #94a3b8; font-size: 13px; min-width: 76px; }
.info-value { color: #1e293b; font-size: 13px; }

/* ===== 弹窗 ===== */
.el-dialog { border-radius: 14px; }
.el-dialog__header { border-bottom: 1px solid #f1f5f9; margin-right: 0; padding-bottom: 14px; }
.el-dialog__title { font-size: 16px; font-weight: 700; }

/* ===== 其它 ===== */
.pager { display: flex; justify-content: flex-end; margin-top: 14px; }
.tip { color: #94a3b8; font-size: 12px; margin-top: 8px; line-height: 1.7; }
.warn { color: #d97706; font-size: 12px; margin-top: 8px; line-height: 1.7; }
.import-row { display: flex; gap: 12px; align-items: center; }
.empty-hint { color: #94a3b8; text-align: center; padding: 40px 0; font-size: 13px; }
.action-btn { margin-bottom: 12px; }
