/* hk-tincheung 镜像静态补丁：字体与移动首页布局贴近官站 */

@font-face {
  font-family: "FontAwesome";
  src: url("../fonts/fontawesome-webfont.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.fa:before {
  font-family: FontAwesome !important;
}

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* 头栏仅 Logo：去掉菜单、导航、移动顶栏图标 */
.becup-header .inner > nav,
.becup-header .left-menu,
.becup-header .right-menu,
.becup-header .mobi-top-button,
.becup-header #common-main-side-menu,
.becup-header #common-top-search-input,
.becup-header .sidr {
  display: none !important;
}

.becup-pc-header {
  height: auto !important;
}

.becup-header .inner {
  padding: 5px;
  position: relative;
}

.becup-header .inner .header-logo-wrapper {
  float: none;
  margin: 0 auto;
  position: static;
  text-align: center;
  width: auto;
  max-width: 100%;
  height: auto;
  overflow: visible;
  padding: 0;
}

.becup-header .header-img-container {
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

.becup-header .header-img-container .header-logo {
  max-width: min(280px, calc(100vw - 24px));
  width: auto;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}

.reset-this i.tl,
.reset-this i.tm,
.reset-this i.tr,
.reset-this i.lm,
.reset-this i.rm,
.reset-this i.bl,
.reset-this i.bm,
.reset-this i.br {
  display: none !important;
}

@media only screen and (max-width: 768px) {
  .becup-pc-header {
    height: auto !important;
    min-height: 50px;
  }

  /* 对齐 compiled-becup-all @media 768 + common_6336e75a 主题色 */
  .becup-header {
    min-height: 0;
    height: 50px;
    border-top: none;
  }

  .becup-header .inner {
    padding: 5px;
    height: 100%;
    position: relative;
  }

  .becup-header .inner > nav {
    display: none !important;
  }

  .becup-header .inner .header-logo-wrapper {
    float: none;
    margin: -3px auto -8px;
    position: static;
    text-align: center;
    width: 100px;
    height: 46px;
    overflow: visible;
    padding-top: 0;
  }

  .header-img-container {
    width: 100% !important;
    height: 38px !important;
    margin-top: 4px !important;
    text-align: center;
  }

  .becup-header .inner .header-logo-wrapper img,
  .header-img-container .header-logo {
    max-width: calc(100vw - 200px) !important;
    width: auto !important;
    height: auto !important;
    position: static !important;
    display: inline-block;
    vertical-align: middle;
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #page-body .pc-component-container.absolute {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #6b019a274cbac-php-component,
  #6b019a274cc59-php-component {
    display: none !important;
  }

  /* 首页三块横幅：全宽、上下紧贴无间隙 */
  #6b019a274cca0-php-component {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #6b019a274cca0-php-component .reset-this-wrapper,
  #6b019a274cca0-php-component .reset-this {
    padding: 0 !important;
    margin: 0 !important;
  }

  .php-component-text .reset-this p {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
  }

  .php-component-text .reset-this p > a:has(img[src*="Pre-owned_1"]),
  .php-component-text .reset-this p > a:has(img[src*="whatsapp-01"]),
  .php-component-text .reset-this p > a:has(img[src*="Quotation"]) {
    display: block !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
  }

  .php-component-text .reset-this p img[src*="Pre-owned_1"],
  .php-component-text .reset-this p img[src*="whatsapp-01"],
  .php-component-text .reset-this p img[src*="Quotation"] {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: top !important;
    border: 0 !important;
  }

  /* 社交图标：三块横幅后的同一行 */
  .php-component-text .reset-this p > a:has(img[src*="messenger"]) {
    flex: 0 0 auto !important;
    margin-top: 14px !important;
    width: auto !important;
    line-height: 1 !important;
  }

  .php-component-text .reset-this p > a:has(img[src*="instagram"]),
  .php-component-text .reset-this p > img[src*="wechat"] {
    flex: 0 0 auto !important;
    margin-top: 14px !important;
    width: auto !important;
    line-height: 1 !important;
    vertical-align: middle !important;
  }

  .php-component-text .reset-this p img[src*="messenger"],
  .php-component-text .reset-this p img[src*="wechat"],
  .php-component-text .reset-this p img[src*="instagram"] {
    width: 64px !important;
    height: 64px !important;
    max-width: 64px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 6px !important;
  }

  .php-component-image img.visible-xs,
  .php-component-image img.img-responsive {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
  }
}