/* ===================================================================
   🚀 DOPAMINE TECH UI - 多巴胺商务科技风设计系统
   活力 × 科技 × 专业 = 令人愉悦的商务体验
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    /* ===== 🎨 多巴胺科技配色 ===== */
    /* 主题色 - 活力渐变 */
    --primary-gradient: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #A855F7 100%);
    --success-gradient: linear-gradient(135deg, #10B981 0%, #34D399 100%);
    --warning-gradient: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
    --danger-gradient: linear-gradient(135deg, #EF4444 0%, #F87171 100%);
    --info-gradient: linear-gradient(135deg, #06B6D4 0%, #22D3EE 100%);

    /* 多巴胺彩色 */
    --dopamine-purple: #8B5CF6;
    --dopamine-blue: #3B82F6;
    --dopamine-cyan: #06B6D4;
    --dopamine-green: #10B981;
    --dopamine-yellow: #F59E0B;
    --dopamine-orange: #F97316;
    --dopamine-pink: #EC4899;
    --dopamine-red: #EF4444;

    /* 科技感深色背景 */
    --bg-dark: #0F0F1A;
    --bg-darker: #080810;
    --bg-card: rgba(20, 20, 35, 0.95);
    --bg-card-hover: rgba(30, 30, 50, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.03);

    /* 明亮模式背景 */
    --bg-light: #F8FAFC;
    --bg-light-card: #FFFFFF;
    --bg-light-hover: #F1F5F9;

    /* 文字 */
    --text-white: #FFFFFF;
    --text-gray: #94A3B8;
    --text-dark: #1E293B;
    --text-muted: #64748B;

    /* 边框 */
    --border-dark: rgba(255, 255, 255, 0.08);
    --border-light: rgba(0, 0, 0, 0.08);
    --border-glow: rgba(139, 92, 246, 0.5);

    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.3);
    --shadow-glow-success: 0 0 30px rgba(16, 185, 129, 0.3);

    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* 过渡 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== 🔐 认证页面（AI主题炫彩风格）===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 50%, #0d1f3c 100%);
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

/* 动态星空背景 */
.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(100, 200, 255, 0.3), transparent),
        radial-gradient(2px 2px at 50px 160px, rgba(255, 150, 200, 0.3), transparent),
        radial-gradient(2px 2px at 90px 40px, rgba(150, 255, 200, 0.3), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255, 200, 100, 0.3), transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(200, 150, 255, 0.3), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: starTwinkle 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes starTwinkle {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* 多色光晕效果 */
.auth-page::after {
    content: '';
    position: absolute;
    top: -40%;
    left: -30%;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.2) 0%, transparent 45%),
        radial-gradient(circle at 60% 70%, rgba(16, 185, 129, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 30% 80%, rgba(236, 72, 153, 0.15) 0%, transparent 40%);
    pointer-events: none;
    animation: auroraFlow 15s ease-in-out infinite;
}

@keyframes auroraFlow {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        filter: hue-rotate(0deg);
    }

    33% {
        transform: translate(30px, -20px) scale(1.1);
        filter: hue-rotate(30deg);
    }

    66% {
        transform: translate(-20px, 30px) scale(0.95);
        filter: hue-rotate(-20deg);
    }
}

.auth-container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    min-height: auto;
    margin: 20px 0;
    ...
    overflow: visible;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 60px rgba(59, 130, 246, 0.15),
        0 0 100px rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.auth-card {
    flex: 1;
    padding: 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header .logo {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 40%, #EC4899 70%, #F59E0B 100%);
    background-size: 200% 200%;
    animation: logoRainbow 4s ease-in-out infinite, logoBounce 2s ease-in-out infinite;
    border-radius: var(--radius-xl);
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 30px rgba(59, 130, 246, 0.4),
        0 0 60px rgba(168, 85, 247, 0.3),
        0 0 90px rgba(236, 72, 153, 0.2);
    position: relative;
}

@keyframes logoRainbow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes logoBounce {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-8px) scale(1.02);
    }
}

.auth-header .logo::before {
    content: '✨';
    font-size: 40px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

.auth-header .logo::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6, #EC4899, #F59E0B, #10B981, #3B82F6);
    background-size: 300% 300%;
    border-radius: inherit;
    z-index: -1;
    animation: borderRotate 3s linear infinite;
    filter: blur(8px);
    opacity: 0.7;
}

@keyframes borderRotate {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 300% 50%;
    }
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #60A5FA 0%, #A78BFA 30%, #F472B6 60%, #FBBF24 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 3s ease-in-out infinite;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

@keyframes textShimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.auth-header p {
    color: #94A3B8;
    font-weight: 500;
    font-size: 1.05rem;
}

.auth-form .form-group {
    margin-bottom: 22px;
}

