/* 多人汉字文化大讲堂 - 卡通风格样式表 */

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

body {
    font-family: 'Comic Sans MS', 'Microsoft YaHei', cursive, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

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

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 25px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 5px solid #fff;
}

.header h1 {
    color: #fff;
    font-size: 2.5em;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
}

.subtitle {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 20px;
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-btn {
    background: #fff;
    color: #667eea;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.nav-btn.active {
    background: #ffd700;
    color: #333;
}

/* 主内容区 */
.main-content {
    background: #fff;
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-height: 500px;
}

.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section h2 {
    color: #667eea;
    font-size: 2em;
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* 欢迎卡片 */
.welcome-card {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
}

.welcome-card h2 {
    color: #333;
    font-size: 2em;
    margin-bottom: 15px;
}

.welcome-card p {
    font-size: 1.3em;
    color: #555;
    margin-bottom: 30px;
}

/* 特性网格 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 3px solid transparent;
}

.feature-item:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.feature-icon {
    font-size: 3em;
    display: block;
    margin-bottom: 15px;
}

.feature-item h3 {
    color: #667eea;
    margin-bottom: 10px;
}

.feature-item p {
    color: #666;
}

/* 学习模块 */
.learning-module {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
}

.learning-module h3 {
    color: #333;
    font-size: 1.5em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 笔画网格 */
.stroke-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stroke-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid #fcb69f;
}

.stroke-card:hover {
    transform: scale(1.1);
    border-color: #667eea;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.stroke-char {
    font-size: 3em;
    color: #667eea;
    display: block;
    margin-bottom: 10px;
}

.stroke-name {
    color: #333;
    font-size: 1em;
}

/* 分类标签 */
.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    background: #fff;
    color: #667eea;
    border: 3px solid #667eea;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.tab-btn:hover {
    background: #667eea;
    color: #fff;
}

.tab-btn.active {
    background: #667eea;
    color: #fff;
}

/* 汉字网格 */
.char-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
}

.char-card {
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid #a8edea;
}

.char-card:hover {
    transform: scale(1.15);
    border-color: #fed6e3;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.char-card .char {
    font-size: 2.5em;
    color: #667eea;
    display: block;
    margin-bottom: 5px;
}

.char-card .pinyin {
    color: #888;
    font-size: 0.9em;
}

/* 偏旁部首网格 */
.radical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.radical-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid #fcb69f;
}

.radical-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.radical-card .radical {
    font-size: 2em;
    color: #667eea;
    display: block;
    margin-bottom: 10px;
}

.radical-card .radical-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.radical-card .examples {
    color: #666;
    font-size: 0.9em;
}

/* 成语列表 */
.idiom-list {
    display: grid;
    gap: 15px;
}

.idiom-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid #a8edea;
}

