#main-content {
  display: grid;
  gap: 20px;
  padding: 20px 0;
}

img {
  display: block;
}

.block-content {
  background: white;
  border: 1px solid #eee;

  .job-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 0 15px 15px;
  }

  .job-item {
    background: white;
    padding: 15px;
    border: 1px solid #eaeeed;
    display: grid;
    gap: 15px;

    &:hover {
      box-shadow: 0px 5px 10px 0px rgba(111, 116, 132, 0.1);
      border-color: #f60;
    }

    a:hover {
      text-decoration: underline;
    }

    .publisher {
      display: grid;
      gap: 5px;

      .job-industry {
        color: #999;

        &:empty {
          display: none;
        }
      }
    }
  }

  .item-bottom {
    display: flex;
    align-items: center;
  }

  .avatar {
    object-fit: cover;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 10px;
    flex-shrink: 0;
  }

  .item-info {
    display: flex;
    justify-content: space-between;
    align-items: center;

    .job-name {
      display: block;
      font-size: 16px;
      color: var(--primary-color);
      max-width: 250px;
    }

    .item-salary {
      color: #fd7240;
      font-weight: bold;
      margin-left: 10px;
      white-space: nowrap;
    }
  }

  .item-tags {
    align-items: center;
    color: #8d92a1;
    height: 40px;

    span {
      font-size: 14px;
      line-height: 40px;

      &:not(:last-child):after {
        content: '|';
        margin: 0 5px;
        color: #e0e0e0;
      }

      &:empty {
        display: none;
      }
    }
  }

  .company-items {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
  }

  .block-title {
    height: 50px;
    display: grid;
    align-items: center;
    gap: 10px;
    grid-template-columns: repeat(2, auto) 1fr;
    white-space: nowrap;

    &::before {
      content: '';
      display: block;
      width: 4px;
      height: 18px;
      background: var(--theme-color);
    }

    .a-title {
      font-size: 18px;
      font-weight: bold;
    }

    .en-title {
      color: #FC9B00;
      display: none;
    }

    .right-links {
      justify-self: end;
      margin-right: 20px;
    }

    .article-nav {
      display: none;

      &::after {
        content: '｜';
        color: #666;
      }

      &:hover {
        color: var(--theme-color);
      }

      &:last-child {
        &::after {
          content: '';
        }
      }
    }

    ._link {
      margin-left: 20px;
    }
  }
}

.friendly-link {
  padding: 20px;

  a {
    margin-right: 20px;
  }
}

.floor1-left {
  background: white;
}

.floor1 {
  display: grid;
  border-radius: 5px;
  box-shadow: 0px 4px 10px 0px rgba(200, 200, 200, 0.1);
  grid-template-columns: 280px auto 320px;
  gap: 14px;
  box-sizing: border-box;
}

.floor1-center {
  display: grid;
  gap: 14px;
  height: 315px;

  .banner {
    height: 265px;
    border-radius: 5px;
    overflow: hidden;
  }
}


.carousel {
  height: 36px;
  border: 1px solid #eee;
  overflow: hidden;
  padding: 0 10px;
  display: flex;
  white-space: nowrap;
  align-items: center;
  background: white;

  &::before {
    content: '📣';
    line-height: 34px;
  }

  .carousel-title {
    font-weight: bold;
    margin-left: 10px;
  }

  .marquee {
    padding: 0 10px;
  }

  .marquee-item {
    line-height: 36px;
    color: #666;
    max-width: 320px;

    &:hover {
      color: #c30;
      text-decoration: underline;
    }

    &+.no-items {
      display: none;
    }
  }
}

.floor1-right {
  border: 1px solid #eaeeed;
  background: white;
  padding: 0 15px;
}

@keyframes scroll {
  0% {
    transform: translateY(0);
  }

  3% {
    transform: translateY(calc(-1 * var(--item-scroll)));
  }

  33.3% {
    transform: translateY(calc(-1 * var(--item-scroll)));
  }

  36.3% {
    transform: translateY(calc(-2 * var(--item-scroll)));
  }

  66.6% {
    transform: translateY(calc(-2 * var(--item-scroll)));
  }

  69.6% {
    transform: translateY(calc(-3 * var(--item-scroll)));
  }

  100% {
    transform: translateY(calc(-3 * var(--item-scroll)));
  }
}

