/* ============================================================
   chinese.css - 语文识字模块专属样式
   ============================================================ */

/* ===== 语文模块容器 ===== */
.page-chinese {
    padding-top: 0;
}

/* ===== 子模块 Tab（识字/拼音/阅读/古诗词） ===== */
.sub-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.6);
    padding: 6px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.sub-tab {
    flex: 1;
    padding: 12px 8px;
    border-radius: var(--radius-md);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s;
    background: transparent;
}

.sub-tab:hover:not(.locked) {
    background: rgba(255, 255, 255, 0.5);
    color: var(--grass-dark);
}

.sub-tab.active {
    background: linear-gradient(135deg, var(--chinese-color) 0%, #C0392B 100%);
    color: white;
    box-shadow: var(--shadow-medium);
}

.sub-tab.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== 识字列表视图 ===== */
.char-list-view {
    animation: pageFadeIn 0.3s ease;
}

.char-list-header {
    text-align: center;
    margin-bottom: 20px;
}

.char-list-header h2 {
    font-size: 36px;
    color: var(--chinese-color);
    text-shadow: 0 2px 0 rgba(255, 217, 61, 0.4);
}

.char-list-header p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ===== 生字网格 ===== */
.char-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}

.char-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF8E7 100%);
    padding: 16px 8px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 3px solid var(--chinese-color);
    text-align: center;
    position: relative;
    transition: all 0.2s ease;
    overflow: hidden;
}

.char-card:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: var(--shadow-medium);
    border-color: var(--sun-orange);
}

.char-card-char {
    font-size: 56px;
    font-family: 'ZCOOL KuaiLe', 'Noto Sans SC', serif;
    color: var(--chinese-color);
    line-height: 1;
    margin-bottom: 6px;
}

.char-card-pinyin {
    font-family: 'Fredoka', sans-serif;
    font-size: 18px;
    color: var(--text-secondary);
}

.char-card-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    background: var(--grass-primary);
    color: white;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

.char-card.completed {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border-color: var(--grass-primary);
}

/* ===== 生字详情视图 ===== */
.char-detail-view {
    animation: pageFadeIn 0.4s ease;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-md);
    font-size: 18px;
    color: var(--grass-dark);
    box-shadow: var(--shadow-soft);
    margin-bottom: 16px;
    transition: all 0.2s;
}

.back-btn:hover {
    background: var(--sun-yellow);
    transform: translateX(-4px);
}

/* ===== 卡片翻翻看 ===== */
.char-card-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.flip-card {
    width: 280px;
    height: 360px;
    perspective: 1000px;
    cursor: pointer;
    margin-bottom: 16px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
    border: 4px solid var(--sun-yellow);
}

.flip-card-front {
    background: linear-gradient(135deg, #FFFEF7 0%, #FFE9B0 100%);
}

.flip-card-back {
    background: linear-gradient(135deg, #FFE066 0%, #FF8C42 100%);
    color: white;
    transform: rotateY(180deg);
}

.char-display {
    font-size: 200px;
    font-family: 'ZCOOL KuaiLe', 'Noto Sans SC', serif;
    color: var(--chinese-color);
    line-height: 1;
    text-shadow: 4px 4px 0 rgba(231, 76, 60, 0.2);
}

.pinyin-display {
    font-size: 56px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.words-display {
    font-size: 22px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    padding: 0 20px;
}

.char-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--sun-yellow) 0%, var(--sun-orange) 100%);
    color: white;
    border-radius: var(--radius-lg);
    font-size: 18px;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    transition: all 0.2s;
    border: 2px solid white;
}

.action-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.action-btn:active:not(:disabled) {
    transform: translateY(0);
}

.action-btn:disabled {
    background: #BDC3C7;
    cursor: not-allowed;
}

.action-btn.big {
    padding: 16px 32px;
    font-size: 22px;
}

/* ===== 笔顺动画 & 描红 ===== */
.stroke-section,
.pinyin-match-section,
.word-match-section,
.photo-section {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
    border-top: 6px solid var(--chinese-color);
}