.auth-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #FFFFFF;
    font-size: 0.95rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.auth-form label .required {
    color: #F472B6;
}

.auth-form input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.auth-form input:focus {
    outline: none;
    border-color: #60A5FA;
    background: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 0 0 4px rgba(59, 130, 246, 0.15),
        0 0 20px rgba(59, 130, 246, 0.2);
}

.auth-form input::placeholder {
    color: #64748B;
}

.auth-form small {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #94A3B8;
}

.auth-footer {
    text-align: center;
    margin-top: 32px;
    color: #94A3B8;
    font-weight: 500;
}

.auth-footer a {
    background: linear-gradient(135deg, #60A5FA, #A78BFA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    text-decoration: none;
    position: relative;
}

.auth-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #60A5FA, #A78BFA);
    transition: width 0.3s ease;
}

.auth-footer a:hover::after {
    width: 100%;
}

/* 右侧装饰 - 炫彩AI主题 */
.auth-bg {
    flex: 1;
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 30%, #EC4899 60%, #F59E0B 100%);
    background-size: 300% 300%;
    animation: bgWave 8s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    display: none;
}

@keyframes bgWave {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@media (min-width: 768px) {
    .auth-bg {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* 科技六边形装饰 */
.auth-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 20%);
}

.auth-bg::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

/* 谷歌真实APP图标样式 */
.floating-shapes span {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 18px;
    animation: aiFloat 10s ease-in-out infinite;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Antigravity 图标 - 谷歌反重力 */
.floating-shapes span:nth-child(1) {
    width: 72px;
    height: 72px;
    left: 12%;
    top: 12%;
    animation-delay: 0s;
    background-image: url('/icons/antigravity.png');
    background-size: cover;
    background-position: center;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.5);
}

/* Google Chrome 图标 */
.floating-shapes span:nth-child(2) {
    width: 65px;
    height: 65px;
    left: 70%;
    top: 12%;
    animation-delay: 1.5s;
    border-radius: 50%;
    background: linear-gradient(135deg, #EA4335 0%, #FBBC05 33%, #34A853 66%, #4285F4 100%);
}

.floating-shapes span:nth-child(2)::before {
    content: '';
    width: 25px;
    height: 25px;
    background: #fff;
    border-radius: 50%;
    border: 4px solid #4285F4;
}

/* Gmail 图标 - 使用真实图标 */
.floating-shapes span:nth-child(3) {
    width: 68px;
    height: 68px;
    left: 20%;
    top: 50%;
    animation-delay: 3s;
    background-image: url('/icons/gmail.png');
    background-size: cover;
    background-position: center;
    border-radius: 16px;
}

/* Google Maps 图标 */
.floating-shapes span:nth-child(4) {
    width: 60px;
    height: 60px;
    left: 75%;
    top: 55%;
    animation-delay: 4.5s;
    border-radius: 50% 50% 50% 0;
    background: linear-gradient(180deg, #EA4335 50%, #C5221F 50%);
    transform: rotate(-45deg);
}

.floating-shapes span:nth-child(4)::before {
    content: '';
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transform: rotate(45deg);
}

/* Gmail 图标 */
.floating-shapes span:nth-child(5) {
    width: 72px;
    height: 72px;
    left: 48%;
    top: 35%;
    animation-delay: 6s;
    background: #fff;
    border-radius: 14px;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.floating-shapes span:nth-child(5)::before {
    content: 'M';
    font-size: 36px;
    font-weight: 700;
    font-family: 'Google Sans', Arial, sans-serif;
    background: linear-gradient(180deg, #EA4335 0%, #EA4335 33%, #FBBC05 33%, #FBBC05 50%, #34A853 50%, #34A853 66%, #4285F4 66%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Google Drive 图标 */
.floating-shapes span:nth-child(6) {
    width: 66px;
    height: 66px;
    left: 8%;
    top: 78%;
    animation-delay: 7.5s;
    background: linear-gradient(135deg, #4285F4 33%, #0F9D58 33%, #0F9D58 66%, #F4B400 66%);
    border-radius: 12px;
    clip-path: polygon(50% 0%, 100% 75%, 50% 100%, 0% 75%);
}

/* Google Photos 图标 */
.floating-shapes span:nth-child(7) {
    width: 64px;
    height: 64px;
    left: 82%;
    top: 32%;
    animation-delay: 9s;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #EA4335 0deg 90deg, #FBBC05 90deg 180deg, #34A853 180deg 270deg, #4285F4 270deg 360deg);
}

.floating-shapes span:nth-child(7)::before {
    content: '';
    width: 28px;
    height: 28px;
    background: #fff;
    border-radius: 50%;
}

/* Google Meet 图标 */
.floating-shapes span:nth-child(8) {
    width: 62px;
    height: 62px;
    left: 55%;
    top: 75%;
    animation-delay: 10.5s;
    background: linear-gradient(135deg, #00832d, #00ac47);
    border-radius: 14px;
}

.floating-shapes span:nth-child(8)::before {
    content: '';
    width: 28px;
    height: 20px;
    background: #fff;
    border-radius: 4px;
    position: relative;
}

.floating-shapes span:nth-child(8)::after {
    content: '';
    position: absolute;
    right: 12px;
    border-left: 12px solid #fff;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

@keyframes aiFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    25% {
        transform: translateY(-25px) rotate(10deg) scale(1.05);
    }

    50% {
        transform: translateY(5px) rotate(-5deg) scale(0.98);
    }

    75% {
        transform: translateY(-15px) rotate(5deg) scale(1.02);
    }
}

/* ===== 🎨 按钮系统 ===== */
.btn {
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    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.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
    background: var(--bg-light-hover);
    color: var(--text-dark);
    border: 2px solid var(--border-light);
}

.btn-secondary:hover {
    background: #E2E8F0;
    border-color: var(--dopamine-purple);
}

.btn-success {
    background: var(--success-gradient);
    color: white;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-danger {
    background: var(--danger-gradient);
    color: white;
}

.btn-info {
    background: var(--info-gradient);
    color: white;
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.loading {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== 🍭 Toast ===== */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 16px 28px;
    border-radius: var(--radius-full);
    color: white;
    font-weight: 600;
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition: var(--transition-bounce);
    z-index: 10000;
    box-shadow: var(--shadow-lg);
}

.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast.success {
    background: var(--success-gradient);
}

.toast.error {
    background: var(--danger-gradient);
}

.toast.warning {
    background: var(--warning-gradient);
    color: var(--text-dark);
}

/* ===== 📐 主布局 ===== */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* ===== 🎪 侧边栏 ===== */
.sidebar {
    width: 260px;
    background: var(--bg-light-card);
    padding: 24px 16px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    border-right: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.sidebar-header {
    padding: 16px;
    margin-bottom: 24px;
}

.sidebar-header h2 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-header h2::before {
    content: '📧';
    font-size: 1.5rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: var(--text-muted);
    border-radius: var(--radius-md);
    transition: var(--transition);
    text-decoration: none;
    font-weight: 600;
}

.nav-item:hover {
    background: var(--bg-light-hover);
    color: var(--dopamine-purple);
}

.nav-item.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-glow);
}

.nav-item .icon {
    font-size: 1.3rem;
}

/* ===== 📱 主内容区 ===== */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 28px;
    min-height: 100vh;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
}

.page-header p {
    color: var(--text-muted);
    margin-top: 4px;
}

.diamond-display {
    background: var(--primary-gradient);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 700;
    color: white;
    box-shadow: var(--shadow-glow);
    display: flex;
    align-items: center;
    gap: 8px;
}

.diamond-display::before {
    content: '💎';
}

/* ===== 🎴 卡片系统 ===== */
.card {
    background: var(--bg-light-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 28px;
    margin-bottom: 24px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--bg-light-hover);
}

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== 📊 统计卡片 ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-light-card);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 18px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.stat-card:nth-child(1)::before {
    background: var(--primary-gradient);
}

.stat-card:nth-child(2)::before {
    background: var(--success-gradient);
}

.stat-card:nth-child(3)::before {
    background: var(--warning-gradient);
}

.stat-card:nth-child(4)::before {
    background: var(--info-gradient);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.stat-icon.primary {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05));
    color: var(--dopamine-purple);
}

.stat-icon.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    color: var(--dopamine-green);
}

.stat-icon.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
    color: var(--dopamine-yellow);
}

.stat-icon.danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
    color: var(--dopamine-red);
}

.stat-info h4 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
}

.stat-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== 💳 支付选项卡片 ===== */
.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.payment-option {
    background: var(--bg-light-hover);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.payment-option:hover {
    border-color: var(--dopamine-purple);
    background: white;
}

.payment-option.selected {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(168, 85, 247, 0.05));
    border-color: var(--dopamine-purple);
    box-shadow: var(--shadow-glow);
}

.payment-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.payment-option .months {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.payment-option .discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--danger-gradient);
    color: white;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
}

.payment-option .original-price {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-bottom: 4px;
}

.payment-option .current-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dopamine-purple);
    margin-bottom: 4px;
}

