/* 游戏基本样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* 游戏容器 */
.game-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* 游戏标题 */
.game-container h2 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 2.2em;
}

/* 分数显示 */
.score-container {
    font-size: 1.5em;
    margin: 15px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    font-weight: bold;
    color: #2c3e50;
}

/* 图片容器 */
.image-container {
    margin: 20px 0;
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
}

#word-image {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    border: 3px solid #3498db;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

#word-image:hover {
    transform: scale(1.02);
}

/* 单词显示区域 */
.word-display {
    margin: 25px 0;
    font-size: 2.2em;
    letter-spacing: 5px;
}

.letter {
    display: inline-block;
    margin: 0 5px;
    min-width: 35px;
    padding-bottom: 5px;
    border-bottom: 2px solid #3498db;
    font-weight: bold;
}

/* 字母按钮区域 */
.letter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.letter-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2em;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.letter-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.letter-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

/* 游戏控制按钮 */
.game-controls {
    margin: 25px 0 10px;
}

.control-btn {
    margin: 0 10px;
    padding: 12px 25px;
    font-size: 1.1em;
    cursor: pointer;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.control-btn:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .game-container {
        margin: 10px;
        padding: 15px;
    }
    
    .word-display {
        font-size: 1.8em;
    }
    
    .letter-btn {
        width: 35px;
        height: 35px;
        font-size: 1em;
    }
    
    .control-btn {
        padding: 10px 20px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .game-container h2 {
        font-size: 1.8em;
    }
    
    .word-display {
        font-size: 1.5em;
        letter-spacing: 3px;
    }
    
    .letter-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9em;
        margin: 3px;
    }
    
    .control-btn {
        padding: 8px 15px;
        margin: 0 5px;
    }
}
/* 确保所有游戏元素可见性 */
.game-container * {
    visibility: visible;
    opacity: 1;
}

/* 图片容器样式确认 */
.image-container {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    height: auto;
}

#word-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 单词显示区域样式确认 */
.word-display {
    min-height: 50px;
    margin: 20px 0;
}

/* 字母按钮容器样式确认 */
.letter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 15px 0;
}

/* 确保提示按钮样式与其他控制按钮一致 */
#hint-btn {
    background-color: #3498db;
    color: white;
    transition: all 0.3s ease;
}

#hint-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 确保游戏控制按钮正确显示 */
.game-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
