/* ========================================
   诗词接龙H5小游戏 - 主样式文件
   设计风格：中国传统诗词文化典雅风格
   ======================================== */

/* 全局重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* 主题变量 - 从fg.png提取的中国传统配色 */
:root {
    /* 主色调 - 传统中国红/金色系 */
    --primary-color: #8B4513;          /* 赭石色 */
    --primary-light: #CD853F;          /* 秘鲁色 */
    --primary-dark: #5D2E0C;           /* 深褐色 */
    
    /* 辅助色 - 典雅的米色/金色 */
    --secondary-color: #F5F5DC;         /* 米色 */
    --accent-color: #DAA520;            /* 金麒麟色 */
    --accent-light: #FFD700;            /* 金色 */
    
    /* 背景色 */
    --bg-color: #FDF5E6;                /* 老花色 */
    --bg-secondary: #FAEBD7;            /* 古董白 */
    --bg-card: #FFF8DC;                 /* 玉米丝色 */
    
    /* 文字色 */
    --text-primary: #3D2914;            /* 深棕色 */
    --text-secondary: #6B4423;          /* 棕色 */
    --text-muted: #8B7355;              /* 灰褐色 */
    
    /* 功能色 */
    --success-color: #228B22;           /* 森林绿 */
    --error-color: #B22222;             /* 耐火砖红 */
    --warning-color: #DAA520;           /* 金麒麟色 */
    
    /* 阴影 */
    --shadow-light: 0 2px 8px rgba(139, 69, 19, 0.1);
    --shadow-medium: 0 4px 16px rgba(139, 69, 19, 0.15);
    --shadow-heavy: 0 8px 32px rgba(139, 69, 19, 0.2);
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    
    /* 字体 */
    --font-family: 'KaiTi', 'STKaiti', '楷体', 'SimSun', '宋体', serif;
    --font-family-bold: 'KaiTi', 'STKaiti', '楷体', 'SimHei', '黑体', sans-serif;
    
    /* 过渡动画 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #2D1B0E;
        --bg-secondary: #3D2914;
        --bg-card: #4D3920;
        --text-primary: #F5F5DC;
        --text-secondary: #DEB887;
        --text-muted: #BC8F8F;
    }
}

/* 基础样式 */
html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(218, 165, 32, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 69, 19, 0.1) 0%, transparent 50%);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 应用容器 */
#app {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* 页面基础样式 */
.page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
    overflow-y: auto;
    overflow-x: hidden;
}

.page.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   首页样式
   ======================================== */
#home-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* ========================================
   装饰元素 - 可单独调整
   每个装饰图片都有独立的控制，互不影响
   ======================================== */

/* 通用装饰容器样式 */
.decor-top-left,
.decor-top-right,
.decor-bottom {
    position: absolute;
    z-index: 0;  /* 放在最底层，不干扰标题等元素 */
    pointer-events: none;  /* 不响应鼠标事件，不影响其他元素 */
}

/* ========================================
   装饰图片1 (左上角) - 独立控制
   ======================================== */
.decor-top-left {
    top: 15px;      /* 调整垂直位置 */
    left: 0px;      /* 调整水平位置 */
    opacity: 0.85;   /* 调整透明度 */
}

.decor-top-left .decor-img {
    width: 180px;    /* 调整图片宽度 */
    height: 180px;   /* 调整图片高度 */
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(139, 90, 43, 0.2));
    animation: float 4s ease-in-out infinite;
}

/* ========================================
   装饰图片2 (右上角) - 独立控制
   ======================================== */
.decor-top-right {
    top: 15px;      /* 调整垂直位置 */
    right: 0px;     /* 调整水平位置 */
    opacity: 0.85;   /* 调整透明度 */
}

.decor-top-right .decor-img {
    width: 280px;    /* 调整图片宽度 */
    height: 280px;   /* 调整图片高度 */
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(139, 90, 43, 0.2));
    animation: float 4s ease-in-out infinite;
}

/* ========================================
   装饰图片3 (中心) - 独立控制
   ======================================== */
.decor-center {
    margin: -90px 0;  /* 调整上下间距 */
    z-index: 0;      /* 放在最底层 */
    pointer-events: none;  /* 不响应鼠标事件 */
}