.stroke-section h3,
.pinyin-match-section h3,
.word-match-section h3,
.photo-section h3 {
    font-size: 26px;
    color: var(--chinese-color);
    margin-bottom: 16px;
    text-align: center;
}

#strokeCanvas {
    display: block;
    margin: 0 auto 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    cursor: crosshair;
    touch-action: none;
}

.stroke-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.stroke-progress {
    font-family: 'Fredoka', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 217, 61, 0.2);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    min-width: 120px;
    text-align: center;
}

/* ===== 拼音配对 ===== */
.pinyin-match-char {
    font-size: 120px;
    font-family: 'ZCOOL KuaiLe', 'Noto Sans SC', serif;
    color: var(--chinese-color);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1;
}

.pinyin-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.pinyin-option {
    padding: 18px 12px;
    background: linear-gradient(135deg, #FFF8E7 0%, #FFE9B0 100%);
    border: 3px solid var(--chinese-color);
    border-radius: var(--radius-lg);
    font-size: 32px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    color: var(--grass-dark);
    transition: all 0.2s;
    box-shadow: var(--shadow-soft);
}

.pinyin-option:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-medium);
}

.pinyin-option.correct {
    background: linear-gradient(135deg, #6BBF59 0%, #4A8B3D 100%);
    color: white;
    border-color: var(--grass-primary);
    animation: correctBounce 0.5s ease;
}

.pinyin-option.wrong {
    background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
    color: white;
    border-color: #C0392B;
    animation: shakeX 0.4s ease-in-out;
}

@keyframes correctBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ===== 找朋友组词 ===== */
.word-match-drop {
    width: 200px;
    height: 200px;
    margin: 0 auto 24px;
    border-radius: var(--radius-xl);
    border: 4px dashed var(--chinese-color);
    background: rgba(231, 76, 60, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    position: relative;
}

.word-match-drop.drag-over {
    background: rgba(255, 217, 61, 0.4);
    border-color: var(--sun-orange);
    transform: scale(1.05);
}

.word-match-drop.matched {
    background: rgba(107, 191, 89, 0.3);
    border-color: var(--grass-primary);
    border-style: solid;
    animation: correctBounce 0.5s ease;
}

.drop-char {
    font-size: 120px;
    font-family: 'ZCOOL KuaiLe', 'Noto Sans SC', serif;
    color: var(--chinese-color);
    line-height: 1;
}

.word-match-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

.word-card {
    padding: 14px 8px;
    background: linear-gradient(135deg, #FFE066 0%, #FFD93D 100%);
    border: 3px solid var(--sun-deep);
    border-radius: var(--radius-md);
    font-size: 24px;
    font-weight: 700;
    color: var(--grass-dark);
    text-align: center;
    cursor: grab;
    user-select: none;
    transition: transform 0.2s;
    box-shadow: var(--shadow-soft);
}

.word-card:hover {
    transform: translateY(-2px) scale(1.05);
}

.word-card.dragging {
    opacity: 0.6;
    cursor: grabbing;
}

/* ===== 拍照上传 ===== */
.photo-section {
    text-align: center;
}

.photo-history {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.history-photo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 2px solid var(--grass-light);
    cursor: pointer;
    transition: transform 0.2s;
}

.history-photo:hover {
    transform: scale(1.05);
}

.no-photos {
    grid-column: 1 / -1;
    color: var(--text-secondary);
    padding: 20px;
    font-size: 16px;
    text-align: center;
}

/* ===== 完成本字按钮 ===== */
.complete-btn {
    display: block;
    width: 100%;
    padding: 20px;
    margin-top: 16px;
    background: linear-gradient(135deg, var(--grass-primary) 0%, var(--grass-deep) 100%);
    color: white;
    border-radius: var(--radius-lg);
    font-size: 24px;
    font-weight: 700;
    box-shadow: var(--shadow-medium);
    border: 3px solid var(--sun-yellow);
    transition: all 0.2s;
}

.complete-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

.complete-btn:disabled {
    background: linear-gradient(135deg, #BDC3C7 0%, #95A5A6 100%);
    cursor: not-allowed;
}

/* ===== 拍照模态框 ===== */
.photo-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 800;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(8px);
    animation: overlayFadeIn 0.3s ease;
}

.photo-modal[hidden] {
    display: none;
}

.photo-modal-content {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-strong);
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.photo-modal-title {
    font-size: 22px;
    color: var(--grass-dark);
    margin-bottom: 16px;
    font-family: 'ZCOOL KuaiLe', sans-serif;
}

#photoVideo {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-md);
    background: #000;
    margin-bottom: 16px;
}

#photoPreview {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.photo-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.photo-modal-actions button {
    min-width: 100px;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .char-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    .char-card-char {
        font-size: 44px;
    }

    .flip-card {
        width: 240px;
        height: 320px;
    }

    .char-display {
        font-size: 160px;
    }

    .pinyin-match-char {
        font-size: 80px;
    }

    .drop-char {
        font-size: 80px;
    }

    .word-match-drop {
        width: 160px;
        height: 160px;
    }

    .pinyin-option {
        font-size: 24px;
        padding: 14px 8px;
    }

    .word-card {
        font-size: 20px;
    }

    .complete-btn {
        font-size: 20px;
        padding: 16px;
    }
}

/* ============================================================
   阅读子模块样式
   ============================================================ */

.reading-view {
    animation: pageFadeIn 0.3s ease;
}

.reading-list-header {
    text-align: center;
    margin-bottom: 20px;
}

.reading-list-header h2 {
    font-size: 36px;
    color: var(--chinese-color);
    text-shadow: 0 2px 0 rgba(255, 217, 61, 0.4);
}

.reading-list-header p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.reading-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.reading-card {
    position: relative;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF8E7 100%);
    padding: 20px 12px 16px;
    border-radius: var(--radius-lg);
    border: 3px solid var(--chinese-color);
    box-shadow: var(--shadow-soft);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.reading-card:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--shadow-medium);
}

