/**
 * QRead Premium Design System
 * Ultra Luxury $9000 Experience
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.exp-progress-bar {
    width: 100%;
    height: 14px;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.65);
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.08);
}

.exp-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #667eea 0%, #7c3aed 35%, #a855f7 60%, #764ba2 100%);
    background-size: 220% 220%;
    box-shadow: 0 10px 28px rgba(102, 126, 234, 0.35);
    animation: expFlow 4.8s ease-in-out infinite;
}

@keyframes expFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.profile-avatar-frame {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar-frame.frame_gold_01 {
    padding: 6px;
    background: linear-gradient(135deg, #f7d774 0%, #d4af37 22%, #fff0a6 45%, #b8860b 72%, #f7d774 100%);
    background-size: 260% 260%;
    box-shadow:
        0 22px 70px rgba(212, 175, 55, 0.25),
        0 10px 26px rgba(0, 0, 0, 0.12);
    animation: vipGoldFlow 6.5s ease-in-out infinite;
}

.profile-avatar-frame.frame_gold_01::after {
    content: '';
    position: absolute;
    inset: -18px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, rgba(255, 234, 0, 0.22) 0%, rgba(255, 234, 0, 0) 55%);
    filter: blur(12px);
    opacity: 0.9;
    pointer-events: none;
}

.profile-avatar-frame.frame_rainbow_01 {
    padding: 6px;
    background: conic-gradient(from 180deg, #22d3ee, #a855f7, #fb7185, #fbbf24, #34d399, #22d3ee);
    box-shadow:
        0 24px 80px rgba(168, 85, 247, 0.22),
        0 16px 40px rgba(34, 211, 238, 0.18);
    animation: rainbowSpin 7.5s linear infinite;
}

.profile-avatar-frame.frame_silver_01 {
    padding: 6px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 22%, #f8fafc 45%, #94a3b8 72%, #e2e8f0 100%);
    background-size: 260% 260%;
    box-shadow:
        0 22px 70px rgba(148, 163, 184, 0.24),
        0 10px 26px rgba(15, 23, 42, 0.12);
    animation: vipGoldFlow 6.5s ease-in-out infinite;
}

.profile-avatar-frame.frame_silver_01::after {
    content: '';
    position: absolute;
    inset: -18px;
    border-radius: 999px;
    background: radial-gradient(circle at 28% 18%, rgba(248, 250, 252, 0.55) 0%, rgba(248, 250, 252, 0) 55%);
    filter: blur(12px);
    opacity: 0.8;
    pointer-events: none;
}

.profile-avatar-frame.frame_emerald_01 {
    padding: 6px;
    background: conic-gradient(from 180deg, #34d399, #22d3ee, #a855f7, #34d399);
    box-shadow:
        0 26px 86px rgba(52, 211, 153, 0.24),
        0 14px 34px rgba(34, 211, 238, 0.16);
    animation: rainbowSpin 9.5s linear infinite;
}

.profile-avatar-frame.frame_neon_01 {
    padding: 6px;
    background: linear-gradient(135deg, #22d3ee 0%, #a855f7 35%, #fb7185 70%, #22d3ee 100%);
    background-size: 260% 260%;
    box-shadow:
        0 30px 92px rgba(168, 85, 247, 0.26),
        0 18px 44px rgba(34, 211, 238, 0.18);
    animation: logoGradient 6.8s ease-in-out infinite;
}

.profile-avatar-frame.frame_neon_01::after {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 999px;
    background: radial-gradient(circle at 35% 20%, rgba(34, 211, 238, 0.22) 0%, rgba(168, 85, 247, 0) 58%);
    filter: blur(14px);
    opacity: 0.95;
    pointer-events: none;
}

.profile-avatar-frame.frame_obsidian_01 {
    padding: 7px;
    background: linear-gradient(135deg, #0b1020 0%, #111827 22%, #334155 52%, #020617 100%);
    background-size: 280% 280%;
    box-shadow:
        0 34px 110px rgba(2, 6, 23, 0.55),
        0 18px 44px rgba(15, 23, 42, 0.22);
    animation: vipGoldFlow 7.2s ease-in-out infinite;
}

.profile-avatar-frame.frame_obsidian_01::after {
    content: '';
    position: absolute;
    inset: -22px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 30% 18%, rgba(168, 85, 247, 0.12) 0%, transparent 55%),
        radial-gradient(circle at 78% 70%, rgba(34, 211, 238, 0.10) 0%, transparent 55%);
    filter: blur(16px);
    opacity: 0.9;
    pointer-events: none;
}

.profile-avatar-frame.vip-default-frame {
    padding: 7px;
    background:
        linear-gradient(140deg, #f7d774 0%, #d4af37 26%, #fff0a6 45%, #9c6f07 70%, #f7d774 100%);
    background-size: 260% 260%;
    box-shadow:
        0 24px 72px rgba(212, 175, 55, 0.30),
        0 12px 30px rgba(10, 14, 25, 0.26),
        inset 0 0 0 3px rgba(12, 18, 34, 0.88);
    animation: vipGoldFlow 5.8s ease-in-out infinite;
}

.profile-avatar-frame.vip-default-frame::after {
    content: '';
    position: absolute;
    inset: -16px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 20% 18%, rgba(255, 240, 166, 0.35) 0%, rgba(255, 240, 166, 0) 56%),
        radial-gradient(circle at 80% 78%, rgba(212, 175, 55, 0.30) 0%, rgba(212, 175, 55, 0) 58%);
    filter: blur(13px);
    pointer-events: none;
}

@keyframes rainbowSpin {
    to { transform: rotate(360deg); }
}

.profile-details h2.name_gold_01 {
    background: linear-gradient(135deg, #b8860b 0%, #fff0a6 28%, #d4af37 55%, #f7d774 78%, #b8860b 100%);
    background-size: 260% 260%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: vipGoldFlow 6.2s ease-in-out infinite;
    filter:
        drop-shadow(0 0 1px rgba(255, 255, 255, 0.55))
        drop-shadow(0 0 10px rgba(255, 234, 0, 0.32))
        drop-shadow(0 0 22px rgba(255, 234, 0, 0.18));
}

.profile-details h2.name_rainbow_01 {
    background: linear-gradient(135deg, #22d3ee 0%, #a855f7 28%, #fb7185 55%, #fbbf24 75%, #34d399 100%);
    background-size: 260% 260%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoGradient 6s ease-in-out infinite;
    filter:
        drop-shadow(0 0 14px rgba(34, 211, 238, 0.20))
        drop-shadow(0 0 26px rgba(168, 85, 247, 0.18));
}

.profile-details h2.name_silver_01 {
    background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 28%, #ffffff 55%, #94a3b8 78%, #f8fafc 100%);
    background-size: 260% 260%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: vipGoldFlow 6.0s ease-in-out infinite;
    filter:
        drop-shadow(0 0 1px rgba(255, 255, 255, 0.7))
        drop-shadow(0 0 14px rgba(148, 163, 184, 0.26))
        drop-shadow(0 0 28px rgba(148, 163, 184, 0.16));
}

.profile-details h2.name_ice_01 {
    background: linear-gradient(135deg, #e0f2fe 0%, #38bdf8 28%, #22d3ee 55%, #a5f3fc 78%, #e0f2fe 100%);
    background-size: 260% 260%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoGradient 6.4s ease-in-out infinite;
    filter:
        drop-shadow(0 0 12px rgba(34, 211, 238, 0.20))
        drop-shadow(0 0 26px rgba(56, 189, 248, 0.16));
}

.profile-details h2.name_rose_01 {
    background: linear-gradient(135deg, #fecdd3 0%, #fb7185 28%, #a855f7 55%, #fbbf24 82%, #fecdd3 100%);
    background-size: 260% 260%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoGradient 7.2s ease-in-out infinite;
    filter:
        drop-shadow(0 0 14px rgba(251, 113, 133, 0.18))
        drop-shadow(0 0 28px rgba(168, 85, 247, 0.16));
}

.profile-details h2.name_neon_01 {
    background: linear-gradient(135deg, #22d3ee 0%, #a855f7 32%, #fb7185 64%, #34d399 100%);
    background-size: 260% 260%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoGradient 5.6s ease-in-out infinite;
    filter:
        drop-shadow(0 0 1px rgba(255, 255, 255, 0.55))
        drop-shadow(0 0 18px rgba(34, 211, 238, 0.20))
        drop-shadow(0 0 34px rgba(168, 85, 247, 0.18));
}

.profile-details h2.vip-default-name {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #b8860b 0%, #fff0a6 28%, #d4af37 55%, #f7d774 78%, #b8860b 100%);
    background-size: 260% 260%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: vipGoldFlow 6.2s ease-in-out infinite;
    text-shadow: 0 10px 26px rgba(212, 175, 55, 0.18);
}

.cosmetic-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.9rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 1px;
    vertical-align: middle;
    position: relative;
    top: -2px;
    -webkit-text-fill-color: currentColor;
}

.cosmetic-badge.badge_gold_01 {
    background: linear-gradient(135deg, #f7d774 0%, #d4af37 40%, #fff0a6 100%);
    color: #1a202c;
    box-shadow:
        0 12px 26px rgba(212, 175, 55, 0.35),
        0 0 0 3px rgba(255, 234, 0, 0.10);
}

.cosmetic-badge.vip-default-badge {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #111827 100%);
    color: #f8e28a;
    border: 1px solid rgba(247, 215, 116, 0.66);
    box-shadow:
        0 14px 28px rgba(10, 14, 25, 0.40),
        0 0 0 3px rgba(247, 215, 116, 0.18);
    text-shadow: 0 0 8px rgba(247, 215, 116, 0.35);
    overflow: hidden;
}

.cosmetic-badge.vip-default-badge::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(118deg, rgba(255, 255, 255, 0) 0%, rgba(247, 215, 116, 0.55) 36%, rgba(255, 255, 255, 0) 66%);
    transform: translateX(-75%) skewX(-16deg);
    opacity: 0;
    animation: vipBadgeShine 2.9s ease-in-out infinite;
    pointer-events: none;
}

.cosmetic-badge.badge_diamond_01 {
    background: linear-gradient(135deg, #22d3ee 0%, #a855f7 45%, #60a5fa 100%);
    color: rgba(255, 255, 255, 0.95);
    box-shadow:
        0 14px 34px rgba(168, 85, 247, 0.30),
        0 10px 24px rgba(34, 211, 238, 0.20);
}

.cosmetic-badge.badge_bronze_01 {
    background: linear-gradient(135deg, #f59e0b 0%, #b45309 45%, #fde68a 100%);
    color: #111827;
    box-shadow:
        0 12px 26px rgba(245, 158, 11, 0.26),
        0 0 0 3px rgba(245, 158, 11, 0.10);
}

.cosmetic-badge.badge_silver_01 {
    background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 45%, #94a3b8 100%);
    color: #111827;
    box-shadow:
        0 12px 26px rgba(148, 163, 184, 0.26),
        0 0 0 3px rgba(148, 163, 184, 0.12);
}

.cosmetic-badge.badge_emerald_01 {
    background: linear-gradient(135deg, #34d399 0%, #22d3ee 48%, #a7f3d0 100%);
    color: rgba(255, 255, 255, 0.95);
    box-shadow:
        0 14px 34px rgba(52, 211, 153, 0.26),
        0 10px 24px rgba(34, 211, 238, 0.16);
}

.cosmetic-badge.badge_neon_01 {
    background: linear-gradient(135deg, #22d3ee 0%, #a855f7 45%, #fb7185 100%);
    color: rgba(255, 255, 255, 0.95);
    box-shadow:
        0 18px 44px rgba(168, 85, 247, 0.28),
        0 12px 30px rgba(34, 211, 238, 0.18);
}

.cosmetic-badge.badge_obsidian_01 {
    background: linear-gradient(135deg, #0b1020 0%, #111827 45%, #334155 100%);
    color: rgba(255, 255, 255, 0.92);
    box-shadow:
        0 22px 60px rgba(2, 6, 23, 0.55),
        0 12px 30px rgba(15, 23, 42, 0.22);
}

html {
    overflow-y: scroll;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    color: #1a202c;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

/* 奢华背景效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
    animation: breathe 8s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* 玻璃态导航栏 */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    color: #1a202c;
    padding: 1.5rem 0;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #5b6dff 0%, #7c3aed 35%, #a855f7 55%, #4f46e5 80%, #5b6dff 100%);
    background-size: 220% 220%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: logoGradient 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(102, 126, 234, 0.18));
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    opacity: 0.3;
}