.decor-center-img {
    width: 440px;    /* 调整图片宽度 */
    height: 440px;   /* 调整图片高度 */
    object-fit: contain;
    opacity: 0.9;    /* 调整透明度 */
    filter: drop-shadow(0 4px 16px rgba(139, 90, 43, 0.25));
    animation: rotate 25s linear infinite;
}

/* ========================================
   装饰图片4 (底部) - 独立控制
   ======================================== */
.decor-bottom {
/*    bottom: 0;        */
    left: 0;          /* 调整左侧位置 */
    right: 0;         /* 调整右侧位置 */
    top: 210px;
/*    opacity: 0.4;     */
}
.decor-center-img3{
    width: 50%;
    height: auto;
    padding-top: 40px;
}
.decor-center-img4{
    width: 50%;
    height: auto;
/*    margin-left: -33px;*/
    padding-bottom: 40px;
}

.decor-bottom-img {
/*    width: 50%;      */
width: 180px;
    height: auto;
    max-height: 400px; /* 调整最大高度 */
    object-fit: cover;
}

/* 首页容器 */
.home-container {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 400px;
    width: 100%;
    padding: 40px 20px;
}

/* 游戏标题 */
.game-title {
    margin-bottom: 40px;
}

.game-title h1 {
    font-family: var(--font-family-bold);
    font-size: 3.5rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(139, 69, 19, 0.2);
    margin-bottom: 10px;
    letter-spacing: 8px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    letter-spacing: 4px;
}



/* 按钮组 */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
}

/* 按钮基础样式 */
.btn {
    width: 100%;
    padding: 16px 32px;
    font-family: var(--font-family-bold);
    font-size: 1.1rem;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    letter-spacing: 2px;
    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 var(--transition-slow);
}

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

.btn:active {
    transform: scale(0.98);
}

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

/* 主按钮 */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--secondary-color);
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    box-shadow: var(--shadow-heavy);
    transform: translateY(-2px);
}

/* 次要按钮 */
.btn-secondary {
    background: var(--bg-card);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

/* ========================================
   游戏页面样式
   ======================================== */
#game-page {
    display: flex;
    flex-direction: column;
    background: var(--bg-color);
}

/* 游戏头部 */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-card);
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.game-info {
    display: flex;
    gap: 20px;
    font-family: var(--font-family-bold);
    color: var(--text-primary);
}

.level-info,
.question-info {
    font-size: 1rem;
}

/* 计时器 */
.timer-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    margin: 0 20px;
    max-width: 200px;
}

.timer-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.timer-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    border-radius: var(--radius-sm);
    transition: width 0.1s linear;
}

.timer-progress.warning {
    background: linear-gradient(90deg, var(--warning-color), var(--error-color));
}

.timer-text {
    font-family: var(--font-family-bold);
    font-size: 1.2rem;
    color: var(--primary-color);
    min-width: 40px;
    text-align: right;
}

.timer-text.warning {
    color: var(--error-color);
    animation: pulse 0.5s infinite;
}

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

/* 设置图标按钮 */
.settings-icon {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background var(--transition-fast);
}

.settings-icon:hover {
    background: var(--bg-secondary);
}

/* 游戏容器 */
.game-container {
    flex: 1;
    padding: 30px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 题目卡片 */
.question-card {
    width: 100%;
    max-width: 450px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px 30px;
    box-shadow: var(--shadow-medium);
    margin-bottom: 30px;
    border: 2px solid var(--primary-light);
}

.question-text {
    text-align: center;
    font-family: var(--font-family-bold);
    font-size: 1.5rem;
    color: var(--text-primary);
    line-height: 1.8;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 选项容器 */
.options-container {
    width: 100%;
    max-width: 450px;
    display: grid;
    gap: 16px;
}

/* 选项按钮 */
.option-btn {
    width: 100%;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 2px solid var(--primary-light);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 1.1rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    position: relative;
}

.option-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity var(--transition-normal);
    border-radius: var(--radius-md);
}

.option-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.option-btn:hover:not(:disabled)::before {
    opacity: 0.05;
}

.option-btn:active:not(:disabled) {
    transform: translateY(0);
}

/* 选项状态 */
.option-btn.correct {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
    animation: correctPulse 0.5s ease;
}

.option-btn.wrong {
    background: var(--error-color);
    border-color: var(--error-color);
    color: white;
    animation: wrongShake 0.5s ease;
}

.option-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@keyframes correctPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes wrongShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-10px); }
    40%, 80% { transform: translateX(10px); }
}

