
body {
    font-size: 24px;
}

button {
    padding: 2px 2px;
    border-radius: 2px;
}

.word-btn {
    border: 1px solid #000000;
    background: transparent;
    cursor: pointer;
    padding: 2px 5px;
}

.title-btn {
    border: 1px solid #000000;
    background: transparent;
    cursor: pointer;
}

.word-item {
    margin: 2px 0;
    padding: 2px;
    border-bottom: 1px solid #eee;
}

.words-grid {
    display: flex;
    gap: 20px;
}

.words-column {
    flex: 1;
}

.mode-selector {
}

.mode-btn {
}

.mode-btn.active {
    background-color: #007bff;
    color: white;
}

.game-area {
    padding: 20px;
    margin-top: 10px;
    border: 2px solid #000;
}

.input-area {
}

.input-area input {
    width: 100%;
    border: 2px solid #000;
}

.keyboard {
    border: 1px solid #000;
    padding: 10px;
    margin-top: 20px;
}

.keyboard button {
    padding: 2px 5px;
}

.keyboard-row {
    margin-top: 5px;
}

.keyboard-close {
    float: right;
    border: 0;
}

.keyboard-close button {
    border: 0 solid #000000;
    background-color: transparent;
    position: relative;
    top: -18px;
    left: 10px;
}

.result-area {
    text-align: center;
}

.result-red {
    color: red;
}

.result-yellow {
    color: #FFD700;
}

.result-green {
    color: green;
}

.result-star {
    color: gold;
}

.progress-info {
}

.hidden {
    display: none;
}

.page-header {
    text-align: center;
}

.bottom-nav {
    position: fixed;
    display: inline-block;
    width: 120px;
    top: 20px;
    right: 20px;
    text-align: center;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 5px;
    cursor: move;
    z-index: 1000;
    border: 2px solid #ddd;
    border-radius: 2px;
}

.bottom-nav button {
}

.feedback-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px 60px;
    border-radius: 2px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    text-align: center;
    font-size: 32px;
}

.feedback-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.feedback-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.feedback-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.feedback-correct {
    color: green;
}

.feedback-wrong {
    color: red;
}

.wrong-answers-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 2px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    width: 600px;
    max-height: 500px;
    overflow-y: auto;
}

/* 移动端竖屏适配 */
@media (max-width: 600px) {
    .wrong-answers-panel {
        width: 90%;
        max-width: 500px;
        padding: 20px;
    }
}

.wrong-answers-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* 移动端显示为单列 */
@media (max-width: 600px) {
    .wrong-answers-list {
        grid-template-columns: 1fr;
    }
}

.wrong-answer-item {
    border: 1px solid #eee;
    padding: 10px;
    text-align: left;
    border-radius: 2px;
    background: #f9f9f9;
}

.wrong-answer-item:last-child {
    border-bottom: 1px solid #eee;
}

/* 眼睛图标按钮 */
.eye-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 2px 5px;
    color: #007bff;
    font-size: 20px;
}

.eye-btn:hover {
    color: #0056b3;
}

/* 图片模态框 */
.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1001;
}

.image-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 2px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 1002;
    width: 85%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: auto;
}

.image-controls {
    text-align: center;
    margin-bottom: 15px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 2px;
}

.image-controls button {
    margin: 0 5px;
    padding: 5px 15px;
    cursor: pointer;
    border: 1px solid #ccc;
    background: white;
    border-radius: 2px;
}

.image-controls button:hover {
    background: #e0e0e0;
}

.image-controls span {
    margin: 0 10px;
    font-weight: bold;
    font-size: 18px;
}

