/* 幼儿园小清新风格 */

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
    padding: 20px 0;
}

/* 主标题 */
.main-title {
    color: #fff;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.subtitle {
    color: #f0f0f0;
    font-size: 1.2rem;
    margin: 0;
}

/* 生字表按钮 */
.header-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.btn-wordlist {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-wordlist:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 18px rgba(255, 215, 0, 0.6);
    color: white;
}

.btn-checkin {
    background: linear-gradient(135deg, #FF6B9D 0%, #FF1493 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-checkin:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 18px rgba(255, 107, 157, 0.6);
    color: white;
}

.btn-math {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-math:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 18px rgba(78, 205, 196, 0.6);
    color: white;
}

.btn-unlearned {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(168, 237, 234, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-unlearned:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 18px rgba(168, 237, 234, 0.6);
}

.btn-unlearned.active {
    background: linear-gradient(135deg, #FF6B9D 0%, #FF1493 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.4);
}

/* 学习模式提示条 */
.mode-banner {
    max-width: 1200px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #FF6B9D 0%, #FF1493 100%);
    border-radius: 15px;
    padding: 12px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
    animation: slideDown 0.3s ease;
}

.mode-text {
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
}

.btn-mode-switch {
    background: white;
    color: #FF6B9D;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-mode-switch:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* 统计卡片 */
.stats-row {
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 3rem;
    margin-right: 15px;
}

.stat-info h3 {
    margin: 0;
    font-size: 2rem;
    color: #667eea;
    font-weight: bold;
}

.stat-info p {
    margin: 5px 0 0 0;
    color: #666;
    font-size: 0.9rem;
}

.total-chars .stat-info h3 { color: #FF6B9D; }
.today-learned .stat-info h3 { color: #4ECDC4; }
.yesterday-learned .stat-info h3 { color: #FFA07A; }
.study-time .stat-info h3 { color: #95E1D3; }

/* 学习卡片 */
.learning-card {
    background: white;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
}

/* 汉字显示区 */
.character-display {
    text-align: center;
}

.character-circle {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #FFE5B4 0%, #FFDAB9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(255, 182, 193, 0.5);
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 5px solid #FFB6C1;
}

.character-circle:hover {
    transform: scale(1.05);
}

.character-circle span {
    font-size: 100px;
    color: #FF6B9D;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.pinyin-text {
    font-size: 1.5rem;
    color: #888;
    margin: 0;
}

/* 详细信息区 */
.character-details {
    padding: 20px;
}

.detail-section {
    margin-bottom: 25px;
    padding: 15px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.detail-section:hover {
    transform: translateX(5px);
}

.detail-label {
    font-size: 1.1rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 8px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.detail-buttons {
    display: flex;
    gap: 8px;
}

.btn-speak-small {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-speak-small:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.6);
}

.btn-speak-small:active {
    transform: scale(0.95);
}

.btn-split-char {
    background: linear-gradient(135deg, #FF6B9D 0%, #FF1493 100%);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: 0 3px 10px rgba(255, 107, 157, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-split-char:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.6);
}

.btn-split-char:active {
    transform: scale(0.95);
}

.detail-content {
    font-size: 1.2rem;
    color: #333;
    line-height: 1.6;
    word-wrap: break-word;
}

/* 控制按钮 */
.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.btn-nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.btn-nav:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.6);
    color: white;
}

.btn-prev {
    background: linear-gradient(135deg, #FFB6C1 0%, #FF69B4 100%);
    box-shadow: 0 5px 15px rgba(255, 182, 193, 0.4);
}

.btn-prev:hover {
    box-shadow: 0 8px 20px rgba(255, 182, 193, 0.6);
}

.btn-next {
    background: linear-gradient(135deg, #98FB98 0%, #90EE90 100%);
    box-shadow: 0 5px 15px rgba(152, 251, 152, 0.4);
}

.btn-next:hover {
    box-shadow: 0 8px 20px rgba(152, 251, 152, 0.6);
}

.btn-play {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
}

.btn-play:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
    color: white;
}

.btn-play:active {
    transform: scale(0.95);
}

/* 进度条 */
.progress-section {
    text-align: center;
}

.progress-bar-custom {
    width: 100%;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFB6C1 0%, #FF69B4 50%, #FF1493 100%);
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-text {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

/* 底部文字 */
.footer-text {
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-title {
        font-size: 1.8rem;
    }

    .character-circle {
        width: 150px;
        height: 150px;
    }

    .character-circle span {
        font-size: 70px;
    }

    .controls {
        flex-direction: column;
    }

    .btn-nav, .btn-play {
        width: 100%;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-icon {
        font-size: 2rem;
    }

    .stat-info h3 {
        font-size: 1.5rem;
    }

    .character-details {
        margin-top: 20px;
    }

    .detail-section {
        padding: 10px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.learning-card {
    animation: fadeIn 0.5s ease;
}

.stat-card {
    animation: fadeIn 0.5s ease;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

/* 通知动画 */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}