.logo::before {
    content: '';
    position: absolute;
    inset: -8px -12px;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0) 45%),
        linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 30%, rgba(255, 255, 255, 0) 60%);
    transform: translateX(-40%) skewX(-20deg);
    opacity: 0.55;
    pointer-events: none;
    mix-blend-mode: overlay;
    filter: blur(0.2px);
    animation: logoShimmer 3.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* 认证页：限制QRead扫光仅在文字区域，不外溢到卡片边界 */
.auth-container > .logo {
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.auth-container > .logo::before {
    inset: -4px -8px;
    transform: translateX(-32%) skewX(-20deg);
    opacity: 0.42;
}

@keyframes logoGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes logoShimmer {
    0% {
        transform: translateX(-55%) skewX(-20deg);
        opacity: 0;
    }
    15% {
        opacity: 0.55;
    }
    55% {
        opacity: 0.35;
    }
    100% {
        transform: translateX(55%) skewX(-20deg);
        opacity: 0;
    }
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-links a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-size: 0.9375rem;
}

.nav-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-links a:hover::before {
    opacity: 1;
}

.nav-links a:hover {
    color: #667eea;
    transform: translateY(-2px);
}

.nav-links a.active {
    color: #4f46e5;
    font-weight: 800;
}

.nav-links a.active::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.14) 0%, rgba(124, 58, 237, 0.14) 100%);
}

