:root {
  --primary-color: #2778f8;
  --link-color: var(--primary-color);
  --secondary-color: #31383e;
  --content-width: 1200px;
  --gray-text: #b1afaf;
  --darken: color-mix(in srgb, var(--primary-color) 80%, black);
  --lighten: color-mix(in srgb, var(--primary-color) 80%, white);
}

*,
:after,
:before {
  box-sizing: border-box
}

a {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

body {
  font-size: 14px;
  margin: 0;
  color: #333;
  font-family: arial, verdana, helvetica, 'PingFang SC', 'HanHei SC', STHeitiSC-Light, Microsoft Yahei, sans-serif;
}

ol,
ul,
li,
dl,
dt,
dd {
  list-style: none;
  margin: 0;
  padding: 0;
}

._modal-no-padding {
  .ant-modal-content {
    padding: 0;
  }

  .ant-modal-confirm-paragraph {
    max-width: unset;
  }
}

/** 引导弹窗 */
.modal-boot {
  width: 540px;

  .images {
    display: flex;
    height: 270px;
    justify-content: space-around;
    align-items: center;
  }

  .img-box {
    text-align: center;

    img {
      width: 140px;
      height: 140px;
    }
  }

  .img-name {
    margin-top: 20px;
  }
}

.page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

.content-width {
  width: var(--content-width);
  margin: auto;
}


@keyframes scan {
  0% {
    top: -100%
  }

  80% {
    top: calc(100% - 30px);
    opacity: 1
  }

  81% {
    opacity: .2
  }

  to {
    top: calc(100% - 30px);
    opacity: 0
  }
}


header {

  .logo {
    margin-right: 40px;
    padding: 15px 0;

    img {
      max-height: 80px;
      max-width: 300px;
    }
  }

  .header-main {
    display: flex;
    align-items: center;
    min-height: 100px;
    justify-content: space-between;
  }

  .header-top {
    background: #32373e;

    .content-width {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 12px;
      height: 32px;
      color: #fff;
    }
  }

  .user-nav {
    display: inline-block;
    position: relative;
    margin-left: 10px;

    &:hover .user-nav-body {
      display: block;
    }
  }

  .user-nav-head {
    display: flex;
    align-items: center;
    cursor: pointer;
  }

  .user-nav-head-pic {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 8px;
    background: url(https://cdn.yupaowang.com/yupao_pc/107277706c26c275.png);
    background-size: contain;
    overflow: hidden;
  }

  .user-nav-body {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 120px;
    padding: 0 10px;
    background: #fff;
    border: 1px solid #E9EDF3;
    border-top: none;
    z-index: 999;
  }

  .user-nav-item {
    border-bottom: 1px solid gainsboro;
    cursor: pointer;
    color: #333;
    line-height: 30px;

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

    &:hover {
      color: #1c99ef;
    }
  }

  .header-top-right {
    display: flex;
    align-items: center;
  }

  .to_login {
    display: inline-flex;

    a {
      margin: 0 6px;

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

    .to_mob {
      padding-left: 13px;
      background: url(./images/xsj.png) no-repeat 0 center;
    }
  }

}

.header-right {
  display: flex;
  align-items: center;
  padding: 10px 0;

  .app-download {
    margin: 0 10px;
    color: #999;

    div {
      &:first-child {
        color: var(--primary-color);
        font-size: 16px;
        font-weight: 500;
        margin-bottom: 5px;
      }
    }
  }

  .app-qr-code {
    padding: 4px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: white;

    &::after {
      content: '';
      display: block;
      position: absolute;
      top: -100%;
      left: 0;
      width: 100%;
      height: 32px;
      background: linear-gradient(rgba(0, 146, 255, 0), rgba(0, 146, 255, .35));
      border-radius: 3px;
      border-bottom: 3px solid #0092ff;
      background-size: 80% 100%;
      animation: scan 1.8s linear infinite;
    }
  }
}

.search-box {
  border: 1px solid var(--primary-color);
  width: 700px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, .05);
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  height: 46px;
  background: white;

  button {
    all: unset;
    color: #fff;
    font-size: 16px;
    height: 100%;
    width: 110px;
    background: var(--primary-color);
    display: grid;
    place-content: center;
    cursor: pointer;

    &:hover {
      opacity: 0.8;
    }
  }

  input {
    all: unset;
    padding: 0 20px;
    flex: 1;
  }

}

.header-nav {
  top: -50px;
  transition: top .3s;

  ul {
    display: flex;
  }

  li {
    position: relative;

    &.nav_list_hover {
      &::after {
        content: '';
        display: block;
        width: 30px;
        height: 3px;
        background: var(--primary-color);
        margin: auto;
      }
    }
  }

  a {
    padding: 15px;
    display: block;
    font-size: 16px;
    font-weight: bold;

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

  .nav-tag {
    position: absolute;
    top: 0;
    right: 0;
  }
}

.nav-fixed {
  position: fixed;
  left: 0;
  right: 0;
}

header+.header-nav {
  position: sticky;
}

.nav-fixed,
header+.header-nav {
  top: 0;
  background-color: var(--primary-color);
  color: white;
  z-index: 10;

  ul {
    width: var(--content-width);
    margin: auto;
  }

  li.nav_list_hover {
    background: var(--lighten);

    &::after {
      display: none;
    }
  }
}

footer {
  background: var(--secondary-color);
  color: var(--gray-text);


  .content-width {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 218px;
    text-align: center;
  }

  .footer-center {
    width: 630px;
    text-align: left;
    font-size: 12px;
  }

  .footer-right {
    display: flex;
  }

  .link {
    color: white;
    font-size: 13px;

    a:hover {
      color: var(--gray-text);
    }
  }

  .footer-disc {
    margin: 20px 0;
  }

  .copyright {
    border-top: 1px solid #5d5d5d;
    padding-top: 10px;
  }

  .qr-code {
    margin-left: 20px;
    font-size: 12px;
    color: #ccc;
  }

  .qr-disc {
    margin-top: 5px;
  }

  .service-number {
    img {
      padding: 10px 0;
    }
  }

  .phone-icon {
    &::before {
      content: '';
      display: block;
      width: 54px;
      height: 45px;
      background: url(./images/kf_tel.png) no-repeat;
      margin: 0 auto 10px;
    }
  }

  .phone-number {
    font-size: 24px;
    color: orange;
  }
}

#go-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 46px;
  z-index: 99;
  background: #fff;
  border-radius: 3px;
  cursor: pointer;

  >* {
    display: block;
    height: 46px;
    background: url(./images/go-top.png);
  }

  .code-icon {
    position: relative;

    &:hover {
      background-position: 0 -350px;

      .hover-code {
        display: block;
      }
    }
  }

  .feedback {
    background-position: 0 -100px;

    &:hover {
      background-position: 0 -300px;
    }
  }

  .go {
    background-position: 0 -150px;

    &:hover {
      background-position: 0 -250px;
    }
  }

  .hover-code {
    display: none;
    position: absolute;
    right: 66px;
    background: white;
    text-align: center;
    padding: 10px 5px 5px 5px;
  }
}

#tip-bottom {
  background: rgba(0, 0, 0, .8);
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: all .5s;

  .content-width {
    height: 70px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .tip-text {
    font-size: 20px;
    color: white;
    flex: 1;
    font-weight: bold;
  }

  .tip-fot-user {
    width: 180px;
    height: 114px;
    background: url(./images/foot_ren.png) no-repeat;
    align-self: flex-end;
  }

  .qr-code {
    width: 187px;
    height: 140px;
    background: url(./images/foot_erm.png) no-repeat;
    background-position: top center;
    background-size: contain;
    display: grid;
    align-self: flex-end;
    place-content: center;
  }

  .qr-code-text {
    margin-top: 5px;
    color: white;
    font-size: 12px;
  }

  .tip-close {
    cursor: pointer;
    width: 11px;
    height: 11px;
    background: url(./images/i_bottom_close.png) no-repeat;
    position: absolute;
    top: 10px;
    right: -37px;
  }

  .tip-login {
    display: grid;
    width: 100px;
    height: 40px;
    background: #3c7eff;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    place-content: center;

    &:hover {
      background: #2a6be8;
    }
  }
}

.hide,
.hidden {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}

.top-breadcrumbs {
  margin: 18px 0;
  color: #979191;

  a:hover {
    color: var(--primary-color);
  }
}

._btn {
  display: grid;
  place-content: center;
  background: var(--primary-color);
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: all .3s;

  &:hover {
    opacity: .8;
  }
}

._btn-o {
  display: grid;
  place-content: center;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 4px;
  cursor: pointer;
  transition: all .3s;

  &:hover {
    color: white;
    background: var(--primary-color);
  }
}

._link {
  color: var(--link-color);
  cursor: pointer;

  &:hover {
    opacity: .8;
  }
}

._text-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

._disabled {
  filter: grayscale(1);
  opacity: 0.8;
  pointer-events: none;
}

.pages {
  width: 100%;
  text-align: center;
  margin: 0 auto;

  a {
    display: inline-block;
    padding: 5px 14px 5px 14px;
    margin-left: 8px;
    color: #666;
    border: 1px solid #eee;
    font-size: 14px;
    border-radius: 6px;
    background: #fff;

    &:hover,
    &.selected {
      color: #fff;
      background: var(--primary-color);
      border: 1px solid var(--primary-color);
    }
  }

  em {
    margin-left: 10px;
    height: 35px;
    line-height: 30px;
    color: #666;
    display: inline-block;
  }

  .selected {
    font-weight: bold;
    color: #fff;
    border: 1px solid #00b2fc
  }
}