/**
 * 导航栏极简双城天气样式（2026-09-06，v20260906_v1）
 * 替代原全站 weather-banner 横幅，嵌入 navbar 右侧。
 */

.weather-nav-item {
    margin-right: 0.35rem;
    pointer-events: none; /* 选项1：纯展示，不可点击 */
    user-select: none;
}

.weather-nav-mobile-slot {
    pointer-events: none;
    user-select: none;
    flex-shrink: 1;
    min-width: 0;
}

.weather-nav-inline {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.78rem;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.95);
    white-space: nowrap;
    max-width: min(42vw, 320px);
}

.weather-nav-block {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
}

.weather-nav-icon {
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.weather-nav-city {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 5.5rem;
}

.weather-nav-temp {
    font-weight: 700;
    flex-shrink: 0;
}

.weather-nav-divider {
    opacity: 0.45;
    font-weight: 300;
    flex-shrink: 0;
}

/* 移动端：只保留图标+温度，隐藏城市名 */
@media (max-width: 991.98px) {
    .weather-nav-inline {
        gap: 0.35rem;
        padding: 0.1rem 0.4rem;
        font-size: 0.72rem;
        max-width: 38vw;
    }

    .weather-nav-city {
        display: none;
    }

    .weather-nav-icon {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 575.98px) {
    .weather-nav-inline {
        max-width: 34vw;
    }

    .weather-nav-icon {
        display: none;
    }
}

/* 科幻模式 */
html.mode-scifi .weather-nav-inline {
    background: rgba(100, 200, 255, 0.08);
    border-color: rgba(100, 200, 255, 0.25);
    color: rgba(180, 220, 255, 0.95);
}

html.mode-scifi .weather-nav-temp {
    color: rgba(100, 200, 255, 1);
}

/* 暗色模式 */
html.mode-dark .weather-nav-inline {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
}

html.mode-dark .weather-nav-temp {
    color: #64b5f6;
}

/* 加载失败/无数据时略微淡化 */
.weather-nav-inline.weather-nav-inline--error {
    opacity: 0.65;
}