/* 容器 */
.container {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 3rem;
    position: relative;
    z-index: 1;
}

/* 奢华卡片设计 */
.card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 28px;
    padding: 3rem;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 8px 24px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    margin-bottom: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.card:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 
        0 30px 80px rgba(102, 126, 234, 0.2),
        0 12px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* 高级按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.125rem 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.0625rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 12px 32px rgba(102, 126, 234, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 
        0 20px 50px rgba(102, 126, 234, 0.5),
        0 8px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn:active {
    transform: translateY(-3px) scale(1.01);
}

.btn-lg {
    padding: 1.375rem 3rem;
    font-size: 1.125rem;
    border-radius: 18px;
}

.btn-block {
    width: 100%;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.92);
    color: #4f46e5;
    border: 1px solid rgba(99, 102, 241, 0.35);
    box-shadow:
        0 10px 24px rgba(79, 70, 229, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.btn-secondary:hover {
    box-shadow:
        0 14px 34px rgba(79, 70, 229, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* 奢华表单 */
.form-group {
    margin-bottom: 2rem;
}

label {
    display: block;
    margin-bottom: 0.875rem;
    font-weight: 700;
    color: #2d3748;
    font-size: 0.9375rem;
    letter-spacing: 0.3px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 1.125rem 1.5rem;
    border: 2px solid rgba(226, 232, 240, 0.6);
    border-radius: 16px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.04),
        0 1px 2px rgba(0, 0, 0, 0.02);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 
        0 0 0 5px rgba(102, 126, 234, 0.12),
        0 8px 24px rgba(102, 126, 234, 0.2),
        inset 0 1px 2px rgba(0, 0, 0, 0.02);
    transform: translateY(-3px);
}

input::placeholder,
textarea::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

/* 统计卡片 */
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.stat-box {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-box:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 50px rgba(102, 126, 234, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.stat-box-label {
    color: #718096;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.stat-box-value {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: -2px;
}

.profile-banner.vip {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.96) 0%,
        rgba(255, 255, 255, 0.92) 35%,
        rgba(255, 255, 255, 0.96) 100%);
    border: 1px solid rgba(255, 215, 0, 0.35);
    box-shadow:
        0 26px 80px rgba(255, 215, 0, 0.18),
        0 16px 44px rgba(0, 0, 0, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.profile-banner.vip::before {
    background:
        linear-gradient(135deg, rgba(255, 215, 0, 0.10) 0%, rgba(168, 85, 247, 0.08) 45%, rgba(79, 70, 229, 0.08) 100%);
}

.profile-banner.vip::after {
    content: '';
    position: absolute;
    inset: -40px;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.35) 0%, rgba(255, 215, 0, 0) 55%),
        radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.22) 0%, rgba(168, 85, 247, 0) 55%),
        linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 28%, rgba(255, 255, 255, 0) 60%);
    transform: translateX(-55%) skewX(-18deg);
    opacity: 0.0;
    pointer-events: none;
    mix-blend-mode: overlay;
    filter: blur(0.4px);
    animation: vipShimmer 3.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.profile-avatar.vip {
    background: linear-gradient(135deg, #f7d774 0%, #d4af37 22%, #fff0a6 45%, #b8860b 72%, #f7d774 100%);
    background-size: 240% 240%;
    animation: vipGoldFlow 5.5s ease-in-out infinite;
    box-shadow:
        0 18px 56px rgba(212, 175, 55, 0.45),
        0 6px 16px rgba(0, 0, 0, 0.16),
        inset 0 2px 0 rgba(255, 255, 255, 0.35);
}

.profile-avatar.vip::before {
    content: '';
    position: absolute;
    inset: -18px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 48%),
        linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 28%, rgba(255, 255, 255, 0) 62%);
    transform: translateX(-60%) skewX(-18deg);
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: overlay;
    filter: blur(0.25px);
    animation: vipBadgeShine 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.profile-avatar.vip::after {
    background: linear-gradient(135deg, rgba(247, 215, 116, 0.85) 0%, rgba(212, 175, 55, 0.75) 40%, rgba(168, 85, 247, 0.55) 100%);
    opacity: 0.22;
    filter: blur(10px);
}

@keyframes vipShimmer {
    0% {
        transform: translateX(-65%) skewX(-18deg);
        opacity: 0;
    }
    12% {
        opacity: 0.55;
    }
    55% {
        opacity: 0.32;
    }
    100% {
        transform: translateX(65%) skewX(-18deg);
        opacity: 0;
    }
}

@keyframes vipGoldFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes vipBadgeShine {
    0% {
        transform: translateX(-70%) skewX(-18deg);
        opacity: 0;
    }
    18% {
        opacity: 0.6;
    }
    55% {
        opacity: 0.35;
    }
    100% {
        transform: translateX(70%) skewX(-18deg);
        opacity: 0;
    }
}

.profile-details h2.vip-name {
    position: relative;
    display: inline-block;
    animation: vipNeonPulse 2.4s ease-in-out infinite;
    filter:
        drop-shadow(0 0 1px rgba(255, 255, 255, 0.55))
        drop-shadow(0 0 10px rgba(255, 234, 0, 0.38))
        drop-shadow(0 0 22px rgba(255, 234, 0, 0.22))
        drop-shadow(0 14px 32px rgba(212, 175, 55, 0.22));
}

.profile-details h2.vip-name::after {
    content: '';
    position: absolute;
    inset: -10px -18px;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.65) 26%, rgba(255, 255, 255, 0) 58%);
    transform: translateX(-65%) skewX(-18deg);
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: overlay;
    filter: blur(0.2px);
    animation: vipNameShine 3.1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes vipNameShine {
    0% {
        transform: translateX(-70%) skewX(-18deg);
        opacity: 0;
    }
    16% {
        opacity: 0.7;
    }
    55% {
        opacity: 0.25;
    }
    100% {
        transform: translateX(70%) skewX(-18deg);
        opacity: 0;
    }
}

