/* 卡通风格样式 */

/* 卡通色彩变量 */
:root {
    --cartoon-primary: #FF6B9D;
    --cartoon-secondary: #4ECDC4;
    --cartoon-accent: #FFE66D;
    --cartoon-success: #95E1D3;
    --cartoon-warning: #F8B500;
    --cartoon-error: #FF8A80;
    --cartoon-purple: #C44569;
    --cartoon-blue: #54A0FF;
    --cartoon-green: #5F27CD;
    --cartoon-orange: #FF9F43;
    
    --cartoon-bg-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --cartoon-bg-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --cartoon-bg-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --cartoon-bg-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --cartoon-bg-5: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* 基础样式重写 */
body {
    background: var(--cartoon-bg-1);
    font-family: 'Comic Sans MS', 'Arial', cursive, sans-serif;
    overflow-x: hidden;
    position: relative;
}

/* 添加卡通背景装饰 */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(1deg); }
    66% { transform: translateY(-10px) rotate(-1deg); }
}

/* 页面容器卡通化 */
.page {
    background: var(--cartoon-bg-1);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.page.active {
    animation: pageSlideIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes pageSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 容器样式 */
.container {
    position: relative;
}

/* 登录页面卡通化 */
.login-header {
    text-align: center;
    margin: 40px 0;
    position: relative;
}

.login-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: white;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
    position: relative;
    animation: bounceIn 1s ease;
}

.login-header h1::before {
    content: '🎯';
    font-size: 40px;
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    animation: spin 3s linear infinite;
}

.subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 登录内容区域 */
.login-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 35px;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    animation: cardSlideUp 0.8s ease;
}

.login-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* 选项卡按钮 */
.login-tabs {
    display: flex;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    border-radius: 20px;
    padding: 6px;
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.3);
}

