/* ===== 城市切换入口 ===== */
.city-trigger {
    display: inline-block;
    cursor: pointer;
    padding: 8px 12px;
    text-decoration: none;
}
.city-trigger .city-name {
    font-weight: 700;
    color: #333;
    display: block;
}
.city-trigger .city-switch {
    font-size: 12px;
    color: #999;
    display: block;
    line-height: 1.3;
}
.city-trigger .city-switch .caret {
    margin-left: 2px;
    border-top-color: #999;
}

/* ===== 弹框样式 ===== */
.city-modal .modal-dialog {
    width: 520px;
    margin-top: 80px;
}
@media (max-width: 600px) {
    .city-modal .modal-dialog {
        width: auto;
        margin: 10px;
    }
}

.city-modal .modal-content {
    position: relative;
}

.city-modal .modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}
.city-modal .modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}
.city-modal .modal-body {
    padding: 15px 35px 15px 20px;
    max-height: 65vh;
    overflow-y: auto;
}
.city-modal .modal-footer {
    display: none;
}

/* 当前城市 */
.city-current {
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 15px;
}
.city-current .label-text {
    font-size: 13px;
    color: #999;
    margin-bottom: 5px;
}
.city-current .current-city {
    font-size: 16px;
    font-weight: 700;
    color: #1a6fb5;
}

/* 热门城市 */
.city-hot {
    margin-bottom: 15px;
}
.city-section-title {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}
.city-hot .city-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.city-hot .city-item {
    padding: 5px 14px;
    background: #f5f7fa;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border: 1px solid transparent;
}
.city-hot .city-item:hover,
.city-hot .city-item.active {
    background: #e8f2fc;
    color: #1a6fb5;
    border-color: #1a6fb5;
}

/* 按字母分组 */
.city-alpha-group {
    margin-bottom: 12px;
}
.city-alpha-label {
    font-size: 14px;
    font-weight: 700;
    color: #1a6fb5;
    margin-bottom: 6px;
    padding-left: 2px;
}
.city-alpha-group .city-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.city-alpha-group .city-item {
    padding: 4px 12px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 3px;
    background: #fff;
}
.city-alpha-group .city-item:hover {
    color: #1a6fb5;
    background: #e8f2fc;
}
.city-alpha-group .city-item.active {
    color: #1a6fb5;
    font-weight: 700;
}

/* 字母索引条（右侧悬浮，相对于modal-content定位） */
.city-alpha-index {
    position: absolute;
    right: 8px;
    top: 55px;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    pointer-events: auto;
}
.city-alpha-index .alpha-item {
    font-size: 11px;
    color: #999;
    padding: 2px 6px;
    cursor: pointer;
    line-height: 1.4;
}
.city-alpha-index .alpha-item:hover,
.city-alpha-index .alpha-item.active {
    color: #1a6fb5;
    font-weight: 700;
}

/* 弹框滚动条美化 */
.city-modal .modal-body::-webkit-scrollbar {
    width: 4px;
}
.city-modal .modal-body::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

/* 自定义城市选择插件容器 */
.city-picker-container {
    display: none;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}
.city-picker-container.show {
    display: block;
}
.city-picker-container .picker-label {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}
