:root {
    --primary: #4f6ef7;
    --primary-dark: #3b5de7;
    --primary-light: #eef2ff;
    --danger: #ef4444;
    --green: #10b981;
    --red: #ef4444;
    --bg: #f0f2f8;
    --card-bg: #ffffff;
    --text: #1a1d2e;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --radius: 14px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.04);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.1), 0 4px 12px rgba(0,0,0,.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }
main.container { flex: 1; padding-top: 28px; padding-bottom: 48px; }

/* ===== Background Decoration ===== */
.bg-decoration {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: -1; overflow: hidden;
}
.bg-blob {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: 0.4;
    animation: blobFloat 20s ease-in-out infinite;
}
.bg-blob-1 {
    width: 500px; height: 500px; top: -100px; right: -100px;
    background: radial-gradient(circle, rgba(79,110,247,.15) 0%, transparent 70%);
    animation-delay: 0s;
}
.bg-blob-2 {
    width: 400px; height: 400px; bottom: 10%; left: -80px;
    background: radial-gradient(circle, rgba(124,58,237,.12) 0%, transparent 70%);
    animation-delay: -7s;
    animation-duration: 25s;
}
.bg-blob-3 {
    width: 350px; height: 350px; top: 40%; right: 20%;
    background: radial-gradient(circle, rgba(16,185,129,.08) 0%, transparent 70%);
    animation-delay: -14s;
    animation-duration: 22s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(15px, 35px) scale(1.02); }
}

/* ===== Scroll Progress ===== */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; z-index: 200;
    background: linear-gradient(90deg, var(--primary), #7c3aed, #ec4899);
    width: 0%; transition: width 0.1s;
    border-radius: 0 2px 2px 0;
}

