:root {
  --bg: #0B1020;
  --panel: #151C33;
  --panel-2: #10162A;
  --line: rgba(255, 255, 255, 0.08);
  --text: #E9EEFA;
  --muted: #8E9AB8;
  --muted-2: #7481A2;
  --accent: #7CE7D8;
  --accent-deep: #00B8C4;
  --violet: #7D5CFF;
  --danger: #FF8A8A;
  --warn: #FFCB6B;
  --ok: #6EE7A8;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background:
    radial-gradient(900px 480px at 8% -10%, rgba(124, 231, 216, 0.09), transparent 60%),
    radial-gradient(760px 420px at 96% 0%, rgba(125, 92, 255, 0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

button, input, select, textarea { font: inherit; }
a { color: var(--accent); text-decoration: none; }

.boot { padding: 80px 20px; text-align: center; color: var(--muted); }

/* ---------- 登录 ---------- */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.auth-eyebrow { color: var(--accent); letter-spacing: 3px; font-size: 12px; font-weight: 600; }
.auth-title { font-size: 32px; font-weight: 700; margin: 10px 0 4px; }
.auth-sub { color: var(--muted); font-size: 13px; margin-bottom: 30px; }
.auth-switch { margin-top: 22px; text-align: center; color: var(--muted); font-size: 13px; }
.auth-switch button { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0 4px; }

/* ---------- 布局 ---------- */
.shell { max-width: 1280px; margin: 0 auto; padding: 0 28px 64px; }
.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.brand { font-size: 20px; font-weight: 800; letter-spacing: 1px; white-space: nowrap; }
.brand span { color: var(--accent); font-weight: 600; font-size: 13px; margin-left: 8px; letter-spacing: 0; }
.nav { display: flex; gap: 6px; flex: 1; flex-wrap: wrap; }
.nav button {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
}
.nav button:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav button.active { color: var(--accent); border-color: rgba(124, 231, 216, 0.35); background: rgba(124, 231, 216, 0.08); }
.user-area { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.role-pill { border: 1px solid rgba(124, 231, 216, 0.35); color: var(--accent); border-radius: 999px; padding: 3px 12px; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 12px; }
.link-btn:hover { color: var(--danger); }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.eyebrow { color: var(--accent); letter-spacing: 2px; font-size: 11px; font-weight: 700; }
h1 { font-size: 30px; margin: 6px 0 6px; line-height: 1.2; }
.sub { color: var(--muted); font-size: 13px; margin: 0; }
.head-actions { display: flex; gap: 10px; align-items: center; }

/* ---------- 通用组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity .15s, transform .15s;
}
.btn:hover { opacity: .85; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #06131A; }
.btn-violet { background: var(--violet); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.05); border-color: var(--line); color: var(--text); }
.btn-danger { background: rgba(255,138,138,.12); border-color: rgba(255,138,138,.35); color: var(--danger); }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 8px; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
.card + .card { margin-top: 18px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .shell { padding: 0 16px 48px; }
}

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.field label .req { color: var(--danger); margin-left: 3px; }
.field input, .field select, .field textarea, .modal input, .modal textarea {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 11px 13px;
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus, .modal input:focus, .modal textarea:focus {
  border-color: rgba(124, 231, 216, 0.6);
}
.field textarea { min-height: 88px; resize: vertical; }
.field-hint { font-size: 11px; color: var(--muted-2); margin-top: 6px; }
.error-text { color: var(--danger); font-size: 12px; margin-top: 6px; }
.banner { padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 13px; }
.banner-error { background: rgba(255,138,138,.1); border: 1px solid rgba(255,138,138,.3); color: var(--danger); }
.banner-ok { background: rgba(110,231,168,.08); border: 1px solid rgba(110,231,168,.25); color: var(--ok); }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty b { display: block; color: var(--text); font-size: 16px; margin-bottom: 6px; }

.badge { display: inline-block; font-size: 11px; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.badge-pending_pay { color: var(--warn); background: rgba(255,203,107,.12); }
.badge-paid { color: var(--accent); background: rgba(124,231,216,.12); }
.badge-cancelled { color: var(--danger); background: rgba(255,138,138,.12); }
.badge-approved { color: var(--accent); background: rgba(124,231,216,.12); }
.badge-rejected { color: var(--danger); background: rgba(255,138,138,.12); }
.badge-review { color: var(--warn); background: rgba(255,203,107,.12); }

/* ---------- 首页 / 价目 ---------- */
.hero-card {
  background: linear-gradient(120deg, rgba(124,231,216,.12), rgba(125,92,255,.10));
  border: 1px solid rgba(124,231,216,.18);
  border-radius: 22px;
  padding: 34px;
  margin-bottom: 22px;
}
.hero-card h2 { margin: 0 0 8px; font-size: 26px; }
.hero-card p { color: var(--muted); margin: 0 0 20px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.section-title { font-size: 18px; font-weight: 700; margin: 28px 0 14px; }
.booster-card { position: relative; }
.booster-name { font-size: 17px; font-weight: 700; }
.booster-meta { color: var(--muted); font-size: 12px; margin: 4px 0 10px; }
.booster-desc { color: var(--muted); font-size: 12px; min-height: 34px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag { font-size: 11px; padding: 5px 10px; border-radius: 8px; background: rgba(124,231,216,.08); border: 1px solid rgba(124,231,216,.18); color: var(--accent); }
.plan-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: 12px; background: var(--panel-2);
  border: 1px solid var(--line); margin-bottom: 8px;
}
.plan-price { color: var(--accent); font-weight: 700; font-size: 16px; }

/* ---------- 订单卡 ---------- */
.order-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px; margin-bottom: 14px; }
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.order-no { font-weight: 700; font-size: 15px; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
@media (max-width: 640px) { .info-grid { grid-template-columns: 1fr; } }
.info-item { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.info-item .k { color: var(--muted-2); flex-shrink: 0; }
.info-item .v { text-align: right; color: var(--text); word-break: break-word; }
.amount { color: var(--accent); font-weight: 700; }
.card-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

.exception-box { margin-top: 16px; padding: 14px; border-radius: 12px; background: rgba(255,138,138,.05); border: 1px solid rgba(255,138,138,.18); }
.exception-title { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--danger); font-weight: 700; margin-bottom: 8px; }
.exception-text { font-size: 12px; color: var(--text); white-space: pre-wrap; }
.review-log { font-size: 12px; color: var(--accent); white-space: pre-wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.admin-note { font-size: 11px; color: var(--muted); white-space: pre-wrap; margin-top: 10px; }
.report-box { margin-top: 14px; }
.report-box textarea { width: 100%; min-height: 70px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: 10px 12px; }

/* ---------- 统计 / 标签 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; text-align: center; }
.stat-num { font-size: 28px; font-weight: 800; line-height: 1.2; }
.stat-label { font-size: 11px; color: var(--muted); margin-top: 4px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs button { background: var(--panel); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 7px 16px; font-size: 12px; cursor: pointer; }
.tabs button.active { background: var(--accent); color: #06131A; border-color: var(--accent); font-weight: 700; }

.summary { background: linear-gradient(120deg, rgba(124,231,216,.10), transparent); border: 1px solid rgba(124,231,216,.2); border-radius: 14px; padding: 16px; margin-top: 8px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; margin-bottom: 6px; }
.summary-row:last-child { margin-bottom: 0; }
.summary-price { color: var(--accent); font-size: 20px; font-weight: 800; }

/* ---------- 弹层 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(3,6,16,.74); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal { width: 100%; max-width: 460px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.modal h3 { margin: 0 0 8px; font-size: 19px; }
.modal p { color: var(--muted); font-size: 12px; margin: 0 0 18px; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; justify-content: flex-end; }
.toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); background: #223052; border: 1px solid var(--line); color: var(--text); padding: 10px 20px; border-radius: 999px; font-size: 13px; z-index: 200; box-shadow: 0 10px 30px rgba(0,0,0,.4); }

/* ---------- 滑块验证码 ---------- */
.sl-box { width: 100%; }
.sl-board { position: relative; width: 100%; height: 160px; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #1b1f3b 0%, #3a2d6b 50%, #123a52 100%); }
.sl-board::before { content: ''; position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px); background-size: 24px 24px; }
.sl-notch { position: absolute; box-sizing: border-box; background: rgba(0,0,0,.45); border: 3px dashed rgba(255,255,255,.85); border-radius: 12px; }
.sl-notch-done { border-color: rgba(56,217,169,.95); background: rgba(56,217,169,.18); box-shadow: inset 0 0 0 2px rgba(56,217,169,.55); }
.sl-blob { position: absolute; pointer-events: none; }
.sl-thumb-done { background: #38d9a9; color: #fff; }
.sl-piece { position: absolute; box-sizing: border-box; background: linear-gradient(135deg, #6d5dfc, #22c1c3); border: 3px solid #fff; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,.4); opacity: .92; }
.sl-hint { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 11px; color: rgba(255,255,255,.55); }
.sl-track { position: relative; margin-top: 16px; height: 44px; border-radius: 999px; background: #eef1f7; overflow: hidden; user-select: none; touch-action: none; }
.sl-fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #6d5dfc, #22c1c3); opacity: .35; }
.sl-tip { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #9aa3b5; pointer-events: none; }
.sl-thumb { position: absolute; top: 4px; width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: 0 2px 12px rgba(80,90,130,.35); display: flex; align-items: center; justify-content: center; font-size: 20px; color: #6d5dfc; font-weight: 700; cursor: grab; touch-action: none; }
.sl-refresh { margin-top: 8px; text-align: right; font-size: 12px; color: #6d5dfc; cursor: pointer; }
.sl-msg { color: var(--muted); font-size: 12px; padding: 12px 0; }
.sl-ok { margin-top: 8px; color: #22a06b; font-size: 12px; }