/* 反馈信息 */
.feedback {
    width: 100%;
    max-width: 450px;
    text-align: center;
    padding: 20px;
    margin: 20px 0;
    border-radius: var(--radius-md);
    animation: fadeInUp 0.3s ease;
}

.feedback.hidden {
    display: none;
}

.feedback.success {
    background: rgba(34, 139, 34, 0.1);
    border: 2px solid var(--success-color);
}

.feedback.error {
    background: rgba(178, 34, 34, 0.1);
    border: 2px solid var(--error-color);
}

.feedback-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.feedback-text {
    font-family: var(--font-family-bold);
    font-size: 1.2rem;
}

.feedback.success .feedback-text {
    color: var(--success-color);
}

.feedback.error .feedback-text {
    color: var(--error-color);
}

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

/* 下一关按钮 */
#next-level-btn {
    margin-top: 20px;
    max-width: 450px;
    animation: fadeInUp 0.3s ease;
}

#next-level-btn.hidden {
    display: none;
}

/* ========================================
   结果页面样式
   ======================================== */
#result-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.result-container {
    text-align: center;
    max-width: 400px;
    width: 100%;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 50px 30px;
    box-shadow: var(--shadow-heavy);
    border: 2px solid var(--primary-light);
}

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

.result-icon.success::before {
    content: '🎉';
}

.result-icon.failure::before {
    content: '📜';
}

#result-title {
    font-family: var(--font-family-bold);
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: 4px;
}

.result-stats {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.stat-value {
    font-family: var(--font-family-bold);
    font-size: 2rem;
    color: var(--primary-color);
}

#home-btn {
    max-width: 300px;
}

/* ========================================
   弹窗样式
   ======================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 450px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-heavy);
    transform: scale(0.9);
    transition: transform var(--transition-normal);
    border: 2px solid var(--primary-light);
}

/* 游戏结束弹窗特殊样式 */
#result-modal .modal-content {
    max-width: 70%;
    width: auto;
    min-width: 320px;
    max-height: 70vh;
}

/* 游戏说明弹窗隐藏滚动条 */
#rules-modal .modal-content {
    overflow: hidden;
}

#rules-modal .modal-body {
    overflow-y: auto;
    max-height: 60vh;
    scrollbar-width: none;  /* Firefox */
}

#rules-modal .modal-body::-webkit-scrollbar {
    display: none;  /* Chrome/Safari/Opera */
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--bg-secondary);
}

.modal-header h3 {
    font-family: var(--font-family-bold);
    font-size: 1.5rem;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.close-btn:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.modal-body {
    padding: 24px;
}

/* 规则说明 */
.rules-section {
    margin-bottom: 24px;
}

.rules-section:last-child {
    margin-bottom: 0;
}

.rules-section h4 {
    font-family: var(--font-family-bold);
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.rules-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
}

.rules-section p:last-child {
    margin-bottom: 0;
}

/* 设置项 */
.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--bg-secondary);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-label {
    font-family: var(--font-family);
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* 开关控件 */
.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--text-muted);
    transition: var(--transition-normal);
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition-normal);
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* 遮罩层 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.overlay.hidden {
    display: none;
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 480px) {
    .game-title h1 {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }
    
    .subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .question-card {
        padding: 30px 20px;
    }
    
    .question-text {
        font-size: 1.3rem;
    }
    
    .option-btn {
        padding: 16px 20px;
        font-size: 1rem;
    }
    
    .game-header {
        padding: 12px 16px;
    }
    
    .game-info {
        gap: 12px;
    }
    
    .timer-container {
        margin: 0 12px;
    }
    
    .decor-img {
        width: 180px;
        height: 180px;
    }
    
    .decor-center-img {
        width: 180px;
        height: 280px;
        margin-left: 155px;
    }
}

@media (max-width: 360px) {
    .game-title h1 {
        font-size: 2rem;
    }
    
    .result-container {
        padding: 40px 20px;
    }
}

/* ========================================
   工具类
   ======================================== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

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

/* 防止点击穿透 */
.no-pointer-events {
    pointer-events: none;
}

