/* ========== 岁意互娱 - 双主题系统 ========== */
/* Google Fonts 在国内加载慢，改用系统字体栈，加载更快 */
/* @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap'); */

/* ── 暗色主题（默认） ─────────────────────── */
:root, [data-theme="dark"] {
  --bg: #08080f;
  --bg2: #0d0d18;
  --surface: #12121f;
  --surface2: #1a1a2e;
  --surface3: #222240;
  --border: #2a2a4a;
  --border-light: #3a3a5a;
  --text: #e8e8f5;
  --text-muted: #7878a0;
  --text-dim: #505070;
  --accent: #7c5cfc;
  --accent2: #a78bfa;
  --accent-glow: rgba(124, 92, 252, 0.3);
  --cyan: #06d6a0;
  --cyan-glow: rgba(6, 214, 160, 0.25);
  --pink: #ff6b9d;
  --pink-glow: rgba(255, 107, 157, 0.25);
  --gold: #ffd166;
  --gold-glow: rgba(255, 209, 102, 0.25);
  --orange: #ff9f43;
  --red: #ff4757;
  --green: #2ed573;
  --blue: #54a0ff;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
  --theme-toggle-bg: var(--surface2);
  --theme-toggle-icon: "🌙";
}

/* ── 蓝色主题 ─────────────────────────────── */
[data-theme="blue"] {
  --bg: #eaf2fb;
  --bg2: #dde9f6;
  --surface: #ffffff;
  --surface2: #f0f5fc;
  --surface3: #e2ecf7;
  --border: #c8d8ed;
  --border-light: #b0c4de;
  --text: #1a2a3a;
  --text-muted: #5a7090;
  --text-dim: #8a9ab0;
  --accent: #2563eb;
  --accent2: #3b82f6;
  --accent-glow: rgba(37, 99, 235, 0.2);
  --cyan: #0891b2;
  --cyan-glow: rgba(8, 145, 178, 0.2);
  --pink: #ec4899;
  --pink-glow: rgba(236, 72, 153, 0.15);
  --gold: #d97706;
  --gold-glow: rgba(217, 119, 6, 0.15);
  --orange: #ea580c;
  --red: #dc2626;
  --green: #16a34a;
  --blue: #2563eb;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 4px 20px rgba(37,99,235,0.08);
  --shadow-lg: 0 12px 40px rgba(37,99,235,0.12);
  --theme-toggle-bg: #dbeafe;
  --theme-toggle-icon: "☀️";
}

