/**
 * 城市选择下拉浮层（PC header）
 * 2026-11-14：从 partials/city-selector.php 的内联 <style> 外置，走静态构建与版本号。
 * 结构契约见 partials/city-selector.php 头部注释（id/函数名不得改）。
 */

/* 城市选择下拉浮层：fixed 定位在视口顶部（顶栏 46px 下方），水平居中，白底卡片，限高滚动 */
.city-selector__panel {
    position: fixed;
    top: 46px;
    left: 50%;
    transform: translateX(-50%);
    width: 780px;
    max-height: 420px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .14);
    z-index: 1001;
    padding: 16px 20px;
    box-sizing: border-box;
    text-align: left;
}
.city-selector__header {
    display: none;
    height: 35px;
    line-height: 35px;
    background-color: #f2f2f2;
    border-bottom: #eee solid 1px;
    text-align: center;
    font-size: 16px;
}
.city-selector__row {
    overflow: hidden;
    width: 100%;
    margin: 0 0 8px 0;
    text-align: left;
}
.city-selector__row li {
    float: left;
    font-size: 14px;
    line-height: 30px;
}
.city-selector__province {
    width: 70px;
    font-weight: 700;
    color: #333;
}
.city-selector__province a { color: #333; }
.city-selector__cities {
    width: 660px;
}
.city-selector__cities a {
    float: left;
    margin-right: 14px;
    color: #666;
}
.city-selector__cities a:hover { color: #1450d2; }
.city-selector__row li a:hover { color: #1450d2; }

/* 当前所选城市/省份高亮 */
.city-selector__row a.is-active {
    color: #1450d2;
    font-weight: 700;
}

/* 加载中占位（首点未命中缓存时） */
.city-selector__loading {
    color: #999;
    font-size: 13px;
    padding: 8px 0;
}

/* 面板显隐（2026-11-14）：默认隐藏，JS 切 .is-open。
   原实现用内联 style="display:none" + style.display 读写，与样式单源冲突。 */
.city-selector__panel { display: none; }
.city-selector__panel.is-open { display: block; }

