@import '@/styles/variables.less';

.search-city {
  background: #FFF;

  &__position-title {
    font-size: 24px;
    color: @blColorG1;
    padding: 0 24px;
    margin-top: 18px;
  }

  &__position-city {
    font-size: 30px;
    font-weight: bold;
    color: @blColor;
    padding: 0 24px;
    margin-top: 18px;
  }

  &__hot-city-title {
    height: 48px;
    font-size: 24px;
    line-height: 48px;
    padding: 0 24px;
    color: #999;
    background: #f2f5f7;
    margin-top: 18px;
  }

  &__hot-city-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: space-between;
    width: 630px;
    padding: 12px 90px 26px 30px;
    background: #FFFFFF;
  }

  &__hot-city-item {
    width: 140px;
    height: 58px;
    font-size: 28px;
    line-height: 58px;
    text-align: center;
    border-radius: 58px;
    border: 2px solid @blColorG1;
    margin-top: 18px;
  }

  &__indexes-list {
    width: 100%;
    /* 兼容 iOS < 11.2 */
    padding-bottom: constant(safe-area-inset-bottom);
    /* 兼容 iOS >= 11.2 */
    padding-bottom: env(safe-area-inset-bottom);
  }

  &__indexes-fragment {}

  &__indexes-anchor {
    height: 48px;
    font-size: 24px;
    line-height: 48px;
    padding: 0 24px;
    color: @blColorG1;
    background: #f2f5f7;
  }

  &__indexes-cell {
    position: relative;
    font-size: 28px;
    padding: 30px 24px;
    color: @blColor;

    &::after {
      content: '';
      position: absolute;
      border-bottom: 1rpx solid #eaeef1;
      transform: scaleY(0.5);
      bottom: 0;
      right: 0;
      left: 24px;
    }
  }

  &__indexes-bar {
    width: 44rpx;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: fixed;
    right: 10px;
  }

  &__indexes-bar-item {
    font-size: 22px;
    color: @blColor;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  &__indexes-index-alert {
    position: absolute;
    z-index: 20;
    width: 160px;
    height: 160px;
    left: 50%;
    top: 50%;
    margin-left: -80px;
    margin-top: -80px;
    border-radius: 80px;
    text-align: center;
    line-height: 160px;
    font-size: 70px;
    color: #FFFFFF;
    background-color: rgba(0, 0, 0, 0.5);
  }
}