/* ============================================================
   sport.css - 运动模块样式
   ============================================================ */

.page-sport {
    animation: pageFadeIn 0.3s ease;
}

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

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

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

/* 统计卡 */
.sport-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.sport-stat-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #E8F5E9 100%);
    border: 3px solid var(--grass);
    border-radius: var(--radius-lg);
    padding: 14px 8px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.sport-stat-card .stat-num {
    font-size: 32px;
    color: var(--grass-dark);
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    line-height: 1;
}

.sport-stat-card .stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* 运动项目列表 */
.sport-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.sport-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FBF8 100%);
    border: 3px solid var(--grass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: all 0.2s;
}

.sport-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.sport-item.done {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border-color: var(--grass-deep);
    opacity: 0.85;
}

.sport-item-icon {
    font-size: 44px;
    line-height: 1;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
}

.sport-item-info {
    flex: 1;
    min-width: 0;
}

.sport-item-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'ZCOOL KuaiLe', serif;
}

.sport-item-target {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.sport-item-actions {
    flex-shrink: 0;
}

.sport-done-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--grass-deep);
    color: white;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 700;
}

.sport-bonus-btn {
    margin-top: 8px;
    background: linear-gradient(135deg, #FFD93D 0%, #FF8C42 100%) !important;
    color: white !important;
    font-size: 22px !important;
    padding: 18px !important;
    animation: numberPop 0.5s ease;
    box-shadow: var(--shadow-strong) !important;
}

/* 计时器卡片 */
.sport-timer-card {
    background: linear-gradient(135deg, #FFF8E7 0%, #FFE9B0 100%);
    border: 4px solid var(--grass-dark);
    border-radius: var(--radius-xl);
    padding: 24px 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-medium);
    animation: numberPop 0.4s ease;
}

.timer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.timer-header h3 {
    font-size: 22px;
    color: var(--grass-dark);
    font-family: 'ZCOOL KuaiLe', serif;
}

.timer-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(231, 76, 60, 0.15);
    color: var(--chinese-color);
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.timer-close:hover {
    background: var(--chinese-color);
    color: white;
    transform: rotate(90deg);
}

.timer-display {
    font-size: 72px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    color: var(--grass-dark);
    text-align: center;
    margin: 16px 0;
    text-shadow: 3px 3px 0 rgba(255, 217, 61, 0.5);
    letter-spacing: 4px;
}

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

/* 响应式 */
@media (max-width: 480px) {
    .sport-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .sport-stat-card .stat-num {
        font-size: 26px;
    }
    .sport-item {
        padding: 12px;
        gap: 10px;
    }
    .sport-item-icon {
        font-size: 36px;
        width: 48px;
        height: 48px;
    }
    .sport-item-name {
        font-size: 19px;
    }
    .timer-display {
        font-size: 56px;
    }
}