[data-theme="blue"] body::before {
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(37,99,235,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 90% 80%, rgba(8,145,178,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(236,72,153,0.03) 0%, transparent 60%);
}

[data-theme="blue"] .glass-card {
  box-shadow: 0 2px 12px rgba(37,99,235,0.06);
}
[data-theme="blue"] .glass-card:hover {
  box-shadow: 0 4px 20px rgba(37,99,235,0.12);
}

[data-theme="blue"] .center-card .card-title {
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="blue"] .stat-card:hover {
  box-shadow: 0 4px 16px rgba(37,99,235,0.1);
}

[data-theme="blue"] .data-table tr:hover {
  background: rgba(37,99,235,0.04);
}

[data-theme="blue"] .toast {
  background: var(--surface);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* ── 基础样式 ─────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Noto Sans SC', -apple-system, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}

body::before {
  content: '';
  position: fixed;
  top:0; right:0; bottom:0; left:0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(124,92,252,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 90% 80%, rgba(6,214,160,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(255,107,157,0.04) 0%, transparent 60%);
  animation: bgPulse 15s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
  transition: background 0.4s;
}

@keyframes bgPulse { 0% { opacity: 0.7; } 50% { opacity: 1; } 100% { opacity: 0.7; } }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
::selection { background: var(--accent); color: #fff; }

/* === PAGE WRAPPER === */
.page-wrap {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 100px;
}

/* === TOP NAV === */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.top-nav .nav-left { display: flex; align-items: center; gap: 12px; }
.top-nav .nav-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.top-nav .brand { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.top-nav .brand-icon { font-size: 1.4rem; }

/* === NAV LINKS === */
.nav-link {
  padding: 8px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  font-family: inherit;
  transition: all 0.25s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-link:hover { border-color: var(--accent); color: var(--text); text-decoration: none; }
.nav-link.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.nav-link.active { background: rgba(124,92,252,0.2); color: var(--accent2); border-color: var(--accent); }
.nav-link.danger { background: rgba(255,71,87,0.15); color: var(--red); border-color: rgba(255,71,87,0.3); }
.nav-link.danger:hover { background: var(--red); color: #fff; }

/* === THEME TOGGLE === */
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--theme-toggle-bg);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  padding: 0;
}
.theme-toggle:hover { border-color: var(--accent); transform: scale(1.08); }
.theme-toggle:active { transform: scale(0.95); }

/* === GLASS CARD === */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}
.glass-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}

/* === CENTER CARD === */
.center-card {
  max-width: 420px;
  margin: 80px auto;
  text-align: center;
}
.center-card .card-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 32px;
  background: linear-gradient(135deg, var(--accent2), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.center-card .card-icon { font-size: 2.4rem; margin-bottom: 16px; }

/* === FORM === */
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label {
  display: block; font-size: 0.88rem; color: var(--text-muted);
  font-weight: 500; margin-bottom: 8px;
}
.form-group label .required { color: var(--red); }
.form-group label .optional { color: var(--text-dim); font-size: 0.75rem; }

.form-input {
  width: 100%; padding: 12px 16px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: 0.92rem; font-family: inherit; outline: none;
  transition: all 0.25s;
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-input::placeholder { color: var(--text-dim); }
.form-input:disabled { background: var(--bg2); color: var(--text-dim); cursor: not-allowed; }

select.form-input {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%237878a0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
}
select.form-input option { background: var(--bg); color: var(--text); }
textarea.form-input { resize: vertical; min-height: 80px; }

/* === BUTTONS === */
.btn {
  padding: 12px 24px; border: none; border-radius: var(--radius-sm);
  font-size: 0.92rem; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: all 0.25s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px var(--accent-glow); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: var(--surface); color: var(--text-muted); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--text); }
.btn-danger { background: linear-gradient(135deg, var(--red), #e03e4d); color: #fff; }
.btn-danger:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,71,87,0.3); }
.btn-success { background: linear-gradient(135deg, var(--cyan), #38e8b0); color: #000; }
.btn-success:hover { transform: translateY(-1px); box-shadow: 0 4px 16px var(--cyan-glow); }
.btn-gold { background: linear-gradient(135deg, var(--gold), #ffe08a); color: #000; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 14px; font-size: 0.82rem; border-radius: 8px; }
.btn-xs { padding: 4px 10px; font-size: 0.75rem; border-radius: 6px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* === STAT CARDS === */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; text-align: center;
  transition: all 0.3s;
}
.stat-card:hover { border-color: var(--accent); box-shadow: 0 0 20px var(--accent-glow); }
.stat-card .stat-num { font-size: 2rem; font-weight: 800; margin: 4px 0; }
.stat-card .stat-label { font-size: 0.82rem; color: var(--text-muted); }
.stat-purple .stat-num { color: var(--accent); }
.stat-green .stat-num { color: var(--cyan); }
.stat-gold .stat-num { color: var(--gold); }
.stat-pink .stat-num { color: var(--pink); }
.stat-blue .stat-num { color: var(--blue); }
.stat-cyan .stat-num { color: var(--cyan); }
.stat-orange .stat-num { color: var(--orange); }
.stat-red .stat-num { color: var(--red); }

/* === TABLE === */
.data-table {
  width: 100%; border-collapse: collapse;
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
}
.data-table th {
  background: var(--bg2); padding: 14px 16px; text-align: left;
  font-size: 0.82rem; color: var(--text-muted); font-weight: 600;
  border-bottom: 2px solid var(--border);
}
.data-table td {
  padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.88rem; vertical-align: middle;
}
.data-table tr:hover { background: rgba(124,92,252,0.04); }
.data-table tr:last-child td { border-bottom: none; }

.filter-input {
  width: 100%; padding: 4px 8px; margin-top: 4px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 6px; color: var(--text); outline: none;
  font-size: 0.75rem; font-family: inherit;
}
.filter-input:focus { border-color: var(--accent); }
.filter-input::placeholder { color: var(--text-dim); }

/* === BADGES === */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.5px;
}
.badge-online { background: rgba(46,213,115,0.15); color: var(--green); }
.badge-busy { background: rgba(255,159,67,0.15); color: var(--orange); }
.badge-offline { background: rgba(120,120,160,0.15); color: var(--text-dim); }
.badge-pending { background: rgba(255,209,102,0.15); color: var(--gold); }
.badge-accepted { background: rgba(46,213,115,0.15); color: var(--green); }
.badge-inprogress { background: rgba(124,92,252,0.15); color: var(--accent); }
.badge-completed { background: rgba(84,160,255,0.15); color: var(--blue); }
.badge-cancelled { background: rgba(255,71,87,0.15); color: var(--red); }
.badge-super { background: rgba(255,193,7,0.2); color: var(--gold); }
.badge-normal { background: rgba(124,92,252,0.15); color: var(--accent2); }
.badge-tech { background: rgba(6,214,160,0.15); color: var(--cyan); }
.badge-fun { background: rgba(255,107,157,0.15); color: var(--pink); }
.badge-star { background: rgba(255,209,102,0.2); color: var(--gold); }

/* === MODAL === */
.modal-overlay {
  display: none; position: fixed; top:0; right:0; bottom:0; left:0;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(10px);
  z-index: 1000; justify-content: center; align-items: center;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); width: 95%; max-width: 600px;
  max-height: 85vh; overflow-y: auto; padding: 28px;
  animation: modalIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-box h3 { font-size: 1.2rem; margin-bottom: 20px; color: var(--text); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* === TOAST === */
.toast-container {
  position: fixed; top: 24px; right: 24px; z-index: 3000;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  padding: 14px 24px; background: var(--surface2);
  border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.35s ease, toastOut 0.35s ease 2.5s forwards;
  backdrop-filter: blur(12px);
}
.toast.success { border-left: 3px solid var(--cyan); }
.toast.error { border-left: 3px solid var(--red); }
.toast.info { border-left: 3px solid var(--blue); }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }

/* === RATING === */
.rating-stars { color: var(--gold); letter-spacing: 2px; }

/* === EMPTY STATE === */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .icon { font-size: 3rem; margin-bottom: 12px; opacity: 0.5; }
.empty-state .empty-illustration { width: 160px; height: 160px; margin: 0 auto 20px; }
.empty-state .empty-title { font-size: 1.1rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.empty-state .empty-sub { font-size: 0.85rem; color: var(--text-dim); line-height: 1.6; }

/* ── #13 骨架屏动画 ────────────────────────── */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--bg2) 25%, var(--surface2) 50%, var(--bg2) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: 8px;
}
.skeleton-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; margin-bottom: 16px;
}
.skeleton-banner { height: 140px; border-radius: var(--radius) var(--radius) 0 0; margin: -20px -20px 16px; }
.skeleton-avatar { width: 80px; height: 80px; border-radius: 20px; margin-top: -44px; margin-bottom: 16px; }
.skeleton-line { height: 14px; margin-bottom: 10px; border-radius: 4px; }
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w80 { width: 80%; }
.skeleton-line.w40 { width: 40%; }
.skeleton-line.w100 { width: 100%; }
.skeleton-tags { display: flex; gap: 8px; margin-bottom: 12px; }
.skeleton-tag { width: 60px; height: 24px; border-radius: 6px; }
.skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }

/* ── #14 页面过渡动画 ─────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.page-wrap {
  animation: fadeInUp 0.4s ease-out;
}
.fade-in { animation: fadeIn 0.3s ease-out; }
.fade-in-up { animation: fadeInUp 0.4s ease-out; }

/* ── #16 暗色模式图片自适应 ───────────────── */
[data-theme="dark"] img:not(.no-adapt),
:root img:not(.no-adapt) {
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
[data-theme="dark"] .review-images img,
:root .review-images img {
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transition: transform 0.25s, box-shadow 0.25s;
}
[data-theme="dark"] .review-images img:hover,
:root .review-images img:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
/* 蓝色主题下图片不加阴影 */
[data-theme="blue"] img:not(.no-adapt) {
  box-shadow: 0 2px 8px rgba(37,99,235,0.08);
}

/* ── #15 移动端底部 Tab 栏 ────────────────── */
.bottom-tab-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 800;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 6px 0 env(safe-area-inset-bottom, 8px);
  backdrop-filter: blur(16px);
}
.bottom-tab-bar .tab-list {
  display: flex; justify-content: space-around; align-items: center;
  max-width: 500px; margin: 0 auto;
}
.bottom-tab-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 12px; border-radius: 12px; text-decoration: none;
  color: var(--text-dim); font-size: 0.65rem; font-weight: 500;
  transition: all 0.2s; cursor: pointer; border: none; background: none;
  font-family: inherit; position: relative;
}
.bottom-tab-item .tab-icon { font-size: 1.3rem; line-height: 1; }
.bottom-tab-item.active { color: var(--accent); }
.bottom-tab-item.active .tab-icon { transform: scale(1.1); }
.bottom-tab-item:hover { color: var(--text); }
.bottom-tab-item .tab-badge {
  position: absolute; top: 2px; right: 4px;
  min-width: 16px; height: 16px; border-radius: 8px;
  background: var(--red); color: #fff; font-size: 0.6rem;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; padding: 0 4px;
}
@media (max-width: 768px) {
  .bottom-tab-bar { display: block; }
  .page-wrap { padding-bottom: 80px !important; }
}

/* ── #18 引导气泡 ─────────────────────────── */
.onboard-overlay {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2000;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.3s;
}
.onboard-overlay.hidden { display: none !important; }
.onboard-bubble {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px;
  max-width: 340px; width: 90%; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  margin: auto;
}
.onboard-bubble .bubble-icon { font-size: 3rem; margin-bottom: 12px; }
.onboard-bubble .bubble-title { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.onboard-bubble .bubble-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.onboard-bubble .bubble-actions { display: flex; gap: 10px; justify-content: center; }
.onboard-bubble .bubble-step { font-size: 0.75rem; color: var(--text-dim); margin-top: 12px; }
.onboard-bubble .bubble-progress { display: flex; gap: 6px; justify-content: center; margin-top: 8px; }
.onboard-bubble .bubble-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.onboard-bubble .bubble-dot.active { background: var(--accent); width: 20px; border-radius: 4px; }

/* ── #1 桌面推送样式 ──────────────────────── */
@keyframes notifyPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124,92,252,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(124,92,252,0); }
}
.notify-active { animation: notifyPulse 1.5s ease-in-out infinite; }

/* === PWA === */
@media (display-mode: standalone) {
  body { padding-top: env(safe-area-inset-top); }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .page-wrap { padding: 16px 16px 80px; }
  .top-nav { flex-direction: column; gap: 12px; }
  .top-nav .nav-right { gap: 6px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .data-table { overflow-x: auto; }
  .data-table table { min-width: 700px; }
  .stat-card .stat-num { font-size: 1.5rem; }
  .toast-container { top: 12px; right: 12px; left: 12px; }
  .toast { font-size: 0.82rem; padding: 10px 16px; }
  .skeleton-grid { grid-template-columns: 1fr; }
}

/* ── 翡翠绿 ─────────────────────────────── */
[data-theme="emerald"] {
  --bg: #071a12;
  --bg2: #0c2318;
  --surface: #0f2d1e;
  --surface2: #143826;
  --surface3: #1a4530;
  --border: #1f5a3a;
  --border-light: #2a7a50;
  --text: #e0f5ec;
  --text-muted: #6db89a;
  --text-dim: #3d7a60;
  --accent: #10b981;
  --accent2: #34d399;
  --accent-glow: rgba(16, 185, 129, 0.3);
  --cyan: #06d6a0;
  --cyan-glow: rgba(6, 214, 160, 0.25);
  --pink: #f472b6;
  --pink-glow: rgba(244, 114, 182, 0.2);
  --gold: #fbbf24;
  --gold-glow: rgba(251, 191, 36, 0.25);
  --orange: #fb923c;
  --red: #f87171;
  --green: #34d399;
  --blue: #60a5fa;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
  --theme-toggle-bg: var(--surface2);
  --theme-toggle-icon: "🌿";
}

[data-theme="emerald"] body::before {
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(16,185,129,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 90% 80%, rgba(6,214,160,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(52,211,153,0.04) 0%, transparent 60%);
}
[data-theme="emerald"] .glass-card:hover {
  box-shadow: 0 0 24px rgba(16,185,129,0.2);
}
[data-theme="emerald"] .center-card .card-title {
  background: linear-gradient(135deg, var(--accent2), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="emerald"] .stat-card:hover {
  box-shadow: 0 0 20px rgba(16,185,129,0.2);
}
[data-theme="emerald"] .data-table tr:hover {
  background: rgba(16,185,129,0.06);
}

/* ── 樱花粉 ─────────────────────────────── */
[data-theme="sakura"] {
  --bg: #fef1f6;
  --bg2: #fce7f0;
  --surface: #ffffff;
  --surface2: #fdf2f8;
  --surface3: #fce7f3;
  --border: #f9c8d8;
  --border-light: #f3a5c0;
  --text: #4a1942;
  --text-muted: #9f5a8a;
  --text-dim: #c48db0;
  --accent: #ec4899;
  --accent2: #f472b6;
  --accent-glow: rgba(236, 72, 153, 0.2);
  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.15);
  --pink: #ec4899;
  --pink-glow: rgba(236, 72, 153, 0.2);
  --gold: #d97706;
  --gold-glow: rgba(217, 119, 6, 0.15);
  --orange: #ea580c;
  --red: #e11d48;
  --green: #059669;
  --blue: #2563eb;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 4px 20px rgba(236,72,153,0.08);
  --shadow-lg: 0 12px 40px rgba(236,72,153,0.12);
  --theme-toggle-bg: #fce7f0;
  --theme-toggle-icon: "🌸";
}

[data-theme="sakura"] body::before {
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(236,72,153,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 90% 80%, rgba(244,114,182,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(251,113,133,0.04) 0%, transparent 60%);
}
[data-theme="sakura"] .glass-card {
  box-shadow: 0 2px 12px rgba(236,72,153,0.06);
}
[data-theme="sakura"] .glass-card:hover {
  box-shadow: 0 4px 20px rgba(236,72,153,0.12);
}
[data-theme="sakura"] .center-card .card-title {
  background: linear-gradient(135deg, var(--accent), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="sakura"] .stat-card:hover {
  box-shadow: 0 4px 16px rgba(236,72,153,0.1);
}
[data-theme="sakura"] .data-table tr:hover {
  background: rgba(236,72,153,0.04);
}
[data-theme="sakura"] .toast {
  background: var(--surface);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
[data-theme="sakura"] img:not(.no-adapt) {
  box-shadow: 0 2px 8px rgba(236,72,153,0.08);
}

/* ── 日落橙 ─────────────────────────────── */
[data-theme="sunset"] {
  --bg: #141008;
  --bg2: #1c1610;
  --surface: #241c14;
  --surface2: #2e2418;
  --surface3: #3a2e20;
  --border: #4a3a28;
  --border-light: #6a5038;
  --text: #f5e6d3;
  --text-muted: #b09070;
  --text-dim: #7a6050;
  --accent: #f59e0b;
  --accent2: #fbbf24;
  --accent-glow: rgba(245, 158, 11, 0.3);
  --cyan: #2dd4bf;
  --cyan-glow: rgba(45, 212, 191, 0.2);
  --pink: #fb7185;
  --pink-glow: rgba(251, 113, 133, 0.2);
  --gold: #fbbf24;
  --gold-glow: rgba(251, 191, 36, 0.3);
  --orange: #f97316;
  --red: #ef4444;
  --green: #22c55e;
  --blue: #60a5fa;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
  --theme-toggle-bg: var(--surface2);
  --theme-toggle-icon: "🌅";
}

[data-theme="sunset"] body::before {
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(245,158,11,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 90% 80%, rgba(249,115,22,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(251,191,36,0.04) 0%, transparent 60%);
}
[data-theme="sunset"] .glass-card:hover {
  box-shadow: 0 0 24px rgba(245,158,11,0.2);
}
[data-theme="sunset"] .center-card .card-title {
  background: linear-gradient(135deg, var(--accent2), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="sunset"] .stat-card:hover {
  box-shadow: 0 0 20px rgba(245,158,11,0.2);
}
[data-theme="sunset"] .data-table tr:hover {
  background: rgba(245,158,11,0.06);
}

/* ── 赛博霓虹 ───────────────────────────── */
[data-theme="midline"] {
  --bg: #050505;
  --bg2: #0a0a0a;
  --surface: #0f0f0f;
  --surface2: #161616;
  --surface3: #1e1e1e;
  --border: #2a2a2a;
  --border-light: #3a3a3a;
  --text: #e0e0e0;
  --text-muted: #808080;
  --text-dim: #555555;
  --accent: #00f5d4;
  --accent2: #00bbf9;
  --accent-glow: rgba(0, 245, 212, 0.3);
  --cyan: #00f5d4;
  --cyan-glow: rgba(0, 245, 212, 0.25);
  --pink: #f72585;
  --pink-glow: rgba(247, 37, 133, 0.25);
  --gold: #fee440;
  --gold-glow: rgba(254, 228, 64, 0.25);
  --orange: #ff6d00;
  --red: #ff1744;
  --green: #00e676;
  --blue: #00b0ff;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 8px 32px rgba(0,0,0,0.6);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.7);
  --theme-toggle-bg: var(--surface2);
  --theme-toggle-icon: "⚡";
}

[data-theme="midline"] body::before {
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(0,245,212,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 90% 80%, rgba(247,37,133,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(0,187,249,0.04) 0%, transparent 60%);
}
[data-theme="midline"] .glass-card:hover {
  box-shadow: 0 0 30px rgba(0,245,212,0.2), 0 0 15px rgba(247,37,133,0.15);
}
[data-theme="midline"] .center-card .card-title {
  background: linear-gradient(135deg, #00f5d4, #00bbf9, #f72585);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="midline"] .stat-card:hover {
  box-shadow: 0 0 24px rgba(0,245,212,0.2);
}
[data-theme="midline"] .data-table tr:hover {
  background: rgba(0,245,212,0.04);
}

/* ── 极简白 ─────────────────────────────── */
[data-theme="minimal"] {
  --bg: #ffffff;
  --bg2: #f8f9fa;
  --surface: #ffffff;
  --surface2: #f8f9fa;
  --surface3: #f0f1f3;
  --border: #e2e4e8;
  --border-light: #d0d3d8;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --text-dim: #9ca3af;
  --accent: #3b82f6;
  --accent2: #60a5fa;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --cyan: #0891b2;
  --cyan-glow: rgba(8, 145, 178, 0.12);
  --pink: #ec4899;
  --pink-glow: rgba(236, 72, 153, 0.1);
  --gold: #d97706;
  --gold-glow: rgba(217, 119, 6, 0.1);
  --orange: #ea580c;
  --red: #dc2626;
  --green: #16a34a;
  --blue: #3b82f6;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
  --theme-toggle-bg: #f0f1f3;
  --theme-toggle-icon: "⬜";
}

[data-theme="minimal"] body::before {
  background: none;
}
[data-theme="minimal"] .glass-card {
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
[data-theme="minimal"] .glass-card:hover {
  box-shadow: 0 4px 16px rgba(59,130,246,0.1);
}
[data-theme="minimal"] .center-card .card-title {
  background: linear-gradient(135deg, #1a1a2e, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="minimal"] .stat-card:hover {
  box-shadow: 0 4px 12px rgba(59,130,246,0.08);
}
[data-theme="minimal"] .data-table tr:hover {
  background: rgba(59,130,246,0.03);
}
[data-theme="minimal"] .toast {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
[data-theme="minimal"] img:not(.no-adapt) {
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
