/* 全局样式重置与基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --danger-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gold-gradient: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.15);
    --border-radius: 15px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: 'Noto Serif SC', serif;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.02) 0%, transparent 50%),
        linear-gradient(135deg, #fafbfc 0%, #f8f9fa 50%, #f5f6f7 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 背景装饰层 */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-petals {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(102, 126, 234, 0.08), transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(118, 75, 162, 0.06), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(67, 233, 123, 0.05), transparent),
        radial-gradient(3px 3px at 160px 120px, rgba(255, 193, 7, 0.04), transparent),
        radial-gradient(1px 1px at 200px 80px, rgba(250, 112, 154, 0.03), transparent);
    background-repeat: repeat;
    background-size: 300px 300px;
    animation: floatPetals 30s linear infinite;
}

@keyframes floatPetals {
    0% { 
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.6;
    }
    50% {
        opacity: 0.8;
    }
    100% { 
        transform: translateY(-200px) rotate(360deg) scale(1.05);
        opacity: 0.4;
    }
}

.ancient-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.02) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(255,255,255,0.02) 50%, transparent 70%);
    background-size: 60px 60px;
    opacity: 0.3;
}

/* 主容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
    animation: containerFadeIn 1s ease-out;
}

@keyframes containerFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 头部样式 */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
}

.logo {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-icon {
    font-size: 3rem;
    animation: logoGlow 3s ease-in-out infinite alternate, logoFloat 4s ease-in-out infinite;
    display: inline-block;
}

@keyframes logoGlow {
    0% { 
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
        filter: hue-rotate(0deg);
    }
    50% {
        text-shadow: 0 0 25px rgba(255, 215, 0, 0.9), 0 0 35px rgba(255, 215, 0, 0.7);
        filter: hue-rotate(30deg);
    }
    100% { 
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.6);
        filter: hue-rotate(60deg);
    }
}

@keyframes logoFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(2deg);
    }
    50% { 
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(-3px) rotate(-2deg);
    }
}

.nav-menu {
    display: flex;
    gap: 15px;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.nav-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.6s ease;
}

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

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-medium);
    border-color: rgba(255, 255, 255, 0.4);
}

.nav-btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* 主游戏区域 */
.main-game {
    min-height: 600px;
}

/* 用户信息面板 */
.user-panel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-info label {
    display: block;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 500;
}

.input-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

#userId {
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    width: 300px;
    transition: all 0.3s ease;
    font-family: inherit;
}

#userId:focus {
    outline: none;
    border-color: #3f51b5;
    box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.1);
}

.start-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 18px 36px;
    font-size: 1.2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.start-btn::before {
    content: '🚀';
    position: absolute;
    top: 50%;
    left: -30px;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: var(--transition);
}

.start-btn:hover::before {
    left: 20px;
}

.start-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-heavy);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.start-btn:active {
    transform: translateY(-2px) scale(1.02);
}

/* 游戏界面 */
.game-interface {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* 状态栏 */
.status-bar {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    gap: 15px;
}

.user-id, .score {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.user-id span, .score span {
    color: #3f51b5;
    font-weight: 700;
}

.new-challenge-btn {
    background: var(--danger-gradient);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.new-challenge-btn::before {
    content: '⚡';
    position: absolute;
    top: 50%;
    right: -25px;
    transform: translateY(-50%);
    font-size: 1.2rem;
    transition: var(--transition);
}

.new-challenge-btn:hover::before {
    right: 15px;
}

.new-challenge-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-medium);
}

.new-challenge-btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* 题目区域 */
.question-area {
    margin-bottom: 30px;
}

.question-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.question-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3f51b5, #2196f3, #00bcd4);
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.question-header {
    text-align: center;
    margin-bottom: 25px;
}

.question-header h2 {
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
}


.question-content {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #333;
    text-align: center;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-text {
    color: #666;
    font-style: italic;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* 选项区域 */
.options-area {
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.option-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    padding: 24px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    line-height: 1.6;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
    font-weight: 500;
}

.option-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0.1;
    transition: left 0.6s ease;
}

.option-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid var(--primary-gradient);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    transform: translateY(-50%);
    opacity: 0;
    transition: var(--transition);
}

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

.option-btn:hover::after {
    opacity: 1;
    left: 15px;
}

.option-btn:hover {
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-medium);
    background: rgba(255, 255, 255, 0.98);
}

.option-btn.correct {
    background: var(--success-gradient);
    color: white;
    border-color: #4facfe;
    animation: correctAnswer 0.8s ease-out;
    box-shadow: 0 0 30px rgba(79, 172, 254, 0.5);
    position: relative;
}

.option-btn.correct::before {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    animation: checkmark 0.5s ease-out 0.3s both;
}

.option-btn.incorrect {
    background: var(--danger-gradient);
    color: white;
    border-color: #fa709a;
    animation: incorrectAnswer 0.8s ease-out;
    box-shadow: 0 0 30px rgba(250, 112, 154, 0.5);
    position: relative;
}