.image-container {
    text-align: center;
    overflow: auto;
    max-height: calc(90vh - 250px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container img {
    max-width: 100%;
    max-height: calc(90vh - 250px);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

/* 移动端适配 */
@media (max-width: 600px) {
    .image-modal {
        width: 95%;
        padding: 15px;
    }
    
    .image-container img {
        width: 100%;
    }
    
    .image-controls button {
        padding: 5px 10px;
        font-size: 14px;
    }
}

/* 语音设置面板样式 */
.form-select {
    width: 100%;
    padding: 8px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 2px;
    background: white;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: #007bff;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* 单词复选框样式 */
.word-checkbox {
    margin-right: 5px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    vertical-align: middle;
}

/* 单词按钮颜色过渡动画 */
.word-btn {
    transition: color 0.3s ease;
}

.word-item {
    transition: color 0.3s ease;
}

/* 拼读模式下的特殊样式 */
.reading-mode-active .word-checkbox {
    display: inline-block !important;
}

.reading-mode-active .eye-btn {
    display: none !important;
}

/* ==================== 拼读模式样式 ==================== */

.phonics-container {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.phonics-word-selector {
    margin-bottom: 30px;
}

.phonics-word-selector h3 {
    margin-bottom: 15px;
    color: #333;
}

.phonics-word-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.phonics-word-btn {
    padding: 10px 20px;
    font-size: 20px;
    border: 2px solid #007bff;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.phonics-word-btn:hover {
    background: #007bff;
    color: white;
    transform: scale(1.05);
}

.phonics-word-btn.selected {
    background: #007bff;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

/* 熟练单词样式 - 灰色显示 */
.phonics-word-btn.mastered {
    border-color: #adb5bd;
    color: #999;
    background: #f8f9fa;
}

.phonics-word-btn.mastered:hover {
    background: #e9ecef;
    color: #777;
    transform: scale(1.05);
}

/* 简单字母样式（无音素数据） */
.phonics-letter.simple-letter {
    cursor: pointer;
}

.phonics-letter.simple-letter:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* 无数据提示 */
.no-data {
    color: #999;
    font-size: 14px;
    text-align: center;
    padding: 10px;
}

.phonics-learning-area {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 单词信息区域 */
.phonics-word-info {
    text-align: center;
    margin-bottom: 20px;
}

.phonics-word-pic {
    margin-bottom: 10px;
}

.phonics-pic {
    max-width: 150px;
    max-height: 150px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.phonics-word-cn {
    font-size: 24px;
    color: #666;
}

.phonics-word-cn .cn-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

.phonics-word-display {
    text-align: center;
    margin-bottom: 30px;
}

.phonics-letters {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.phonics-letter {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    font-size: 48px;
    font-weight: bold;
    border: 3px solid #333;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 70px;
    user-select: none;
}

/* 字母组合样式（2个或以上字母合并为一张卡片） */
.phonics-letter.letter-group {
    min-width: 100px;
    background: linear-gradient(135deg, #fff 0%, #f0f8ff 100%);
    border-color: #4a90d9;
}

.phonics-letter:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.phonics-letter.highlight {
    border-color: #ff4757;
    color: #ff4757;
    background: #fff5f5;
}

.phonics-letter.active {
    transform: scale(1.3);
    background: #007bff;
    color: white;
    border-color: #007bff;
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.5);
    z-index: 10;
}

.phonics-letter .phoneme-symbol {
    font-size: 18px;
    color: #666;
    font-weight: normal;
    margin-top: 5px;
}

.phonics-letter.highlight .phoneme-symbol {
    color: #ff4757;
}

.phonics-letter.active .phoneme-symbol {
    color: white;
}

/* 字母放大动画 */
@keyframes letterPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.4);
    }
    100% {
        transform: scale(1);
    }
}

.phonics-letter.popping {
    animation: letterPop 0.5s ease-in-out;
}

.phonics-phonemes {
    text-align: center;
    margin-bottom: 30px;
}

.phonics-phonemes h3 {
    margin-bottom: 15px;
    color: #333;
}

.phoneme-list {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.phoneme-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 15px;
    font-size: 24px;
    border: 2px solid #28a745;
    border-radius: 8px;
    background: #f0fff4;
    cursor: pointer;
    transition: all 0.3s ease;
}

.phoneme-item:hover {
    background: #28a745;
    color: white;
}

.phoneme-item .phoneme-sound {
    font-size: 14px;
    color: #666;
}

.phoneme-item:hover .phoneme-sound {
    color: white;
}

.phoneme-item.active {
    background: #28a745;
    color: white;
    transform: scale(1.2);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.5);
}

.phonics-controls {
    text-align: center;
    margin-bottom: 30px;
}

.phonics-controls .btn {
    margin: 0 10px;
    padding: 15px 30px;
    font-size: 20px;
}

.phonics-example-area {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.phonics-example-area h3 {
    margin-bottom: 15px;
    color: #333;
}

/* 音素说明 */
.phoneme-explanation {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: #f0f8ff;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.phoneme-badge {
    display: inline-block;
    padding: 5px 12px;
    background: #007bff;
    color: white;
    border-radius: 20px;
    font-size: 18px;
    font-weight: bold;
}

.phoneme-desc {
    color: #666;
    font-size: 16px;
}

/* 样例单词网格 */
.example-words-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.no-data {
    color: #999;
    text-align: center;
    padding: 20px;
}

.example-word-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border: 2px solid #ffc107;
    border-radius: 12px;
    background: #fffbeb;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.example-word-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.example-word-card .word {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.example-word-card .word .highlight-letter {
    color: #ff4757;
    font-weight: bold;
}

.example-word-card .meaning {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.example-word-card .example-pic {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-top: 10px;
    border-radius: 8px;
}

/* 移动端适配 */
@media (max-width: 600px) {
    .phonics-letter {
        font-size: 36px;
        padding: 10px 15px;
        min-width: 55px;
    }
    
    .phonics-letter .phoneme-symbol {
        font-size: 14px;
    }
    
    .phonics-controls .btn {
        padding: 10px 20px;
        font-size: 16px;
        margin: 5px;
    }
    
    .example-word-card {
        min-width: 80px;
        padding: 10px;
    }
    
    .example-word-card .word {
        font-size: 18px;
    }
}

/* 拼读进度指示器 */
.phonics-progress {
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
    color: #666;
}

.phonics-progress .current {
    color: #007bff;
    font-weight: bold;
}

/* 音素高亮闪烁动画 */
@keyframes phonemeGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 71, 87, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 71, 87, 0.8);
    }
}

.phonics-letter.highlight-glow {
    animation: phonemeGlow 1s ease-in-out infinite;
}

/* ==================== 不发音字母样式 ==================== */

/* 不发音字母 - 灰色显示 */
.phonics-letter.silent {
    background: #f5f5f5;
    border-color: #ccc;
    color: #999;
    cursor: not-allowed;
    opacity: 0.7;
}

.phonics-letter.silent:hover {
    transform: none;
    box-shadow: none;
}

/* 不发音标记 */
.phonics-letter .silent-mark {
    color: #999;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.phonics-letter .silent-mark i {
    color: #dc3545;
    font-size: 14px;
}

/* 不发音字母点击效果 */
.phonics-letter.silent-active {
    animation: silentShake 0.3s ease-in-out;
}

@keyframes silentShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}