.city-selector {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f5f5f5;

  // 搜索栏
  .search-bar {
    background-color: #fff;
    padding: 20rpx 30rpx;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);

    .search-input-wrapper {
      display: flex;
      align-items: center;
      .search-icon {
        width: 32rpx;
        height: 32rpx;
        margin-right: 16rpx;
      }

      .search-input {
        flex: 1;
        font-size: 28rpx;
        color: #333;
        height: 100%;
      }

      .search-placeholder {
        color: #999;
      }

      .clear-icon {
        width: 32rpx;
        height: 32rpx;
        margin-left: 16rpx;
      }
    }
  }

  // 搜索结果
  .search-results {
    flex: 1;
    overflow: hidden;
    background-color: #fff;

    .results-scroll {
      height: 100%;
    }
  }

  // 空状态
  .empty-result {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60rpx 0;

    .empty-icon {
      width: 200rpx;
      height: 200rpx;
      margin-bottom: 30rpx;
      opacity: 0.5;
    }

    .empty-text {
      font-size: 28rpx;
      color: #999;
    }
  }

  // 城市列表容器
  .city-list-container {
    flex: 1;
    display: flex;
    position: relative;
    overflow: hidden;

    .city-scroll {
      flex: 1;
      height: 100%;
    }

    // 右侧字母索引
    .index-bar {
      position: absolute;
      right: 10rpx;
      top: 50%;
      transform: translateY(-50%);
      display: flex;
      flex-direction: column;
      align-items: center;
      background-color: rgba(255, 255, 255, 0.9);
      border-radius: 40rpx;
      padding: 20rpx 10rpx;
      box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);

      .index-item {
        font-size: 22rpx;
        color: #666;
        padding: 6rpx 10rpx;
        font-weight: 500;
      }
    }
  }

  // 城市分组
  .city-section {
    background-color: #fff;
    margin-bottom: 20rpx;

    .section-title {
      padding: 20rpx 30rpx;
      font-size: 26rpx;
      color: #999;
      background-color: #f5f5f5;
      font-weight: 500;
    }
  }

  // 当前定位城市
  .current-city {
    display: flex;
    align-items: center;
    padding: 30rpx;

    .location-icon {
      width: 32rpx;
      height: 32rpx;
      margin-right: 16rpx;
    }

    .city-name {
      color: #0082FA;
      padding-left:5rpx;
    }
  }

  // 热门城市网格
  .hot-cities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20rpx;
    padding: 20rpx 30rpx 30rpx;

    .hot-city-item {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 72rpx;
      background-color: #f5f5f5;
      border-radius: 12rpx;
      font-size: 28rpx;
      color: #333;
      text-align: center;
      padding: 0 10rpx;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;

      &:active {
        background-color: #e8e8e8;
      }
    }
  }

  // 城市列表项
  .city-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30rpx;
    border-bottom: 1rpx solid #f0f0f0;
    transition: background-color 0.2s;

    &:last-child {
      border-bottom: none;
    }

    &:active {
      background-color: #f8f8f8;
    }

    .city-name {
      font-size: 30rpx;
      color: #333;
      flex: 1;
    }

    .city-pinyin {
      font-size: 24rpx;
      color: #999;
      margin-left: 20rpx;
    }
  }
}
