/* ===================== 城市详情弹窗遮罩 ===================== */
.city-popup-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
}

/* ===================== 城市详情弹窗核心样式 ===================== */
.city-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 500px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    display: none;
}

/* 弹窗显示动画 */
.city-popup.show {
    display: block;
    animation: slideUp 0.3s ease-out forwards;
}

/* 弹窗头部（标题+关闭按钮） */
.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    background: #1890ff;
    color: black;
    border-radius: 8px 8px 0 0;
}

.popup-title {
    font-size: 18px;
    font-weight: bold;
}

.close-btn {
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.1s;
}

.close-btn:hover {
    transform: scale(1.2);
}

/* 弹窗主体内容区 */
.popup-body {
    padding: 10px;
}

/* ===================== 弹窗内部：站点基础信息 ===================== */
.site-info {
    margin-bottom: 0px;
    padding-bottom: 0px;
    border-bottom: 0cm solid #eee;
}

.site-name-wrap {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.site-name {
    font-size: 22px;
    font-weight: bold;
}

.site-time {
    margin-top: 20px;
    color: #666;
    font-size: 13px;
}

/* ===================== 弹窗内部：AQI+综合指数行 ===================== */
.aqi-index-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.levelindex-card, .aqi-card, .primary-pollutant-card {
    flex: 1;
    text-align: center;
    padding: 5px 0;
    border-radius: 8px;
    color: white;
    background: linear-gradient(135deg, #36d1dc, #5b86e5);
}

.card-label {
    font-size: 15px;
    margin-bottom: 5px;
}

.card-value {
    font-size: 22px;
    font-weight: bold;
}

/* ===================== 弹窗内部：污染物指标行 ===================== */
.pollutant-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.pollutant-card {
    flex: 1;
    min-width: 15%;
    text-align: center;
    padding: 5px 0;
    border-radius: 0px;
    background: #f0f9ff;
    border: 1px solid #e6f7ff;
}

.pollutant-card .card-label {
    color: #666;
    font-size: 13px;
}

.pollutant-card .card-value {
    color: #1890ff;
    font-size: 18px;
}

/* ===================== 弹窗内部：天气信息行 ===================== */
.weather-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 5px 0;
    background: #f9f9f9;
    padding: 5px 15px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.weather-item {
    flex: 0 0 33.33%;
    display: flex;
    align-items: center;
    padding: 0px 0;
}

.item-label {
    color: #666;
    margin-right: 5px;
    white-space: nowrap;
}

.item-value {
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

/* ===================== 弹窗内部：趋势图表按钮组 ===================== */
.indicator-switch {
    display: flex;
    justify-content: center;
    width: 100% !important;
    box-sizing: border-box;
    margin: 0 auto 0px;
    gap: 3px;
    flex-wrap: wrap;
}

.switch-btn {
    padding: 0px 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
}

.switch-btn.active {
    background: #5b86e5;
    color: white;
    border-color: #5b86e5;
}

.switch-btn:hover {
    background: #f5f5f5;
}

.switch-btn.active:hover {
    background: #4a76d4;
}