html {
  height: 100vh;
}

body {
  background: url("../images/content-bg.png") no-repeat center center;
  background-size: cover;
}

.bba-main .container {
  margin-top: 25px;
  margin-bottom: 30px;
  padding: 20px 25px 30px;
}

.navia {
  padding: 6px 25px;
  border-bottom: 3px solid #e37921;

  background-image: linear-gradient(
    to top,
    rgba(227, 121, 33, 0.28) 0%,
    #ffffff 40px,
    #ffffff 100%
  );
}

.bba-logo-wrap {
  display: flex;
  align-items: center;
}

.bba-logo {
  width: 150px;
}

.header-links {
  display: flex;
}

.bba-header-links {
  margin-top: 8px;
  text-align: right;
}

.bba-header-links div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bba-header-links a {
  display: inline-flex;
  align-items: center;
  margin-left: 12px;

  font-size: 13px;
  color: #000;
  text-decoration: none;
}

.bba-header-links img {
  width: 25px;
  height: 25px;
  margin-right: 4px;
}

/* ************* header (DESKTOP) css *************  */
.bba-header-desktop {
  max-width: 1170px;
  margin: auto;
  padding: 0 20px;
}

.bba-header-desktop .bba-header-links {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
  text-align: right;
}

/* ************* header (MOBILE) css *************  */
.bba-header-mobile {
  padding-top: 6px;
}

