/* 首页天气信息 */
.weather-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-family: MiSans-Regular;
}

.weather-city {
    font-size: 1.0rem;
    font-weight: bold;
}

.weather-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.weather-type {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.weather-temp {
    font-size: 1.1rem;
}

.weather-wind {
    font-size: 0.9rem;
    opacity: 0.8;
}

.weather-aqi {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 预警列表样式 */
.alert-list {
    margin: 6rem;
}

/* 预警卡片特定样式 */
.alert-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.3s ease;
    display: flex;
    /* 新增flex布局 */
    gap: 1.5rem;
}

.alert-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.2);
}

/* 图标容器 */
.alert-icon-container {
    flex: 0 0 80px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.alert-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* 内容容器 */
.alert-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* 标题区域 */
.alert-header {
    margin-bottom: 0.5rem;
}

.alert-title {
    font-size: 1.4rem;
    font-weight: bold;
    font-family: MiSans-Demiblod;
    color: var(--text-color);
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}

.alert-time {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.9rem;
    font-family: MiSans-Regular;
}

.alert-area {
    font-size: 0.9em;
    opacity: 0.85;
    margin-top: 0.3rem;
    color: var(--primary-color);
    /* 使用主题色突出显示 */
}

/* 详细信息 */
.alert-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.alert-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 8px;
    font-family: MiSans-Regular;
    color: var(--text-color);
    line-height: 1.6;
}

/* 卡片链接样式 */
.alert-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.alert-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .alert-card {
        flex-direction: column;
        gap: 1rem;
    }

    .alert-icon-container {
        justify-content: flex-start;
    }

    .alert-title {
        font-size: 1.2rem;
    }

    .alert-details {
        grid-template-columns: 1fr;
    }
}

.weather-night {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9em;
}

.weather-type-night {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.weather-wind-night {
    font-size: 0.9rem;
    opacity: 0.8;
    color: #ffffff;
}