/* ============================================================
   每晚学习计划 - 可爱MBE风格样式
   ============================================================ */

/* 全局变量 */
:root {
    --primary: #FF9F43;
    --secondary: #54A0FF;
    --accent: #FF6B6B;
    --success: #1DD1A1;
    --warning: #FECA57;
    --purple: #A29BFE;
    --bg: #FFF9F0;
    --bg-card: #FFFFFF;
    --text: #2D3436;
    --text-light: #636E72;
    --text-lighter: #B2BEC3;
    --border: #F0E6D6;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --radius: 20px;
    --radius-sm: 12px;
}

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

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

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

/* ============================================================
   背景装饰动画
   ============================================================ */
.bg-decor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star {
    position: absolute;
    font-size: 24px;
    animation: twinkle 3s ease-in-out infinite;
}

.star-1 { top: 10%; left: 5%; animation-delay: 0s; }
.star-2 { top: 20%; right: 8%; animation-delay: 0.5s; font-size: 30px; }
.star-3 { top: 60%; left: 3%; animation-delay: 1s; }
.star-4 { top: 75%; right: 5%; animation-delay: 1.5s; font-size: 20px; }

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.2) rotate(15deg); }
}

.cloud {
    position: absolute;
    font-size: 48px;
    animation: float 8s ease-in-out infinite;
    opacity: 0.6;
}

.cloud-1 { top: 15%; left: -5%; animation-delay: 0s; }
.cloud-2 { top: 40%; right: -5%; animation-delay: 2s; font-size: 36px; }

@keyframes float {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(20px) translateY(-10px); }
    50% { transform: translateX(40px) translateY(0); }
    75% { transform: translateX(20px) translateY(10px); }
}

/* ============================================================
   动画通用
   ============================================================ */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ============================================================
   首页样式
   ============================================================ */
.home-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.home-header {
    text-align: center;
    margin-bottom: 50px;
}

.home-title-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.home-title {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.home-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.home-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--warning);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(254, 202, 87, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 孩子卡片 */
.child-cards {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

.child-card {
    position: relative;
    width: 380px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 3px solid transparent;
}

.child-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.card-meimei:hover {
    border-color: #FF6B9D;
}

.card-gege:hover {
    border-color: #4ECDC4;
}

.child-card-bg {
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    opacity: 0.1;
    transition: all 0.3s;
}

.card-meimei .child-card-bg {
    background: #FF6B9D;
}

.card-gege .child-card-bg {
    background: #4ECDC4;
}

.child-card:hover .child-card-bg {
    transform: scale(2);
    opacity: 0.15;
}

.child-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.child-card:hover .child-avatar {
    transform: rotate(10deg) scale(1.1);
}

.child-avatar-icon {
    font-size: 40px;
}

.child-info {
    position: relative;
    z-index: 1;
}

.child-name {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
}

.child-nickname {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.child-goal {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    padding-top: 12px;
    border-top: 2px dashed var(--border);
}

.child-card-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s;
    color: var(--text-light);
}

.child-card:hover .child-card-arrow {
    background: var(--primary);
    color: white;
    transform: translateX(5px);
}

.child-card-sparkle {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    opacity: 0;
    transition: all 0.3s;
}

.child-card:hover .child-card-sparkle {
    opacity: 1;
    animation: twinkle 1s ease-in-out infinite;
}

.home-footer {
    text-align: center;
    color: var(--text-light);
    font-size: 16px;
}

/* ============================================================
   学习计划页样式
   ============================================================ */
.child-page {
    padding-bottom: 60px;
}

.child-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--theme-color, var(--primary));
    z-index: 100;
}

/* 顶部导航 */
.top-nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 14px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 50;
}

.nav-back {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s;
}

.nav-back:hover {
    background: var(--theme-light, var(--bg));
    color: var(--theme-color, var(--primary));
}

.back-arrow {
    font-size: 18px;
    font-weight: bold;
}

.nav-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
}

.nav-icon {
    font-size: 24px;
}

