body {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    min-height: 100vh;
    /*padding: 20px 0 40px;*/
}

.container {
    max-width: 1400px;
}

/* 统计卡片样式 */
.stats-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    flex: 1;
    min-width: 220px;
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card-content{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-card-mouth {
    background-color: #fdf6ef;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
}

.stat-icon img {
    width: 60px;
}

.icon-1 {
    background: rgba(92, 124, 250, 0.15);
    color: #5c7cfa;
}

.icon-2 {
    background: rgba(75, 192, 192, 0.15);
    color: #4bc0c0;
}

.icon-3 {
    background: rgba(255, 159, 64, 0.15);
    color: #ff9f40;
}

.icon-4 {
    background: rgba(255, 99, 132, 0.15);
    color: #ff6384;
}

.stat-value {
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.trend {
    display: flex;
    align-items: center;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
}

.trend.up {
    color: #4bc0c0;
}

.trend.down {
    color: #ff6384;
}

/* 日历容器 */
.calendar-container {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #2d3748;
    display: flex;
    align-items: center;
}

.section-title .glyphicon {
    margin-right: 12px;
    color: #5c7cfa;
}

.months-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.month-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.month-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.month-header {
    /*background: linear-gradient(120deg, #1e40af 0%, #3b82f6 100%);*/
    background: linear-gradient(120deg, #281e1e 0%, #36210c 100%);
    color: white;
    padding: 18px 20px;
    font-weight: 600;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.month-stats {
    font-size: 14px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
}

.calendar {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    padding: 15px;
    margin-bottom: 15px;
}

.calendar th {
    color: #718096;
    font-size: 13px;
    padding: 12px 0 8px;
    font-weight: 500;
    text-align: center;
}

.calendar td {
    height: 36px;
    text-align: center;
    font-size: 14px;
    padding: 0;
    position: relative;
}

.calendar .day {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin: 0 auto;
    transition: all 0.2s;
    font-weight: 500;
}

.calendar .day.record {
    background-color: rgba(16, 185, 129, 0.15);
    color: #5a9216;
}

.calendar .day.best-record {
    background: linear-gradient(135deg, #FFB74D, #FF9800);
    color: white;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(255, 152, 0, 0.25);
}

.calendar .today {
    border: 2px solid #5c7cfa;
    box-sizing: border-box;
}

.calendar .day.empty {
    background: transparent;
}

/* 图例 */
.legend-container {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
}

.legend-color {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 12px;
}

.legend-record {
    background-color: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(139, 195, 74, 0.5);
}

.legend-best-record {
    background: linear-gradient(135deg, #FFB74D, #FF9800);
}

.legend-today {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #5c7cfa;
    box-sizing: border-box;
    margin-right: 12px;
}

.legend-text {
    font-size: 15px;
    color: #4a5568;
    font-weight: 500;
}

.reward-level {
    display: grid;
    justify-content: center;
    align-items: center;
}

.reward-level img {
    border-radius: 15px;
}

.img-gray {
    filter: grayscale(100%);
}

/* 响应式调整 */
@media (max-width: 992px) {
    .stat-card {
        min-width: calc(50% - 20px);
    }

    .months-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .stat-card {
        min-width: 100%;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .stat-value {
        font-size: 1.4em;
    }

    .months-grid {
        grid-template-columns: 1fr;
    }
}