.reading-card.completed {
    background: linear-gradient(135deg, #E8F5E9 0%, #FFF8E7 100%);
    border-color: var(--grass-deep);
}

.reading-card-cover {
    font-size: 56px;
    line-height: 1;
}

.reading-card-title {
    font-size: 24px;
    font-family: 'ZCOOL KuaiLe', serif;
    color: var(--chinese-color);
    margin-top: 4px;
}

.reading-card-meta {
    font-size: 13px;
    color: var(--text-secondary);
}

.reading-card-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: var(--grass-deep);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
}

.reading-detail-view {
    animation: pageFadeIn 0.3s ease;
}

.reading-article-card {
    background: linear-gradient(135deg, #FFF8E7 0%, #FFE9B0 100%);
    border: 4px solid var(--chinese-color);
    border-radius: var(--radius-xl);
    padding: 24px 16px;
    text-align: center;
    box-shadow: var(--shadow-medium);
    margin-bottom: 20px;
}

.reading-cover {
    font-size: 80px;
    line-height: 1;
    animation: numberPop 0.4s ease;
}

.reading-title {
    font-size: 36px;
    font-family: 'ZCOOL KuaiLe', serif;
    color: var(--chinese-color);
    margin-top: 8px;
    text-shadow: 2px 2px 0 rgba(255, 217, 61, 0.5);
}

.reading-content-section {
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-soft);
}

.reading-content-section h4 {
    font-size: 22px;
    color: var(--chinese-color);
    margin-bottom: 14px;
}

.reading-content {
    font-size: 26px;
    line-height: 2.2;
    font-family: 'ZCOOL KuaiLe', serif;
    color: var(--text-primary);
    text-align: center;
}