/* ===== Navbar ===== */
.navbar {
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0,0,0,.05);
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow .3s, background .3s;
    box-shadow: 0 1px 8px rgba(0,0,0,.04);
}
.navbar.scrolled {
    background: rgba(255,255,255,.95);
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    position: relative;
}
.logo-icon {
    width: 40px; height: 40px;
    animation: logoPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(79,110,247,.3));
}
@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.logo-text {
    font-size: 22px; font-weight: 800;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

/* Nav Links */
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link-item {
    display: flex; align-items: center; gap: 6px;
    color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500;
    padding: 8px 14px; border-radius: 10px;
    transition: all .25s ease;
    position: relative;
}
.nav-link-item:hover {
    color: var(--primary);
    background: var(--primary-light);
}
.nav-icon { width: 18px; height: 18px; flex-shrink: 0; }
.nav-divider {
    width: 1px; height: 20px; background: var(--border); margin: 0 6px;
}

/* Nav Admin */
.nav-admin {
    background: linear-gradient(135deg, var(--primary), #6366f1) !important;
    color: #fff !important;
    font-size: 13px; font-weight: 700;
    box-shadow: 0 2px 8px rgba(79,110,247,.25);
    padding: 6px 14px !important;
}
.nav-admin:hover {
    box-shadow: 0 4px 16px rgba(79,110,247,.4) !important;
    background: linear-gradient(135deg, var(--primary-dark), #4f46e5) !important;
    transform: translateY(-1px);
}

/* Nav VIP */
.nav-vip-link {
    color: #f59e0b !important; font-weight: 600;
}
.nav-vip-link:hover {
    background: #fffbeb !important;
    color: #d97706 !important;
}

/* VIP Badge */
.vip-badge {
    display: inline-flex; align-items: center; gap: 4px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff; font-size: 11px; font-weight: 700;
    padding: 4px 12px; border-radius: 20px;
    letter-spacing: .5px; text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(245,158,11,.3);
    animation: vipGlow 2s ease-in-out infinite;
}
.vip-icon { width: 14px; height: 14px; }
@keyframes vipGlow {
    0%, 100% { box-shadow: 0 2px 8px rgba(245,158,11,.3); }
    50% { box-shadow: 0 2px 16px rgba(245,158,11,.5); }
}

/* Nav User Section */
.nav-user-section {
    display: flex; align-items: center; gap: 8px;
    background: var(--primary-light); padding: 4px 12px 4px 4px;
    border-radius: 24px;
}
.nav-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
}
.user-info {
    font-size: 13px; color: var(--text);
    font-weight: 500;
}
.nav-logout {
    display: flex; align-items: center;
    color: var(--text-muted); transition: color .2s;
    padding: 4px;
}
.nav-logout:hover { color: var(--red); }
.nav-logout svg { width: 16px; height: 16px; }
/* Mobile Menu Button */
.mobile-menu-btn {
    display: none; flex-direction: column; gap: 4px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
.mobile-menu-btn span {
    width: 24px; height: 2px; background: var(--text);
    transition: all .3s ease;
}

@media (max-width: 640px) {
    .mobile-menu-btn { display: flex; }
    .nav-links {
        position: fixed; top: 64px; left: 0; right: 0;
        background: rgba(255,255,255,.95); backdrop-filter: blur(20px);
        flex-direction: column; padding: 20px;
        transform: translateY(-100%); opacity: 0;
        transition: all .3s ease; pointer-events: none;
        box-shadow: 0 4px 20px rgba(0,0,0,.1);
    }
    .nav-links.mobile-open {
        transform: translateY(0); opacity: 1; pointer-events: auto;
    }
    .nav-divider { width: 100%; height: 1px; margin: 8px 0; }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 20px; border-radius: 10px; font-size: 14px; font-weight: 600;
    text-decoration: none; border: none; cursor: pointer;
    transition: all .25s ease;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: #fff; box-shadow: 0 2px 8px rgba(79,110,247,.25);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(79,110,247,.35);
}
.btn-secondary {
    background: var(--card-bg); color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    border-color: var(--primary); color: var(--primary);
}
.btn-danger {
    background: var(--danger); color: #fff;
}
.btn-danger:hover {
    background: #dc2626;
}
.btn-block { width: 100%; }
.btn-nav-login {
    padding: 8px 18px !important; font-size: 13px !important;
}

/* ===== Hero Section ===== */
.hero-new {
    position: relative; min-height: 85vh; display: flex;
    align-items: center; justify-content: center;
    padding: 80px 20px 60px; overflow: hidden;
}
.hero-content {
    position: relative; z-index: 2; text-align: center;
    max-width: 700px;
}
.hero-badge {
    display: inline-block; padding: 8px 20px; border-radius: 20px;
    background: linear-gradient(135deg, rgba(79,110,247,.1), rgba(124,58,237,.1));
    color: var(--primary); font-size: 14px; font-weight: 600;
    margin-bottom: 24px; border: 1px solid rgba(79,110,247,.2);
}
.hero-title {
    font-size: 42px; font-weight: 800; letter-spacing: -1px;
    margin-bottom: 12px; line-height: 1.2;
}
.hero-gradient-text {
    background: linear-gradient(135deg, var(--primary), #7c3aed, #ec4899);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    color: var(--text-muted); font-size: 16px; font-weight: 400;
    margin-bottom: 18px;
}

.warm-tip {
    display: inline-flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg, rgba(255,255,255,.8), rgba(255,255,255,.65));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(236,72,153,.15);
    padding: 6px 14px; border-radius: 10px;
    margin-bottom: 24px; font-size: 13px; font-weight: 500;
    color: var(--text); box-shadow: 0 2px 12px rgba(236,72,153,.08);
    position: relative; overflow: hidden;
    max-width: 450px; min-height: 30px;
}
.warm-tip svg { width: 12px; height: 12px; flex-shrink: 0; color: #ec4899; }

.warm-tip-slider {
    flex: 1; overflow: hidden; position: relative;
    height: 18px; line-height: 18px;
}
.warm-tip-track {
    position: relative; width: 100%; height: 100%;
}
.warm-tip-item {
    position: absolute; top: 0; left: 0; width: 100%;
    opacity: 0; transform: translateY(6px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.warm-tip-item.active {
    opacity: 1; transform: translateY(0);
}

.hero-stats {
    display: flex; align-items: center; justify-content: center;
    gap: 24px; margin-bottom: 28px;
}
.hero-stat { text-align: center; }
.hero-stat-number {
    font-size: 32px; font-weight: 800;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-stat-label {
    font-size: 12px; color: var(--text-muted);
    font-weight: 500; margin-top: 2px;
}
.hero-stat-divider {
    width: 1px; height: 36px; background: var(--border);
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-hero-primary {
    display: inline-flex !important; align-items: center; gap: 8px;
    padding: 12px 28px !important; border-radius: 12px !important;
    font-size: 15px !important; font-weight: 600 !important;
    background: linear-gradient(135deg, var(--primary), #6366f1) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(79,110,247,.3) !important;
    transition: all .3s ease !important;
}
.btn-hero-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 24px rgba(79,110,247,.4) !important;
}
.btn-hero-primary svg { width: 18px; height: 18px; }

.btn-hero-secondary {
    display: inline-flex !important; align-items: center; gap: 8px;
    padding: 12px 28px !important; border-radius: 12px !important;
    font-size: 15px !important; font-weight: 600 !important;
    background: var(--card-bg) !important;
    color: var(--text) !important;
    border: 1.5px solid var(--border) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all .3s ease !important;
}
.btn-hero-secondary:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-md) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}
.btn-hero-secondary svg { width: 18px; height: 18px; }

/* Hero Floating Elements */
.hero-visual {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 1;
}
.hero-float {
    position: absolute; font-size: 28px;
    animation: heroFloat 6s ease-in-out infinite;
    opacity: 0.6;
}
.hero-float-1 { top: 15%; left: 8%; animation-delay: 0s; }
.hero-float-2 { top: 20%; right: 10%; animation-delay: -1.5s; font-size: 32px; }
.hero-float-3 { bottom: 25%; left: 12%; animation-delay: -3s; }
.hero-float-4 { bottom: 20%; right: 8%; animation-delay: -4.5s; }
.hero-float-5 { top: 50%; left: 5%; animation-delay: -2s; font-size: 22px; }

@keyframes heroFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(5deg); }
    75% { transform: translateY(10px) rotate(-3deg); }
}

/* Hero Particles */
.hero-particles {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
}
.particle {
    position: absolute; border-radius: 50%;
    animation: particleFloat linear infinite;
    opacity: 0;
}
@keyframes particleFloat {
    0% { transform: translateY(100%) scale(0); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100vh) scale(1); opacity: 0; }
}

/* ===== Animate Items ===== */
.animate-item {
    opacity: 0;
    animation: animateItem 0.6s ease forwards;
    animation-delay: calc(var(--delay) * 0.15s + 0.2s);
}
@keyframes animateItem {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Scroll Reveal ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
/* ===== Features Section ===== */
.features-section { margin-top: 48px; }
.section-title-center {
    text-align: center; font-size: 24px; font-weight: 800;
    margin-bottom: 32px; letter-spacing: -0.5px;
}
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
    background: var(--card-bg); border-radius: var(--radius);
    padding: 32px 24px; text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all .3s ease;
    position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), #7c3aed);
    transform: scaleX(0); transition: transform .3s ease;
    transform-origin: left;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
    width: 56px; height: 56px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-icon-blue {
    background: linear-gradient(135deg, rgba(79,110,247,.1), rgba(79,110,247,.2));
    color: var(--primary);
}
.feature-icon-purple {
    background: linear-gradient(135deg, rgba(124,58,237,.1), rgba(124,58,237,.2));
    color: #7c3aed;
}
.feature-icon-green {
    background: linear-gradient(135deg, rgba(16,185,129,.1), rgba(16,185,129,.2));
    color: var(--green);
}
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ===== Section Title ===== */
.section-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 18px; font-weight: 700; margin-bottom: 18px;
}
.section-icon { width: 22px; height: 22px; color: var(--primary); flex-shrink: 0; }

/* ===== Flash Messages ===== */
.flash {
    padding: 14px 18px; border-radius: var(--radius); margin-bottom: 16px;
    font-size: 14px; font-weight: 500;
    animation: flashIn .4s ease;
}
.flash-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.flash-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.flash-info { background: var(--primary-light); color: var(--primary); border: 1px solid #c7d2fe; }

@keyframes flashIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Cards ===== */
.card {
    background: var(--card-bg); border-radius: var(--radius);
    padding: 28px; margin-bottom: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .3s ease;
}
.card:hover { box-shadow: var(--shadow-md); }
.card h2 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }

/* ===== Forms ===== */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block; font-size: 14px; font-weight: 600;
    margin-bottom: 6px; color: var(--text);
}
input[type="text"], input[type="password"], input[type="email"],
input[type="number"], select, textarea {
    width: 100%; padding: 10px 14px; border-radius: 10px;
    border: 1px solid var(--border); font-size: 14px;
    background: var(--card-bg); color: var(--text);
    transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,110,247,.1);
}
textarea { resize: vertical; min-height: 100px; }