.idiom-card:hover {
    transform: translateX(10px);
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.idiom-card .idiom {
    font-size: 1.8em;
    color: #667eea;
    font-weight: bold;
    margin-bottom: 10px;
}

.idiom-card .meaning {
    color: #666;
    font-size: 1em;
}

/* 词语列表 */
.word-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.word-card {
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid #fed6e3;
}

.word-card:hover {
    transform: scale(1.1);
    border-color: #667eea;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.word-card .word {
    font-size: 1.5em;
    color: #667eea;
    font-weight: bold;
}

/* 练习模块 */
.practice-menu {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.practice-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.practice-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.practice-area {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    min-height: 300px;
}

.practice-hint {
    font-size: 1.3em;
    color: #666;
}

.practice-question {
    font-size: 2em;
    color: #333;
    margin-bottom: 30px;
}

.practice-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.practice-option {
    background: #fff;
    border: 3px solid #667eea;
    border-radius: 15px;
    padding: 20px;
    font-size: 1.3em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.practice-option:hover {
    background: #667eea;
    color: #fff;
    transform: scale(1.05);
}

.practice-option.correct {
    background: #4ade80;
    border-color: #22c55e;
    color: #fff;
}

.practice-option.wrong {
    background: #f87171;
    border-color: #ef4444;
    color: #fff;
}

.practice-feedback {
    font-size: 1.5em;
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
}

.practice-feedback.correct {
    color: #22c55e;
    background: #dcfce7;
}

.practice-feedback.wrong {
    color: #ef4444;
    background: #fee2e2;
}

.practice-score {
    font-size: 1.2em;
    color: #667eea;
    margin-top: 20px;
}

/* 古诗列表 */
.poem-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.poem-card {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 20px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.poem-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.poem-card .poem-title {
    font-size: 1.5em;
    color: #667eea;
    font-weight: bold;
    margin-bottom: 10px;
}

.poem-card .poem-author {
    color: #666;
    font-size: 1em;
    margin-bottom: 10px;
}

.poem-card .poem-preview {
    color: #888;
    font-size: 0.9em;
}

/* 古诗详情 */
.poem-display {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    display: none;
}

.poem-display.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.poem-display .title {
    font-size: 2.5em;
    color: #667eea;
    margin-bottom: 10px;
}

.poem-display .author {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 30px;
}

.poem-display .content {
    font-size: 1.5em;
    line-height: 2;
    color: #333;
    max-width: 600px;
    margin: 0 auto;
}

.poem-display .back-btn {
    margin-top: 30px;
    background: #667eea;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.poem-display .back-btn:hover {
    background: #764ba2;
    transform: scale(1.05);
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 25px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fcb69f;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.5em;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    z-index: 100;
}

.modal-close:hover {
    background: #667eea;
    color: #fff;
    transform: rotate(90deg);
    z-index: 101;
}

/* 汉字学习样式 */
.char-learn-container {
    position: relative;
}

.char-learn-container h3 {
    position: relative;
    z-index: 10;
    margin-bottom: 20px;
}

.char-display-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
    border-radius: 20px;
    margin: 20px 0;
}

.char-pinyin-large {
    font-size: 1.8em;
    color: #667eea;
    margin-bottom: 10px;
    font-weight: bold;
}

.char-text-large {
    font-size: 6em;
    color: #333;
    font-weight: bold;
}

.quiz-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
}

.quiz-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 15px;
}

.quiz-option-btn {
    padding: 15px 20px;
    font-size: 1.2em;
    border: 2px solid #667eea;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

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

.modal-body {
    text-align: center;
}

.modal-body h3 {
    color: #667eea;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.modal-body p {
    color: #666;
    font-size: 1.1em;
    line-height: 1.8;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 25px;
    padding: 25px;
    text-align: center;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 5px solid #fff;
}

.footer p {
    margin: 5px 0;
    font-size: 1.1em;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8em;
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
    }

    .nav-btn {
        width: 100%;
        max-width: 250px;
    }

    .main-content {
        padding: 20px;
    }

    .section h2 {
        font-size: 1.5em;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.feature-item:hover .feature-icon {
    animation: bounce 0.5s ease;
}

/* ==================== 金币系统样式 ==================== */
.coin-display {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    border-radius: 50px;
    padding: 10px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
    z-index: 100;
    border: 3px solid #fff;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.coin-display:hover {
    transform: scale(1.1);
}

.coin-icon {
    font-size: 1.8em;
}

.coin-count {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
}

/* ==================== 每日目标系统样式 ==================== */
.daily-goals-panel {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    border: 3px solid #fff;
}

.daily-goals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.daily-goals-title {
    font-size: 1.3em;
    color: #667eea;
    font-weight: bold;
}

.goal-item {
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.goal-item.completed {
    background: #dcfce7;
    border: 2px solid #4ade80;
}

.goal-checkbox {
    width: 25px;
    height: 25px;
    border: 3px solid #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.goal-checkbox.checked {
    background: #4ade80;
    border-color: #4ade80;
}

.goal-checkbox.checked::after {
    content: '✓';
    color: #fff;
    font-weight: bold;
}

.goal-text {
    flex: 1;
    color: #333;
    font-size: 1em;
}

.goal-reward {
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    color: #333;
}

.goals-progress {
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    margin-top: 15px;
}

.progress-text {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.progress-bar-container {
    background: #eee;
    border-radius: 10px;
    height: 15px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.5s ease;
    border-radius: 10px;
}

.claim-reward-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    width: 100%;
    font-weight: bold;
}

.claim-reward-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.claim-reward-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ==================== 抽卡系统样式 ==================== */
.gacha-panel {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 25px;
    margin-top: 20px;
    text-align: center;
    border: 3px solid #fff;
}

.gacha-title {
    color: #fff;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.gacha-chances {
    color: #fff;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.gacha-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    color: #333;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.gacha-btn:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
}

.gacha-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.gacha-free-count {
    color: #fff;
    font-size: 0.9em;
    margin-top: 10px;
}

.buy-pack-btn {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    font-weight: bold;
}

.buy-pack-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(74, 222, 128, 0.4);
}

.buy-pack-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 抽卡动画 */
.gacha-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.gacha-overlay.active {
    display: flex;
}

.gacha-light {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, transparent 70%);
    animation: gachaPulse 0.5s ease infinite;
}

@keyframes gachaPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}

.gacha-result {
    text-align: center;
    margin-top: 50px;
}

.gacha-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    min-width: 300px;
    animation: cardFlip 0.5s ease;
}

