
/* Mobile hamburger / drawer — standalone, no Vue scoped attrs required */
.site-m-header,
header.narrow {
  box-sizing: border-box;
}
.site-m-header *,
header.narrow * {
  box-sizing: border-box;
}

@media screen and (min-width: 1030px) {
  header.narrow,
  .site-m-header {
    display: none !important;
  }
}

@media screen and (max-width: 1029px) {
  /* Hide desktop-only headers when a mobile header exists */
  body.has-m-nav header.wide,
  body.has-m-nav header:not(.narrow):not(.site-m-header) {
    display: none !important;
  }

  /* Do NOT let header_content / narrow header fill the viewport when menu closed —
     original CSS uses height:100% which with position:fixed covers all page content. */
  .header_content {
    height: auto !important;
    min-height: 0 !important;
  }

  header.narrow,
  .site-m-header {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto !important;
    max-height: none;
    background: #fff;
    z-index: 1000;
  }

  header.narrow:not(.is-open),
  .site-m-header:not(.is-open) {
    height: auto !important;
    overflow: visible !important;
  }

  header.narrow:not(.is-open) .list,
  .site-m-header:not(.is-open) .list {
    height: auto !important;
    overflow: visible !important;
  }

  header.narrow:not(.is-open) .down_list_h5,
  .site-m-header:not(.is-open) .down_list_h5 {
    display: none !important;
  }

  header.narrow.is-open,
  .site-m-header.is-open {
    height: 100vh !important;
    background: #fff;
    overflow: hidden;
  }

  header.narrow.is-open .list,
  .site-m-header.is-open .list {
    height: 100%;
    overflow: hidden;
  }

  header.narrow .logo_h5,
  .site-m-header .logo_h5 {
    padding: 20px 20px 26px 20px;
    overflow: hidden;
  }

  header.narrow .logo_h5 img:not(.menu_r),
  .site-m-header .logo_h5 img:not(.menu_r) {
    height: 32px;
    cursor: pointer;
  }

  header.narrow .logo_h5 .menu_r,
  .site-m-header .logo_h5 .menu_r {
    margin-top: 9px;
    width: 16.5px;
    height: 14px;
    float: right;
    cursor: pointer;
  }

  header.narrow.is-open .logo_h5,
  .site-m-header.is-open .logo_h5 {
    border-bottom: 1px solid #d5d9df;
  }

  .down_list_h5 {
    height: calc(100vh - 100px);
    overflow: hidden;
    overflow-y: auto;
    padding: 0 20px 80px;
    background: #fff;
  }

  .down_list_h5 ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .down_list_h5 .pro {
    margin: 20px 0;
    overflow: hidden;
    cursor: pointer;
  }

  .down_list_h5 .pro .pro_left {
    line-height: 21px;
    font-size: 15px;
    color: #1a1d21;
    font-weight: 600;
  }

  .down_list_h5 .pro .pro_right {
    line-height: 21px;
    float: right;
  }

  .down_list_h5 .pro .pro_right img {
    width: 16.5px;
    transition: transform 0.2s ease;
  }

  .down_list_h5 .pro.is-expanded .pro_right img {
    transform: rotate(180deg);
  }

  .down_list_h5 .item_show {
    padding-left: 16px;
    font-size: 14px;
    color: #333;
  }

  .down_list_h5 .item_show .li_item {
    line-height: 20px;
    margin: 10px 0;
    cursor: pointer;
  }

  .down_list_h5 .btn_group_h5 {
    left: 0;
    bottom: 10px;
    width: 100%;
    padding: 0 20px;
    position: fixed;
    box-sizing: border-box;
    background: #fff;
  }

  .down_list_h5 .btn_group_h5 .btn {
    border-radius: 6px;
    display: inline-block;
  }

  .down_list_h5 .btn_group_h5 .login {
    width: calc(50% - 10px);
    padding: 10px 0;
    float: left;
    background: #c00;
    font-size: 14px;
    color: #fff;
    text-align: center;
    font-weight: 600;
  }

  .down_list_h5 .btn_group_h5 .register {
    width: calc(50% - 10px);
    padding: 10px 0;
    float: right;
    border: 1px solid #d9dbde;
    border-radius: 5px;
    font-size: 14px;
    color: #1a1d21;
    text-align: center;
    font-weight: 600;
  }

  /* Offset page content under fixed mobile bar */
  body.has-m-nav {
    padding-top: 72px;
  }
  body.has-m-nav.m-nav-open {
    overflow: hidden;
  }
}

/* Show only desktop or mobile CTA pair — scraped pages include both */
@media screen and (min-width: 1030px) {
  .to-sale-h5.narrow,
  section.to-sale-h5 {
    display: none !important;
  }
}

@media screen and (max-width: 1029px) {
  .to-sale.wide,
  section.to-sale.wide {
    display: none !important;
  }
}

/* CTA red / white — match Partner「立即加入」「联系销售」 */
.to-sale {
  display: inline-block;
  white-space: nowrap;
  vertical-align: top;
}

.to-sale .btn_left,
.to-sale .btn_right {
  padding: 10px 14px;
  display: inline-block;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  line-height: 1.4;
  vertical-align: middle;
  white-space: nowrap;
}

.to-sale .btn_left {
  margin-right: 16px;
  color: #fff !important;
  background: #c00 !important;
  border: 1px solid #c00;
}

.to-sale .btn_left:hover {
  background: #ec0000 !important;
}

.to-sale .btn_right {
  color: #1a1d21 !important;
  background: #fff !important;
  border: 1px solid #d9dbde;
}

.to-sale .btn_right:hover {
  color: #333 !important;
}

/* Keep「准备开始了吗」+ buttons on one row (text left, buttons right) */
.start-exp .content .btn_group,
.start-exp-h5 .btn_group {
  white-space: nowrap;
  vertical-align: top;
}

.start-exp .content .is_ready {
  vertical-align: top;
}

/* Homepage banner has more room — slightly roomier padding */
.banner .to-sale .btn_left,
.banner .to-sale .btn_right {
  padding: 10px 16px;
}

.banner .to-sale .btn_left {
  margin-right: 20px;
}

@media screen and (max-width: 1029px) {
  .banner .to-sale {
    display: block;
    width: 100%;
    white-space: normal;
  }

  .banner .to-sale .btn_left,
  .banner .to-sale .btn_right {
    display: block;
    width: 100%;
    margin-right: 0;
    padding: 10px;
  }

  .banner .to-sale .btn_left {
    margin-bottom: 15px;
  }
}

/* Hide navigation register buttons */
.btn_group .btn.register,
.btn_group .register,
.btn_group_h5 .register,
header .btn.register,
.down_list_h5 .btn_group_h5 .register {
  display: none !important;
}