.tab-btn {
    flex: 1;
    padding: 15px;
    border: none;
    background: transparent;
    color: white;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.tab-btn:hover::before {
    width: 100%;
    height: 100%;
}

.tab-btn.active {
    background: white;
    color: var(--cartoon-primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* 输入框卡通化 */
.input-group {
    margin-bottom: 25px;
    position: relative;
}

.input-group input {
    width: 100%;
    height: 55px;
    border: 3px solid #e1e5e9;
    border-radius: 20px;
    padding: 0 20px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.input-group input:focus {
    outline: none;
    border-color: var(--cartoon-primary);
    box-shadow: 
        0 0 0 4px rgba(255, 107, 157, 0.2),
        inset 0 2px 8px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.input-group input::placeholder {
    color: #999;
    font-weight: 500;
}

/* 发送验证码按钮 */
.send-code-btn {
    position: absolute;
    right: 8px;
    top: 8px;
    height: 39px;
    padding: 0 16px;
    border: none;
    background: var(--cartoon-secondary);
    color: white;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
}

.send-code-btn:hover {
    background: var(--cartoon-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(84, 160, 255, 0.4);
}

/* 登录按钮卡通化 */
.login-btn {
    width: 100%;
    height: 55px;
    border: none;
    background: var(--cartoon-bg-2);
    color: white;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.login-btn:hover::before {
    width: 300px;
    height: 300px;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 157, 0.5);
}

/* 主页面卡通化 */
.user-info {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 25px;
    margin: 20px 0;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.user-info::after {
    content: '👨‍💻';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    opacity: 0.6;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    border: 4px solid var(--cartoon-accent);
    box-shadow: 0 8px 25px rgba(255, 230, 109, 0.4);
    position: relative;
    animation: avatarPulse 3s ease-in-out infinite;
}

@keyframes avatarPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.avatar::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid var(--cartoon-primary);
    border-radius: 50%;
    opacity: 0;
    animation: avatarRing 3s ease-in-out infinite;
}

@keyframes avatarRing {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* 用户详情区域 */
.user-details {
    flex: 1;
    margin-right: 15px;
}

.user-details h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 700;
}

.user-details p {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

/* 退出登录按钮 */
.logout-btn {
    width: 45px;
    height: 45px;
    border: none;
    background: linear-gradient(135deg, #ff6b9d, #ff8a80);
    color: white;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
}

.logout-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.logout-btn:hover::before {
    width: 60px;
    height: 60px;
}

.logout-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}

.logout-btn:active {
    transform: translateY(-1px) scale(1.05);
}

/* 返回选择按钮 */
.back-selection-btn {
    width: 45px;
    height: 45px;
    border: none;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.back-selection-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.back-selection-btn:hover::before {
    width: 60px;
    height: 60px;
}

.back-selection-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

.back-selection-btn:active {
    transform: translateY(-1px) scale(1.05);
}

/* 菜单项卡通化 */
.menu-items {
    display: grid;
    gap: 20px;
    margin: 25px 0;
}

.menu-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--cartoon-bg-3);
    border-radius: 25px 25px 0 0;
    transition: height 0.3s ease;
}

.menu-item:nth-child(1)::before { background: var(--cartoon-bg-2); }
.menu-item:nth-child(2)::before { background: var(--cartoon-bg-3); }
.menu-item:nth-child(3)::before { background: var(--cartoon-bg-4); }

.menu-item:hover::before {
    height: 100%;
    opacity: 0.1;
}

.menu-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.3);
}

.menu-icon {
    font-size: 50px;
    margin-bottom: 15px;
    display: inline-block;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(5deg); }
}

.menu-item:nth-child(1) .menu-icon { animation-delay: 0s; }
.menu-item:nth-child(2) .menu-icon { animation-delay: 0.5s; }
.menu-item:nth-child(3) .menu-icon { animation-delay: 1s; }

/* 统计面板卡通化 */
.stats-panel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 25px;
    margin-top: 25px;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.stats-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 4s infinite;
}

.stat-item {
    text-align: center;
    flex: 1;
    position: relative;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--cartoon-primary);
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(255, 107, 157, 0.2);
    animation: numberPulse 2s ease-in-out infinite;
}

@keyframes numberPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.stat-item:nth-child(1) .stat-number { color: var(--cartoon-primary); }
.stat-item:nth-child(2) .stat-number { color: var(--cartoon-secondary); }
.stat-item:nth-child(3) .stat-number { color: var(--cartoon-accent); }

/* 答题页面卡通化 */
.quiz-header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 25px;
    margin-bottom: 25px;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e1e5e9;
    border-radius: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: var(--cartoon-bg-3);
    border-radius: 20px;
    transition: width 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 计时器卡通化 */
.timer-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    animation: timerBounce 1s ease-in-out infinite;
}

@keyframes timerBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.timer-circle::before {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: white;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

#timerText {
    font-size: 20px;
    font-weight: 800;
    color: #333;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 题目内容区域 */
.question-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 25px;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    position: relative;
}

.question-content::before {
    content: '❓';
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    opacity: 0.6;
    animation: questionBounce 2s ease-in-out infinite;
}

@keyframes questionBounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* 选项卡通化 */
.option {
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid #e1e5e9;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-size: 16px;
    font-weight: 600;
    color: #333;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.option::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10px;
    width: 12px;
    height: 12px;
    border: 2px solid #ccc;
    border-radius: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.option:hover {
    border-color: var(--cartoon-primary);
    background: rgba(255, 107, 157, 0.05);
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.15);
}

.option:hover::before {
    border-color: var(--cartoon-primary);
}

.option.selected {
    border-color: var(--cartoon-primary);
    background: var(--cartoon-primary);
    color: white;
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}

.option.selected::before {
    background: white;
    border-color: white;
}

.option.correct {
    border-color: var(--cartoon-success);
    background: var(--cartoon-success);
    color: white;
    animation: correctPulse 0.6s ease;
}

.option.wrong {
    border-color: var(--cartoon-error);
    background: var(--cartoon-error);
    color: white;
    animation: wrongShake 0.6s ease;
}

