/*
Theme Name: Chinese Learning Game
Theme URI: https://example.com/chinese-learning-game-theme/
Author: WordPress Developer
Author URI: https://example.com/
Description: A WordPress theme specifically designed for Chinese learning with an integrated fill-in-the-blank game. Perfect for language learning websites and educational platforms.
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chinese-learning-game
Tags: education, language-learning, chinese, game, interactive, responsive, custom-colors, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

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

body {
    font-family: 'Microsoft YaHei', 'SimHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.site-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin: 0;
}

.site-description {
    text-align: center;
    margin-top: 0.5rem;
    opacity: 0.9;
}

/* 主要内容区域 */
main {
    padding: 2rem 0;
    min-height: 70vh;
}

/* 游戏容器样式 */
#chinese-learning-game {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: 'Microsoft YaHei', 'SimHei', Arial, sans-serif;
}

.game-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.game-header h2 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: bold;
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 300px;
    margin: 0 auto;
}

.game-info span {
    background: #3498db;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.current-question {
    background: #e74c3c !important;
}

.score {
    background: #27ae60 !important;
}

/* 页脚样式 */
footer {
    background: #34495e;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    #chinese-learning-game {
        margin: 10px;
        padding: 15px;
    }
}

/* 文章和页面样式 */
.post, .page {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.post-title, .page-title {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-content, .page-content {
    line-height: 1.8;
}

/* 导航菜单样式 */
.main-navigation {
    background: #34495e;
    padding: 0.5rem 0;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.main-navigation li {
    margin: 0 1rem;
}

.main-navigation a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.3s;
}

.main-navigation a:hover {
    background: #2c3e50;
}

/* 侧边栏样式 */
.sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.widget {
    margin-bottom: 2rem;
}

.widget-title {
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background: #2980b9;
}

.btn-primary {
    background: #3498db;
}

.btn-success {
    background: #27ae60;
}

.btn-danger {
    background: #e74c3c;
}

/* 表单样式 */
input, textarea, select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1rem;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}