/* ===== Tables ===== */
.table {
    width: 100%; border-collapse: collapse;
    font-size: 14px;
}
.table th, .table td {
    padding: 12px 14px; text-align: left;
    border-bottom: 1px solid var(--border);
}
.table th {
    font-weight: 600; color: var(--text-muted);
    font-size: 13px; text-transform: uppercase;
    letter-spacing: 0.5px;
}
.table tr:hover { background: var(--bg); }

/* ===== Badges ===== */
.badge {
    display: inline-block; padding: 4px 10px; border-radius: 12px;
    font-size: 12px; font-weight: 600;
}
.badge-blue { background: var(--primary-light); color: var(--primary); }
.badge-red { background: #fef2f2; color: #ef4444; }
.badge-green { background: #f0fdf4; color: #10b981; }
.badge-yellow { background: #fffbeb; color: #f59e0b; }

/* ===== Stats Grid ===== */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
.stat-card {
    background: var(--card-bg); border-radius: var(--radius); padding: 28px 24px;
    text-align: center; border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform .25s, box-shadow .25s;
    position: relative; overflow: hidden;
}
.stat-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), #7c3aed);
    transform: scaleX(0); transition: transform .3s ease;
    transform-origin: left;
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.stat-card:hover::before { transform: scaleX(1); }
.stat-number {
    font-size: 32px; font-weight: 800;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}
.stat-label { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* ===== Category Bars ===== */
.category-bars { margin-top: 16px; }
.bar-row {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 12px;
}
.bar-label {
    width: 100px; font-size: 13px; font-weight: 500;
    color: var(--text); flex-shrink: 0;
}
.bar-track {
    flex: 1; height: 8px; background: var(--bg);
    border-radius: 4px; overflow: hidden;
}
.bar-fill {
    height: 100%; background: linear-gradient(90deg, var(--primary), #7c3aed);
    border-radius: 4px; transition: width 1s ease;
}
.bar-count {
    width: 50px; font-size: 13px; font-weight: 600;
    color: var(--text); text-align: right;
}

/* ===== Page Header ===== */
.page-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px;
}
.page-header h1 { font-size: 24px; font-weight: 700; }
.text-muted { color: var(--text-muted); text-decoration: none; font-size: 14px; }
.text-muted:hover { color: var(--primary); }

/* ===== Blessing Container - 满屏飘动可爱特效 ===== */
.blessing-container {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none; z-index: 0; overflow: hidden;
}
body.no-blessing .blessing-container { display: none; }

.blessing-item {
    position: absolute;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    animation: blessingFloatUp 12s ease-in-out infinite;
    white-space: nowrap;
    text-shadow: 0 2px 8px rgba(255,255,255,.8);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.1));
}

@keyframes blessingFloatUp {
    0% {
        transform: translateY(100vh) rotate(-10deg) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.9;
    }
    30% {
        transform: translateY(70vh) rotate(8deg) scale(1.05);
        opacity: 0.85;
    }
    50% {
        transform: translateY(50vh) rotate(-5deg) scale(1.1);
        opacity: 0.75;
    }
    70% {
        transform: translateY(30vh) rotate(6deg) scale(1.05);
        opacity: 0.85;
    }
    90% {
        opacity: 0.9;
    }
    100% {
        transform: translateY(-100vh) rotate(-8deg) scale(0.9);
        opacity: 0;
    }
}

/* 可爱彩色文字 */
.blessing-pink { color: #ec4899; }
.blessing-purple { color: #8b5cf6; }
.blessing-blue { color: #3b82f6; }
.blessing-green { color: #10b981; }
.blessing-orange { color: #f59e0b; }
.blessing-red { color: #ef4444; }
.blessing-cyan { color: #06b6d4; }
.blessing-yellow { color: #eab308; }
/* ===== Footer ===== */
.footer {
    background: var(--card-bg); border-top: 1px solid var(--border);
    padding: 32px 20px; margin-top: auto;
}
.footer-inner {
    max-width: 960px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
}
.footer-brand {
    display: flex; align-items: center; gap: 8px;
    font-size: 16px; font-weight: 700; color: var(--primary);
}
.footer-logo { width: 32px; height: 32px; }
.footer-copy { font-size: 13px; color: var(--text-muted); }
.footer-links { display: flex; gap: 16px; }
.footer-links a {
    font-size: 13px; color: var(--text-muted); text-decoration: none;
    transition: color .2s;
}
.footer-links a:hover { color: var(--primary); }
/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-new { min-height: 75vh; padding: 60px 16px 40px; }
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 14px; }
    .hero-stats { gap: 16px; flex-wrap: wrap; }
    .hero-stat-number { font-size: 24px; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }

    .features-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .page-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .card { padding: 20px; }
    .hero-title { font-size: 28px; }
    .warm-tip { max-width: 100%; padding: 6px 10px; font-size: 12px; }
    .bar-label { width: 70px; font-size: 12px; }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), #7c3aed);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ===== Selection ===== */
::selection {
    background: rgba(79,110,247,.2);
    color: var(--text);
}

/* ===== Loading Spinner ===== */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 6px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Import Tabs ===== */
.import-tabs { display: flex; gap: 0; margin-bottom: 18px; background: #f3f4f6; border-radius: 10px; padding: 4px; }
.import-tab {
    flex: 1; text-align: center; padding: 10px; font-size: 14px;
    font-weight: 600; border: none; background: transparent; cursor: pointer;
    border-radius: 8px; color: var(--text-muted); transition: all .25s;
}
.import-tab.active { color: var(--primary); background: var(--card-bg); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.file-drop-area {
    border: 2px dashed var(--border); border-radius: 12px;
    padding: 32px; text-align: center; cursor: pointer;
    transition: border-color .2s, background .2s;
}
.file-drop-area:hover, .file-drop-area.dragover {
    border-color: var(--primary); background: var(--primary-light);
}
.import-stats { display: flex; gap: 16px; margin: 16px 0; flex-wrap: wrap; }
.import-stat { flex: 1; min-width: 100px; text-align: center; padding: 16px; border-radius: 12px; }
.import-stat-num { font-size: 28px; font-weight: 800; }
.import-stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ===== Exam Container ===== */
.exam-container {
    max-width: 800px; margin: 0 auto; padding: 20px;
}
.exam-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; padding: 16px 20px;
    background: var(--card-bg); border-radius: var(--radius);
    border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.exam-timer {
    font-size: 24px; font-weight: 700; color: var(--primary);
}
.exam-progress {
    font-size: 14px; color: var(--text-muted);
}
.exam-question {
    background: var(--card-bg); border-radius: var(--radius);
    padding: 32px; margin-bottom: 24px;
    border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.exam-question h3 {
    font-size: 18px; font-weight: 600; margin-bottom: 24px; line-height: 1.6;
}
.exam-options { display: flex; flex-direction: column; gap: 12px; }
.exam-option {
    padding: 14px 18px; border-radius: 10px;
    border: 2px solid var(--border); cursor: pointer;
    transition: all .25s ease; font-size: 15px;
}
.exam-option:hover {
    border-color: var(--primary); background: var(--primary-light);
}
.exam-option.selected {
    border-color: var(--primary); background: var(--primary-light);
    color: var(--primary); font-weight: 600;
}
.exam-nav {
    display: flex; justify-content: space-between; gap: 16px;
}

/* ===== VIP Pricing ===== */
.pricing-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
    margin-top: 32px;
}
.pricing-card {
    background: var(--card-bg); border-radius: var(--radius);
    padding: 32px 24px; text-align: center;
    border: 2px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all .3s ease; position: relative;
}
.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 8px 32px rgba(79,110,247,.2);
    transform: scale(1.05);
}
.pricing-card.featured::before {
    content: '推荐'; position: absolute; top: -12px; left: 50%;
    transform: translateX(-50%); background: var(--primary);
    color: #fff; padding: 4px 16px; border-radius: 12px;
    font-size: 12px; font-weight: 700;
}
.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}
.pricing-name {
    font-size: 20px; font-weight: 700; margin-bottom: 8px;
}
.pricing-price {
    font-size: 48px; font-weight: 800; color: var(--primary);
    margin-bottom: 8px;
}
.pricing-price span {
    font-size: 16px; font-weight: 500; color: var(--text-muted);
}
.pricing-desc {
    font-size: 14px; color: var(--text-muted); margin-bottom: 24px;
}
.pricing-features {
    list-style: none; margin-bottom: 24px; text-align: left;
}
.pricing-features li {
    padding: 8px 0; font-size: 14px; color: var(--text);
    border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before {
    content: '✓'; color: var(--green); font-weight: 700;
    margin-right: 8px;
}

@media (max-width: 768px) {
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card.featured { transform: none; }
    .pricing-card.featured:hover { transform: translateY(-8px); }
}

/* ===== Admin Dashboard ===== */
.admin-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
    margin-bottom: 28px;
}
.admin-stat-card {
    background: var(--card-bg); border-radius: var(--radius);
    padding: 24px; border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all .25s ease;
}
.admin-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.admin-stat-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
}
.admin-stat-icon svg { width: 24px; height: 24px; }
.admin-stat-icon-blue {
    background: linear-gradient(135deg, rgba(79,110,247,.1), rgba(79,110,247,.2));
    color: var(--primary);
}
.admin-stat-icon-green {
    background: linear-gradient(135deg, rgba(16,185,129,.1), rgba(16,185,129,.2));
    color: var(--green);
}
.admin-stat-icon-purple {
    background: linear-gradient(135deg, rgba(124,58,237,.1), rgba(124,58,237,.2));
    color: #7c3aed;
}
.admin-stat-icon-orange {
    background: linear-gradient(135deg, rgba(245,158,11,.1), rgba(245,158,11,.2));
    color: #f59e0b;
}
.admin-stat-value {
    font-size: 28px; font-weight: 800; margin-bottom: 4px;
}
.admin-stat-label {
    font-size: 13px; color: var(--text-muted); font-weight: 500;
}

@media (max-width: 768px) {
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Bank Filters ===== */
.bank-filters {
    display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap;
}
.bank-filters select, .bank-filters input {
    padding: 8px 14px; border-radius: 8px;
    border: 1px solid var(--border); font-size: 14px;
    background: var(--card-bg);
}

/* ===== Question Card ===== */
.question-card {
    background: var(--card-bg); border-radius: var(--radius);
    padding: 20px; margin-bottom: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all .25s ease;
}
.question-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.question-text {
    font-size: 15px; font-weight: 500; margin-bottom: 12px;
    line-height: 1.6;
}
.question-meta {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 13px; color: var(--text-muted);
}
.question-category {
    display: inline-block; padding: 4px 10px;
    background: var(--primary-light); color: var(--primary);
    border-radius: 8px; font-size: 12px; font-weight: 600;
}
}

/* ===== SMS Code Input ===== */
.sms-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.sms-input-row input {
    flex: 1;
    min-width: 0;
}
.btn-sms-code {
    white-space: nowrap;
    padding: 10px 16px;
    font-size: 13px;
    border-radius: 10px;
    border: 1px solid var(--primary);
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: all .25s ease;
    flex-shrink: 0;
}
.btn-sms-code:hover:not(:disabled) {
    background: var(--primary);
    color: #fff;
}
.btn-sms-code:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.login-container {
    max-width: 400px; margin: 60px auto; padding: 0 20px;
}
.login-card {
    background: var(--card-bg); border-radius: var(--radius);
    padding: 40px 32px; border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}
.login-card h2 {
    text-align: center; font-size: 24px; font-weight: 700;
    margin-bottom: 32px;
}
.login-footer {
    text-align: center; margin-top: 24px; font-size: 14px;
    color: var(--text-muted);
}
.login-footer a {
    color: var(--primary); text-decoration: none; font-weight: 600;
}
.login-footer a:hover { text-decoration: underline; }
/* ===== Exam Mark Wrong Button ===== */
#markWrongBtn.marked {
    background: #ef4444 !important;
    color: #fff !important;
    border-color: #ef4444 !important;
}

/* ===== Exam Topbar ===== */
.exam-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 15px;
}
.exam-topbar #timer {
    color: var(--primary);
    font-size: 20px;
}
.category-panel {
    padding: 24px;
}
.category-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.category-panel-header h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
}
.category-count {
    font-size: 13px;
    color: var(--text-muted);
    background: var(--bg);
    padding: 4px 12px;
    border-radius: 20px;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.category-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    background: var(--card-bg);
    text-decoration: none;
    color: var(--text);
    transition: all .25s ease;
    cursor: pointer;
}
.category-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.category-card.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(79,110,247,.08), rgba(124,58,237,.06));
    box-shadow: 0 2px 12px rgba(79,110,247,.15);
}
.category-card.active .category-card-name {
    color: var(--primary);
    font-weight: 700;
}
.category-card-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--bg);
    flex-shrink: 0;
}
.category-card.active .category-card-icon {
    background: linear-gradient(135deg, rgba(79,110,247,.12), rgba(124,58,237,.1));
}
.category-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.category-card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.category-card-count {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== Free Limit Notice ===== */
.free-limit-notice {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fde68a;
}
.free-limit-icon {
    font-size: 32px;
    flex-shrink: 0;
}
.free-limit-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.free-limit-text strong {
    font-size: 15px;
    color: #92400e;
}
.free-limit-text span {
    font-size: 13px;
    color: #b45309;
}

@media (max-width: 640px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .category-card {
        padding: 10px 12px;
        gap: 8px;
    }
    .category-card-icon {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    .free-limit-notice {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px;
    }
    .free-limit-notice .btn {
        width: 100%;
        text-align: center;
    }
}

/* ===== Exam Question Card ===== */
.exam-question-card {
    padding: 28px 24px;
}
.exam-q-text {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.7;
    margin-bottom: 20px;
}
.exam-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.correct-answer {
    margin-top: 16px;
    padding: 16px;
    background: #f0fdf4;
    border-radius: 10px;
    border: 1px solid #bbf7d0;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ===== Auth (Login / Register) ===== */
.auth-wrapper {
    max-width: 420px;
    margin: 60px auto;
    padding: 0 20px;
}
.auth-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 36px 32px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
    background: var(--bg);
    border-radius: 10px;
    padding: 4px;
}
.auth-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all .25s ease;
}
.auth-tab.active {
    background: var(--card-bg);
    color: var(--primary);
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.auth-tab:hover:not(.active) {
    color: var(--text);
}

/* ===== Result Page ===== */
.result-container {
    max-width: 560px;
    margin: 60px auto;
    padding: 0 20px;
}
.result-card {
    text-align: center;
    padding: 40px 32px;
}
.result-card h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 28px;
}
.result-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.result-item {
    padding: 20px 12px;
    background: var(--bg);
    border-radius: 12px;
}
.result-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
}
.result-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}
.result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.text-green { color: var(--green) !important; }
.text-red { color: var(--red) !important; }

