header {
  background: var(--primary-color);
  height: 44px;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  justify-items: left;
  position: sticky;
  top: 0;
  z-index: 1;

  .go-back {
    display: block;
    padding: 2px 15px;

    img {
      width: 12px;
      height: auto;
      display: block;
    }
  }

  .header-title {
    color: white;
    font-size: 16px;
    font-weight: 500;
  }

  a {
    display: grid;
    height: 32px;
    padding: 0 8px;
    font-size: 12px;
    background: white;
    place-items: center;
    color: var(--primary-color);
    border-radius: 16px;
    margin-right: 15px;
    justify-self: right;
  }
}

#main {
  background: linear-gradient(var(--primary-color) 80px, transparent 80px);
  display: grid;
  gap: 10px;
}

.job-detail {
  display: grid;
  gap: 10px;
  position: relative;

  .stamp {
    width: 100px;
    position: absolute;
    right: 10px;
    top: 30px;
  }

  .job-name,
  .job-salary {
    font-size: 22px;
    font-weight: 600;
  }

  .job-salary {
    color: var(--red-color);
  }

  .job-require {
    display: flex;
    font-size: 14px;

    div:not(.job-address) {
      margin-left: 10px;
      white-space: nowrap;
    }

    img {
      width: 12px;
      height: 12px;
      object-fit: contain;
    }
  }

  .time-info {
    font-size: 12px;
    color: #999;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;

    span {
      margin-right: 15px;
    }
  }

  .job-tag {
    display: flex;
    flex-wrap: wrap;

    span {
      white-space: nowrap;
      display: grid;
      border-radius: 5px;
      padding: 0 6px;
      height: 25px;
      place-content: center;
      margin-right: 5px;
      margin-bottom: 5px;
      background: #F7F7F7;
      font-size: 12px;
      color: #666;
    }

    &:empty {
      display: none;
    }
  }

  .job-desc {
    color: #666;
    white-space: pre-wrap;
    line-height: 1.8;
  }

}

.block-title {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.8;
}

.company-detail {
  display: grid;
  gap: 10px;

  .corporate-info {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
  }

  .corporate-logo {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 1px solid #eee;
    object-fit: contain;
  }

  .go-corporate {
    width: 10px;
  }

  .corporate-name {
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 3px;
  }

  .corporate-desc {
    font-size: 12px;
    color: #999;

    span {
      &:not(:first-child):not(:empty)::before {
        content: '·';
        margin: 0 5px;
      }
    }
  }

  .corporate-address {
    font-size: 12px;
    margin: 10px 0;
  }

  .tips-title {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    padding-left: 25px;
    background: url(../images/aqts.png) no-repeat;
    background-size: 15px 15px;
    background-position: left center;
  }

  .tips {
    background: #f9f9fb;
    padding: 10px;
    border-radius: 8px;
    color: #999;
    line-height: 1.6;
  }
}

footer {
  place-items: center;

  [class^="button-send"] {
    grid-column-start: span 3;
    width: 200px;
    height: 40px;
    display: grid;
    place-content: center;
    background: linear-gradient(270deg, #19b7ff, #2778f8, #2778f8);
    color: white;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
  }

  .button-sended {
    opacity: 0.3;
  }

  [class^="btn-"] {
    display: grid;
    place-content: center;
    gap: 5px;

    &::before {
      content: "";
      display: block;
      width: 24px;
      height: 24px;
      background: url(../images/tab_icon_home_n.png) no-repeat;
      background-size: contain;
    }
  }

  .btn-share {
    &::before {
      background-image: url(../images/fx.png);
    }
  }
}

.share-box {
  color: white;
  font-size: 17px;
  display: grid;
  gap: 20px;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  display: grid;
  place-content: center;

  li {
    display: flex;
    align-items: center;

    &::first-letter {
      font-style: italic;
    }
  }

  i {
    width: 30px;
    height: 30px;
    display: block;
    background: url(../images/yun_wap_share_tip_fx3.png) no-repeat;
    background-size: contain;
    margin: 0 8px;
    background-position: center;
  }

  .tip_i4 {
    background-image: url(../images/yun_wap_share_tip_fx4.png);
  }

  .tip_i {
    background-image: url(../images/yun_wap_share_tip_fx.png);
  }

  .tip_i2 {
    background-image: url(../images/yun_wap_share_tip_fx2.png);
  }

  .tip_i3 {
    width: 26px;
    height: 26px;
  }
}