* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f5f5;
}

.page-content {
    background-color: #f5f5f5;
}

.search-box {
    padding: 10px 15px;
    background: white;
    margin-top: 10px;
}

.search-box input {
    width: 100%;
    height: 40px;
    background: #f8f8f8;
    border: none;
    border-radius: 20px;
    padding: 0 15px;
    font-size: 14px;
    outline: none;
}

.section {
    background: white;
    padding: 0 15px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 14px;
    color: #999;
    padding: 15px 0 10px;
    border-bottom: 1px solid #eee;
}

.city-list {
    display: flex;
    flex-wrap: wrap;
    padding: 10px 0;
}

.city-item {
    width: calc(25% - 8px);
    /* 4列，减去间距(右margin8px*3/4≈6，微调) */
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: #f8f8f8;
    border-radius: 4px;
    margin: 0 8px 8px 0;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: 0.2s;
}

.city-item:nth-child(4n) {
    margin-right: 0;
}

.city-item.active {
    background: #FF6B35;
    color: white;
}

.city-item-hot {
    width: calc(25% - 8px);
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: #f8f8f8;
    border-radius: 4px;
    margin: 0 8px 8px 0;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.city-item-hot:nth-child(4n) {
    margin-right: 0;
}

.city-scroll {
    margin-top: 10px;
    background: white;
    height: 460px;
    /* 可根据需要改为 calc(100vh - 280px) */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.city-group {
    padding: 0 15px;
}

.group-title {
    background: white;
    padding: 10px 15px;
    font-weight: bold;
    color: #999;
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 2;
    border-bottom: 1px solid #f0f0f0;
}

.letter-nav {
    position: fixed;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 5px 0;
    z-index: 10;
}

.letter-item {
    color: white;
    font-size: 11px;
    text-align: center;
    padding: 3px 6px;
    cursor: pointer;
}

.no-city-tip {
    text-align: center;
    color: #999;
    padding: 20px 0;
    font-size: 14px;
}

.location-icon {
    margin-left: 4px;
}

/* 分割线 */
.divider-1 {
    height: 10px;
    background: #f5f5f5;
}