.reading-sentence {
    display: inline-block;
    padding: 4px 8px;
    margin: 2px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.reading-sentence:hover {
    background: rgba(231, 76, 60, 0.1);
    color: var(--chinese-color);
}

.reading-sentence.active {
    background: linear-gradient(135deg, #FFD93D 0%, #FF8C42 100%);
    color: white;
    transform: scale(1.08);
    box-shadow: var(--shadow-medium);
}

.reading-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
    flex-wrap: wrap;
}

/* 跟读评测 */
.reading-repeat-section {
    background: rgba(155, 89, 182, 0.08);
    border: 3px dashed var(--english-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
}

.reading-repeat-section h4 {
    font-size: 22px;
    color: var(--english-color);
    margin-bottom: 8px;
}

.reading-tip {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.repeat-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.repeat-status {
    text-align: center;
    font-size: 18px;
    color: var(--english-color);
    font-weight: 600;
    margin: 8px 0;
}

.repeat-self-rate {
    text-align: center;
    margin-top: 16px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-md);
    animation: pageFadeIn 0.3s ease;
}

.repeat-self-rate p {
    font-size: 17px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.star-row {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.star-btn {
    font-size: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    filter: grayscale(1) opacity(0.5);
    transition: all 0.2s;
    line-height: 1;
}

.star-btn:hover {
    transform: scale(1.2) rotate(10deg);
}

.star-btn.rated {
    filter: none;
    animation: starPop 0.4s ease;
}

@keyframes starPop {
    0% { transform: scale(0.5); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.repeat-audio {
    display: block;
    width: 100%;
    margin-top: 12px;
}

/* 阅读理解 */
.reading-quiz-section {
    background: rgba(52, 152, 219, 0.08);
    border: 3px solid var(--math-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
}

.reading-quiz-section h4 {
    font-size: 22px;
    color: var(--math-color);
    margin-bottom: 14px;
}

.quiz-block {
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-soft);
}

.quiz-block:last-child {
    margin-bottom: 0;
}

.quiz-question {
    font-size: 19px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.5;
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.quiz-option {
    padding: 12px 8px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
    border: 2px solid #DEE2E6;
    border-radius: var(--radius-md);
    font-size: 17px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.quiz-option:hover:not(:disabled) {
    border-color: var(--math-color);
    background: rgba(52, 152, 219, 0.08);
    transform: translateY(-1px);
}

.quiz-option.correct {
    background: linear-gradient(135deg, #D4EDDA 0%, #C3E6CB 100%);
    border-color: #28A745;
    color: #155724;
    font-weight: 700;
}

.quiz-option.wrong {
    background: linear-gradient(135deg, #F8D7DA 0%, #F5C6CB 100%);
    border-color: #DC3545;
    color: #721C24;
}

.quiz-option:disabled {
    cursor: not-allowed;
    opacity: 0.85;
}

.quiz-feedback {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 600;
    text-align: right;
}

.quiz-feedback.correct {
    color: #28A745;
}

.quiz-feedback.wrong {
    color: #DC3545;
}

/* 响应式 */
@media (max-width: 480px) {
    .reading-content {
        font-size: 22px;
    }
    .reading-cover {
        font-size: 64px;
    }
    .reading-title {
        font-size: 30px;
    }
    .quiz-options {
        grid-template-columns: 1fr;
    }
    .quiz-option {
        font-size: 16px;
    }
    .reading-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .reading-card-cover {
        font-size: 44px;
    }
    .reading-card-title {
        font-size: 20px;
    }
}

/* ============================================================
   古诗词子模块样式
   ============================================================ */

.poem-view {
    animation: pageFadeIn 0.3s ease;
}

.poem-list-header {
    text-align: center;
    margin-bottom: 20px;
}

.poem-list-header h2 {
    font-size: 36px;
    color: var(--chinese-color);
    text-shadow: 0 2px 0 rgba(255, 217, 61, 0.4);
    font-family: 'ZCOOL KuaiLe', serif;
}

.poem-list-header p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.poem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.poem-card {
    position: relative;
    background: linear-gradient(135deg, #FFF8E7 0%, #FFE9B0 100%);
    padding: 20px 12px 16px;
    border-radius: var(--radius-lg);
    border: 3px solid var(--chinese-color);
    box-shadow: var(--shadow-soft);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.poem-card:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--shadow-medium);
}

.poem-card-emoji {
    font-size: 56px;
    line-height: 1;
}

.poem-card-info {
    text-align: center;
}

.poem-card-title {
    font-size: 22px;
    font-family: 'ZCOOL KuaiLe', serif;
    color: var(--chinese-color);
}

.poem-card-author {
    font-size: 13px;
    color: var(--text-secondary);
}

.poem-card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--grass-deep);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* 诗词详情视图 */
.poem-detail-view {
    animation: pageFadeIn 0.3s ease;
}

.poem-detail-header {
    text-align: center;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #FFF8E7 0%, #FFE9B0 100%);
    border-radius: var(--radius-lg);
    border: 3px solid var(--chinese-color);
}

.poem-detail-header h2 {
    font-size: 36px;
    color: var(--chinese-color);
    font-family: 'ZCOOL KuaiLe', serif;
    margin-bottom: 8px;
}

.poem-detail-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

.poem-detail-content {
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.poem-line {
    font-size: 32px;
    line-height: 2;
    font-family: 'ZCOOL KuaiLe', 'Noto Serif SC', serif;
    color: var(--text-primary);
    margin: 8px 0;
    letter-spacing: 4px;
}

.poem-detail-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.poem-detail-actions .action-btn {
    min-width: 180px;
    padding: 16px 24px;
    font-size: 20px;
}

.poem-detail-actions .action-btn.primary {
    background: linear-gradient(135deg, var(--chinese-color) 0%, #C0392B 100%);
    color: white;
}

/* 诗词测验视图 */
.poem-quiz-view {
    animation: pageFadeIn 0.3s ease;
}

.quiz-header {
    text-align: center;
    margin-bottom: 24px;
}

.quiz-header h3 {
    font-size: 28px;
    color: var(--chinese-color);
    font-family: 'ZCOOL KuaiLe', serif;
}

.quiz-header p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.quiz-question-block {
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-soft);
}

.quiz-stem {
    font-size: 26px;
    font-family: 'ZCOOL KuaiLe', serif;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.6;
    letter-spacing: 2px;
}

.quiz-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.quiz-option-btn {
    padding: 16px 12px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
    border: 2px solid #DEE2E6;
    border-radius: var(--radius-md);
    font-size: 18px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-family: 'ZCOOL KuaiLe', 'Noto Serif SC', serif;
}

.quiz-option-btn:hover:not(:disabled) {
    border-color: var(--chinese-color);
    background: rgba(231, 76, 60, 0.08);
    transform: translateY(-1px);
}

.quiz-option-btn.correct {
    background: linear-gradient(135deg, #D4EDDA 0%, #C3E6CB 100%);
    border-color: #28A745;
    color: #155724;
    font-weight: 700;
}

.quiz-option-btn.wrong {
    background: linear-gradient(135deg, #F8D7DA 0%, #F5C6CB 100%);
    border-color: #DC3545;
    color: #721C24;
}

.quiz-option-btn:disabled {
    cursor: not-allowed;
    opacity: 0.85;
}

.quiz-tip {
    text-align: center;
    margin-top: 16px;
    font-size: 15px;
    color: var(--text-secondary);
}

.quiz-feedback {
    margin-top: 16px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    padding: 12px;
    border-radius: var(--radius-md);
}

.quiz-feedback.correct {
    background: rgba(40, 167, 69, 0.1);
    color: #28A745;
}

.quiz-feedback.wrong {
    background: rgba(220, 53, 69, 0.1);
    color: #DC3545;
}

.quiz-complete {
    text-align: center;
    padding: 30px 20px;
}

.quiz-complete h3 {
    font-size: 28px;
    color: var(--chinese-color);
    margin: 16px 0;
}

.quiz-complete p {
    font-size: 18px;
    color: var(--text-secondary);
    margin: 8px 0;
}

.quiz-complete .action-btn {
    margin-top: 20px;
    min-width: 200px;
}

/* 响应式 */
@media (max-width: 768px) {
    .poem-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .poem-card-emoji {
        font-size: 44px;
    }
    
    .poem-card-title {
        font-size: 18px;
    }
    
    .poem-line {
        font-size: 26px;
    }
    
    .quiz-options-grid {
        grid-template-columns: 1fr;
    }
    
    .quiz-stem {
        font-size: 22px;
    }
    
    .poem-detail-actions {
        flex-direction: column;
    }
    
    .poem-detail-actions .action-btn {
        width: 100%;
    }
}
