/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'ZCOOL QingKe HuangYou', cursive, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #333;
}

.container {
    width: 100%;
    max-width: 900px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 30px;
    position: relative;
}

/* 返回主页按钮 */
.home-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 12px 25px;
    font-size: 1.2rem;
    background: linear-gradient(to right, #118ab2, #073b4c);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'ZCOOL QingKe HuangYou', cursive;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(17, 138, 178, 0.4);
}

.home-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(17, 138, 178, 0.6);
    text-decoration: none;
    color: white;
}

.home-btn i {
    font-size: 1.1rem;
}

/* 屏幕通用样式 */
.screen {
    display: none;
    animation: fadeIn 0.5s ease;
}

.screen.active {
    display: block;
}

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

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 3.5rem;
    color: #ff6b6b;
    margin-bottom: 10px;
    text-shadow: 3px 3px 0 #ffd166;
}

.header .subtitle {
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 20px;
}

/* 猫咪图片 */
.cat-image, .target-cat, .result-image {
    text-align: center;
    margin: 25px 0;
}

.cat-image img, .cat-target, .success-cat {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 20px;
    border: 8px solid #ffd166;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.cat-image img:hover, .cat-target:hover {
    transform: scale(1.03);
}

.cat-label, .success-label {
    font-size: 1.8rem;
    color: #06d6a0;
    margin-top: 15px;
    font-weight: bold;
    text-shadow: 1px 1px 0 #fff;
}

.success-label {
    color: #ff6b6b;
    font-size: 2.2rem;
}

/* 游戏说明 */
.instructions {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    border-left: 6px solid #06d6a0;
}

.instructions h2 {
    color: #118ab2;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.instructions ul {
    list-style-type: none;
    padding-left: 10px;
}

.instructions li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    font-size: 1.2rem;
}

.instructions li:before {
    content: "🐱";
    position: absolute;
    left: 0;
}

/* 按钮样式 */
.controls, .game-controls {
    text-align: center;
    margin: 30px 0;
}

.btn {
    padding: 16px 35px;
    font-size: 1.4rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'ZCOOL QingKe HuangYou', cursive;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 10px;
}

.start-btn {
    background: linear-gradient(to right, #06d6a0, #118ab2);
    color: white;
    box-shadow: 0 5px 15px rgba(6, 214, 160, 0.4);
}

.start-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(6, 214, 160, 0.6);
}

.end-btn {
    background: linear-gradient(to right, #ff6b6b, #ff9e6d);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.end-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.6);
}

.restart-btn {
    background: linear-gradient(to right, #ffd166, #ff9e6d);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 209, 102, 0.4);
}

.restart-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 209, 102, 0.6);
}

.audio-btn {
    background: linear-gradient(to right, #118ab2, #073b4c);
    color: white;
    padding: 12px 25px;
    font-size: 1.1rem;
}

/* 天气信息 */
.weather-info {
    margin-top: 30px;
    text-align: center;
}

.weather-card {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(to right, #a8dadc, #457b9d);
    color: white;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 15px rgba(69, 123, 157, 0.3);
}

.weather-card i {
    font-size: 2.5rem;
    margin-right: 20px;
}

.weather-details h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.weather-details p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 游戏界面样式 */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px dashed #ffd166;
}

.game-header h2 {
    color: #118ab2;
    font-size: 2.2rem;
}

.game-stats {
    display: flex;
    gap: 30px;
}

.stat {
    background-color: #f8f9fa;
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 1.4rem;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
}

.stat-label {
    color: #666;
    margin-right: 8px;
}

#correct-count {
    color: #06d6a0;
    font-weight: bold;
}

#timer {
    color: #118ab2;
    font-weight: bold;
}

/* 游戏区域 */
.game-area {
    background-color: #f8f9fa;
    border-radius: 20px;
    padding: 30px;
    margin: 25px 0;
}

.audio-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #e9ecef;
    padding: 20px;
    border-radius: 15px;
    margin: 25px 0;
}

#audio-status {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.3rem;
}

#audio-status i {
    color: #118ab2;
    font-size: 1.8rem;
}

/* 选择区域 */
.choices {
    display: flex;
    justify-content: space-around;
    margin: 35px 0;
    gap: 30px;
}

.choice {
    flex: 1;
    background: white;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 4px solid transparent;
}

.choice:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.left-choice:hover {
    border-color: #118ab2;
}

.right-choice:hover {
    border-color: #ff6b6b;
}

.choice-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.left-choice .choice-icon {
    color: #118ab2;
}

.right-choice .choice-icon {
    color: #ff6b6b;
}

.choice-label {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.choice-btn {
    padding: 12px 30px;
    font-size: 1.3rem;
    background: linear-gradient(to right, #06d6a0, #118ab2);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'ZCOOL QingKe HuangYou', cursive;
    font-weight: bold;
}

.choice-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(6, 214, 160, 0.4);
}

/* 反馈区域 */
.feedback {
    text-align: center;
    padding: 20px;
    background-color: #e9ecef;
    border-radius: 15px;
    margin-top: 25px;
    font-size: 1.4rem;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback.correct {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.feedback.wrong {
    background-color: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* 结束界面结果 */
.results {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    text-align: center;
}

.results h2 {
    color: #118ab2;
    margin-bottom: 20px;
    font-size: 2rem;
}

.result-item {
    font-size: 1.6rem;
    margin: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.result-label {
    color: #666;
    font-weight: bold;
}

#final-time, #final-correct, #rating {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 1.8rem;
}

#rating {
    color: #06d6a0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 2.5rem;
    }
    
    .header .subtitle {
        font-size: 1.2rem;
    }
    
    .cat-image img, .cat-target, .success-cat {
        width: 220px;
        height: 220px;
    }
    
    .choices {
        flex-direction: column;
        gap: 20px;
    }
    
    .game-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .game-stats {
        width: 100%;
        justify-content: center;
    }
    
    .btn {
        padding: 14px 25px;
        font-size: 1.2rem;
        margin: 5px;
    }
    
    .choice-icon {
        font-size: 3rem;
    }
    
    .choice-label {
        font-size: 1.6rem;
    }
    
    /* 返回主页按钮响应式 */
    .home-btn {
        top: 15px;
        left: 15px;
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .home-btn i {
        font-size: 0.9rem;
    }
}