/* 点击防抖类 */
.click-disabled {
    pointer-events: none;
    opacity: 0.6;
}

/* ========================================
   诗词信息显示样式
   ======================================== */
.poem-info {
    margin-top: 12px;
    margin-bottom: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 2px solid var(--primary-light);
    animation: fadeInUp 0.3s ease;
}

.poem-info.hidden {
    display: none;
}

.poem-details {
    text-align: center;
}

.poem-title {
    font-family: var(--font-family-bold);
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 4px;
    letter-spacing: 2px;
}

.poem-author {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.poem-content {
    font-family: var(--font-family);
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.6;
    white-space: pre-wrap;
    padding: 10px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    max-height: 120px;
    overflow-y: auto;
}

/* ========================================
   选项测试模式标记
   ======================================== */
.option-btn.test-correct {
    border: 3px solid var(--success-color);
    box-shadow: 0 0 10px rgba(34, 139, 34, 0.3);
}

.option-btn.test-correct::after {
    content: "✓";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.3rem;
}

/* ========================================
   关卡完成弹窗样式
   ======================================== */
.level-complete-content {
    text-align: center;
    background: linear-gradient(135deg, #FFF8DC 0%, #FFEFD5 100%);
    border: 3px solid var(--accent-color);
    max-width: 400px;
    animation: levelCompletePopIn 0.5s ease-out;
}

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

.level-complete-icon {
    font-size: 5rem;
    margin-bottom: 15px;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.level-complete-title {
    font-family: var(--font-family-bold);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.level-complete-message {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.level-complete-hint {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.level-complete-btn {
    font-size: 1.1rem;
    padding: 12px 30px;
    min-width: 180px;
}

/* ========================================
   答题页面装饰元素
   ======================================== */
.game-decor {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

.game-decor-top-left {
    top: 20px;
    left: 20px;
}

.game-decor-top-right {
    top: 20px;
    right: 20px;
}

.game-decor-bottom-left {
    bottom: 20px;
    left: 20px;
}

.game-decor-bottom-right {
    bottom: 20px;
    right: 20px;
}

.game-decor-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(139, 90, 43, 0.3));
}

/* 游戏页面背景装饰 */
#game-page {
    position: relative;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(139, 90, 43, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(218, 165, 32, 0.05) 0%, transparent 50%);
}

/* ========================================
   答题页面信息增强样式
   ======================================== */
.game-info-enhanced {
    display: flex;
    gap: 20px;
    align-items: center;
}

.level-info-box,
.question-info-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255, 251, 240, 0.8) 100%);
    border-radius: var(--radius-md);
    border: 2px solid var(--accent-color);
    box-shadow: var(--shadow-sm);
}

.level-label,
.question-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.level-number,
.question-number {
    font-family: var(--font-family-bold);
    font-size: 1.1rem;
    color: var(--primary-color);
}

.timer-container-enhanced {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.timer-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.timer-bar-enhanced {
    width: 150px;
    height: 14px;
}

.timer-text-enhanced {
    font-size: 1.4rem;
    font-weight: bold;
    min-width: 50px;
    text-align: center;
}

.question-card-enhanced {
    background: linear-gradient(145deg, var(--bg-card) 0%, #FFF8DC 100%);
    border: 3px solid var(--primary-color);
    box-shadow: 0 8px 24px rgba(139, 90, 43, 0.2);
}

.question-title {
    text-align: center;
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.question-text-enhanced {
    font-size: 1.4rem;
    padding: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .game-decor-img {
        width: 60px;
        height: 60px;
    }
    
    .game-info-enhanced {
        gap: 10px;
    }
    
    .level-info-box,
    .question-info-box {
        padding: 6px 10px;
    }
    
    .level-number,
    .question-number {
        font-size: 1rem;
    }
    
    .timer-bar-enhanced {
        width: 100px;
        height: 12px;
    }
    
    .timer-text-enhanced {
        font-size: 1.2rem;
    }
    
    .question-text-enhanced {
        font-size: 1.2rem;
        padding: 15px;
    }
    
    .level-complete-content {
        max-width: 90%;
    }
    
    .level-complete-icon {
        font-size: 4rem;
    }
    
    .level-complete-title {
        font-size: 1.5rem;
    }
}