@keyframes correctPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes wrongShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* 提交按钮 */
.submit-btn {
    width: 100%;
    height: 55px;
    border: none;
    background: var(--cartoon-bg-4);
    color: white;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 8px 25px rgba(67, 233, 123, 0.4);
    position: relative;
    overflow: hidden;
}

.submit-btn:not(:disabled):hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(67, 233, 123, 0.5);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

/* Toast 消息卡通化 */
.toast {
    background: rgba(255, 107, 157, 0.95);
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.toast.show {
    animation: toastBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes toastBounce {
    0% { 
        opacity: 0;
        transform: translateX(-50%) scale(0.8) translateY(-20px);
    }
    100% { 
        opacity: 1;
        transform: translateX(-50%) scale(1) translateY(0);
    }
}

/* 加载动画卡通化 */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid white;
    border-radius: 50%;
    animation: cartoonSpin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

@keyframes cartoonSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

/* 通用动画效果 */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-30px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) translateY(-10px);
    }
    70% {
        transform: scale(0.9) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes cardSlideUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式卡通优化 */
@media screen and (max-width: 414px) {
    .login-header h1 {
        font-size: 28px;
    }
    
    .menu-icon {
        font-size: 40px;
    }
    
    .avatar {
        width: 60px;
        height: 60px;
    }
    
    .timer-circle {
        width: 60px;
        height: 60px;
    }
    
    .timer-circle::before {
        width: 46px;
        height: 46px;
    }
}

@media screen and (min-width: 768px) {
    .login-header h1 {
        font-size: 36px;
    }
    
    .menu-icon {
        font-size: 60px;
    }
    
    .avatar {
        width: 80px;
        height: 80px;
    }
    
    .timer-circle {
        width: 80px;
        height: 80px;
    }
    
    .timer-circle::before {
        width: 62px;
        height: 62px;
    }
}

/* 特殊卡通元素 */
.cartoon-decoration {
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

.cartoon-star {
    width: 20px;
    height: 20px;
    background: var(--cartoon-accent);
    border-radius: 50%;
    opacity: 0.6;
    animation: starTwinkle 3s ease-in-out infinite;
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* 快速登录区域样式 */
.quick-login-section {
    margin-top: 25px;
    animation: fadeInUp 0.8s ease-out;
}

.quick-login-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.quick-login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e1e5e9, transparent);
}

.quick-login-divider span {
    background: white;
    padding: 0 15px;
    color: #999;
    font-size: 14px;
    font-weight: 600;
}

.quick-login-card {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--cartoon-accent);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 
        0 8px 25px rgba(255, 230, 109, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.quick-login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--cartoon-bg-4);
    border-radius: 20px 20px 0 0;
}

.quick-login-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 35px rgba(255, 230, 109, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.3);
}

.quick-login-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.quick-login-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--cartoon-secondary);
    margin-right: 15px;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.quick-login-avatar-container {
    width: 45px;
    height: 45px;
    margin-right: 15px;
    flex-shrink: 0;
}

.quick-login-details h4 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0 0 3px 0;
}

.quick-login-details p {
    font-size: 12px;
    color: #666;
    margin: 0;
    font-weight: 500;
}

.quick-login-btn {
    padding: 12px 20px;
    border: none;
    background: var(--cartoon-bg-3);
    color: white;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.3);
    position: relative;
    overflow: hidden;
}

.quick-login-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.quick-login-btn:hover::before {
    width: 200px;
    height: 200px;
}

.quick-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

.quick-login-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.quick-login-btn:disabled:hover::before {
    width: 0;
    height: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 小屏幕适配 */
@media screen and (max-width: 414px) {
    .quick-login-card {
        padding: 15px;
    }
    
    .quick-login-avatar {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }
    
    .quick-login-details h4 {
        font-size: 14px;
    }
    
    .quick-login-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* 页面可见性暂停覆盖层 */
.visibility-pause-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.visibility-pause-overlay.show {
    opacity: 1;
    visibility: visible;
}

.pause-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    max-width: 320px;
    width: 90%;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    animation: pauseContentBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.pause-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: pauseIconPulse 2s ease-in-out infinite;
}

@keyframes pauseIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.pause-content h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

.pause-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
}