.payment-option .monthly-price {
    font-size: 0.75rem;
    color: var(--dopamine-green);
    font-weight: 600;
}

.payment-option .stock {
    font-size: 0.7rem;
    margin-top: 6px;
    font-weight: 600;
}

/* ===== 📋 表格 ===== */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th,
td {
    padding: 16px;
    text-align: left;
}

th {
    background: var(--bg-light-hover);
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-light);
}

th:first-child {
    border-radius: var(--radius-md) 0 0 0;
}

th:last-child {
    border-radius: 0 var(--radius-md) 0 0;
}

td {
    border-bottom: 1px solid var(--border-light);
    font-weight: 500;
    color: var(--text-dark);
}

tr:hover td {
    background: var(--bg-light-hover);
}

/* ===== 🏷️ 徽章 ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(52, 211, 153, 0.1));
    color: var(--dopamine-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(251, 191, 36, 0.1));
    color: var(--dopamine-yellow);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(248, 113, 113, 0.1));
    color: var(--dopamine-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-primary {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(168, 85, 247, 0.1));
    color: var(--dopamine-purple);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-secondary {
    background: var(--bg-light-hover);
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}

/* ===== 📝 表单 ===== */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    font-weight: 500;
    transition: var(--transition);
    background: var(--bg-light);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--dopamine-purple);
    background: white;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