.nav-week-badge {
    background: var(--theme-color, var(--primary));
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.child-container {
    padding-top: 30px;
    position: relative;
    z-index: 1;
}

/* 孩子信息卡 */
.child-info-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    border-left: 6px solid var(--theme-color, var(--primary));
}

.info-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.info-text {
    flex: 1;
}

.info-text h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
}

.info-nickname {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 400;
}

.info-grade {
    font-size: 14px;
    color: var(--text-light);
}

.info-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--theme-color, var(--primary));
}

.stat-label {
    font-size: 12px;
    color: var(--text-light);
}

/* 区块通用 */
.section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-icon {
    font-size: 24px;
}

/* 学习流程时间轴 */
.flow-timeline {
    display: flex;
    gap: 0;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.flow-item {
    flex: 1;
    min-width: 180px;
    text-align: center;
    position: relative;
    padding: 0 10px;
}

.flow-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--theme-light, var(--bg));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 12px;
    transition: transform 0.3s;
}

.flow-item:hover .flow-icon {
    transform: scale(1.15) rotate(5deg);
}

.flow-time {
    font-size: 12px;
    color: var(--theme-color, var(--primary));
    font-weight: 600;
    margin-bottom: 4px;
}

.flow-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.flow-desc {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.5;
}

.flow-connector {
    position: absolute;
    top: 28px;
    right: -10px;
    width: 20px;
    height: 3px;
    background: var(--border);
    border-radius: 2px;
}

.flow-connector::after {
    content: '→';
    position: absolute;
    right: -8px;
    top: -10px;
    font-size: 14px;
    color: var(--text-lighter);
}

/* 周次切换 */
.week-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.week-tab {
    flex: 1;
    min-width: 140px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.week-tab:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.week-tab.active {
    border-color: var(--theme-color, var(--primary));
    background: var(--theme-light, var(--bg));
}

.week-num {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--theme-color, var(--primary));
    margin-bottom: 4px;
}

.week-theme {
    display: block;
    font-size: 12px;
    color: var(--text-light);
}

/* 本周主题横幅 */
.week-theme-banner {
    background: var(--theme-color, var(--primary));
    border-radius: var(--radius);
    padding: 24px 30px;
    margin-bottom: 30px;
    color: white;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

/* 今日课件入口 */
.courseware-entry {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #FFF8E1, #FFECB3);
    border-radius: 16px;
    padding: 18px 24px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(255,159,67,0.15);
    border: 2px solid #FFE0B2;
    transition: all 0.3s;
    margin-bottom: 24px;
}
.courseware-entry:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255,159,67,0.25);
    border-color: #FF9F43;
}
.courseware-entry-icon {
    font-size: 40px;
    animation: bounce 1.5s infinite;
}
.courseware-entry-text { flex: 1; }
.courseware-entry-title {
    font-size: 18px;
    font-weight: 700;
    color: #FF9F43;
    margin-bottom: 2px;
}
.courseware-entry-desc {
    font-size: 13px;
    color: #999;
}
.courseware-entry-arrow {
    font-size: 24px;
    color: #FF9F43;
    transition: transform 0.3s;
}
.courseware-entry:hover .courseware-entry-arrow {
    transform: translateX(5px);
}

/* 每日课件按钮 */
.day-courseware-btn {
    display: flex;
    align-items: center;
}
.courseware-day-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #FECA57, #FF9F43);
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(255,159,67,0.3);
    transition: all 0.3s;
    white-space: nowrap;
}
.courseware-day-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 16px rgba(255,159,67,0.4);
}
.courseware-day-btn.disabled {
    background: #e0e0e0;
    color: #999;
    box-shadow: none;
    cursor: not-allowed;
}
.courseware-day-btn.disabled:hover {
    transform: none;
}