.resume-btn {
    width: 100%;
    height: 50px;
    border: none;
    background: var(--cartoon-bg-4);
    color: white;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 8px 25px rgba(67, 233, 123, 0.4);
    position: relative;
    overflow: hidden;
}

.resume-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.resume-btn:hover::before {
    width: 200px;
    height: 200px;
}

.resume-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(67, 233, 123, 0.5);
}

@keyframes pauseContentBounce {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-30px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 答题选项禁用状态优化 */
.option[style*="pointer-events: none"] {
    filter: grayscale(50%);
    transition: all 0.3s ease;
}

.option[style*="opacity: 0.5"] {
    transform: scale(0.98);
}

/* 小屏幕适配 */
@media screen and (max-width: 414px) {
    .pause-content {
        padding: 30px 25px;
        max-width: 300px;
    }
    
    .pause-icon {
        font-size: 50px;
        margin-bottom: 15px;
    }
    
    .pause-content h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .pause-content p {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .resume-btn {
        height: 45px;
        font-size: 16px;
    }
}

/* 主题页面样式 */
.theme-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    position: relative;
}

.theme-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 50px 30px;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    animation: themeContentFloat 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.theme-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 4s infinite;
}

.theme-icon {
    font-size: 100px;
    margin-bottom: 30px;
    animation: themeIconFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

@keyframes themeIconFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.theme-title {
    font-size: 48px;
    font-weight: 900;
    color: var(--cartoon-primary);
    margin-bottom: 15px;
    text-shadow: 0 4px 8px rgba(255, 107, 157, 0.3);
    font-family: 'Comic Sans MS', cursive, sans-serif;
    animation: titleBounce 1s ease-out;
}

.theme-subtitle {
    font-size: 36px;
    font-weight: 800;
    color: var(--cartoon-secondary);
    margin-bottom: 30px;
    text-shadow: 0 3px 6px rgba(78, 205, 196, 0.3);
    font-family: 'Comic Sans MS', cursive, sans-serif;
    animation: titleBounce 1s ease-out 0.2s both;
}

.theme-slogan {
    margin: 30px 0;
}

.slogan-main {
    font-size: 24px;
    font-weight: 700;
    color: var(--cartoon-purple);
    margin-bottom: 10px;
    animation: titleBounce 1s ease-out 0.4s both;
}

.slogan-sub {
    font-size: 20px;
    font-weight: 600;
    color: var(--cartoon-orange);
    animation: titleBounce 1s ease-out 0.6s both;
}

.theme-description {
    margin-top: 25px;
    opacity: 0.8;
}

.theme-description p {
    font-size: 16px;
    color: #666;
    margin: 8px 0;
    font-weight: 500;
    animation: fadeInUp 1s ease-out 0.8s both;
}

/* 给家长的信页面样式 */
.letter-container {
    padding: 30px 20px;
    max-width: 450px;
    margin: 0 auto;
}

.letter-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 40px 35px;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    position: relative;
    margin-bottom: 100px;
    animation: letterSlideIn 1s ease-out;
}

.letter-content::before {
    content: '✉️';
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 20px;
    opacity: 0.6;
    animation: letterIconFloat 3s ease-in-out infinite;
}

@keyframes letterIconFloat {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(10deg); }
}

.letter-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--cartoon-accent);
    padding-bottom: 20px;
}