.option-btn.incorrect::before {
    content: '✗';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    animation: crossmark 0.5s ease-out 0.3s both;
}

@keyframes correctAnswer {
    0% { 
        transform: scale(1);
        box-shadow: var(--shadow-light);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 0 40px rgba(79, 172, 254, 0.7);
    }
    100% { 
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(79, 172, 254, 0.5);
    }
}

@keyframes incorrectAnswer {
    0% { 
        transform: translateX(0) scale(1);
        box-shadow: var(--shadow-light);
    }
    25% { 
        transform: translateX(-10px) scale(0.98);
        box-shadow: 0 0 25px rgba(250, 112, 154, 0.6);
    }
    75% { 
        transform: translateX(10px) scale(0.98);
        box-shadow: 0 0 25px rgba(250, 112, 154, 0.6);
    }
    100% { 
        transform: translateX(0) scale(1);
        box-shadow: 0 0 30px rgba(250, 112, 154, 0.5);
    }
}

@keyframes checkmark {
    0% { 
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.3) rotate(180deg);
    }
    100% { 
        opacity: 1;
        transform: scale(1) rotate(360deg);
    }
}

@keyframes crossmark {
    0% { 
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.3) rotate(-180deg);
    }
    100% { 
        opacity: 1;
        transform: scale(1) rotate(-360deg);
    }
}


/* 答案区域 */
.answer-area {
    margin-bottom: 30px;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.answer-content {
    background: rgba(255, 248, 225, 0.95);
    border: 2px solid #ffc107;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(255, 193, 7, 0.2);
}

.answer-content h3 {
    color: #f57f17;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.answer-content p {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.6;
    white-space: pre-line;
}

/* 结果区域 */
.result-area {
    animation: bounceIn 0.8s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.result-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.result-text {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.6;
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.answer-btn {
    background: var(--warning-gradient);
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.answer-btn::before {
    content: '💡';
    position: absolute;
    top: 50%;
    left: -25px;
    transform: translateY(-50%);
    font-size: 1.2rem;
    transition: var(--transition);
}

.answer-btn:hover::before {
    left: 15px;
}

.answer-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-medium);
}

.continue-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.continue-btn::before {
    content: '→';
    position: absolute;
    top: 50%;
    right: -25px;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: bold;
    transition: var(--transition);
}

.continue-btn:hover::before {
    right: 15px;
}

.continue-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-medium);
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #333;
}

/* 加载指示器 */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #667eea;
    border-right: 4px solid #764ba2;
    border-radius: 50%;
    animation: spinGradient 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) infinite;
    margin: 0 auto 20px;
    position: relative;
}

.spinner::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid transparent;
    border-top: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 50%;
    animation: spinGradient 2s linear infinite reverse;
}

@keyframes spinGradient {
    0% { 
        transform: rotate(0deg);
        filter: hue-rotate(0deg);
    }
    50% {
        filter: hue-rotate(180deg);
    }
    100% { 
        transform: rotate(360deg);
        filter: hue-rotate(360deg);
    }
}

.loading-spinner p {
    color: #333;
    font-size: 1.1rem;
    font-weight: 500;
}

/* 通知提示 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transform: translateX(400px);
    transition: transform 0.5s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    gap: 15px;
}

.notification-text {
    color: #333;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.notification-close:hover {
    color: #333;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        padding: 18px;
    }
    
    .options-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        animation: fadeInStagger 0.8s ease-out;
    }
    
    .logo {
        font-size: 2rem;
        animation-delay: 0.2s;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        animation-delay: 0.4s;
    }
    
    .nav-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .input-group {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    #userId {
        width: 100%;
        padding: 16px;
        font-size: 1rem;
    }
    
    .start-btn {
        width: 100%;
        padding: 16px;
        font-size: 1.1rem;
    }
    
    .status-bar {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .option-btn {
        padding: 20px;
        font-size: 1rem;
    }
    
    .result-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .answer-btn, .continue-btn {
        width: 100%;
        justify-content: center;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
        border-radius: 15px;
    }
    
    .question-content {
        font-size: 1.1rem;
        padding: 0 10px;
    }
    
    .question-card {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 12px;
    }
    
    .logo {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .logo-icon {
        font-size: 2.5rem;
    }
    
    .nav-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .question-header h2 {
        font-size: 1.5rem;
    }
    
    .user-panel {
        padding: 25px 20px;
    }
    
    .question-card {
        padding: 20px 15px;
    }
    
    .result-content {
        padding: 25px 20px;
    }
    
    .option-btn {
        padding: 18px 16px;
        font-size: 0.95rem;
    }
    
    .result-icon {
        font-size: 3rem;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 98%;
        padding: 15px;
    }
}

@keyframes fadeInStagger {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 选择文本样式 */
::selection {
    background: rgba(102, 126, 234, 0.3);
    color: #333;
}

/* 焦点样式 */
button:focus,
input:focus {
    outline: 2px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

/* 无障碍样式 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
}