@keyframes vipNeonPulse {
    0%, 100% {
        filter:
            drop-shadow(0 0 1px rgba(255, 255, 255, 0.55))
            drop-shadow(0 0 10px rgba(255, 234, 0, 0.34))
            drop-shadow(0 0 22px rgba(255, 234, 0, 0.18))
            drop-shadow(0 14px 32px rgba(212, 175, 55, 0.20));
    }
    50% {
        filter:
            drop-shadow(0 0 1px rgba(255, 255, 255, 0.65))
            drop-shadow(0 0 14px rgba(255, 234, 0, 0.46))
            drop-shadow(0 0 30px rgba(255, 234, 0, 0.26))
            drop-shadow(0 18px 38px rgba(212, 175, 55, 0.26));
    }
}

.account-restriction-notice {
    width: 100%;
    max-width: 980px;
    margin: 0 auto 1.25rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(245, 158, 11, 0.30);
    background:
        radial-gradient(circle at 10% 0%, rgba(251, 191, 36, 0.18), transparent 38%),
        linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(239, 246, 255, 0.98));
    box-shadow:
        0 18px 48px rgba(15, 23, 42, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    color: #78350f;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    flex-wrap: wrap;
    line-height: 1.7;
}

.account-restriction-notice.compact {
    max-width: none;
}

.account-restriction-main {
    display: flex;
    align-items: center;
    gap: 0.48rem;
    flex-wrap: wrap;
    min-width: 0;
    font-size: 0.92rem;
    font-weight: 760;
}

.account-restriction-main strong {
    color: #451a03;
    font-weight: 950;
}

.account-restriction-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.28rem 0.64rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.26);
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.account-restriction-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0.42rem 0.86rem;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.10);
    border: 1px solid rgba(79, 70, 229, 0.18);
    color: #4338ca;
    font-size: 0.86rem;
    font-weight: 950;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.account-restriction-link:hover {
    transform: translateY(-1px);
    background: rgba(79, 70, 229, 0.14);
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.14);
}

/* 响应式 */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
        margin: 2rem auto;
    }
    
    .nav {
        padding: 0 1.5rem;
    }
    
    .card {
        padding: 2rem;
        border-radius: 24px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .account-restriction-notice {
        align-items: flex-start;
        padding: 0.9rem;
    }

    .account-restriction-link {
        width: 100%;
    }
}
/* Shared QRead auth surface for student and teacher entry pages. */
body.qread-auth-body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.9rem, 2vw, 1.7rem);
    background:
        radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.3), transparent 22rem),
        radial-gradient(circle at 84% 10%, rgba(139, 92, 246, 0.28), transparent 25rem),
        radial-gradient(circle at 48% 95%, rgba(45, 212, 191, 0.13), transparent 30rem),
        linear-gradient(135deg, #5f75f2 0%, #7450c2 54%, #8a5bd7 100%);
    color: #111827;
}

.qread-auth-shell {
    width: min(1100px, 100%);
    margin: 0 auto;
}

.qread-auth-shell-dual {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(390px, 0.9fr);
    gap: clamp(0.9rem, 1.7vw, 1.25rem);
    align-items: stretch;
    min-height: 0;
}

.qread-auth-aside,
.qread-auth-form-card {
    min-width: 0;
    height: 100%;
}

.qread-auth-aside {
    position: relative;
    overflow: hidden;
    display: grid;
    align-content: start;
    gap: clamp(0.85rem, 1.6vw, 1.12rem);
    min-height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 34px;
    padding: clamp(1.35rem, 2.35vw, 1.9rem);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.62)),
        radial-gradient(circle at 15% 12%, rgba(255, 255, 255, 0.38), transparent 16rem),
        radial-gradient(circle at 85% 88%, rgba(124, 58, 237, 0.16), transparent 20rem);
    box-shadow:
        0 30px 84px rgba(38, 28, 113, 0.22),
        0 14px 30px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(24px) saturate(165%);
    -webkit-backdrop-filter: blur(24px) saturate(165%);
}

