/* ============================================================
   城市选择器 - 共用样式
   ============================================================ */

.city-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.city-panel {
    width: 100%;
    max-width: 480px;
    height: 75vh;
    background: linear-gradient(180deg, #2A0838 0%, #1A0828 100%);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    border: 1px solid rgba(255, 143, 177, 0.3);
    border-bottom: none;
    color: #F0E0F0;
    display: flex;
    flex-direction: column;
    animation: picker-slide-up 0.25s ease;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -8px 32px rgba(255, 80, 143, 0.3);
}

.city-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 143, 177, 0.2);
}
.city-title {
    font-size: 16px;
    font-weight: 600;
    color: #FFB8D0;
}
.city-cancel {
    color: #B0A0C0;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.city-search {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 143, 177, 0.15);
}
.city-search input {
    width: 100%;
    height: 36px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 143, 177, 0.2);
    color: #F0E0F0;
    padding: 0 14px 0 36px;
    font-size: 14px;
    outline: none;
}
.city-search input::placeholder { color: #9070B0; }
.city-search input:focus {
    border-color: #FF8FB1;
    background: rgba(255, 255, 255, 0.1);
}
.city-search-wrap {
    position: relative;
}
.city-search-wrap::before {
    content: "🔍";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.6;
}

/* 选中的面包屑 */
.city-breadcrumb {
    padding: 10px 16px;
    display: flex;
    gap: 6px;
    font-size: 13px;
    color: #B0A0C0;
    overflow-x: auto;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 143, 177, 0.1);
    min-height: 40px;
    align-items: center;
}
.city-breadcrumb .crumb {
    color: #B0A0C0;
    cursor: pointer;
    padding: 4px 0;
}
.city-breadcrumb .crumb.active {
    color: #FFB8D0;
    font-weight: 600;
}
.city-breadcrumb .crumb-sep {
    color: rgba(255, 143, 177, 0.4);
}

/* 列表区 */
.city-body {
    flex: 1;
    overflow-y: auto;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

.city-section {
    padding: 8px 0;
}
.city-section-title {
    padding: 8px 16px 6px;
    font-size: 12px;
    color: #9070B0;
    background: rgba(255, 143, 177, 0.05);
    font-weight: 600;
}
.city-list-item {
    padding: 12px 16px;
    font-size: 15px;
    color: #F0E0F0;
    border-bottom: 1px solid rgba(255, 143, 177, 0.08);
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.city-list-item:active {
    background: rgba(255, 143, 177, 0.15);
}
.city-list-item .arrow {
    color: #9070B0;
    font-size: 14px;
}
.city-list-item .check {
    color: #FF8FB1;
    font-weight: 700;
}

/* 右侧字母索引 */
.city-index-bar {
    position: absolute;
    right: 4px;
    top: 0;
    bottom: 0;
    width: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 4px 0;
    pointer-events: none;
}
.city-index-letter {
    flex: 1;
    font-size: 10px;
    color: #FF8FB1;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    pointer-events: auto;
    cursor: pointer;
    border-radius: 50%;
}
.city-index-letter:active {
    background: rgba(255, 143, 177, 0.3);
}

.city-hot {
    padding: 8px 16px 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.city-hot-item {
    padding: 6px 12px;
    font-size: 13px;
    color: #FF8FB1;            /* 更亮更饱和的粉色 */
    background: rgba(255, 143, 177, 0.15);
    border: 1px solid rgba(255, 143, 177, 0.4);
    border-radius: 14px;
    cursor: pointer;
    font-weight: 500;
}
.city-hot-item:active {
    background: rgba(255, 143, 177, 0.35);
    color: #FFB8D0;
}