@media (max-width: 480px) {
    .result-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .result-number { font-size: 24px; }
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
}
.modal-content {
    max-width: 400px;
    width: 90%;
    padding: 32px;
    text-align: center;
}
.modal-content h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}
.modal-content p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}
.pay-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

/* ===== Button Variants ===== */
.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 8px;
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary-light);
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text);
    transition: border-color .2s, box-shadow .2s;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,110,247,.1);
}

/* ===== VIP Badge Large ===== */
.vip-badge-large {
    display: inline-block;
    padding: 6px 18px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(245,158,11,.3);
}

/* ===== Exam Setup Card ===== */
.exam-setup-card {
    text-align: center;
    padding: 40px 24px;
}

/* ===== Bank Filter Form ===== */
.filter-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.filter-form select,
.filter-form input {
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 14px;
    background: var(--card-bg);
    min-width: 0;
}
.filter-form select { min-width: 130px; }
.filter-form input { flex: 1; min-width: 150px; }

.inline-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.inline-form input,
.inline-form select {
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 14px;
    background: var(--card-bg);
}
.inline-form input[name="question"] { flex: 2; min-width: 180px; }
.inline-form input[name="answer"] { flex: 2; min-width: 180px; }
.inline-form select { min-width: 120px; }

/* ===== Question Card Inner ===== */
.q-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.q-body { margin-bottom: 14px; }
.q-text {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.7;
    color: var(--text);
}
.q-answer {
    padding: 14px 16px;
    background: #f0fdf4;
    border-radius: 10px;
    border: 1px solid #bbf7d0;
    font-size: 14px;
    line-height: 1.7;
    color: #166534;
    margin-top: 10px;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.q-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
    font-size: 15px;
}

