* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}
body {
    background-color: #FFFFFF;
    padding: 20px;
    color: #333;
}
.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header {
    text-align: center;
    margin-bottom: 20px;
    color: #4a90e2;
}
/* 道具栏 */
.props-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.prop-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: #f0f7ff;
    border-radius: 20px;
    font-size: 14px;
}
.prop-btn {
    border: none;
    background: #4a90e2;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.prop-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 16px;
}
.progress-bar {
    flex: 1;
    height: 10px;
    background: #eee;
    border-radius: 5px;
    margin: 0 10px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: #4a90e2;
    border-radius: 5px;
    transition: width 0.3s ease;
}
.game-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
}
/* 提示按钮 */
.hint-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    padding: 5px 10px;
    border: none;
    background: #ffc107;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}
.hint-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.word-info {
    margin-bottom: 20px;
}
.word {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}
.pronounce-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: #4a90e2;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.phonetic {
    font-size: 16px;
    color: #666;
    margin-top: 5px;
}
.question {
    font-size: 16px;
    margin-bottom: 15px;
    color: #444;
}
.options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}
.option {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.option:hover {
    background: #f0f7ff;
    border-color: #4a90e2;
}
.option.correct {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}
.option.wrong {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}
.feedback {
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 16px;
    display: none;
}
.feedback.correct {
    background: #d4edda;
    color: #155724;
    display: block;
}
.feedback.wrong {
    background: #f8d7da;
    color: #721c24;
    display: block;
}
.controls {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
    flex-wrap: wrap;
}
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}
.btn-primary {
    background: #4a90e2;
    color: white;
}
.btn-primary:hover {
    background: #357abd;
}
.btn-restart {
    background: #ff9800;
    color: white;
}
.btn-restart:hover {
    background: #e68900;
}
.btn-store {
    background: #28a745;
    color: white;
}
.btn-store:hover {
    background: #218838;
}
.btn-achievement {
    background: #dc3545;
    color: white;
}
.btn-achievement:hover {
    background: #c82333;
}
.result {
    text-align: center;
    padding: 20px;
    display: none;
}
.result h2 {
    color: #4a90e2;
    margin-bottom: 10px;
}
.result p {
    font-size: 18px;
    margin-bottom: 20px;
}
/* 弹窗样式 */
.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    display: none;
}
.modal-box {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    padding: 25px;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.modal-title {
    font-size: 20px;
    font-weight: bold;
    color: #4a90e2;
}
.modal-close {
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}
.modal-body {
    margin-bottom: 20px;
}
.reward-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.reward-item:last-child {
    border-bottom: none;
}
.reward-btn {
    padding: 5px 10px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.achievement-item {
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 10px;
}
.achievement-item.unlocked {
    background: #f0f7ff;
    border-color: #4a90e2;
}
.achievement-title {
    font-weight: bold;
    color: #4a90e2;
}
.achievement-desc {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}
.achievement-locked {
    color: #ccc;
    font-style: italic;
}
.reward-modal-body {
    text-align: center;
}
.reward-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ffc107;
}
/* 适配手机 */
@media (max-width: 600px) {
    .options {
        grid-template-columns: 1fr;
    }
    .container {
        padding: 20px;
    }
    .controls {
        justify-content: center;
    }
    .hint-btn {
        top: 15px;
        right: 15px;
        padding: 3px 8px;
        font-size: 12px;
    }
}