.bba-app-btn-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.bba-app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 5px;
  padding: 5px 15px;

  border-radius: 999px;
  background-image: linear-gradient(to top, #0094ff, #00b4ff);

  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.bba-header-links-mobile {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding: 5px 0;
  text-align: center;
}

.bba-header-links-mobile a {
  margin: 0 10px;
}

/* ************* section shell *************  */
.bba-section {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 18px;
  overflow: hidden;

  border: 2px solid #000;
  border-radius: 18px;
}

.bba-section-body {
  padding: 16px 18px;
}

.bba-title-blue {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 5px;

  background: #12a3e9;
  color: #ffffff;
}

.bba-title-main {
  width: 100%;

  font-size: 22px;
  font-weight: bold;
  text-align: center;
}

.bba-title-sub {
  width: 100%;
  margin-top: 8px;

  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.bba-helper-grid {
  border-left: 2px solid #000;
}

/* ************* routes (DESKTOP) css *************  */
.bba-section-routes {
  height: 100%;
  margin: 0;
  padding: 0;

  border-left: 2px solid #000;
  background-color: #fff;
}

.bba-route-table {
  width: 100%;
  height: 100%;
  margin-bottom: 0;

  table-layout: fixed;
  border-collapse: collapse;
}

.bba-route-table thead {
  height: 50%;
}

.bba-route-table thead th {
  height: 40px;

  border-left: 2px solid #000;
  background-color: #12a3e9;

  font-size: 13px;
  color: #fff;
  text-align: center;
}

.bba-route-table tbody td {
  height: 40px;
  vertical-align: middle;

  border: 2px solid #000;

  font-size: 14px;
  text-align: center;
}

.bba-route-table thead th:first-child,
.bba-route-table tbody td:first-child {
  border-left: 0;
}

.bba-route-table thead th:last-child,
.bba-route-table tbody td:last-child {
  border-right: 0;
}

.bba-route-table tbody tr:last-child td {
  border-bottom: 0;
}

.bba-route-label {
  color: #e84b00;
  font-weight: 700;
}

.bba-route-link {
  color: #e60000;
  text-decoration: none;
}

.bba-route-link:hover {
  text-decoration: underline;
}

.bba-speed-fast .bba-route-link {
  color: #e60000;
}

.bba-fastest-flag {
  display: inline-block;
  margin-left: 3px;

  color: #e60000;
  font-size: 12px;
}

.bba-section-list {
  height: 100%;
  padding: 0;
}

.bba-section-list > .row {
  display: flex;
  flex-wrap: wrap;
  height: 100%;
  margin: 0;
}

.bba-section-list > .row > [class*="col-"] {
  display: flex;
  height: 90px;

  border-left: 2px solid #000;
}

/* ************* routes (MOBILE) css *************  */
@media (min-width: 768px) {
  .bba-routes-mobile {
    display: none !important;
  }
}

.bba-routes-card {
  padding: 18px 14px 20px;

  background: #ffffff;
}

.bba-route-row {
  display: flex;
  align-items: stretch;
  margin-bottom: 12px;
  overflow: hidden;

  border: 2px solid #000;
  border-radius: 15px;
  background: #e9f6ff;
}

.bba-route-row-speed,
.bba-route-row-name,
.bba-route-row-cta {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bba-route-row-speed {
  flex: 1 1;
  padding: 12px 4px;

  border-right: 2px solid #000;
  background: #e9f6ff;

  font-size: 18px;
  font-weight: 700;
  color: #e60000;
}

.bba-route-row-name {
  flex: 1;
  padding: 12px 4px;

  border-right: 2px solid #000;
  background: #e9f6ff;

  font-size: 20px;
  font-weight: 600;
  color: #222;
}

.bba-route-row-cta {
  flex: 0 0 32%;
  padding: 20px 8px;

  background: #ffffff;
}

.bba-route-row-btn {
  display: inline-block;
  min-width: 92px;
  padding: 8px 16px;

  border-radius: 999px;
  background: #1ea0ff;

  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  text-decoration: none;
}

.bba-route-row-btn:hover {
  background: #0f72dd;

  color: #ffffff;
}

/* ************* fix double-border on flex-wrapped tables *************  */
@media (max-width: 991px) {
  .bba-section-routes,
  .bba-helper-grid,
  .bba-section-list > .row > [class*="col-"]:nth-child(1) {
    border-left: 0;
  }

  .bba-title-blue {
    border-bottom: 2px solid #000;
  }
}

@media (max-width: 767px) {
  .bba-section-list > .row > [class*="col-"] {
    border-left: 0;
  }

  .bba-section-list > .row > [class*="col-"]:nth-child(1) {
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
  }

  .bba-section-list > .row > [class*="col-"]:nth-child(2) {
    border-bottom: 2px solid #000;
  }

  .bba-section-list > .row > [class*="col-"]:nth-child(3) {
    border-right: 2px solid #000;
  }
}

/* ************* 4 banners css *************  */
.bba-helper-grid > [class*="col-"] {
  padding: 0;
}

.bba-helper-card {
  display: block;
  margin: 0;
  padding: 0;

  border: 0;
  background: transparent;
}

.bba-helper-card img {
  display: block;
  width: 100%;
  height: auto;
}

/* ************* sprites css *************  */
.bba-resource-card {
  flex: 1 1 auto;
  display: block;
  height: 100%;

  background-color: #fff;
  background-image: url("../images/bba-resources-desktop.png");
  background-repeat: no-repeat;
  background-size: 500% 370%;
}

/* row 1 – 热门交易所与钱包 */
.res-wallet {
  background-position: 22.5% 1%;
}

.res-okx {
  background-position: 48% 1%;
}

.res-binance {
  background-position: 74% 1%;
}

.res-gate {
  background-position: 99.3% 1%;
}

/* row 2 – VPN */
.res-kuaivpn {
  background-position: 22.5% 50%;
}

.res-kuaifan {
  background-position: 48% 50%;
}

.res-aijiasu {
  background-position: 74% 50%;
}

.res-daishu {
  background-position: 99.3% 50%;
}

/* row 3 – 公司 */
.res-renchat {
  background-position: 22.5% 99%;
}

.res-yuxintong {
  background-position: 48% 99%;
}

.res-bbaintro {
  background-position: 74% 99%;
  cursor: pointer;
}

.res-agent {
  background-position: 99.3% 99%;
  cursor: pointer;
}

/* ************* help micromodal *************  */
.help-content .help-item {
  box-sizing: border-box;
  padding: 24px;

  border: 8px solid #2161b3;
}

.help-content .help-item .help-title {
  margin: 0 0 20px;

  font-size: 14px;
  line-height: 1.5em;
}

.help-content .help-item .helper-wrapper .helper-title {
  display: flex;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.help-content .help-item .helper-wrapper .helper-title span {
  padding: 4px 12px;
  margin-right: 12px;

  border-radius: 40px;
  background: #f83902;

  color: #fff;
  white-space: nowrap;
}

.help-content .help-item .helper-wrapper .helper-img {
  display: block;
  width: 80%;
  margin: 12px auto;
}

.help-content .help-item .helper-wrapper .helper-img.small {
  max-width: 450px;
}

.help-content .help-item .helper-wrapper .helper-img.extra-small {
  max-width: 250px;
}

.help-content .help-item .helper-wrapper .helper-img.big {
  width: 100%;
}

.help-content .help-item .helper-wrapper table {
  width: 80%;
  margin: 0 auto 20px;

  border: 1px solid #49ceff;
}

.help-content .help-item .helper-wrapper table thead tr {
  border-bottom: 1px solid #49ceff;
}

.help-content .help-item .helper-wrapper table thead tr td {
  background-color: rgba(82, 9, 27, 0.24);
}

.help-content .help-item .helper-wrapper table tr:not(:last-child) {
  border-bottom: 1px solid #49ceff;
}

.help-content .help-item .helper-wrapper table td:not(:last-child) {
  border-right: 1px solid #49ceff;
}

.help-content .help-item .helper-wrapper table td {
  padding: 4px 6px;

  text-align: center;
}

/* ************* about us micromodal *************  */
.aboutus-modal__title-image {
  display: block;
  width: 310px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 16px;
}

.aboutus-modal__highlight-title {
  text-align: center;
  text-decoration: underline;
}

.aboutus-modal__subtitle {
  font-size: 16px;
  font-weight: bold;
  line-height: 5rem;
  text-align: center;
}

.aboutus-modal__logo {
  display: block;
  width: 155px;
  max-width: 100%;
  height: auto;
  margin: 16px auto 0;
}

/* ************* recruit agent micromodal *************  */
#recruit p {
  line-height: 3rem;
}

/* ************* tooltip (DESKTOP) *************  */
#bba-tooltip-layer {
  position: fixed;
  inset: 0;

  pointer-events: none;
  z-index: 9000;
}

.bba-tooltip {
  display: none;
  position: absolute;
  min-width: 280px;
  min-height: 150px;
  padding: 12px 16px 16px;

  background: #ffffff;
  border: 2px solid #0865c8;
  border-radius: 14px;
  box-shadow: 0 2px 2px #0865c8;

  z-index: 9001;
  pointer-events: auto;

  color: #222;
  font-size: 22px;
  line-height: 1.4;
  text-align: center;
}

@media (min-width: 769px) {
  .bba-tooltip::after {
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 14px;
    height: 14px;

    content: "";
    transform: translateX(-50%) rotate(45deg);

    background: #ffffff;
    border-right: 2px solid #0865c8;
    border-bottom: 2px solid #0865c8;
  }
}

.bba-tooltip-wrap {
  position: relative;
}

.bba-tooltip-title {
  margin-bottom: 4px;

  font-weight: 700;
}

.bba-tooltip-line {
  margin-bottom: 10px;
}

.bba-tooltip-id {
  color: #e60000;
  font-weight: 700;
}

.bba-tooltip-btn {
  display: inline-block;
  padding: 6px 18px;

  border-radius: 999px;
  background-image: linear-gradient(to top, #2c81d5, #00bef7);

  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}

.bba-tooltip-btn:hover {
  background: #0f72dd;
  text-decoration: none;
}

/* ************* tooltip (MOBILE) *************  */
@media (max-width: 768px) {
  .bba-tooltip {
    border-radius: 18px;
  }

  .bba-tooltip-close {
    position: absolute;
    right: 45%;
    bottom: -50px;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;

    border-radius: 50%;
    border: 1px solid #ffffff;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;

    color: #ffffff;
    font-size: 20px;
    line-height: 28px;
    text-align: center;
  }

  #bba-tooltip-layer.show-mobile-tooltip::before {
    position: fixed;
    inset: 0;

    content: "";
    background: rgba(0, 0, 0, 0.3);
    pointer-events: auto;
  }
}
