#main-content {
  display: grid;
  gap: 20px;
  padding: 20px 0;
  background: white;
}

img {
  display: block;
}

.block-content {
  background: white;
  border: 1px solid #eae0e0;

  .job-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 20px;

    a:hover {
      text-decoration: underline;
    }
  }

  .recommend-items {
    gap: 15px 0;

    .link-group {
      display: flex;
      flex-wrap: wrap;

      &::before {
        content: '招聘：';
        color: var(--theme-color);
      }
    }

    a {
      margin-right: 10px;
    }

    .link-first {
      order: 2;
      flex: 1 1 100%;
      margin-top: 10px;
    }

  }

  .new-items {
    grid-template-columns: repeat(3, 1fr);

    a {
      margin-right: 10px;
    }
  }

  .company-items {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
  }

  .block-title {
    height: 45px;
    display: grid;
    align-items: center;
    gap: 10px;
    grid-template-columns: repeat(3, auto) 1fr;
    white-space: nowrap;
    border-bottom: 1px solid #eae0e0;
    background: #f4f4f4;

    &::before {
      content: '▸';
      color: #99cc00;
      font-size: 20px;
      margin-left: 10px;
    }

    .a-title {
      font-size: 16px;
      font-weight: bold;
    }

    .en-title {
      color: #FC9B00;
    }

    .right-links {
      justify-self: end;
      margin-right: 20px;
    }

    .article-nav {
      &::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 {
  display: grid;
  border-radius: 5px;
  box-shadow: 0px 4px 10px 0px rgba(200, 200, 200, 0.1);
  grid-template-columns: 260px 655px 1fr;
  gap: 14px;
  box-sizing: border-box;
}

.floor1-center {
  display: grid;
  gap: 14px;
}

.carousel {
  height: 36px;
  border: 1px solid #eae0e0;
  overflow: hidden;
  padding-left: 10px;
  display: flex;

  &::before {
    content: '📣';
    line-height: 34px;
  }

  .marquee {
    padding: 0 10px;
  }

  .marquee-item {
    line-height: 36px;

    &+.no-items {
      display: none;
    }
  }
}

.floor1-right {
  display: grid;
}

.switch-tab {
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  align-content: flex-start;
  background: #f5f5f5;

  >span {
    order: 0;
    width: 87px;
    height: 32px;
    cursor: pointer;
    display: grid;
    place-content: center;
    font-weight: 500;
    border-right: 1px solid #eae0e0;
    border-top: 1px solid #eae0e0;

    &:first-child {
      border-left: 1px solid #eae0e0;
    }
  }

  .active {
    color: var(--theme-color);
    background: white;
    border-top: 2px solid var(--theme-color);
    position: relative;
    bottom: -1px;


    &+.tab-links {
      display: grid;
    }
  }

  .tab-links {
    order: 1;
    border-radius: 4px;
    padding: 6px 12px;
    display: none;
    background: white;
    border: 1px solid #eae0e0;
    align-items: center;
    height: calc(100% - 32px);

    a {
      &:hover {
        color: var(--primary-color);
        text-decoration: underline;
      }
    }

    >a {
      &::before {
        content: '';
      }
    }
  }

  .news-list {
    counter-reset: num;

    a {
      &::before {
        counter-increment: num;
        content: counter(num);
        display: inline-grid;
        place-content: center;
        width: 17px;
        height: 17px;
        font-size: 12px;
        background: #e9e5e5;
        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;
        }
      }
    }
  }
}



.company-job {
  height: 166px;
  border: 1px solid #eae0e0;
  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;
    }
  }
}

.article-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px;


  li {
    list-style: auto inside;
    max-width: 360px;

    a {
      line-height: 35px;
      display: inline;

      &:hover {
        opacity: 0.8;
        text-decoration: underline;
      }
    }
  }
}

#login {
  padding-bottom: 25px;
  height: 305px;
}

.login-hello-head {
  margin: 20px;
}