.letter-header h2 {
    font-size: 24px;
    color: var(--cartoon-primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.letter-date {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.letter-body {
    line-height: 1.8;
    font-size: 16px;
    color: #333;
}

.letter-greeting {
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--cartoon-purple);
}

.letter-paragraph {
    margin-bottom: 20px;
    text-align: justify;
    text-indent: 2em;
}

.letter-signature {
    margin-top: 40px;
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #e1e5e9;
}

.signature-main {
    font-size: 20px;
    font-weight: 700;
    color: var(--cartoon-primary);
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(255, 107, 157, 0.2);
}

.signature-team {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* 选择页面样式 */
.selection-header {
    text-align: center;
    margin: 40px 0;
    color: white;
    position: relative;
}

/* 返回登录按钮 */
.back-to-login-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.back-to-login-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.back-to-login-btn:active {
    transform: translateY(0) scale(1.05);
}

/* 小屏幕适配返回登录按钮 */
@media screen and (max-width: 414px) {
    .back-to-login-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
        top: 5px;
        right: 5px;
    }
}

.selection-header h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

.selection-subtitle {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 600;
}

.selection-content {
    display: grid;
    gap: 25px;
    margin: 30px 0;
}

.selection-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.selection-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--cartoon-bg-2);
    border-radius: 25px 25px 0 0;
    transition: height 0.3s ease;
}

.selection-item:nth-child(2)::before {
    background: var(--cartoon-bg-4);
}

.selection-item:hover::before {
    height: 100%;
    opacity: 0.1;
}

.selection-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.3);
}

.selection-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: selectionIconFloat 3s ease-in-out infinite;
}

.selection-item:nth-child(1) .selection-icon { animation-delay: 0s; }
.selection-item:nth-child(2) .selection-icon { animation-delay: 1s; }

@keyframes selectionIconFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(3deg); }
}

.selection-item h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.selection-item p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    font-weight: 500;
}

.selection-features {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.feature-tag {
    background: var(--cartoon-bg-3);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.selection-footer {
    text-align: center;
    margin-top: 30px;
}

.selection-footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

/* 切水果游戏页面样式 */
.game-header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 15px 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-info {
    display: flex;
    gap: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.game-container {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

#gameCanvas {
    width: 100%;
    max-width: 360px;
    height: auto;
    border-radius: 15px;
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    display: block;
    margin: 0 auto;
    cursor: crosshair;
    transition: all 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    touch-action: none;
}

#gameCanvas:hover {
    box-shadow: 0 8px 25px rgba(67, 233, 123, 0.4);
    transform: scale(1.01);
}

/* PC端游戏优化 */
@media screen and (min-width: 768px) {
    #gameCanvas {
        max-width: 400px;
        cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="3" fill="%23ff4757"/><circle cx="12" cy="12" r="8" fill="none" stroke="%23ff4757" stroke-width="2" opacity="0.5"/></svg>') 12 12, crosshair;
    }
    
    .game-container {
        padding: 30px;
    }
    
    .game-info {
        font-size: 18px;
    }
    
    .game-start-content,
    .game-result-content {
        padding: 40px;
        max-width: 400px;
    }
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.game-overlay.show {
    opacity: 1;
    visibility: visible;
}

.game-start-content,
.game-result-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(20px);
    animation: gameContentBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.game-start-content h2,
.game-result-content h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

.game-start-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
}

.game-start-btn {
    width: 100%;
    height: 50px;
    border: none;
    background: var(--cartoon-bg-4);
    color: white;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 8px 25px rgba(67, 233, 123, 0.4);
}

.game-start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(67, 233, 123, 0.5);
}

.final-game-score {
    margin: 20px 0;
}

.final-game-score span {
    display: block;
    font-size: 48px;
    font-weight: 800;
    color: var(--cartoon-primary);
    margin-bottom: 10px;
    text-shadow: 0 4px 8px rgba(255, 107, 157, 0.3);
}

.final-game-score p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.game-result-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.game-action-btn {
    height: 45px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-action-btn.primary {
    background: var(--cartoon-bg-2);
    color: white;
}

.game-action-btn.secondary {
    background: white;
    color: var(--cartoon-secondary);
    border: 2px solid var(--cartoon-secondary);
}

.game-action-btn {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e1e5e9;
}

/* 上滑指示器 */
.swipe-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    animation: swipeIndicatorFloat 2s ease-in-out infinite;
}