/* ===== Batch Delete Panel ===== */
.batch-delete-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
@media (max-width: 640px) {
    .filter-form { flex-direction: column; }
    .filter-form select,
    .filter-form input { width: 100%; }
    .inline-form { flex-direction: column; }
    .inline-form input,
    .inline-form select { width: 100%; }
    .auth-wrapper { margin: 24px auto; }

    /* --- Navbar: user section compact --- */
    .nav-user-section {
        padding: 3px 8px 3px 3px;
        gap: 6px;
    }
    .nav-avatar {
        width: 24px; height: 24px; font-size: 11px;
    }
    .user-info { font-size: 12px; max-width: 60px; overflow: hidden; text-overflow: ellipsis; }
    .nav-logout { padding: 2px; }
    .nav-logout svg { width: 14px; height: 14px; }
    .vip-badge { font-size: 10px; padding: 3px 8px; }
    .btn-nav-login { padding: 6px 12px !important; font-size: 12px !important; }

    /* --- Hero: hide floating elements --- */
    .hero-visual { display: none; }
    .hero-particles { display: none; }
    .hero-new { min-height: 70vh; padding: 48px 16px 36px; }
    .hero-title { font-size: 28px; }
    .hero-subtitle { font-size: 14px; }
    .hero-stats { gap: 12px; }
    .hero-stat-number { font-size: 22px; }
    .hero-stat-label { font-size: 11px; }
    .hero-stat-divider { height: 28px; }
    .hero-badge { font-size: 13px; padding: 6px 16px; }

    /* --- Auth card compact --- */
    .auth-card { padding: 24px 20px; }
    .auth-tabs { margin-bottom: 20px; }
    .sms-input-row { flex-direction: column; gap: 8px; }
    .sms-input-row .btn-sms-code { width: 100%; }

    /* --- Cards & containers compact --- */
    .card { padding: 18px 16px; margin-bottom: 16px; }
    .category-panel { padding: 16px; }
    .category-panel-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    main.container { padding-top: 16px; padding-bottom: 32px; }

    /* --- Question card mobile --- */
    .question-card { padding: 16px; margin-bottom: 12px; }
    .q-text { font-size: 14px; }
    .q-actions { flex-direction: column; }
    .q-actions .btn { width: 100%; }

    /* --- Free limit notice --- */
    .free-limit-notice {
        flex-direction: column;
        text-align: center;
        padding: 16px;
        gap: 10px;
    }
    .free-limit-icon { font-size: 28px; }
    .free-limit-text strong { font-size: 14px; }
    .free-limit-text span { font-size: 12px; }

    /* --- Exam container mobile --- */
    .exam-container { padding: 12px; }
    .exam-topbar { padding: 10px 14px; font-size: 13px; }
    .exam-topbar #timer { font-size: 16px; }
    .exam-question-card { padding: 20px 16px; }
    .exam-q-text { font-size: 15px; margin-bottom: 14px; }
    .exam-btns { flex-direction: column; }
    .exam-btns .btn { width: 100%; }

    /* --- Result page mobile --- */
    .result-container { margin: 24px auto; padding: 0 16px; }
    .result-card { padding: 24px 16px; }
    .result-card h1 { font-size: 20px; margin-bottom: 20px; }
    .result-actions { flex-direction: column; }
    .result-actions .btn { width: 100%; }

    /* --- Admin dashboard mobile --- */
    .admin-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .admin-stat-card { padding: 16px; }
    .admin-stat-icon { width: 36px; height: 36px; border-radius: 10px; margin-bottom: 8px; }
    .admin-stat-icon svg { width: 18px; height: 18px; }
    .admin-stat-value { font-size: 22px; }

    /* --- Table horizontal scroll --- */
    .table { display: block; overflow-x: auto; white-space: nowrap; }
    .table th, .table td { padding: 10px 10px; font-size: 13px; }

    /* --- VIP pricing mobile --- */
    .pricing-card { padding: 24px 18px; }
    .pricing-price { font-size: 36px; }

    /* --- Page header mobile --- */
    .page-header { margin-bottom: 16px; }
    .page-header h1 { font-size: 20px; }

    /* --- Footer mobile --- */
    .footer { padding: 24px 16px; }
    .footer-inner { gap: 10px; }
    .footer-copy { font-size: 12px; }
    .footer-links { gap: 12px; }
    .footer-links a { font-size: 12px; }

    /* --- Batch delete mobile --- */
    .batch-delete-actions { flex-direction: column; }
    .batch-delete-actions .btn { width: 100%; }

    /* --- Modal mobile --- */
    .modal-content { width: 92%; padding: 24px 18px; }
    .modal-content h2 { font-size: 18px; }
}

