/* 城市页 · 未来 7 天天气预报 */
.city-page-wrapper .forecast-section {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .04);
    margin-bottom: 0;
    overflow: hidden;
}

.city-page-wrapper .forecast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
}

.city-page-wrapper .forecast-header h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: #1e293b;
}

.city-page-wrapper .forecast-time {
    font-size: 11.5px;
    color: #94a3b8;
}

.city-page-wrapper .forecast-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.city-page-wrapper .fc-icon {
    width: 22px;
    height: 22px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.city-page-wrapper .fc-icon-sun,
.city-page-wrapper .fc-icon-partly,
.city-page-wrapper .fc-icon-thunder {
    color: #f59e0b;
}

.city-page-wrapper .fc-icon-cloud {
    color: #94a3b8;
}

.city-page-wrapper .fc-icon-rain {
    color: #3b82f6;
}

.city-page-wrapper .fc-icon-heavy-rain {
    color: #2563eb;
}

.city-page-wrapper .fc-icon-snow {
    color: #60a5fa;
}

.city-page-wrapper .fc-icon-fog {
    color: #94a3b8;
}

.city-page-wrapper .fc-icon-wind {
    color: #14b8a6;
}

.city-page-wrapper .fc-icon-na {
    color: #cbd5e1;
}

/* 7 天卡片：静态展示，不再切换 */
.city-page-wrapper .forecast-days {
    display: grid;
    grid-template-columns: repeat(var(--fc-count, 7), minmax(0, 1fr));
    gap: 8px;
    padding: 10px 12px;
}

.city-page-wrapper .forecast-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.city-page-wrapper .fc-card-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px;
    min-width: 0;
}

.city-page-wrapper .fc-day {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    color: #475569;
    white-space: nowrap;
}

.city-page-wrapper .fc-date {
    font-family: "SF Mono", Monaco, Consolas, monospace;
    font-size: 10.5px;
    color: #94a3b8;
    white-space: nowrap;
}

.city-page-wrapper .fc-period {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.city-page-wrapper .fc-period .fc-icon {
    width: 18px;
    height: 18px;
}

.city-page-wrapper .fc-period-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font-size: 11.5px;
    color: #475569;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.city-page-wrapper .fc-high {
    font-size: 12.5px;
    font-weight: 700;
    color: #dc2626;
    white-space: nowrap;
}

.city-page-wrapper .fc-low {
    font-size: 12px;
    color: #2563eb;
    white-space: nowrap;
}

/* 7 天逐 3 小时气温折线图 */
.city-page-wrapper .fc-hours {
    margin-top: 2px;
    padding: 8px 12px 12px;
    border-top: 1px solid #f1f5f9;
}

.city-page-wrapper .fc-hours-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 11px;
    color: #94a3b8;
}

.city-page-wrapper .fc-hours-meta {
    color: #b6c0cc;
}

.city-page-wrapper .fc-hour-chart {
    width: 100%;
    height: 176px;
}

@media (max-width: 900px) {
    .city-page-wrapper .forecast-days {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 10px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .city-page-wrapper .forecast-card {
        flex: 0 0 108px;
        scroll-snap-align: start;
    }
}

@media (max-width: 560px) {
    .city-page-wrapper .forecast-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .city-page-wrapper .fc-hour-chart {
        height: 168px;
    }
}