@keyframes cardFlip {
    0% { transform: rotateY(90deg); }
    100% { transform: rotateY(0deg); }
}

.gacha-card-image {
    font-size: 5em;
    margin-bottom: 20px;
}

.gacha-card-name {
    font-size: 1.8em;
    color: #333;
    font-weight: bold;
    margin-bottom: 10px;
}

.gacha-card-rarity {
    font-size: 1.2em;
    padding: 5px 15px;
    border-radius: 15px;
    display: inline-block;
    margin-bottom: 20px;
}

.gacha-card-rarity.legendary {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #333;
}

.gacha-card-rarity.epic {
    background: linear-gradient(135deg, #d485ff, #a855f7);
    color: #fff;
}

.gacha-card-rarity.rare {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    color: #fff;
}

.gacha-card-rarity.common {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    color: #fff;
}

.gacha-result-text {
    font-size: 1.5em;
    color: #fff;
    margin-bottom: 20px;
}

.gacha-close-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 25px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gacha-close-btn:hover {
    transform: scale(1.05);
}

/* ==================== 课后练习样式 ==================== */
.exercise-intro {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.exercise-intro p {
    font-size: 1.2em;
    color: #333;
}

.exercise-category-menu {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.exercise-category-btn {
    background: #fff;
    color: #667eea;
    border: 3px solid #667eea;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.exercise-category-btn:hover {
    background: #667eea;
    color: #fff;
}

.exercise-category-btn.active {
    background: #667eea;
    color: #fff;
}

/* ==================== 跟读模块样式 ==================== */
.reading-intro {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.reading-intro p {
    font-size: 1.2em;
    color: #333;
}

.reading-menu {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.reading-category-btn {
    background: #fff;
    color: #667eea;
    border: 3px solid #667eea;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.reading-category-btn:hover {
    background: #667eea;
    color: #fff;
}

.reading-category-btn.active {
    background: #667eea;
    color: #fff;
}

.reading-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.reading-control-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.reading-control-btn:hover {
    transform: scale(1.05);
}

.stop-btn {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%) !important;
}

.speed-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.speed-control input[type="range"] {
    width: 100px;
}

.reading-content {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
}

.reading-item {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.reading-item:hover {
    transform: scale(1.02);
}

.reading-item.playing {
    border: 3px solid #667eea;
    background: #e0e7ff;
}

.reading-item-text {
    font-size: 1.5em;
    color: #333;
    flex: 1;
}

.reading-item-play {
    background: #667eea;
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reading-item-play:hover {
    transform: scale(1.1);
    background: #764ba2;
}

.reading-progress {
    text-align: center;
    padding: 15px;
    background: #fff;
    border-radius: 15px;
}

/* ==================== 卡牌库样式 ==================== */
.collection-intro {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.collection-intro p {
    font-size: 1.2em;
    color: #333;
}

.collection-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    color: #fff;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.9;
}

.collection-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #fff;
    border: 3px solid #667eea;
    color: #667eea;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.filter-btn:hover {
    background: #667eea;
    color: #fff;
}

.filter-btn.active {
    background: #667eea;
    color: #fff;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.collection-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    cursor: pointer;
}

.collection-card:hover {
    transform: scale(1.05);
}

.collection-card.legendary {
    border-color: #ffd700;
    background: linear-gradient(135deg, #fff9e6, #fff);
}

.collection-card.epic {
    border-color: #a855f7;
    background: linear-gradient(135deg, #f5e6ff, #fff);
}

.collection-card.rare {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #e6f0ff, #fff);
}

.collection-card.common {
    border-color: #9ca3af;
    background: linear-gradient(135deg, #f5f5f5, #fff);
}

.collection-card .card-emoji {
    font-size: 3em;
    margin-bottom: 10px;
}

.collection-card .card-name {
    font-size: 1em;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.collection-card .card-rarity {
    font-size: 0.8em;
    padding: 3px 10px;
    border-radius: 10px;
    display: inline-block;
}

.collection-card .card-rarity.legendary {
    background: #ffd700;
    color: #333;
}

.collection-card .card-rarity.epic {
    background: #a855f7;
    color: #fff;
}

.collection-card .card-rarity.rare {
    background: #3b82f6;
    color: #fff;
}

.collection-card .card-rarity.common {
    background: #9ca3af;
    color: #fff;
}

/* 古诗拼音样式 */
.poem-content-pinyin {
    margin: 20px 0;
}

.poem-line {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.poem-char-with-pinyin {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.poem-char-pinyin {
    font-size: 0.8em;
    color: #667eea;
    margin-bottom: 5px;
}

.poem-char-text {
    font-size: 1.5em;
    color: #333;
}

.pinyin-toggle-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.pinyin-toggle-btn:hover {
    transform: scale(1.05);
}

/* 古诗填空练习 */
.poem-exercise-panel {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: 20px;
    padding: 30px;
    margin-top: 20px;
}

.poem-exercise-panel h3 {
    color: #333;
    font-size: 1.5em;
    margin-bottom: 20px;
    text-align: center;
}

.exercise-area {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    min-height: 200px;
}

.exercise-question {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

.exercise-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.exercise-option {
    background: #fff;
    border: 3px solid #667eea;
    border-radius: 15px;
    padding: 15px;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.exercise-option:hover {
    background: #667eea;
    color: #fff;
    transform: scale(1.05);
}

.exercise-option.correct {
    background: #4ade80;
    border-color: #22c55e;
    color: #fff;
}

.exercise-option.wrong {
    background: #f87171;
    border-color: #ef4444;
    color: #fff;
}

.exercise-feedback {
    font-size: 1.5em;
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.exercise-feedback.correct {
    color: #22c55e;
    background: #dcfce7;
}

.exercise-feedback.wrong {
    color: #ef4444;
    background: #fee2e2;
}

.exercise-score {
    font-size: 1.2em;
    color: #667eea;
    margin-top: 20px;
    text-align: center;
}

.exercise-hint {
    font-size: 1em;
    color: #f59e0b;
    margin-top: 15px;
    padding: 10px 15px;
    background: #fef3c7;
    border-radius: 8px;
    text-align: center;
    border: 1px dashed #f59e0b;
}

/* ==================== 1v1 识字比赛游戏样式 ==================== */
.game-intro {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.game-intro p {
    font-size: 1.1em;
    margin: 8px 0;
    color: #333;
}

.game-status-panel {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

/* 匹配大厅样式 */
.match-lobby-panel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.match-lobby-panel h3 {
    text-align: center;
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.match-modes {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.match-mode-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.match-mode-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.matching-panel {
    text-align: center;
    padding: 30px;
    margin-bottom: 20px;
}

.matching-spinner {
    font-size: 4em;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.matching-text {
    font-size: 1.3em;
    color: #667eea;
    margin-bottom: 10px;
}

.matching-hint {
    font-size: 1em;
    color: #999;
}

.online-players-panel h4 {
    color: #333;
    margin: 20px 0 15px 0;
    font-size: 1.2em;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.players-list {
    max-height: 400px;
    overflow-y: auto;
}

.player-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    border: 2px solid #eee;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.player-card:hover {
    border-color: #667eea;
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
}

.player-card.matching {
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
    border-color: #fcb69f;
}

.player-avatar {
    font-size: 2.5em;
}

.player-info {
    flex: 1;
}

.player-name {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
}

.player-games, .player-status {
    font-size: 0.9em;
    color: #666;
}

.join-btn {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
}

.no-players, .loading-text {
    text-align: center;
    color: #999;
    padding: 20px;
}

/* 游戏状态面板 */

.status-item {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px 30px;
    border-radius: 15px;
    text-align: center;
    min-width: 150px;
}

.status-label {
    display: block;
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 5px;
}

.status-value {
    display: block;
    font-size: 2em;
    font-weight: bold;
}

.game-start-panel {
    text-align: center;
    padding: 40px 20px;
}

.start-game-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 20px 60px;
    font-size: 1.5em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

.start-game-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.5);
}

.start-game-btn:disabled {
    background: linear-gradient(135deg, #ccc, #999);
    cursor: not-allowed;
    box-shadow: none;
}

.game-play-panel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.game-header {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.game-score, .game-progress {
    text-align: center;
}

.score-label, .progress-label {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.score-value, .progress-value {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: #667eea;
}

.opponent-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 15px;
    margin-bottom: 20px;
}

.opponent-avatar {
    font-size: 3em;
}

.opponent-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

.opponent-score {
    font-size: 1.1em;
    color: #666;
}

.game-question-area {
    text-align: center;
    padding: 20px;
}

.question-text {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 25px;
    font-weight: bold;
}

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

.game-answer-option {
    background: white;
    border: 3px solid #667eea;
    border-radius: 15px;
    padding: 20px;
    font-size: 1.3em;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.game-answer-option:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.game-answer-option.correct {
    background: #4ade80 !important;
    border-color: #22c55e !important;
    color: white !important;
}

.game-answer-option.wrong {
    background: #ef4444 !important;
    border-color: #dc2626 !important;
    color: white !important;
}

.game-feedback {
    text-align: center;
    font-size: 1.3em;
    font-weight: bold;
    padding: 15px;
    margin-top: 20px;
    border-radius: 10px;
}

.game-feedback.correct {
    background: #d1fae5;
    color: #059669;
}

.game-feedback.wrong {
    background: #fee2e2;
    color: #dc2626;
}

.game-result-panel {
    text-align: center;
    padding: 50px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.result-emoji {
    font-size: 5em;
    margin-bottom: 15px;
}

.result-title {
    font-size: 2em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 20px;
}

.result-score {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 15px;
}

.result-reward {
    font-size: 1.3em;
    color: #f59e0b;
    margin-bottom: 30px;
}

.back-to-game-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.back-to-game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* ==================== 排行榜样式 ==================== */
.my-rank-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.my-rank-card h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.my-rank-stats {
    display: flex;
    gap: 20px;
    justify-content: space-around;
}

.my-rank-item {
    text-align: center;
    flex: 1;
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 15px;
}

.my-rank-label {
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 8px;
}

.my-rank-value {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 5px;
}

.my-rank-detail {
    font-size: 0.9em;
    opacity: 0.8;
}

.leaderboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
}

.lb-tab {
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s;
}

.lb-tab:hover {
    background: #667eea;
    color: white;
}

.lb-tab.active {
    background: #667eea;
    color: white;
}

.lb-time-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.lb-time-btn {
    background: #f0f0f0;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s;
}

.lb-time-btn:hover {
    background: #e0e0e0;
}

.lb-time-btn.active {
    background: #667eea;
    color: white;
}

.leaderboard-list {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.lb-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 15px;
    background: #f8f9fa;
    transition: all 0.3s;
}

.lb-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.lb-item.current-user {
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
    border: 2px solid #fcb69f;
}

.lb-rank {
    font-size: 1.5em;
    min-width: 50px;
    text-align: center;
}

.lb-info {
    flex: 1;
}

.lb-name {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.lb-detail {
    font-size: 0.9em;
    color: #666;
}

.lb-value {
    font-size: 1.2em;
    font-weight: bold;
    color: #667eea;
}

.no-data, .error-text {
    text-align: center;
    color: #999;
    padding: 40px;
    font-size: 1.1em;
}

.error-text {
    color: #ef4444;
}

/* 用户信息栏 */
.user-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 12px 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.user-greeting {
    color: #333;
    font-size: 1em;
}

.user-greeting strong {
    color: #667eea;
}

.logout-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 147, 251, 0.4);
}

@media (max-width: 768px) {
    .user-info-bar {
        padding: 10px 15px;
    }

    .user-greeting {
        font-size: 0.9em;
    }

    .logout-btn {
        padding: 6px 12px;
        font-size: 0.85em;
    }
}

/* 课表学习模块 */
.textbook-intro {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.textbook-intro p {
    margin: 10px 0;
    font-size: 1.1em;
    color: #333;
}

.textbook-selectors {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.selector-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.selector-group label {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
}

.selector-group select {
    padding: 10px 20px;
    font-size: 1.1em;
    border: 3px solid #667eea;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.selector-group select:hover {
    border-color: #7c3aed;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.textbook-header {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
}

.unit-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.unit-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.unit-number {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
}

.unit-name {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
}

.lessons-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lesson-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.lesson-item:hover {
    transform: translateX(5px);
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.lesson-item.completed {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-color: #22c55e;
}

.lesson-index {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1em;
}

.lesson-item.completed .lesson-index {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.lesson-info {
    flex: 1;
}

.lesson-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    margin-bottom: 3px;
}

.lesson-type {
    font-size: 0.9em;
    color: #666;
}

.lesson-status {
    font-size: 1.5em;
}

/* 课文弹窗样式 */
.lesson-modal-title {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.lesson-modal-meta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.lesson-modal-meta span {
    background: #f0f0f0;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    color: #666;
}

.lesson-type-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

.lesson-content {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.lesson-content p {
    font-size: 1.3em;
    line-height: 2;
    color: #333;
    text-align: center;
    white-space: pre-wrap;
}

.lesson-author {
    text-align: center;
    color: #666;
    font-size: 1em;
    margin-bottom: 20px;
}

.lesson-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.lesson-actions .btn {
    padding: 12px 30px;
    font-size: 1.1em;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lesson-actions .btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.lesson-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.lesson-actions .btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.lesson-actions .btn-secondary:hover {
    background: #d1d5db;
}