.qread-auth-aside-main,
.qread-auth-aside-support {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.qread-auth-aside-main {
    display: grid;
    align-content: start;
}

.qread-auth-aside-support {
    display: grid;
    gap: 0.62rem;
    margin-top: clamp(0.1rem, 0.7vw, 0.35rem);
}

.qread-auth-aside::after {
    content: "";
    position: absolute;
    right: -8rem;
    bottom: -8rem;
    width: 24rem;
    height: 24rem;
    border-radius: 999px;
    background:
        radial-gradient(circle, rgba(102, 126, 234, 0.22), rgba(102, 126, 234, 0.06) 42%, transparent 70%);
    pointer-events: none;
}

.qread-auth-brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    width: fit-content;
    color: inherit;
    text-decoration: none;
    margin-bottom: 0.72rem;
}

.qread-auth-aside h1 {
    position: relative;
    z-index: 1;
    margin: 0.2rem 0 0;
    color: #111827;
    font-size: clamp(1.58rem, 3vw, 2.25rem);
    font-weight: 950;
    line-height: 1.03;
    letter-spacing: -0.06em;
}

.qread-auth-aside p {
    position: relative;
    z-index: 1;
    margin: 0.58rem 0 0;
    color: #4b5c73;
    font-size: 0.9rem;
    font-weight: 760;
    line-height: 1.72;
}

.qread-auth-notices,
.qread-auth-usage-summary {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.52rem;
    margin-top: 0;
    padding-top: 0;
}

.qread-auth-notices + .qread-auth-usage-summary {
    margin-top: 0;
    padding-top: 0;
}

.qread-auth-notice-list {
    display: grid;
    gap: 0.5rem;
    max-height: clamp(9rem, 23vh, 12.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 0.18rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(102, 126, 234, 0.34) rgba(255, 255, 255, 0.35);
}

.qread-auth-notice-list::-webkit-scrollbar {
    width: 0.42rem;
}

.qread-auth-notice-list::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
}

.qread-auth-notice-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(102, 126, 234, 0.34);
}

.qread-auth-section-label {
    color: #5b21b6;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.qread-auth-notice,
.qread-auth-usage-summary {
    border: 1px solid rgba(102, 126, 234, 0.13);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(248, 250, 255, 0.62));
    box-shadow:
        0 12px 26px rgba(15, 23, 42, 0.055),
        inset 0 1px 0 rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.qread-auth-notice {
    display: grid;
    gap: 0.32rem;
    padding: 0.7rem 0.82rem;
}

.qread-auth-notice strong {
    color: #152033;
    font-size: 0.86rem;
    font-weight: 950;
}

.qread-auth-notice span {
    color: #5c6b80;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.62;
}

.qread-auth-usage-summary {
    padding: 0.78rem 0.84rem;
}

.qread-auth-usage-summary ul {
    display: grid;
    gap: 0.28rem;
    margin: 0.25rem 0 0;
    padding-left: 0.95rem;
    color: #5c6b80;
    font-size: 0.75rem;
    font-weight: 720;
    line-height: 1.58;
}

.qread-auth-card {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 32px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.94)),
        radial-gradient(circle at 50% 0%, rgba(102, 126, 234, 0.09), transparent 17rem);
    padding: clamp(1.35rem, 2.55vw, 2rem);
    box-shadow:
        0 30px 84px rgba(38, 28, 113, 0.2),
        0 14px 30px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(26px) saturate(170%);
    -webkit-backdrop-filter: blur(26px) saturate(170%);
}

body.qread-auth-register .qread-auth-card {
    padding: clamp(1.15rem, 2.25vw, 1.72rem);
}

.qread-auth-form-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-height: none;
    overflow: visible;
}

body.qread-auth-register .qread-auth-form-card {
    justify-content: center;
}

.qread-auth-head {
    display: grid;
    justify-items: center;
    text-align: center;
    margin-bottom: 2rem;
}

.qread-auth-head.compact {
    margin-bottom: 0.95rem;
}

.qread-auth-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.86rem;
    color: #111827;
    text-decoration: none;
    margin-bottom: 1rem;
}

.qread-auth-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.32rem;
    height: 2.32rem;
    border-radius: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 1.02rem;
    font-weight: 950;
    box-shadow: 0 18px 36px rgba(102, 126, 234, 0.34);
}

