/* 天气预报页面样式 */

.weather-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 天气概览 */
.weather-overview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 16px;
}

.weather-current {
    display: flex;
    align-items: center;
    gap: 30px;
}

.weather-icon {
    font-size: 80px;
    opacity: 0.9;
}

.weather-temp .temp-main {
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
}

.weather-temp .temp-range {
    font-size: 18px;
    opacity: 0.8;
    margin-top: 5px;
}

.weather-info {
    flex: 1;
}

.weather-desc {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 10px;
}

.weather-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
    opacity: 0.9;
}

.weather-warning {
    margin-top: 20px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 14px;
}

/* 未来天气预报 */
.forecast-list {
    padding: 10px 0;
}

.forecast-item {
    display: grid;
    grid-template-columns: 100px 1fr 120px 100px 100px;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    gap: 15px;
}

.forecast-item:last-child {
    border-bottom: none;
}

.forecast-date .day-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.forecast-date .day-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.forecast-weather {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.forecast-weather i {
    font-size: 24px;
    color: var(--primary-color);
}

.forecast-temp {
    font-size: 18px;
    font-weight: 600;
}

.forecast-temp .temp-max {
    color: #e74c3c;
}

.forecast-temp .temp-min {
    color: #3498db;
}

.forecast-temp .temp-separator {
    color: var(--text-tertiary);
    margin: 0 5px;
}

.forecast-wind,
.forecast-rain {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 农事建议 */
.advice-list {
    padding: 10px 0;
}

.advice-item {
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid;
}

.advice-item.priority-high {
    background: #fee;
    border-color: #e74c3c;
}

.advice-item.priority-medium {
    background: #fef6e6;
    border-color: #f39c12;
}

.advice-item.priority-low {
    background: #e8f5e9;
    border-color: #27ae60;
}

.advice-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.advice-icon {
    font-size: 32px;
}

.advice-item.priority-high .advice-icon {
    color: #e74c3c;
}

.advice-item.priority-medium .advice-icon {
    color: #f39c12;
}

.advice-item.priority-low .advice-icon {
    color: #27ae60;
}

.advice-title {
    flex: 1;
}

.advice-title h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.advice-priority {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.1);
}

.advice-content p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.advice-actions {
    list-style: none;
    padding: 0;
}

.advice-actions li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.advice-actions li:before {
    content: '•';
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* 天气详情 */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 10px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.detail-item i {
    font-size: 32px;
    color: var(--primary-color);
    opacity: 0.8;
}

.detail-content {
    flex: 1;
}

.detail-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.detail-value {
    font-size: 20px;
    font-weight: 600;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 64px;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .weather-current {
        flex-direction: column;
        align-items: flex-start;
    }

    .weather-icon {
        font-size: 60px;
    }

    .weather-temp .temp-main {
        font-size: 48px;
    }

    .forecast-item {
        grid-template-columns: 80px 1fr 90px;
        grid-template-rows: auto auto;
        gap: 10px;
    }

    .forecast-wind,
    .forecast-rain {
        grid-column: 2;
    }

    .details-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .detail-item i {
        font-size: 24px;
    }

    .detail-value {
        font-size: 16px;
    }
}
