* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

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

header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.mode-selection, .chapter-selection, .poem-selection, .recitation-page {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.mode-selection h2, .chapter-selection h2, .poem-selection h2, .recitation-page h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 1.8rem;
}

.mode-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.mode-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.mode-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.mode-btn .icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.mode-btn span {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.mode-btn small {
    font-size: 0.9rem;
    opacity: 0.8;
}

.chapters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* 选择控制区域样式 */
.selection-controls {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.selection-mode, .exercise-mode {
    margin-bottom: 15px;
}

.selection-mode label, .exercise-mode label {
    display: inline-block;
    margin-right: 20px;
    cursor: pointer;
    font-weight: 500;
}

.selection-mode input[type="radio"], .exercise-mode input[type="radio"] {
    margin-right: 5px;
}

.random-settings {
    margin-top: 10px;
    padding: 10px;
    background: white;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

.random-settings label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.random-settings input[type="number"] {
    width: 80px;
    padding: 5px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

/* 操作按钮样式 */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.start-exercise-btn, .clear-selection-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.start-exercise-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.start-exercise-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.start-exercise-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.clear-selection-btn {
    background: #6c757d;
    color: white;
}

.clear-selection-btn:hover {
    background: #5a6268;
}

/* 多选模式下的诗文项样式 */
.poem-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

/* 理解性默写多选模式样式 */
.multi-select-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.multi-select-item .poem-checkbox {
    margin-top: 5px;
}

.multi-select-item h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: #333;
}

.multi-select-item .poem-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.multi-select-item .author {
    color: #666;
    font-size: 0.9rem;
}

.multi-select-item .question-count {
    color: #667eea;
    font-size: 0.85rem;
    font-weight: 500;
}

.poem-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.poem-item.selected {
    border-color: #667eea;
    background: #f8f9ff;
}

.poem-checkbox {
    flex-shrink: 0;
}

.poem-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.poem-item h4 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.poem-item .author {
    margin: 5px 0 0 0;
    color: #666;
    font-size: 0.9rem;
}

.poem-item .sentence-count {
    margin: 3px 0 0 0;
    color: #667eea;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 练习页面样式 */
.question-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.question-info p {
    margin: 5px 0;
}

.question-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.question-text {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: #333;
}

.answer-placeholder {
    font-size: 1.1rem;
    color: #666;
}

.blank {
    color: #667eea;
    font-weight: bold;
    text-decoration: underline;
}

/* 题目容器样式 */
.questions-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* 题目项样式 */
.question-item {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.question-item:hover {
    border-color: #e0e0e0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* 题目头部样式 */
.question-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
    gap: 8px;
}

.question-number {
    background: #6c757d;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.85rem;
}

.question-source {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

.show-original-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.show-original-btn:hover {
    background: #5a6268;
}

.show-original-btn.active {
    background: #6f42c1;
}

.show-original-btn.active:hover {
    background: #5a32a3;
}

/* 题目内容样式 */
.question-content {
    padding: 8px 0;
}

.question-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.5;
}

.answer-section {
    margin-top: 10px;
}

.show-answer-btn {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: normal;
    transition: all 0.2s ease;
    margin-left: 8px;
    min-width: 50px;
    height: 20px;
    line-height: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.show-answer-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.show-answer-btn.active {
    background: #e9ecef;
    border-color: #6c757d;
    color: #495057;
}

.show-answer-btn.active:hover {
    background: #dee2e6;
    border-color: #6c757d;
}

.control-section {
    text-align: center;
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.control-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.answer-controls-top {
    display: flex;
    gap: 8px;
}

.title-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
}

.title-container span {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.font-size-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.font-size-controls label {
    font-weight: 500;
    color: #333;
    min-width: 50px;
    font-size: 0.75rem;
}

.font-size-controls input[type="range"] {
    width: 60px;
    height: 3px;
    border-radius: 2px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

.font-size-controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
}

.font-size-controls input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    border: none;
}

.font-size-controls span {
    font-weight: 500;
    color: #007bff;
    min-width: 35px;
    font-size: 0.8rem;
}



.show-all-answers-btn, .hide-all-answers-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin: 0 8px;
}

.show-all-answers-btn:hover, .hide-all-answers-btn:hover {
    background: #218838;
}

.hide-all-answers-btn {
    background: #dc3545;
}

.hide-all-answers-btn:hover {
    background: #c82333;
}

.answer-text {
    font-size: 1rem;
    color: #28a745;
    font-weight: 500;
    padding: 6px 10px;
    background: #f8fff9;
    border-left: 3px solid #28a745;
    border-radius: 3px;
    margin: 0;
}

.original-text-section {
    margin-top: 8px;
}

.original-text {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 500;
    padding: 6px 10px;
    background: #f8f9fa;
    border-left: 3px solid #6c757d;
    border-radius: 3px;
    margin: 0;
}

/* 分页控制样式 */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.prev-page-btn, .next-page-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.prev-page-btn {
    background: #6c757d;
    color: white;
}

.prev-page-btn:hover {
    background: #5a6268;
}

.next-page-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.next-page-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.page-info {
    font-weight: 500;
    color: #333;
    font-size: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .questions-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .question-item {
        padding: 15px;
    }
    
    .question-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .question-text {
        font-size: 1.1rem;
    }
    
    .answer-text {
        font-size: 1rem;
    }
    
    .show-answer-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .pagination-controls {
        flex-direction: column;
        gap: 15px;
    }
}

.chapter-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.chapter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.chapter-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.chapter-card p {
    margin-bottom: 15px;
    opacity: 0.9;
}

.poem-count {
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.poem-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.poem-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.poem-item:hover {
    border-color: #667eea;
    background: #e3f2fd;
    transform: translateY(-2px);
}

.poem-item h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.poem-item p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.poem-content {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.poem-text {
    font-size: 1.1rem;
    line-height: 2;
    color: #333;
    text-align: center;
    font-family: 'KaiTi', '楷体', serif;
}

.recitation-area h3 {
    margin-bottom: 20px;
    color: #333;
}

.blank-text {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 2;
    font-family: 'KaiTi', '楷体', serif;
    color: #333;
}

/* 练习行样式 - 两句话一行 */
.exercise-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    gap: 20px;
}

.exercise-row .exercise-item {
    flex: 1;
    min-width: 0; /* 防止内容溢出 */
}

/* 练习选择器样式 */
.exercise-selector {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.exercise-selector h4 {
    color: #495057;
    margin-bottom: 15px;
    text-align: center;
    font-size: 18px;
}

.exercise-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.exercise-option {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.exercise-option:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.exercise-option h5 {
    color: #495057;
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.exercise-option p {
    color: #6c757d;
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.4;
}

.exercise-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 练习数量显示 */
.exercise-count {
    color: #6c757d;
    font-size: 12px;
    font-style: italic;
    margin-top: 5px;
}

/* 提示信息样式 */
.hint {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 8px;
    border: 1px solid #ffeaa7;
}

/* 练习项目样式优化 */
.exercise-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 10px;
    position: relative;
}

.exercise-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.exercise-number {
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    margin-right: 10px;
    display: inline-block;
    min-width: 20px;
    text-align: center;
}

/* 空白处样式 */
.blank {
    background: #fff;
    border: 2px dashed #6c757d;
    padding: 2px 6px;
    border-radius: 4px;
    color: #6c757d;
    font-weight: bold;
    margin: 0 4px;
}

.exercise-type-selector {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

.exercise-type-selector h4 {
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.exercise-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.exercise-btn {
    padding: 10px 20px;
    border: 2px solid #667eea;
    border-radius: 8px;
    background: white;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.exercise-btn:hover, .exercise-btn.active {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.exercise-content {
    margin-top: 20px;
}

.exercise-instruction {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.exercise-instruction h4 {
    margin-bottom: 8px;
    color: #1976d2;
}

.exercise-instruction p {
    color: #1565c0;
    font-weight: 500;
}

.exercise-text {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 2;
    font-family: 'KaiTi', '楷体', serif;
    color: #333;
    text-align: center;
}

.exercise-item {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
    text-align: left;
}

.exercise-number {
    font-weight: bold;
    color: #667eea;
    margin-right: 10px;
}

.exercise-info {
    background: #e8f5e8;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.exercise-info p {
    margin: 0;
    color: #155724;
    font-weight: 500;
}

.exercise-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.nav-btn {
    padding: 8px 16px;
    border: 2px solid #6c757d;
    border-radius: 6px;
    background: white;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.nav-btn:hover:not(:disabled) {
    background: #6c757d;
    color: white;
    transform: translateY(-2px);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.exercise-counter {
    font-weight: bold;
    color: #667eea;
    font-size: 1.1rem;
}

.answer-feedback {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
}

.answer-feedback p {
    margin: 0;
}

.input-area {
    margin-bottom: 25px;
}

#studentAnswer {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'KaiTi', '楷体', serif;
    resize: vertical;
    margin-bottom: 20px;
}

#studentAnswer:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.submit-btn, .show-answer-btn, .next-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.submit-btn {
    background: #28a745;
    color: white;
}

.submit-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

.show-answer-btn {
    background: #17a2b8;
    color: white;
}

.show-answer-btn:hover {
    background: #138496;
    transform: translateY(-2px);
}

.next-btn {
    background: #6f42c1;
    color: white;
}

.next-btn:hover {
    background: #5a32a3;
    transform: translateY(-2px);
}

.back-btn {
    background: #6c757d;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.back-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.correct-answer {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 24px;
    margin: 20px 0;
    color: #155724;
    font-size: 1.1rem;            /* 与题目一致的字号 */
    line-height: 2;               /* 与题目一致的行高 */
    font-family: 'KaiTi', '楷体', serif; /* 与题目一致的字体 */
    text-align: center;
}

.answer-comparison {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.answer-comparison h4 {
    margin-bottom: 15px;
    color: #856404;
}

/* 题目区域直接展示原文时的样式 */
.original-text {
    font-size: 1.1rem;
    line-height: 2;
    font-family: 'KaiTi', '楷体', serif;
    color: #333;
    white-space: pre-wrap;
}

.answer-row {
    display: flex;
    margin-bottom: 15px;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.answer-row.correct {
    background: #d4edda;
    border-color: #c3e6cb;
}

.answer-row.incorrect {
    background: #f8d7da;
    border-color: #f5c6cb;
}

.answer-label {
    font-weight: bold;
    min-width: 80px;
    margin-right: 15px;
    color: #333;
}

.answer-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.student-answer, .correct-answer {
    padding: 6px 10px;
    background: white;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-family: 'KaiTi', '楷体', serif;
}

.status-icon {
    font-size: 1.2rem;
    margin-left: 10px;
}

.answer-summary {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.answer-summary h5 {
    margin-bottom: 15px;
    color: #856404;
    font-size: 1.1rem;
}

.answer-summary p {
    margin: 8px 0;
    color: #856404;
}

.answer-summary .feedback {
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 15px;
}

/* 字体大小调节控件 */
.font-size-control {
    position: sticky;
    top: 10px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.fs-btn {
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: #ffffff;
    color: #495057;
    cursor: pointer;
    font-weight: bold;
}

.fs-btn:hover {
    background: #f1f3f5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .mode-selection, .chapter-selection, .poem-selection, .recitation-page {
        padding: 25px;
    }
    
    .mode-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .chapters {
        grid-template-columns: 1fr;
    }
    
    .poem-list {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    header h1 {
        font-size: 2rem;
    }

    .exercise-options {
        grid-template-columns: 1fr;
    }
    
    .exercise-option {
        padding: 15px;
    }
    
    .exercise-option h5 {
        font-size: 15px;
    }
    
    .exercise-option p {
        font-size: 13px;
    }
}

/* 理解性默写样式 */
.comprehensive-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    flex-wrap: wrap;
    justify-content: center;
}

.comprehensive-controls button {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.comprehensive-controls button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.comprehensive-controls button:hover::before {
    left: 100%;
}

.shuffle-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.shuffle-btn:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a42a0);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.show-all-btn {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.show-all-btn:hover {
    background: linear-gradient(135deg, #1e7e34, #155724);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.hide-all-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.hide-all-btn:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.comprehensive-question {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.comprehensive-question:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.question-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.question-header h3 {
    color: #495057;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.question-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.question-meta span {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.question-meta .source {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.question-meta .year {
    background: #fff3e0;
    color: #f57c00;
    border: 1px solid #ffe0b2;
}

.question-meta .exam {
    background: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #e1bee7;
}

.question-content {
    line-height: 1.6;
}

.question-text {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.show-answer-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.show-answer-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.show-answer-btn:hover::before {
    left: 100%;
}

.show-answer-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.show-answer-btn.active {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.show-answer-btn.active:hover {
    background: linear-gradient(135deg, #1e7e34, #155724);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.answer-text {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    font-size: 1rem;
    line-height: 1.5;
}

/* 响应式设计 - 理解性默写 */
@media (max-width: 768px) {
    .comprehensive-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .comprehensive-controls button {
        width: 100%;
        max-width: 300px;
    }
    
    .question-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .comprehensive-question {
        padding: 20px;
    }
    
    .question-header h3 {
        font-size: 1.1rem;
    }
    
    .question-text {
        font-size: 1rem;
        padding: 12px;
    }
}

/* 理解性默写控制按钮样式 */
.comprehensive-controls {
    display: flex;
    gap: 6px;
    align-items: center;
}

.comprehensive-controls .shuffle-btn {
    background: linear-gradient(135deg, #6f42c1, #5a32a3);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    min-width: 80px;
    height: 32px;
}

.comprehensive-controls .shuffle-btn:hover {
    background: linear-gradient(135deg, #5a32a3, #4a2a8a);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(111, 66, 193, 0.3);
}

.comprehensive-controls .show-all-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    min-width: 80px;
    height: 32px;
}

.comprehensive-controls .show-all-btn:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

.comprehensive-controls .hide-all-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    min-width: 80px;
    height: 32px;
}

.comprehensive-controls .hide-all-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}
