/* ============ 二十四节气 - 卡片容器 ============ */
.jieqi-card {
    margin-bottom: 15px;
}

.stats-badge {
    background: #f0fdf4;
    color: #059669;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* ============ 节气网格 ============ */
.jieqi-grid {
    display: flex;
    flex-direction: column;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.grid-row {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
}

.grid-row:last-child {
    border-bottom: none;
}

.grid-cell {
    flex: 1;
    padding: 16px 12px;
    text-align: center;
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.grid-cell:last-child {
    border-right: none;
}

.grid-cell:hover {
    background: #f3e8ff;
}

/* 季节表头 */
.grid-cell.header-cell {
    font-weight: 600;
    font-size: 18px;
    padding: 16px 12px;
    flex: 0 0 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spring-header {
    background: #f0fdf4;
    color: #059669;
}

.summer-header {
    background: #fefce8;
    color: #d97706;
}

.autumn-header {
    background: #fef3c7;
    color: #b45309;
}

.winter-header {
    background: #f0f9ff;
    color: #0369a1;
}

/* 节气状态 */
.grid-cell.current-jieqi {
    background: #fef3c7;
    border: 2px solid #f59e0b;
    margin: -2px;
    position: relative;
    z-index: 1;
}

.grid-cell.next-jieqi {
    background: #f0fdf4;
    border: 2px solid #10b981;
    margin: -2px;
    position: relative;
    z-index: 1;
}

.grid-cell.past-jieqi {
    opacity: 0.5;
}

/* 节气内容 */
.jieqi-icon {
    font-size: 32px;
    margin-bottom: 6px;
}

.jieqi-name {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
}

.jieqi-date {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 6px;
}

.jieqi-status {
    font-size: 14px;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
}

.jieqi-status.current {
    background: #fef3c7;
    color: #d97706;
}

.jieqi-countdown {
    font-size: 16px;
    color: #ef4444;
    font-weight: 600;
}

/* ============ 响应式 ============ */
@media (max-width: 768px) {
    .grid-row {
        flex-direction: column;
    }

    .grid-cell.header-cell {
        flex: auto;
        padding: 12px;
        font-size: 16px;
    }

    .grid-cell {
        padding: 12px 8px;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .grid-cell:last-child {
        border-bottom: none;
    }

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

    .jieqi-name {
        font-size: 15px;
    }

    .grid-cell.current-jieqi,
    .grid-cell.next-jieqi {
        margin: 0;
        border-width: 1px;
    }
}