.week-theme-banner::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.week-theme-banner::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: 60px;
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.theme-label {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.theme-text {
    font-size: 24px;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.theme-words {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.words-label {
    font-size: 13px;
    opacity: 0.9;
}

.word-chip {
    background: rgba(255,255,255,0.25);
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
}

/* 星期导航 */
.day-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.day-tab {
    flex: 1;
    min-width: 90px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 12px 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.day-tab:hover {
    transform: translateY(-2px);
}

.day-tab.active {
    border-color: var(--theme-color, var(--primary));
    background: var(--theme-light, var(--bg));
    transform: translateY(-2px);
}

.day-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.day-tab.active .day-name {
    color: var(--theme-color, var(--primary));
}

.day-type {
    display: block;
    font-size: 11px;
    color: var(--text-light);
}

/* 每日内容 */
.day-content-wrapper {
    position: relative;
    min-height: 400px;
}

.day-content {
    display: none;
}

.day-content.active {
    display: block;
    animation: slideIn 0.4s ease;
}

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

.day-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.day-card-header {
    background: var(--theme-light, var(--bg));
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.day-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.day-card-day {
    font-size: 24px;
    font-weight: 800;
    color: var(--theme-color, var(--primary));
}

.day-card-type {
    color: white;
    padding: 6px 16px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 600;
}

.day-card-icon {
    font-size: 36px;
    animation: bounce 2s ease-in-out infinite;
}

.day-card-body {
    padding: 24px 30px;
}

/* 内容网格 */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.content-block {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 16px;
    border-left: 4px solid var(--theme-color, var(--primary));
    transition: all 0.3s;
}

.content-block:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.content-grid .content-block {
    margin-bottom: 0;
}

.block-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.block-icon {
    font-size: 20px;
}

.block-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--theme-color, var(--primary));
}

.block-content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
}

.express-content {
    font-size: 16px;
    line-height: 1.8;
}

.tip-block {
    background: #FFF8E1;
    border-left-color: var(--warning);
}

.tip-block .block-title {
    color: #F39C12;
}

.tip-content {
    font-size: 14px;
    color: #7D6608;
    font-style: italic;
}

/* 卡片底部 */
.day-card-footer {
    padding: 16px 30px;
    border-top: 2px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.progress-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.3s;
}

.dot.done {
    background: var(--success);
}

.dot.current {
    background: var(--theme-color, var(--primary));
    transform: scale(1.3);
    box-shadow: 0 0 8px var(--theme-color, var(--primary));
}

.day-nav-buttons {
    display: flex;
    gap: 10px;
}

.day-nav-btn {
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    background: var(--bg);
    color: var(--text-light);
}

.day-nav-btn:hover {
    background: var(--theme-color, var(--primary));
    color: white;
}

/* 底部 */
.child-footer {
    text-align: center;
    margin-top: 40px;
    color: var(--text-light);
    font-size: 16px;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 768px) {
    .home-title {
        font-size: 32px;
    }

    .child-card {
        width: 100%;
        max-width: 380px;
    }

    .top-nav {
        padding: 10px 15px;
    }

    .nav-title {
        font-size: 14px;
    }

    .nav-week-badge {
        padding: 6px 12px;
        font-size: 12px;
    }

    .child-info-card {
        flex-wrap: wrap;
    }

    .info-stats {
        width: 100%;
        justify-content: center;
    }

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

    .flow-timeline {
        flex-direction: column;
    }

    .flow-connector {
        display: none;
    }

    .day-card-footer {
        flex-direction: column;
        gap: 12px;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--text-lighter);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* ============================================================
   学习页面通用样式
   ============================================================ */
.learn-page {
    background: linear-gradient(180deg, var(--theme-light) 0%, #fff 100%);
    min-height: 100vh;
    padding-bottom: 40px;
}

.learn-container {
    max-width: 900px;
    padding-top: 20px;
}

/* 顶部导航 */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-back {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--theme-color);
    font-weight: 600;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 20px;
    background: var(--theme-light);
    transition: all 0.3s;
}
.nav-back:hover {
    transform: translateX(-3px);
    background: var(--theme-color);
    color: #fff;
}
.back-arrow { font-size: 16px; }

.nav-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--theme-color);
}
.nav-icon { font-size: 22px; }

.star-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #FECA57, #FF9F43);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.3s;
    box-shadow: 0 2px 8px rgba(255,159,67,0.3);
}
.star-badge:hover { transform: scale(1.05); }