.swipe-arrow {
    font-size: 30px;
    margin-bottom: 10px;
    animation: swipeArrowBounce 1.5s ease-in-out infinite;
}

.swipe-text {
    font-size: 14px;
    opacity: 0.8;
    font-weight: 600;
}

@keyframes swipeIndicatorFloat {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes swipeArrowBounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* 卡通标题字体 */
.cartoon-title {
    font-family: 'Comic Sans MS', 'Marker Felt', 'Chalkduster', cursive, sans-serif !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(45deg, var(--cartoon-primary), var(--cartoon-secondary), var(--cartoon-accent));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 动画效果 */
@keyframes themeContentFloat {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(40px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes titleBounce {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(30px);
    }
    60% {
        opacity: 1;
        transform: scale(1.1) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes letterSlideIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gameContentBounce {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 响应式适配 */
@media screen and (max-width: 414px) {
    .theme-content {
        padding: 40px 25px;
        margin: 20px;
    }
    
    .theme-icon {
        font-size: 80px;
        margin-bottom: 25px;
    }
    
    .theme-title {
        font-size: 36px;
        margin-bottom: 12px;
    }
    
    .theme-subtitle {
        font-size: 28px;
        margin-bottom: 25px;
    }
    
    .slogan-main {
        font-size: 20px;
    }
    
    .slogan-sub {
        font-size: 18px;
    }
    
    .letter-content {
        padding: 30px 25px;
        margin-bottom: 80px;
    }
    
    .letter-header h2 {
        font-size: 20px;
    }
    
    .letter-body {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .selection-item {
        padding: 25px;
    }
    
    .selection-icon {
        font-size: 50px;
        margin-bottom: 15px;
    }
    
    .selection-item h3 {
        font-size: 20px;
    }
    
    .back-to-login-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
        top: 5px;
        right: 5px;
    }
    
    .selection-header {
        margin: 30px 0;
    }
    
    .selection-header h1 {
        font-size: 28px;
    }
}

@media screen and (min-width: 768px) {
    .theme-content {
        padding: 60px 50px;
    }
    
    .theme-icon {
        font-size: 120px;
    }
    
    .theme-title {
        font-size: 56px;
    }
    
    .theme-subtitle {
        font-size: 42px;
    }
    
    .letter-content {
        padding: 50px 45px;
    }
    
    .selection-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .selection-item {
        padding: 35px;
    }
}

/* 滑动效果 */
.page.swiping {
    transition: opacity 0.1s ease, transform 0.1s ease;
}

.page {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 深色模式卡通适配 */
@media (prefers-color-scheme: dark) {
    :root {
        --cartoon-bg-1: linear-gradient(135deg, #2d1b69 0%, #11998e 100%);
        --cartoon-bg-2: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
        --cartoon-bg-3: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    
    .theme-content,
    .letter-content,
    .selection-item {
        background: rgba(42, 42, 42, 0.95);
        color: white;
    }
    
    .theme-title,
    .theme-subtitle,
    .slogan-main,
    .slogan-sub {
        color: white;
    }
    
    .theme-description p,
    .letter-body,
    .selection-item p {
        color: #ccc;
    }
    
    .pause-content {
        background: rgba(42, 42, 42, 0.95);
    }
    
    .pause-content h3 {
        color: white;
    }
    
    .pause-content p {
        color: #ccc;
    }
    
    .quick-login-card {
        background: rgba(42, 42, 42, 0.95);
        border-color: var(--cartoon-accent);
    }
    
    .quick-login-details h4 {
        color: white;
    }
    
    .quick-login-details p {
        color: #ccc;
    }
    
    .quick-login-divider span {
        background: #2a2a2a;
        color: #aaa;
    }
}