@media (max-width: 380px) {
    .hero-title { font-size: 24px; }
    .hero-stats { gap: 8px; }
    .hero-stat-number { font-size: 20px; }
    .auth-card { padding: 20px 16px; }
    .category-card { padding: 8px 10px; gap: 6px; }
    .category-card-icon { width: 28px; height: 28px; font-size: 16px; }
    .category-card-name { font-size: 12px; }
    .category-card-count { font-size: 11px; }
    .admin-stats { grid-template-columns: 1fr; }
}
.section-hero {
    text-align: center;
    padding: 48px 0 24px;
}

.section-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 40px;
}

.section-card {
    position: relative;
    background: var(--card-bg, #fff);
    border-radius: 16px;
    padding: 28px 24px;
    text-decoration: none;
    color: inherit;
    border: 1.5px solid rgba(0,0,0,0.06);
    transition: all .3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.section-card:hover {
    transform: translateY(-4px);
    border-color: var(--card-color, #4f6ef7);
    box-shadow: 0 12px 32px rgba(79, 110, 247, 0.12);
}

.section-card-glow {
    position: absolute;
    top: -40%;
    left: -20%;
    width: 140%;
    height: 80%;
    background: radial-gradient(ellipse, var(--card-color, #4f6ef7) 0%, transparent 70%);
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}

.section-card:hover .section-card-glow {
    opacity: 0.08;
}

.section-card-icon {
    font-size: 36px;
    margin-bottom: 4px;
}

.section-card-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--card-color, #333);
}

.section-card-stats {
    font-size: 14px;
    color: #6b7280;
}

.section-card-scores {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 4px;
}

.score-tag {
    background: rgba(79, 110, 247, 0.08);
    color: #4f6ef7;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.section-card-note {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

.section-card-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #d1d5db;
    transition: all .3s ease;
}

.section-card:hover .section-card-arrow {
    color: var(--card-color, #4f6ef7);
    right: 12px;
}

.section-card-locked {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.section-card-unlocked {
    cursor: pointer;
}

.section-card-locked-sm {
    position: relative;
    background: var(--card-bg, #fff);
    border-radius: 16px;
    padding: 20px 18px;
    text-decoration: none;
    color: inherit;
    border: 1.5px dashed rgba(0,0,0,0.12);
    transition: all .3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transform: scale(0.82);
    transform-origin: top center;
    cursor: pointer;
    opacity: 0.7;
}

.section-card-locked-sm:hover {
    opacity: 0.55;
    border-color: #f59e0b;
}

.section-card-locked-full {
    position: relative;
    background: var(--card-bg, #fff);
    border-radius: 16px;
    padding: 28px 24px;
    text-decoration: none;
    color: inherit;
    border: 1.5px solid rgba(0,0,0,0.06);
    transition: all .3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.section-card-locked-full:hover {
    transform: translateY(-4px);
    border-color: #f59e0b;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.1);
}

.lock-icon-sm {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 16px;
    opacity: 0.7;
}

.lock-icon-full {
    position: absolute;
    bottom: 12px;
    right: 14px;
    font-size: 18px;
    opacity: 0.35;
}

.locked-hint {
    font-size: 12px;
    color: #f59e0b;
    font-weight: 600;
    margin-top: 2px;
}

.section-progress-bar {
    width: 80%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}

.section-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4f6ef7, #7c3aed);
    border-radius: 3px;
    transition: width .5s ease;
}

.section-progress-text {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.section-status-badge {
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.badge-passed {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.vip-unlock-hint {
    text-align: center;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(79,110,247,0.06), rgba(124,58,237,0.06));
    border-radius: 12px;
    max-width: 900px;
    margin: 0 auto 32px;
    cursor: pointer;
    transition: all .3s ease;
    border: 1px solid rgba(79,110,247,0.15);
}

.vip-unlock-hint:hover {
    background: linear-gradient(135deg, rgba(79,110,247,0.1), rgba(124,58,237,0.1));
    transform: translateY(-2px);
}

.vip-unlock-hint span {
    font-size: 14px;
    color: #4f6ef7;
    font-weight: 600;
}

.vip-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.vip-modal-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px 28px;
    max-width: 360px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.vip-modal-subtitle {
    color: #6b7280;
    font-size: 14px;
    margin: 8px 0 12px;
}

.vip-modal-quote {
    font-size: 13px;
    color: #f59e0b;
    font-weight: 500;
    background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(251,191,36,0.08));
    border-radius: 10px;
    padding: 8px 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.vip-modal-price-box {
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.vip-modal-currency {
    font-size: 20px;
    font-weight: 700;
    color: #4f6ef7;
}

.vip-modal-amount {
    font-size: 42px;
    font-weight: 800;
    color: #4f6ef7;
    line-height: 1;
}

.vip-modal-period {
    font-size: 14px;
    color: #9ca3af;
    font-weight: 500;
    margin-left: 2px;
}

.vip-modal-btn {
    width: 100%;
    text-align: center;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    transition: all .3s ease;
}

.vip-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79,110,247,0.35);
}

.vip-modal-footer {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 12px;
    margin-bottom: 0;
}

.vip-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
}

.vip-modal-close:hover {
    color: #374151;
}

.vip-modal-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.vip-modal-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1f2937;
}
@media (max-width: 768px) {
    .section-cards { grid-template-columns: 1fr; }
    .exam-type-cards { grid-template-columns: 1fr; }
    .section-card-locked-sm { transform: scale(0.92); }
}

/* ==================== Exam Type Cards ==================== */

.exam-type-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 700px;
    margin: 0 auto 32px;
}

.exam-type-card {
    background: var(--card-bg, #fff);
    border-radius: 16px;
    padding: 24px;
    border: 1.5px solid rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.exam-type-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.exam-type-pass {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.pass-score {
    color: #4f6ef7;
    font-weight: 700;
}

.exam-count-select {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1.5px solid #e5e7eb;
    font-size: 14px;
    background: #f9fafb;
}

/* ==================== Section Result ==================== */

.section-result-card {
    text-align: center;
}

.result-header-icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.result-section-info {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
}

.result-pass-badge {
    margin: 16px 0;
    font-size: 20px;
    font-weight: 700;
}

.result-pass {
    color: #10b981;
}

.result-fail {
    color: #ef4444;
}

/* ==================== Table Responsive ==================== */

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .section-cards { grid-template-columns: 1fr; }
    .exam-type-cards { grid-template-columns: 1fr; }
}

/* ==================== 全站移动端统一适配 ==================== */
@media (max-width: 640px) {
    /* --- 全局 --- */
    body { font-size: 14px; }
    .container, .page-header { padding: 0 12px; }
    .page-header h1 { font-size: 20px; }

    /* --- 导航栏 --- */
    .nav-links { gap: 4px; }
    .nav-links a { font-size: 13px; padding: 6px 8px; }
    .nav-user { gap: 6px; }
    .nav-user img { width: 28px; height: 28px; }
    .nav-user span { font-size: 12px; max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    /* --- Hero --- */
    .hero-title { font-size: 22px; }
    .hero-stats { gap: 6px; }
    .hero-stat-number { font-size: 18px; }
    .bg-decoration { display: none; }

    /* --- 登录/注册 --- */
    .auth-wrapper { margin: 20px auto; padding: 0 12px; }
    .auth-card { padding: 24px 18px; }

    /* --- 题库浏览 --- */
    .category-panel { padding: 12px; }
    .category-panel-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .filter-form { flex-direction: column; }
    .filter-form input, .filter-form select { width: 100%; }

    /* --- 题目卡片 --- */
    .question-card { padding: 14px; }
    .question-actions { flex-direction: column; }
    .question-actions .btn { width: 100%; text-align: center; }

    /* --- 考试/练习 --- */
    .exam-container { padding: 0 8px; margin: 10px auto; }
    .exam-header { padding: 10px 12px; font-size: 14px; }
    .exam-question-card { padding: 16px 12px; }
    .exam-q-text { font-size: 15px; }
    .exam-btns { flex-direction: column; }
    .exam-btns .btn { width: 100%; text-align: center; }

    /* --- 结果页 --- */
    .result-container { margin: 20px auto; padding: 0 12px; }
    .result-card { padding: 24px 16px; }
    .result-actions { flex-direction: column; }
    .result-actions .btn { width: 100%; text-align: center; }

    /* --- 版块选择 --- */
    .section-hero { padding: 24px 0 16px; }
    .section-hero h1 { font-size: 22px; }
    .section-card { padding: 20px 16px; }
    .section-card-name { font-size: 18px; }
    .section-card-locked-sm { transform: scale(0.95); }

    /* --- VIP 弹窗 --- */
    .vip-modal-card { padding: 24px 18px; width: 92%; }
    .vip-modal-icon { font-size: 40px; }
    .vip-modal-card h3 { font-size: 18px; }
    .vip-modal-amount { font-size: 36px; }
    .vip-modal-btn { padding: 12px 0; font-size: 15px; }

    /* --- 管理后台 --- */
    .admin-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .admin-stat-card { padding: 14px 10px; }
    .admin-stat-number { font-size: 22px; }
    table { font-size: 13px; }
    th, td { padding: 8px 6px; }

    /* --- 页脚 --- */
    footer { padding: 16px 12px; font-size: 12px; }
}

@media (max-width: 380px) {
    .hero-title { font-size: 20px; }
    .auth-card { padding: 18px 14px; }
    .section-card { padding: 16px 12px; }
    .section-card-locked-sm { transform: scale(0.98); }
    .admin-stats { grid-template-columns: 1fr; }
    .vip-modal-card { padding: 20px 14px; }
    .vip-modal-amount { font-size: 32px; }
}
/* ==================== 管理后台 UI 升级 ==================== */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.admin-stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    color: #fff;
    transition: transform 0.2s;
}
.admin-stat-card:hover { transform: translateY(-2px); }
.admin-stat-icon { font-size: 28px; opacity: 0.9; }
.admin-stat-num { font-size: 24px; font-weight: 700; line-height: 1.2; }
.admin-stat-lbl { font-size: 12px; opacity: 0.85; margin-top: 2px; }
.admin-stat-total { background: linear-gradient(135deg, #667eea, #764ba2); }
.admin-stat-active { background: linear-gradient(135deg, #f093fb, #f5576c); }
.admin-stat-new { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.admin-stat-expired { background: linear-gradient(135deg, #fa709a, #fee140); }
.admin-stat-soon { background: linear-gradient(135deg, #ff9a9e, #fad0c4); color: #333; }
.admin-stat-admin { background: linear-gradient(135deg, #a18cd1, #fbc2eb); color: #333; }

.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.admin-tab {
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    color: #666;
    background: #f0f0f0;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.admin-tab:hover { background: #e0e0e0; color: #333; }
.admin-tab.active { background: #4a90d9; color: #fff; }
.admin-tab-admin.active { background: #7c3aed; }
.admin-tab-vip.active { background: #f59e0b; color: #333; }
.admin-tab-regular.active { background: #6b7280; }
.tab-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 12px;
    background: rgba(0,0,0,0.1);
    font-weight: 600;
}
.admin-tab.active .tab-badge { background: rgba(255,255,255,0.25); }

.badge-purple { background: #ede9fe; color: #7c3aed; }
.badge-gold { background: #fef3c7; color: #d97706; }

@media (max-width: 768px) {
    .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-tabs { gap: 6px; }
    .admin-tab { padding: 6px 12px; font-size: 13px; }
    .admin-stat-num { font-size: 20px; }
}
@media (max-width: 480px) {
    .admin-stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .admin-stat-card { padding: 12px; gap: 8px; }
    .admin-stat-icon { font-size: 22px; }
    .admin-stat-num { font-size: 18px; }
    .admin-stat-lbl { font-size: 11px; }
}
.question-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 8px;
}