* { margin:0; padding:0; box-sizing:border-box; font-family:'Inter',-apple-system,'Segoe UI',Roboto,sans-serif; }
body { background:#f5f7fb; min-height:100vh; }

/* 登录/注册 */
.auth-wrapper { display:flex; align-items:center; justify-content:center; min-height:100vh; padding:1.5rem; }
.auth-card { background:#fff; border-radius:2rem; padding:2.5rem; width:100%; max-width:420px; box-shadow:0 20px 40px rgba(0,0,0,.06); }
.auth-logo { font-size:1.8rem; font-weight:700; text-align:center; margin-bottom:1.5rem; color:#1e293b; }
.auth-logo i { color:#3b82f6; }
.auth-logo span { color:#3b82f6; }
.auth-tabs { display:flex; background:#f1f5f9; border-radius:50px; padding:.3rem; margin-bottom:1.5rem; }
.auth-tab { flex:1; padding:.7rem; border:none; background:transparent; border-radius:40px; font-weight:600; color:#64748b; cursor:pointer; }
.auth-tab.active { background:#fff; color:#2563eb; box-shadow:0 2px 8px rgba(0,0,0,.04); }
.auth-form .form-group { margin-bottom:1rem; }
.auth-form label { display:block; font-size:.9rem; color:#334155; margin-bottom:.4rem; }
.form-control { width:100%; padding:.8rem 1rem; border-radius:14px; border:1.5px solid #e2e8f0; font-size:.95rem; outline:none; transition:.2s; }
.form-control:focus { border-color:#3b82f6; box-shadow:0 0 0 4px rgba(59,130,246,.1); }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:.5rem; background:#2563eb; color:#fff; border:none; padding:.8rem 1.6rem; border-radius:40px; font-weight:600; cursor:pointer; transition:.2s; }
.btn:hover:not(:disabled) { background:#1d4ed8; }
.btn:disabled { opacity:.6; cursor:not-allowed; }
.btn-block { width:100%; }
.btn-outline { background:transparent; border:1.5px solid #cbd5e1; color:#334155; }
.btn-outline:hover:not(:disabled) { background:#f8fafc; }
.btn-sm { padding:.5rem 1rem; font-size:.85rem; }
.tip { font-size:.8rem; color:#94a3b8; text-align:center; margin-top:1rem; }
.hidden { display:none!important; }

/* 主面板 */
.app-container { max-width:1400px; margin:0 auto; background:#fff; min-height:100vh; display:flex; flex-direction:column; }
.navbar { display:flex; justify-content:space-between; align-items:center; padding:1rem 2rem; border-bottom:1px solid #eef2f6; }
.logo { font-weight:700; font-size:1.4rem; color:#1e293b; }
.logo i { color:#3b82f6; } .logo span { color:#3b82f6; }
.user-badge { display:flex; align-items:center; gap:1rem; }
.balance-pill { background:#ecfdf5; color:#059669; padding:.5rem 1rem; border-radius:40px; font-weight:600; font-size:.9rem; display:flex; align-items:center; gap:.4rem; }
.avatar { width:40px; height:40px; border-radius:50%; background:#e2e8f0; display:flex; align-items:center; justify-content:center; font-weight:600; color:#475569; }
.main-layout { display:flex; flex:1; }
.sidebar { width:240px; background:#fafcff; border-right:1px solid #eef2f6; padding:1.5rem 1rem; display:flex; flex-direction:column; gap:.3rem; }
.nav-item { display:flex; align-items:center; gap:.8rem; padding:.9rem 1rem; border:none; background:transparent; border-radius:14px; color:#64748b; font-weight:500; cursor:pointer; text-align:left; transition:.2s; }
.nav-item i { width:20px; }
.nav-item.active { background:#fff; color:#2563eb; box-shadow:0 4px 10px rgba(37,99,235,.08); font-weight:600; }
.nav-item:hover:not(.active) { background:#f1f5f9; }
.content { flex:1; padding:2rem 2.5rem; overflow-y:auto; }
.content-section { display:none; } .content-section.active { display:block; }
.page-title { font-size:1.8rem; font-weight:700; color:#0f172a; margin-bottom:.3rem; }
.page-subtitle { color:#64748b; font-size:.95rem; border-left:3px solid #3b82f6; padding-left:1rem; margin-bottom:2rem; }
.card { background:#fff; border-radius:24px; padding:1.75rem; border:1px solid #eef2f6; margin-bottom:1.5rem; box-shadow:0 4px 20px rgba(0,0,0,.02); }
.card-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:1.2rem; }
.card-header h3 { font-size:1.1rem; color:#1e293b; }
.stat-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:1.5rem; }
.stat-card { display:flex; align-items:center; gap:1rem; }
.stat-icon { width:56px; height:56px; border-radius:20px; display:flex; align-items:center; justify-content:center; font-size:1.6rem; }
.stat-icon.blue { background:#eff6ff; color:#2563eb; } .stat-icon.green { background:#f0fdf4; color:#16a34a; }
.stat-label { color:#64748b; font-size:.85rem; } .stat-value { font-size:1.6rem; font-weight:700; }
.form-row { display:flex; gap:1rem; flex-wrap:wrap; margin-bottom:1rem; }
.form-row .form-group { flex:1; min-width:150px; }
.form-group label { display:block; font-size:.85rem; color:#334155; margin-bottom:.4rem; }
.table-wrapper { overflow-x:auto; border-radius:16px; border:1px solid #eef2f6; }
table { width:100%; border-collapse:collapse; font-size:.9rem; }
th { text-align:left; padding:1rem; background:#f8fafc; color:#475569; font-weight:500; white-space:nowrap; }
td { padding:1rem; border-bottom:1px solid #f1f5f9; white-space:nowrap; }
tr:last-child td { border-bottom:none; }
.loading { text-align:center; color:#94a3b8; padding:1.5rem; }
.badge { background:#eef2ff; color:#4338ca; padding:.25rem .7rem; border-radius:20px; font-size:.75rem; }
.notice { padding:1rem 1.2rem; border-radius:14px; margin-bottom:1rem; font-size:.9rem; }
.notice.warning { background:#fffbeb; color:#92400e; border:1px solid #fde68a; }
.notice a { color:#2563eb; }
.profile-row { display:flex; align-items:center; gap:1.5rem; }
.profile-avatar { width:80px; height:80px; border-radius:50%; background:#e2e8f0; display:flex; align-items:center; justify-content:center; font-size:2rem; color:#475569; }
.profile-name { font-size:1.4rem; font-weight:600; }
.profile-money { font-size:1.8rem; font-weight:700; color:#2563eb; }
.muted { color:#64748b; font-size:.85rem; }
hr { border:none; border-top:1px solid #eef2f6; margin:1.2rem 0; }
.toast { position:fixed; bottom:30px; right:30px; background:#1e293b; color:#fff; padding:1rem 1.6rem; border-radius:16px; display:flex; align-items:center; gap:.6rem; transform:translateY(100px); opacity:0; transition:.3s; z-index:9999; }
.toast.show { transform:translateY(0); opacity:1; }
.toast i { color:#34d399; } .toast.error i { color:#f87171; }
.spinner { width:16px; height:16px; border:2px solid rgba(255,255,255,.3); border-top-color:#fff; border-radius:50%; animation:spin .7s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
@media (max-width:900px) {
    .sidebar { display:none; }
    .content { padding:1.5rem; }
    .navbar { padding:1rem 1.2rem; }
}