/* 欢迎横幅 */
.welcome-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin-bottom: 24px;
    border: 3px solid var(--theme-light);
}
.welcome-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    flex-shrink: 0;
    animation: bounce 2s infinite;
}
.welcome-text h2 {
    margin: 0 0 4px;
    font-size: 20px;
    color: var(--theme-color);
}
.welcome-text p {
    margin: 0;
    font-size: 13px;
    color: #888;
}
.welcome-date {
    margin-left: auto;
    text-align: right;
    font-size: 13px;
    color: #aaa;
}

/* 区块标题 */
.section { margin-bottom: 28px; }
.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 14px;
}
.title-icon { font-size: 22px; }
.section-hint {
    font-size: 13px;
    color: #999;
    margin: 0 0 14px;
}

/* 今日任务卡片 */
.today-task-card {
    background: #fff;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}
.task-item:hover {
    background: var(--theme-light);
    transform: translateX(4px);
}
.task-item.completed {
    background: #E8F5E9;
    border-color: #A5D6A7;
}
.task-item.completed .task-check { color: #4CAF50; }
.task-item.completed .task-text { text-decoration: line-through; color: #999; }
.task-check { font-size: 20px; color: #ccc; width: 24px; text-align: center; }
.task-icon { font-size: 24px; }
.task-text { flex: 1; font-size: 15px; font-weight: 500; color: #333; }
.task-reward {
    font-size: 12px;
    color: #FF9F43;
    font-weight: 700;
    background: #FFF3E0;
    padding: 4px 10px;
    border-radius: 12px;
}

/* 学习模块网格 */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}
.module-card {
    background: #fff;
    border-radius: 18px;
    padding: 20px 14px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border: 3px solid transparent;
    display: block;
}
.module-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.module-icon { font-size: 40px; margin-bottom: 8px; animation: bounce 2s infinite; }
.module-name { font-size: 16px; font-weight: 700; color: #333; margin-bottom: 4px; }
.module-desc { font-size: 11px; color: #999; }
.module-num { border-color: #FFE0B2; }
.module-num .module-name { color: #FF9F43; }
.module-letter { border-color: #BBDEFB; }
.module-letter .module-name { color: #54A0FF; }
.module-char { border-color: #B2DFDB; }
.module-char .module-name { color: #1DD1A1; }
.module-story { border-color: #E1BEE7; }
.module-story .module-name { color: #A29BFE; }
.module-picture { border-color: #FFCDD2; }
.module-picture .module-name { color: #FF6B6B; }
.module-game { border-color: #FFF9C4; }
.module-game .module-name { color: #FECA57; }
.module-plan { border-color: #C8E6C9; }
.module-plan .module-name { color: #66BB6A; }
.module-today { border-color: #FFE0B2; background: linear-gradient(135deg, #FFF8E1, #FFECB3); }
.module-today .module-name { color: #FF9F43; }
.module-today .module-icon { animation: bounce 1.5s infinite; }

/* 成就墙 */
.achievement-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}
.achievement-item {
    background: #fff;
    border-radius: 14px;
    padding: 16px 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    opacity: 0.4;
    filter: grayscale(0.8);
    transition: all 0.3s;
}
.achievement-item.unlocked {
    opacity: 1;
    filter: none;
    border: 2px solid #FECA57;
    box-shadow: 0 4px 16px rgba(254,202,87,0.3);
}
.achievement-icon { font-size: 32px; margin-bottom: 6px; }
.achievement-name { font-size: 13px; font-weight: 700; color: #333; margin-bottom: 2px; }
.achievement-desc { font-size: 10px; color: #999; }

/* ============================================================
   数字/字母/汉字学习页
   ============================================================ */
.number-grid, .letter-grid, .char-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}
.number-card, .letter-card, .char-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px 8px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border: 3px solid var(--theme-light);
}
.number-card:hover, .letter-card:hover, .char-card:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-color: var(--theme-color);
}
.number-big {
    font-size: 42px;
    font-weight: 800;
    color: var(--theme-color);
    line-height: 1;
}
.number-objects {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
    margin: 8px 0;
    min-height: 24px;
}
.num-obj { font-size: 14px; }
.number-word { font-size: 13px; color: #888; font-weight: 600; }

.letter-big {
    font-size: 38px;
    font-weight: 800;
    color: var(--theme-color);
    line-height: 1;
}
.letter-small {
    font-size: 18px;
    color: #aaa;
    font-weight: 600;
    margin-top: 2px;
}

.char-big {
    font-size: 40px;
    font-weight: 700;
    color: var(--theme-color);
    line-height: 1;
    font-family: "KaiTi", "楷体", serif;
}
.char-pinyin {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}

/* 练习卡片 */
.practice-card {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    text-align: center;
}
.practice-question p {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px;
}
.practice-objects {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    min-height: 50px;
}
.practice-objects span { font-size: 32px; }
.practice-options {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}
.practice-option {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--theme-light);
    background: #fff;
    font-size: 24px;
    font-weight: 700;
    color: var(--theme-color);
    cursor: pointer;
    transition: all 0.3s;
}
.practice-option:hover { border-color: var(--theme-color); transform: scale(1.1); }
.practice-option.correct { background: #4CAF50; color: #fff; border-color: #4CAF50; }
.practice-option.wrong { background: #f44336; color: #fff; border-color: #f44336; animation: shake 0.4s; }
.practice-result {
    min-height: 30px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}
.practice-result.correct { color: #4CAF50; }
.practice-result.wrong { color: #f44336; }

/* 按钮 */
.btn-primary {
    background: linear-gradient(135deg, var(--theme-color), var(--theme-color));
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.2); }
.btn-secondary {
    background: #f5f5f5;
    color: #666;
    border: 2px solid #e0e0e0;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-secondary:hover { background: #e0e0e0; }
.btn-complete {
    background: linear-gradient(135deg, #FECA57, #FF9F43);
    color: #fff;
    border: none;
    padding: 18px 40px;
    border-radius: 30px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(255,159,67,0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
}
.btn-complete:hover { transform: scale(1.05); box-shadow: 0 8px 28px rgba(255,159,67,0.5); }
.complete-section { text-align: center; padding: 20px 0; }

/* 歌曲卡片 */
.song-card {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    text-align: center;
}
.song-card p {
    font-size: 16px;
    line-height: 2;
    color: #555;
    margin: 0 0 16px;
}
.abc-song {
    font-size: 20px !important;
    font-weight: 600;
    color: var(--theme-color) !important;
    letter-spacing: 2px;
}

/* 字母游戏 */
.target-letter {
    display: inline-block;
    font-size: 36px;
    font-weight: 800;
    color: var(--theme-color);
    background: var(--theme-light);
    padding: 4px 20px;
    border-radius: 12px;
    margin: 0 4px;
}
.letter-game-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 400px;
    margin: 0 auto 16px;
}

/* 周次标签 */
.week-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.week-tab {
    flex: 1;
    min-width: 120px;
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 3px solid transparent;
    transition: all 0.3s;
}
.week-tab.active {
    border-color: var(--theme-color);
    background: var(--theme-light);
}
.week-tab:hover { transform: translateY(-2px); }
.week-num { display: block; font-size: 15px; font-weight: 700; color: var(--theme-color); }
.week-theme { display: block; font-size: 11px; color: #999; margin-top: 2px; }

/* 描红田字格 */
.char-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}
.char-select-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 2px solid var(--theme-light);
    background: #fff;
    font-size: 22px;
    font-weight: 700;
    color: var(--theme-color);
    cursor: pointer;
    font-family: "KaiTi", "楷体", serif;
    transition: all 0.3s;
}
.char-select-btn:hover, .char-select-btn.active {
    border-color: var(--theme-color);
    background: var(--theme-light);
}
.tian-grid {
    width: 200px;
    height: 200px;
    margin: 0 auto 16px;
    border: 3px solid #e0e0e0;
    border-radius: 8px;
    position: relative;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tian-grid::before, .tian-grid::after {
    content: '';
    position: absolute;
    background: #f0f0f0;
}
.tian-grid::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.tian-grid::after { top: 50%; left: 0; right: 0; height: 1px; }
.tian-char {
    font-size: 120px;
    font-weight: 400;
    color: rgba(0,0,0,0.15);
    font-family: "KaiTi", "楷体", serif;
    z-index: 1;
    user-select: none;
}
.practice-info p { font-size: 14px; color: #666; margin: 0 0 12px; }

/* ============================================================
   故事页面
   ============================================================ */
.story-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.story-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 18px;
    padding: 16px 20px;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border: 3px solid transparent;
}
.story-card:hover {
    transform: translateX(6px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-color: var(--theme-color);
}
.story-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
}
.story-info { flex: 1; }
.story-title { font-size: 17px; font-weight: 700; color: #333; margin: 0 0 4px; }
.story-theme { font-size: 12px; color: #888; margin: 0 0 2px; }
.story-suitable { font-size: 11px; color: #aaa; margin: 0; }
.story-arrow { font-size: 24px; color: #ccc; transition: transform 0.3s; }
.story-card:hover .story-arrow { transform: translateX(4px); color: var(--theme-color); }

/* 故事详情 */
.story-cover {
    text-align: center;
    background: #fff;
    border-radius: 24px;
    padding: 30px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin-bottom: 24px;
    border: 3px solid var(--theme-light);
}
.story-cover-icon { font-size: 64px; margin-bottom: 12px; animation: bounce 2s infinite; }
.story-cover-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--theme-color);
    margin: 0 0 12px;
}
.story-cover-meta {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.meta-tag {
    background: var(--theme-light);
    color: var(--theme-color);
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
}

.story-content-card {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.story-text {
    font-size: 17px;
    line-height: 2;
    color: #444;
    margin-bottom: 16px;
    text-indent: 2em;
}
.story-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* 故事场景图 */
.story-scenes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.scene-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border: 2px solid transparent;
}
.scene-item:hover {
    transform: scale(1.03);
    border-color: var(--theme-color);
}
.scene-num {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 24px;
    height: 24px;
    background: var(--theme-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}
.scene-item { position: relative; }
.scene-img-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--theme-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.scene-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.scene-fallback {
    display: none;
    font-size: 40px;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}
.scene-title {
    padding: 6px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #555;
    text-align: center;
}

/* 问题卡片 */
.questions-card {
    background: #fff;
    border-radius: 18px;
    padding: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.question-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}
.question-item:hover { background: var(--theme-light); }
.question-num {
    width: 28px;
    height: 28px;
    background: var(--theme-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}
.question-text { flex: 1; font-size: 15px; color: #333; font-weight: 500; }
.question-toggle { color: #ccc; font-size: 12px; transition: transform 0.3s; }
.question-item.open .question-toggle { transform: rotate(180deg); }

/* 提示卡片 */
.tip-card {
    background: linear-gradient(135deg, #FFF9E6, #FFF3E0);
    border-radius: 18px;
    padding: 20px;
    border: 2px dashed #FECA57;
}
.tip-card p { font-size: 14px; color: #666; margin: 0 0 12px; line-height: 1.8; }
.tip-words {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tip-word {
    background: #fff;
    border: 2px solid #FECA57;
    color: #FF9F43;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
}

/* ============================================================
   看图说话
   ============================================================ */
.scene-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.scene-select-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border-radius: 20px;
    padding: 8px 14px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 2px solid transparent;
    transition: all 0.3s;
}
.scene-select-item.active {
    border-color: var(--theme-color);
    background: var(--theme-light);
}
.scene-select-item:hover { transform: translateY(-2px); }
.scene-select-num {
    width: 22px;
    height: 22px;
    background: var(--theme-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}
.scene-select-title { font-size: 13px; font-weight: 600; color: #555; }

.picture-talk-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.picture-talk-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--theme-light);
}
.picture-talk-num {
    background: var(--theme-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}
.picture-talk-title { flex: 1; font-size: 20px; font-weight: 700; color: var(--theme-color); margin: 0; }
.picture-talk-season {
    background: #fff;
    color: #888;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
}
.picture-talk-image {
    width: 100%;
    aspect-ratio: 16/9;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.picture-talk-image img { width: 100%; height: 100%; object-fit: cover; }
.picture-fallback {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #ccc;
}
.picture-fallback p { font-size: 16px; margin: 0; }

.scene-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}
.scene-nav-btn {
    background: #fff;
    color: var(--theme-color);
    padding: 10px 24px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
}
.scene-nav-btn:hover { transform: scale(1.05); background: var(--theme-color); color: #fff; }

/* ============================================================
   游戏页面
   ============================================================ */
.game-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.game-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: #fff;
    border: 3px solid transparent;
    border-radius: 16px;
    padding: 14px 10px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.game-tab.active {
    border-color: var(--theme-color);
    background: var(--theme-light);
}
.game-tab:hover { transform: translateY(-2px); }
.game-tab-icon { font-size: 28px; }
.game-tab span:last-child { font-size: 13px; font-weight: 600; color: #555; }

.game-panel { display: none; }
.game-panel.active { display: block; }

.game-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

/* 记忆翻牌 */
.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}
.memory-card {
    aspect-ratio: 1;
    border-radius: 12px;
    cursor: pointer;
    perspective: 600px;
    position: relative;
}
.memory-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s;
}
.memory-card.flipped .memory-card-inner { transform: rotateY(180deg); }
.memory-card-front, .memory-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}
.memory-card-front {
    background: linear-gradient(135deg, var(--theme-color), var(--theme-color));
    color: #fff;
}
.memory-card-back {
    background: #fff;
    border: 3px solid var(--theme-light);
    transform: rotateY(180deg);
}
.memory-card.matched .memory-card-back {
    background: #E8F5E9;
    border-color: #A5D6A7;
    animation: pulse 0.5s;
}

/* 数字配对 */
.match-game {
    display: flex;
    gap: 30px;
    justify-content: center;
}
.match-column { flex: 1; max-width: 200px; }
.match-column h4 { text-align: center; color: #666; margin: 0 0 12px; }
.match-items { display: flex; flex-direction: column; gap: 10px; }
.match-item {
    background: #fff;
    border: 3px solid var(--theme-light);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 20px;
    font-weight: 700;
    color: var(--theme-color);
}
.match-item:hover { border-color: var(--theme-color); transform: scale(1.05); }
.match-item.selected { border-color: var(--theme-color); background: var(--theme-light); }
.match-item.matched { background: #E8F5E9; border-color: #A5D6A7; color: #4CAF50; }

/* 找不同 */
.find-game {
    display: flex;
    gap: 20px;
    justify-content: center;
}
.find-image {
    flex: 1;
    max-width: 280px;
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.find-scene {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-height: 150px;
    margin-bottom: 8px;
}
.find-image p { font-size: 12px; color: #999; margin: 0; }
.find-diff { cursor: pointer; transition: all 0.3s; }
.find-diff:hover { transform: scale(1.2); }
.find-diff.found {
    outline: 3px solid #4CAF50;
    border-radius: 8px;
    background: #E8F5E9;
}

.game-result {
    text-align: center;
    margin: 16px 0;
    font-size: 16px;
    font-weight: 600;
    min-height: 30px;
}
.game-result.win { color: #4CAF50; }

/* ============================================================
   弹窗
   ============================================================ */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal.active { display: flex; animation: fadeIn 0.3s; }
.modal-content {
    background: #fff;
    border-radius: 24px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: slideUp 0.4s;
    max-height: 85vh;
    overflow-y: auto;
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 28px;
    color: #ccc;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}
.modal-close:hover { color: #666; }
.modal-number, .modal-letter {
    font-size: 80px;
    font-weight: 800;
    color: var(--theme-color);
    line-height: 1;
    margin-bottom: 8px;
}
.modal-number-word, .modal-letter-small {
    font-size: 24px;
    color: #888;
    margin-bottom: 16px;
}
.modal-objects {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 20px;
    min-height: 40px;
}
.modal-objects span { font-size: 28px; }
.modal-letter-word {
    font-size: 18px;
    color: #555;
    margin-bottom: 16px;
    font-weight: 600;
}
.modal-char {
    font-size: 72px;
    font-weight: 700;
    color: var(--theme-color);
    font-family: "KaiTi", "楷体", serif;
    line-height: 1;
    margin-bottom: 4px;
}
.modal-pinyin { font-size: 20px; color: #888; margin-bottom: 4px; }
.modal-meaning { font-size: 16px; color: #666; margin-bottom: 16px; }
.modal-section { text-align: left; margin-bottom: 14px; }
.modal-section h4 { font-size: 14px; color: #888; margin: 0 0 8px; }
.modal-section p { font-size: 15px; color: #333; margin: 0; line-height: 1.6; }
.modal-words { display: flex; flex-wrap: wrap; gap: 6px; }
.modal-words span {
    background: var(--theme-light);
    color: var(--theme-color);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

/* 场景弹窗 */
.scene-modal { max-width: 500px; }
.scene-modal-num {
    display: inline-block;
    background: var(--theme-color);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    line-height: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}
.scene-modal img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 12px;
}
.scene-modal-title { font-size: 20px; font-weight: 700; color: var(--theme-color); margin-bottom: 8px; }
.scene-modal-hint { font-size: 14px; color: #888; margin: 0; }

/* 星星弹窗 */
.star-popup {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.star-popup.active { display: flex; animation: fadeIn 0.3s; }
.star-popup-content {
    background: #fff;
    border-radius: 24px;
    padding: 30px 40px;
    text-align: center;
    animation: bounceIn 0.5s;
}
.star-popup-icon { font-size: 64px; margin-bottom: 12px; animation: bounce 1s infinite; }
.star-popup-content h3 { font-size: 24px; color: #FF9F43; margin: 0 0 8px; }
.star-popup-content p { font-size: 16px; color: #666; margin: 0 0 20px; }
.star-popup-content button {
    background: linear-gradient(135deg, #FECA57, #FF9F43);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s;
}
.star-popup-content button:hover { transform: scale(1.05); }

/* 动画 */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* 响应式 */
@media (max-width: 600px) {
    .story-scenes { grid-template-columns: repeat(2, 1fr); }
    .module-grid { grid-template-columns: repeat(2, 1fr); }
    .welcome-banner { flex-wrap: wrap; }
    .welcome-date { display: none; }
    .match-game { flex-direction: column; align-items: center; }
    .find-game { flex-direction: column; align-items: center; }
}

/* ============================================================
   打印素材库
   ============================================================ */
.module-count {
    display: inline-block;
    margin-top: 6px;
    background: var(--theme-light);
    color: var(--theme-color);
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.print-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}
.print-item {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border: 2px solid transparent;
}
.print-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-color: var(--theme-color);
}
.print-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.print-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.print-fallback {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #ccc;
}
.print-name {
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    text-align: center;
    line-height: 1.3;
}

/* 打印图片弹窗 */
.print-image-modal {
    max-width: 700px;
    padding: 20px;
}
.print-image-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--theme-color);
    margin-bottom: 12px;
    text-align: center;
}
.print-image-modal img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 16px;
    max-height: 60vh;
    object-fit: contain;
    background: #f5f5f5;
}
.print-image-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* 打印样式 */
@media print {
    .top-nav, .bg-decor, .welcome-banner, .section-title, .tip-card, .print-image-actions {
        display: none !important;
    }
    .print-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    body { background: #fff; }
}

/* 首页额外入口 */
.home-extra {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.home-extra-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 16px;
    padding: 14px 28px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border: 2px solid #EDE7FF;
    transition: all 0.3s;
}
.home-extra-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(95,39,205,0.2);
    border-color: #5F27CD;
}
.home-extra-icon { font-size: 28px; }
.home-extra-text { font-size: 16px; font-weight: 700; color: #5F27CD; }
.home-extra-desc { font-size: 12px; color: #999; margin-left: 8px; }
.home-extra-today {
    border-color: #FFE0B2;
    background: linear-gradient(135deg, #FFF8E1, #FFECB3);
}
.home-extra-today:hover {
    border-color: #FF9F43;
    box-shadow: 0 6px 20px rgba(255,159,67,0.3);
}
.home-extra-today .home-extra-text { color: #FF9F43; }
.home-extra-today .home-extra-icon { animation: bounce 1.5s infinite; }