/* 复选框样式 */
.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    accent-color: var(--dopamine-purple);
}

/* ===== 📧 邮箱卡片 ===== */
.mailbox-card {
    background: var(--bg-light-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 28px;
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.mailbox-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.mailbox-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.mailbox-card.expiring::before {
    background: var(--warning-gradient);
}

.mailbox-card.expired::before {
    background: var(--danger-gradient);
}

.mailbox-card.expired {
    opacity: 0.7;
}

.mailbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.mailbox-email {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.mailbox-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.mailbox-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sub-mailboxes {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 2px solid var(--bg-light-hover);
}

.sub-slot {
    background: var(--bg-light-hover);
    border-radius: var(--radius-md);
    padding: 14px;
    text-align: center;
    border: 2px dashed var(--border-light);
    cursor: pointer;
    transition: var(--transition);
}

.sub-slot:hover {
    border-color: var(--dopamine-purple);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(168, 85, 247, 0.03));
}

.sub-slot.filled {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(52, 211, 153, 0.05));
    border-style: solid;
    border-color: var(--dopamine-green);
}

.sub-slot .position {
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.sub-slot .email {
    font-size: 0.8rem;
    color: var(--text-dark);
    word-break: break-all;
    font-weight: 600;
}

/* ===== 🪟 模态框 ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 26, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-light-card);
    border-radius: var(--radius-xl);
    padding: 32px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border: 1px solid var(--border-light);
}

.modal-overlay.show .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
}

.modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-light-hover);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--danger-gradient);
    color: white;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid var(--bg-light-hover);
}

/* ===== 🎁 推荐卡片 ===== */
.referral-card {
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-bottom: 24px;
    color: white;
    position: relative;
    overflow: hidden;
}

.referral-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.referral-card h3 {
    font-weight: 800;
    margin-bottom: 16px;
    font-size: 1.3rem;
    position: relative;
}

.referral-link {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
    backdrop-filter: blur(10px);
}

.referral-link input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

.referral-link button {
    background: white;
    color: var(--dopamine-purple);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.referral-link button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* ===== ⚡ 快捷操作 ===== */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: var(--bg-light-hover);
    border-radius: var(--radius-lg);
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
}

.action-btn:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(168, 85, 247, 0.03));
    border-color: var(--dopamine-purple);
    transform: translateY(-3px);
}

.action-btn span {
    font-size: 1.5rem;
}

/* ===== 📭 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state .icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.empty-state p {
    font-weight: 500;
}

/* ===== 🖼️ 收款码区域 ===== */
.qrcode-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    justify-items: center;
}

.qrcode-item {
    text-align: center;
    padding: 16px;
    background: var(--bg-light-hover);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-light);
}

.qrcode-item img {
    max-width: 150px;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
}

.qrcode-item p {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* ===== 📱 响应式 ===== */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: var(--transition);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 20px 16px;
    }

    .auth-card {
        padding: 40px 24px;
    }

    .sub-mailboxes {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .payment-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== 🖱️ 滚动条 ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light-hover);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 10px;
}

/* ===== ✨ 文本选择 ===== */
::selection {
    background: var(--dopamine-purple);
    color: white;
}

/* ===== 🔗 链接 ===== */
a {
    color: var(--dopamine-purple);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

a:hover {
    color: var(--dopamine-pink);
}

/* ===== 🔧 管理员标签页 ===== */
.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--bg-light-hover);
    padding-bottom: 12px;
}

.admin-tab {
    padding: 10px 20px;
    background: var(--bg-light-hover);
    border: none;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.admin-tab.active {
    background: var(--primary-gradient);
    color: white;
}

.admin-tab:hover:not(.active) {
    background: #E2E8F0;
}