.qread-auth-logo-text,
.qread-auth-wordmark {
    background: linear-gradient(135deg, #5b6dff 0%, #7c3aed 45%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 950;
    letter-spacing: -0.045em;
    font-size: clamp(1.82rem, 4.8vw, 2.65rem);
    line-height: 1;
}

.qread-auth-role-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 1.5rem;
    margin-bottom: 0.52rem;
    border: 1px solid rgba(102, 126, 234, 0.18);
    border-radius: 999px;
    background: rgba(238, 242, 255, 0.86);
    color: #5b21b6;
    padding: 0.2rem 0.62rem;
    font-size: 0.69rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.qread-auth-title {
    margin: 0;
    color: #111827;
    font-size: clamp(1.42rem, 3vw, 1.78rem);
    font-weight: 950;
    letter-spacing: -0.05em;
}

.qread-auth-note {
    color: #5f6f87;
    font-size: 0.94rem;
    font-weight: 720;
    line-height: 1.65;
}

.qread-auth-subtitle {
    margin: 0.38rem 0 0;
    color: #738096;
    font-size: 0.88rem;
    font-weight: 760;
    line-height: 1.55;
}

body.qread-auth-body .auth-container {
    max-width: none;
}

body.qread-auth-body .auth-container .logo,
body.qread-auth-body .auth-container .logo-text {
    margin-bottom: 0;
}

body.qread-auth-body .form-group {
    margin-bottom: 0.82rem;
}

body.qread-auth-register .form-group {
    margin-bottom: 0.62rem;
}

body.qread-auth-body label {
    margin-bottom: 0.36rem;
    color: #263248;
    font-size: 0.86rem;
    font-weight: 900;
}

body.qread-auth-body input,
body.qread-auth-body textarea,
body.qread-auth-body select {
    min-height: 3rem;
    border: 1px solid rgba(129, 140, 248, 0.18);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.76rem 0.9rem;
    box-shadow:
        0 10px 22px rgba(15, 23, 42, 0.045),
        inset 0 1px 0 rgba(255,255,255,0.86);
}

body.qread-auth-register input,
body.qread-auth-register textarea,
body.qread-auth-register select {
    min-height: 2.72rem;
    padding-top: 0.62rem;
    padding-bottom: 0.62rem;
}

body.qread-auth-body input:focus,
body.qread-auth-body textarea:focus,
body.qread-auth-body select:focus {
    border-color: rgba(102, 126, 234, 0.48);
    box-shadow:
        0 0 0 4px rgba(102, 126, 234, 0.13),
        0 12px 24px rgba(79, 70, 229, 0.09);
}

body.qread-auth-body .btn-block {
    min-height: 3.12rem;
    margin-top: 0.18rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #5f73f0 0%, #7646c7 100%);
    box-shadow: 0 16px 32px rgba(102, 126, 234, 0.28);
    font-size: 0.98rem;
    font-weight: 950;
}

body.qread-auth-register .btn-block {
    min-height: 2.92rem;
}

body.qread-auth-body .btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 18px 36px rgba(102, 126, 234, 0.34),
        0 8px 18px rgba(15, 23, 42, 0.12);
}

body.qread-auth-body .btn:active {
    transform: translateY(0);
}

body.qread-auth-body .password-strength {
    height: 3px;
    margin-top: 0.38rem;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.74);
    overflow: hidden;
}

body.qread-auth-body .password-strength-bar {
    width: 0;
    height: 100%;
    border-radius: 999px;
    transition: all 0.3s ease;
}

body.qread-auth-body .password-strength-bar.strength-weak {
    width: 33%;
    background: linear-gradient(90deg, #ef4444, #fb7185);
}

body.qread-auth-body .password-strength-bar.strength-medium {
    width: 66%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

body.qread-auth-body .password-strength-bar.strength-strong {
    width: 100%;
    background: linear-gradient(90deg, #22c55e, #2dd4bf);
}

.qread-auth-password-hint {
    margin-top: 0.3rem;
    color: #8793a5;
    font-size: 0.72rem;
    font-weight: 760;
}

.qread-auth-mode-badge {
    width: fit-content;
    margin: -0.22rem auto 0.68rem;
    border: 1px solid rgba(102, 126, 234, 0.18);
    border-radius: 999px;
    background: rgba(238, 242, 255, 0.88);
    color: #5b21b6;
    padding: 0.3rem 0.72rem;
    font-size: 0.76rem;
    font-weight: 860;
}

.qread-auth-mode-badge.error {
    border-color: rgba(239, 68, 68, 0.2);
    background: rgba(254, 242, 242, 0.92);
    color: #991b1b;
}

.qread-auth-switch {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding-top: 0.68rem;
    margin-top: 0.82rem;
    text-align: center;
}

.qread-auth-muted {
    color: #94a3b8;
    font-weight: 900;
}

.qread-auth-legal-note {
    margin: -0.04rem 0 0.72rem;
    color: #8290a3;
    font-size: 0.78rem;
    font-weight: 720;
    line-height: 1.55;
}

.qread-auth-legal-note a,
.qread-auth-agreement a {
    color: #667eea;
    font-weight: 900;
    text-decoration: none;
}

.qread-auth-legal-note a:hover,
.qread-auth-agreement a:hover {
    text-decoration: underline;
}

.qread-auth-agreement {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0.02rem 0 0.72rem;
    padding: 0.68rem 0.78rem;
    border: 1px solid rgba(102, 126, 234, 0.18);
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(238, 242, 255, 0.82), rgba(255, 255, 255, 0.72));
    color: #334155;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 820;
    line-height: 1.45;
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.05);
}

.qread-auth-agreement input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto;
    display: inline-grid;
    place-content: center;
    width: 1.08rem;
    height: 1.08rem;
    min-height: 1.08rem;
    margin: 0;
    padding: 0;
    border: 1.5px solid rgba(102, 126, 234, 0.46);
    border-radius: 0.34rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.08);
    cursor: pointer;
}

.qread-auth-agreement input[type="checkbox"]::after {
    content: "";
    width: 0.3rem;
    height: 0.56rem;
    margin-top: -0.08rem;
    border: solid #ffffff;
    border-width: 0 0.12rem 0.12rem 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.14s ease;
}