#urgent {
  .urgent-title {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 35px;
    background: url(../images/hotn.png) no-repeat 0 center;
  }

  .title-text {
    font-size: 16px;
    font-weight: bold;
  }

  .urgent-swiper {
    height: 240px;
    overflow: hidden;
    margin: 0 -15px;
  }

  .urgent-items {
    --item-scroll: 83px;

    border-left: 1px solid #eee;
    margin-left: 15px;
    padding-left: 15px;
    display: grid;
    gap: 13px;
    animation: scroll 16s linear infinite 5s;
  }

  .urgent-item {
    display: grid;
    gap: 8px;
  }

  .job-name {
    display: flex;
    align-items: center;
    position: relative;

    &::before {
      position: absolute;
      content: '';
      display: block;
      width: 7px;
      height: 7px;
      border-radius: 50%;
      border: 1px solid #d48e00;
      background: white;
      left: -19px;
    }

    span {
      display: block;
      max-width: 220px;
    }

    img {
      margin-left: 5px;
    }
  }

  .urgent-info {
    font-size: 0;
    color: #666;

    span {
      font-size: 12px;

      &:nth-child(3) {
        &::before {
          content: '|';
          margin: 0 8px;
          color: #e4e4e4;
        }
      }
    }
  }

  .salary-info {
    color: #e43b2e;
    margin-right: 8px;
  }

  .recruiter {
    font-size: 12px;
    color: #999;
  }

  a:hover {
    color: #666;
    text-decoration: underline;
  }
}


.company-job {
  height: 166px;
  border: 1px solid #eee;
  border-width: 1px 1px 0 0;

  &:nth-child(6n) {
    border-right: 0;
  }

  &:nth-child(-n+6) {
    border-top: none;
  }

  .company-hover {
    background: white;
  }

  .company-box {
    display: grid;
    place-items: center;
    position: relative;
    height: 164px;

    img {
      object-fit: contain;
    }
  }

  .item-modal {
    width: 100%;
    padding: 10px;
    display: none;

    .index_mq_box_cont_showjoblist {
      line-height: 23px;
      margin-bottom: 5px;
      font-size: 13px;
    }

    .index_mq_box_cont_showjobmore {
      color: var(--theme-color);
    }

    a:hover {
      color: var(--link-color);
      text-decoration: underline;
    }
  }

  .company-name {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 95%;
  }

  &:hover {
    z-index: 2;

    .item-modal {
      display: block;
    }

    .company-name {
      font-weight: bold;
    }

    .company-hover {
      outline: 2px solid #3b8ee3;
    }
  }
}

.news-content {
  background: white;
  display: flex;
  justify-content: space-between;
  padding: 0 15px 15px;


  a:hover {
    color: var(--primary-color);
  }

  .hot-news {
    width: 280px;
    flex: 0 0 280px;
    display: grid;
    grid-template-rows: auto 1fr;

    .hot-news-list {
      display: grid;
      align-items: center;
      counter-reset: num;
      border: 1px solid #eee;
      border-top: none;
      padding: 10px;
    }

    a {
      &::before {
        counter-increment: num;
        content: counter(num);
        display: inline-grid;
        place-content: center;
        width: 20px;
        height: 20px;
        font-size: 12px;
        background: #d8ecff;
        color: #3396f6;
        border-radius: 2px;
        margin-right: 10px;
      }

      &:nth-child(-n+3) {
        &::before {
          color: white;
          background: #f60;
        }
      }

      &:nth-child(2) {
        &::before {
          background: #ff8b3e;
        }
      }

      &:nth-child(3) {
        &::before {
          background: #f4ab2b;
        }
      }
    }
  }

  .hot-news-head {
    display: grid;
    background: var(--primary-color);
    color: white;
    place-content: center;
    place-items: center;
    height: 125px;
    gap: 10px;
    position: relative;

    &::after {
      content: '';
      width: 26px;
      height: 26px;
      background: white;
      transform: rotate(45deg);
      position: absolute;
      bottom: -13px;
    }
  }

  .hot-news-title {
    font-size: 16px;
    font-weight: bold;
  }
}

.news-box {
  display: flex;
  flex-wrap: wrap;

  .top-news {
    width: 50%;
    padding-right: 20px;
    text-align: center;
  }

  .news-img {
    background: #eee;
    width: 100%;
  }

  .news-name {
    color: #666;
    background: #ebeaea;
    font-size: 16px;
    line-height: 33px;

    span {
      display: block;
      max-width: 400px;
      margin: 0 auto;
    }
  }

}

.job-news {
  margin-top: 20px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;

  li {
    width: 50%;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  a {
    color: #666;
    display: flex;
    align-items: center;

    &::before {
      content: '';
      display: inline-block;
      width: 3px;
      height: 3px;
      border-radius: 50%;
      background: #bcbcbc;
      margin-right: 15px;
    }
  }

  span {
    font-size: 12px;
    margin-right: 20px;
    color: #bcbcbc;
  }
}

#login {
  padding-bottom: 25px;
  height: 315px;
}

.login-hello-head {
  margin: 20px;
}