.qread-auth-agreement input[type="checkbox"]:checked {
    border-color: transparent;
    background: linear-gradient(135deg, #5f73f0, #7646c7);
}

.qread-auth-agreement input[type="checkbox"]:checked::after {
    transform: rotate(45deg) scale(1);
}

.qread-auth-agreement span {
    min-width: 0;
}

body.qread-auth-body .alert {
    display: none;
    border-radius: 15px;
    padding: 0.68rem 0.78rem;
    margin-bottom: 0.68rem;
    font-weight: 820;
}

body.qread-auth-body .alert-error {
    color: #991b1b;
    background: rgba(254, 226, 226, 0.78);
    border: 1px solid rgba(239, 68, 68, 0.22);
}

body.qread-auth-body .alert-success {
    color: #166534;
    background: rgba(220, 252, 231, 0.78);
    border: 1px solid rgba(34, 197, 94, 0.22);
}

body.qread-auth-body .session-tip {
    margin-bottom: 0.68rem;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 16px;
    background: rgba(255, 251, 235, 0.82);
    color: #92400e;
    padding: 0.72rem 0.82rem;
    font-size: 0.8rem;
    font-weight: 780;
    line-height: 1.58;
}

body.qread-auth-body .links p,
body.qread-auth-body .teacher-auth-links p {
    margin: 0.28rem 0;
    color: #748095;
    font-size: 0.86rem;
    font-weight: 760;
}

body.qread-auth-body .links a,
body.qread-auth-body .teacher-auth-links a {
    color: #667eea;
    font-weight: 950;
    text-decoration: none;
}

body.qread-auth-body .links a:hover,
body.qread-auth-body .teacher-auth-links a:hover {
    color: #764ba2;
    text-decoration: underline;
}

@media (max-width: 760px) {
    body.qread-auth-body {
        padding: 1rem;
        align-items: flex-start;
    }

    .qread-auth-shell {
        width: 100%;
    }

    .qread-auth-card {
        border-radius: 24px;
        padding: 1.45rem;
    }

    .qread-auth-logo-mark {
        width: 2.55rem;
        height: 2.55rem;
    }

    .qread-auth-logo-text,
    .qread-auth-wordmark {
        font-size: 2.15rem;
    }
}

@media (max-width: 760px) {
    body.qread-auth-body {
        align-items: flex-start;
    }

    .qread-auth-shell-dual {
        grid-template-columns: 1fr;
        align-items: start;
        height: auto;
        min-height: auto;
        gap: 1rem;
    }

    .qread-auth-aside {
        min-height: auto;
        height: auto;
        border-radius: 26px;
    }

    .qread-auth-form-card {
        height: auto;
    }

    .qread-auth-notice-list {
        max-height: 12rem;
    }

    .qread-auth-notices,
    .qread-auth-usage-summary {
        margin-top: 1rem;
    }
}

body.qread-legal-body {
    min-height: 100vh;
    margin: 0;
    padding: 2rem;
    background:
        radial-gradient(circle at 18% 12%, rgba(102, 126, 234, 0.16), transparent 24rem),
        radial-gradient(circle at 85% 22%, rgba(168, 85, 247, 0.12), transparent 28rem),
        #f8fafc;
    color: #1f2937;
}

.qread-legal-page {
    width: min(920px, 100%);
    margin: 0 auto;
}

.qread-legal-brand {
    display: inline-flex;
    margin-bottom: 1rem;
    color: #667eea;
    font-size: 1.35rem;
    font-weight: 950;
    letter-spacing: -0.04em;
    text-decoration: none;
}

.qread-legal-card {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.9);
    padding: clamp(1.5rem, 4vw, 2.4rem);
    box-shadow: 0 22px 70px rgba(15, 23, 42, 0.08);
}

.qread-legal-kicker {
    margin: 0 0 0.5rem;
    color: #667eea;
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.08em;
}

.qread-legal-card h1 {
    margin: 0 0 1rem;
    color: #111827;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 950;
    letter-spacing: -0.055em;
}

.qread-legal-card h2 {
    margin: 1.45rem 0 0.45rem;
    color: #1f2937;
    font-size: 1.08rem;
    font-weight: 920;
}

.qread-legal-card p {
    margin: 0.65rem 0;
    color: #4b5563;
    font-size: 0.98rem;
    font-weight: 640;
    line-height: 1.8;
}

/* Classroom task center */
body.classroom-task-page {
    background:
        radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.22), transparent 22rem),
        radial-gradient(circle at 86% 8%, rgba(196, 181, 253, 0.2), transparent 24rem),
        linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
}

body.classroom-task-page .container.classroom-task-container {
    width: min(1240px, calc(100% - 3rem));
    max-width: 1240px;
    margin: 2.4rem auto 4rem;
    padding: 0;
}

.classroom-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 1.2rem;
    padding: 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 30px;
    background:
        radial-gradient(circle at 12% 18%, rgba(99, 102, 241, 0.14), transparent 18rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9));
    box-shadow:
        0 24px 70px rgba(31, 41, 55, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(24px) saturate(155%);
    -webkit-backdrop-filter: blur(24px) saturate(155%);
}

.classroom-eyebrow {
    color: #4f46e5;
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.08em;
}

.classroom-hero h1 {
    margin: 0.35rem 0 0.45rem;
    color: #0f172a;
    font-size: clamp(1.75rem, 4vw, 2.55rem);
    font-weight: 950;
    letter-spacing: -0.05em;
}

.classroom-hero p {
    max-width: 680px;
    margin: 0;
    color: #475569;
    font-size: 0.96rem;
    font-weight: 680;
    line-height: 1.7;
}

.classroom-current-card {
    min-width: 270px;
    padding: 1rem;
    border: 1px solid rgba(99, 102, 241, 0.16);
    border-radius: 22px;
    background: rgba(248, 250, 252, 0.86);
}

.classroom-current-label,
.classroom-card-label {
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.classroom-current-title {
    margin-top: 0.35rem;
    color: #111827;
    font-size: 1.02rem;
    font-weight: 920;
}

.classroom-current-meta {
    margin-top: 0.45rem;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.5;
}

.classroom-task-layout {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.classroom-sidebar,
.classroom-main {
    display: grid;
    gap: 1rem;
}

.classroom-panel,
.classroom-task-card,
.classroom-summary-card {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow:
        0 16px 42px rgba(15, 23, 42, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.classroom-panel {
    padding: 1.05rem;
}

.classroom-panel-title {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 920;
}

.classroom-panel-sub {
    margin-top: 0.28rem;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.55;
}

.classroom-class-list,
.classroom-task-grid,
.classroom-feedback-list,
.classroom-mini-list {
    display: grid;
    gap: 0.75rem;
}

.classroom-class-item {
    display: block;
    padding: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.9);
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.classroom-class-item:hover,
.classroom-class-item.active {
    transform: translateY(-1px);
    border-color: rgba(99, 102, 241, 0.36);
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.12);
}

.classroom-class-name {
    color: #1e293b;
    font-size: 0.9rem;
    font-weight: 900;
}

.classroom-class-meta,
.classroom-task-meta,
.classroom-muted {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.55;
}

.classroom-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    gap: 0.75rem;
}

.classroom-summary-card {
    padding: 0.95rem;
    min-height: 94px;
}

.classroom-summary-value {
    margin-top: 0.35rem;
    color: #312e81;
    font-size: 1.65rem;
    font-weight: 950;
    line-height: 1;
}

.classroom-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.85rem;
}

.classroom-section-title {
    color: #0f172a;
    font-size: 1.06rem;
    font-weight: 930;
}

.classroom-section-meta {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 760;
}

.classroom-task-card {
    padding: 1.05rem;
}

.classroom-task-top {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: flex-start;
}

.classroom-task-title {
    color: #111827;
    font-size: 1rem;
    font-weight: 920;
    line-height: 1.35;
}

.classroom-task-desc {
    margin-top: 0.45rem;
    color: #475569;
    font-size: 0.86rem;
    font-weight: 650;
    line-height: 1.65;
}

.classroom-status {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    border-radius: 999px;
    padding: 0.24rem 0.62rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(248, 250, 252, 0.95);
    color: #334155;
    font-size: 0.74rem;
    font-weight: 900;
}

.classroom-status.met,
.classroom-status.completed,
.classroom-status.claimed,
.classroom-status.reviewed {
    color: #166534;
    border-color: rgba(34, 197, 94, 0.24);
    background: rgba(220, 252, 231, 0.9);
}

.classroom-status.in_progress,
.classroom-status.active,
.classroom-status.submitted,
.classroom-status.claimable {
    color: #1d4ed8;
    border-color: rgba(59, 130, 246, 0.24);
    background: rgba(219, 234, 254, 0.9);
}

.classroom-status.overdue,
.classroom-status.ended {
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.28);
    background: rgba(254, 243, 199, 0.92);
}

.classroom-status.not_started {
    color: #475569;
}

.classroom-progress-track {
    margin: 0.75rem 0 0.62rem;
    height: 0.5rem;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(226, 232, 240, 0.86);
}

.classroom-progress-fill {
    height: 100%;
    min-width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #6366f1 0%, #06b6d4 100%);
}

.classroom-task-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 0.75rem;
}

.classroom-task-stat {
    padding: 0.58rem;
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.classroom-task-stat strong {
    display: block;
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 920;
}

.classroom-task-actions {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.9rem;
}

.classroom-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0.48rem 0.9rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 900;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(102, 126, 234, 0.22);
}

.classroom-action.secondary {
    color: #4f46e5;
    border: 1px solid rgba(99, 102, 241, 0.24);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: none;
}

.classroom-action.muted {
    color: #64748b;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(248, 250, 252, 0.96);
    box-shadow: none;
    cursor: default;
}

.classroom-empty {
    border: 1px dashed rgba(148, 163, 184, 0.45);
    border-radius: 18px;
    padding: 1rem;
    background: rgba(248, 250, 252, 0.82);
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 720;
    line-height: 1.65;
}

.classroom-written-box {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    margin-top: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.42);
    border-radius: 16px;
    padding: 0.75rem;
    background: #fff;
    color: #1e293b;
    font-size: 0.9rem;
    line-height: 1.6;
}

body.classroom-task-page .form-group {
    margin-bottom: 0.85rem;
}

body.classroom-task-page label {
    margin-bottom: 0.45rem;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 880;
}

body.classroom-task-page input[type="text"],
body.classroom-task-page textarea,
body.classroom-task-page select {
    min-height: 2.65rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.94);
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 680;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    transform: none;
}

body.classroom-task-page input[type="text"]:focus,
body.classroom-task-page textarea:focus,
body.classroom-task-page select:focus {
    border-color: rgba(99, 102, 241, 0.58);
    box-shadow:
        0 0 0 4px rgba(99, 102, 241, 0.12),
        inset 0 1px 2px rgba(15, 23, 42, 0.04);
    transform: none;
}

body.classroom-task-page .btn {
    min-height: 2.55rem;
    padding: 0.68rem 1rem;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(102, 126, 234, 0.24);
}

body.classroom-task-page .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(102, 126, 234, 0.28);
}

body.classroom-task-page .classroom-written-box {
    min-height: 120px;
    resize: vertical;
    padding: 0.75rem;
    line-height: 1.6;
}

.classroom-written-box:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.classroom-feedback-card,
.classroom-mini-row {
    padding: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.86);
}

.classroom-feedback-title,
.classroom-mini-title {
    color: #1e293b;
    font-size: 0.9rem;
    font-weight: 900;
}

.classroom-feedback-text {
    margin-top: 0.42rem;
    color: #475569;
    font-size: 0.86rem;
    font-weight: 650;
    line-height: 1.65;
}

.classroom-table-wrap {
    overflow: auto;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
}

.classroom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.classroom-table th,
.classroom-table td {
    padding: 0.68rem 0.62rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    text-align: left;
    vertical-align: middle;
}

.classroom-table th {
    color: #64748b;
    background: #f8fafc;
    font-size: 0.74rem;
    font-weight: 920;
}

.classroom-me-row {
    background: rgba(236, 253, 245, 0.72);
}

.classroom-me-chip {
    display: inline-flex;
    margin-left: 0.35rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 0.68rem;
    font-weight: 900;
}

.classroom-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 1080px) {
    .classroom-hero,
    .classroom-task-layout,
    .classroom-two-col {
        grid-template-columns: 1fr;
    }

    .classroom-current-card {
        min-width: 0;
    }

    .classroom-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    body.classroom-task-page .container.classroom-task-container {
        width: min(100% - 1.25rem, 1240px);
        margin-top: 1.25rem;
    }

    .classroom-hero,
    .classroom-panel,
    .classroom-task-card,
    .classroom-summary-card {
        border-radius: 20px;
    }

    .classroom-task-stats,
    .classroom-summary-grid {
        grid-template-columns: 1fr;
    }

    .classroom-task-top,
    .classroom-section-head {
        flex-direction: column;
    }

    .classroom-hero {
        padding: 1rem;
    }

    .classroom-current-card {
        padding: 0.9rem;
    }
}
