:root {
  --bide-navy: #102b49;
  --bide-blue: #1264ad;
  --bide-blue-strong: #0c5598;
  --bide-orange: #f26b21;
  --bide-ink: #172b3a;
  --bide-muted: #687b8d;
  --bide-line: #dce5ed;
  --bide-bg: #f4f7fa;
  --bide-white: #ffffff;
}

body.bide-branded {
  color: var(--bide-ink);
  background: var(--bide-bg);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.bide-brand-home {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  color: var(--bide-ink) !important;
  text-decoration: none !important;
}

.bide-logo-mark {
  display: inline-grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--bide-blue);
  box-shadow: 0 4px 12px rgba(18, 100, 173, .22);
  font: 700 30px/1 Georgia, serif;
}

.bide-logo-copy {
  display: grid;
  gap: 2px;
  white-space: nowrap;
}

.bide-logo-copy strong {
  color: var(--bide-blue-strong);
  font-size: 22px;
  line-height: 1.1;
}

.bide-logo-copy small {
  color: var(--bide-muted);
  font-size: 11px;
  letter-spacing: 0;
}

.bide-logo-copy small em {
  font-style: normal;
  color: var(--bide-orange);
  font-weight: 700;
}

.bide-logo-copy small .bide-dot {
  color: #c2ccd8;
}

.bide-home-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--bide-line);
  border-radius: 6px;
  color: var(--bide-blue-strong) !important;
  background: #fff;
  text-decoration: none !important;
}

.bide-home-link:hover {
  border-color: var(--bide-blue);
  background: #f2f8fd;
}

body.bide-branded .account-header,
body.bide-branded .site-header {
  border-bottom: 1px solid var(--bide-line);
  background: #fff;
  box-shadow: 0 3px 14px rgba(16, 43, 73, .08);
}

body.bide-branded .account-header .inner,
body.bide-branded .site-header .header-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

body.bide-branded .account-header .logo img,
body.bide-branded .site-header .brand img {
  display: none !important;
}

body.bide-branded .account-main,
body.bide-branded .register-main {
  min-height: calc(100vh - 210px);
  padding: 48px 20px 64px;
  background: var(--bide-bg);
}

body.bide-branded .account-panel,
body.bide-branded .register-card {
  border: 1px solid var(--bide-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(16, 43, 73, .1);
}

body.bide-branded .account-intro h1,
body.bide-branded .register-card h1,
body.bide-branded .register-card h2 {
  color: var(--bide-navy);
}

body.bide-branded input:focus,
body.bide-branded select:focus,
body.bide-branded textarea:focus {
  border-color: var(--bide-blue) !important;
  box-shadow: 0 0 0 3px rgba(18, 100, 173, .12) !important;
  outline: 0;
}

body.bide-branded .primary,
body.bide-branded .btn-primary,
body.bide-branded button[type="submit"],
body.bide-branded .submit-btn {
  border-color: var(--bide-blue) !important;
  color: #fff !important;
  background: var(--bide-blue) !important;
}

body.bide-branded .primary:hover,
body.bide-branded .btn-primary:hover,
body.bide-branded button[type="submit"]:hover,
body.bide-branded .submit-btn:hover {
  border-color: var(--bide-blue-strong) !important;
  background: var(--bide-blue-strong) !important;
}

body.bide-branded a {
  color: var(--bide-blue-strong);
}

body.bide-branded .top-bar {
  color: #dbe8f3;
  background: var(--bide-navy) !important;
}

.bide-commerce-shell {
  position: relative;
  z-index: 20;
  background: #fff;
}

.bide-commerce-shell .container {
  width: min(1200px, calc(100% - 24px));
  margin-inline: auto;
}

.bide-current-topbar {
  height: 34px;
  font-size: 12px;
}

.bide-current-topbar__inner {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bide-current-topbar .top-bar-left {
  color: #9fb8d8;
}

.bide-current-topbar .top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bide-current-topbar .top-bar-right > a,
.bide-current-topbar .kb-menu summary {
  color: #c8d6e8 !important;
}

.bide-current-header {
  border-bottom: 1px solid var(--bide-line);
  background: #fff;
}

.bide-current-header__inner {
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 34px;
}

.bide-current-logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.bide-current-search {
  flex: 1;
  max-width: 560px;
}

.bide-current-search__tabs {
  display: flex;
  gap: 14px;
  margin-bottom: 6px;
}

.bide-current-search__tabs button {
  min-height: 24px;
  padding: 0 0 2px;
  border: 0;
  color: var(--bide-muted);
  background: transparent !important;
  font-size: 12px;
}

.bide-current-search__tabs button.active {
  border-bottom: 2px solid var(--bide-blue) !important;
  color: var(--bide-blue-strong) !important;
  font-weight: 700;
}

.bide-current-search .search-form {
  height: 44px;
  display: flex;
  overflow: hidden;
  border: 2px solid var(--bide-blue) !important;
  border-radius: 6px;
}

.bide-current-search .search-form input[type="text"] {
  min-width: 0;
  flex: 1;
  padding: 0 14px;
  border: 0 !important;
  box-shadow: none !important;
}

.bide-current-search .search-btn {
  min-width: 116px;
  border: 0 !important;
  border-radius: 0;
  color: #fff;
  background: var(--bide-blue) !important;
  font-size: 15px;
  font-weight: 700;
}

.bide-current-search__hot {
  margin-top: 6px;
  color: var(--bide-muted);
  font-size: 12px;
  white-space: nowrap;
}

.bide-current-search__hot a {
  margin-right: 10px;
  color: #53687c;
}

.bide-current-search__hot a:hover { color: var(--bide-orange, #d52b1e); }
.bide-hot-label { color: var(--bide-muted); }
.bide-hot-empty { color: var(--bide-muted); opacity: .75; }
.bide-hot-clear {
  margin-left: 2px;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 12px;
  color: var(--bide-muted);
  text-decoration: underline;
  cursor: pointer;
}
.bide-hot-clear:hover { color: var(--bide-orange, #d52b1e); }

.bide-current-header__side {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.bide-current-hotline strong,
.bide-current-hotline span {
  display: block;
  white-space: nowrap;
}

.bide-current-hotline strong {
  color: var(--bide-orange);
  font-size: 18px;
}

.bide-current-hotline span {
  color: var(--bide-muted);
  font-size: 12px;
}

.bide-current-header .cart-box {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid var(--bide-blue) !important;
  border-radius: 6px;
  color: var(--bide-blue-strong) !important;
  background: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.bide-current-cart {
  font-size: 24px;
  transform: rotate(180deg);
}

.bide-current-header .cart-count {
  position: absolute;
  top: -9px;
  right: -8px;
  min-width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border-radius: 10px;
  color: #fff;
  background: #e74444 !important;
  font-size: 11px;
  font-style: normal;
}

.bide-current-nav {
  background: var(--bide-blue);
  box-shadow: 0 2px 8px rgba(10, 40, 80, .18);
}

.bide-current-nav__inner {
  min-height: 50px;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
}

.bide-current-nav__inner::-webkit-scrollbar {
  display: none;
}

.bide-current-nav a {
  min-height: 50px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 14px;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.bide-current-nav a:hover {
  background: var(--bide-blue-strong);
}

.bide-current-nav em {
  margin-left: 4px;
  padding: 1px 4px;
  border-radius: 3px;
  color: #fff;
  background: #ed4747;
  font-size: 10px;
  font-style: normal;
}

body.bide-branded .header,
body.bide-branded .main-header {
  background: #fff;
}

body.bide-branded .main-nav,
body.bide-branded .nav-bar {
  background: var(--bide-blue) !important;
}

body.bide-branded .main-nav a,
body.bide-branded .nav-bar a {
  color: #fff !important;
}

body.bide-branded .member-layout,
body.bide-branded .user-layout,
body.bide-branded .uc-wrap,
body.bide-branded .cart-container,
body.bide-branded .checkout-container,
body.bide-branded .order-container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

body.bide-branded .member-sidebar,
body.bide-branded .user-sidebar,
body.bide-branded .member-content,
body.bide-branded .user-content,
body.bide-branded .panel,
body.bide-branded .card {
  border-color: var(--bide-line) !important;
  border-radius: 8px !important;
}

body.bide-branded .member-sidebar .active,
body.bide-branded .user-sidebar .active,
body.bide-branded .tabs .active {
  color: var(--bide-blue-strong) !important;
  border-color: var(--bide-blue) !important;
  background: #eef6fc !important;
}

.bide-footer {
  margin-top: 52px;
  color: #d8e5ef;
  background: var(--bide-navy);
}

.bide-footer__inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.bide-footer__brand strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 19px;
}

.bide-footer__brand p,
.bide-footer__meta p {
  margin: 0;
  color: #b8c9d7;
  font-size: 13px;
  line-height: 1.8;
}

.bide-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 8px;
}

.bide-footer__links a {
  color: #fff !important;
  text-decoration: none;
}

.bide-footer__links a:hover {
  color: #8fc8f2 !important;
}

body.bide-branded .ky-ai-entry,
body.bide-branded .photo-entry,
body.bide-branded .mai-launch,
body.bide-branded .kb-ai-assistant,
body.bide-branded .sidebar-ai-launch,
body.bide-branded .jw-link,
body.bide-branded .wk-float,
body.bide-branded .float-tools,
body.bide-branded .ai-float {
  display: none !important;
}

body.bide-branded .intro-brand {
  color: var(--bide-orange) !important;
}

body.bide-branded .procurement-sheet {
  border-left-color: var(--bide-blue) !important;
}

body.bide-branded .procurement-sheet p,
body.bide-branded .account-intro li strong {
  color: var(--bide-blue-strong) !important;
}

body.bide-branded .search-box .search-form {
  border-color: var(--bide-blue) !important;
}

body.bide-branded .search-box .search-btn,
body.bide-branded .uc-filter button:not(.ghost) {
  border-color: var(--bide-blue) !important;
  background: var(--bide-blue) !important;
}

body.bide-branded .cart-box {
  border-color: var(--bide-blue) !important;
  color: var(--bide-blue-strong) !important;
}

body.bide-branded .cart-count {
  background: var(--bide-orange) !important;
}

body.bide-branded .main-nav {
  border-bottom-color: var(--bide-orange) !important;
}

body.bide-branded .uc-side-list li.active a,
body.bide-branded .uc-side-list li.is-active a {
  color: var(--bide-blue-strong) !important;
  background: #eef6fc !important;
}

body.bide-branded .uc-body > h3,
body.bide-branded .uc-main h3 {
  border-left-color: var(--bide-orange) !important;
}

body.bide-branded .uc-status-tabs a.active,
body.bide-branded .uc-status-tabs a.is-active {
  border-color: var(--bide-blue) !important;
  color: var(--bide-blue-strong) !important;
  background: #fff !important;
}

@media (max-width: 900px) {
  .bide-current-header__inner {
    flex-wrap: wrap;
    gap: 14px 24px;
    padding: 16px 0;
  }

  .bide-current-search {
    order: 3;
    width: 100%;
    max-width: none;
    flex-basis: 100%;
  }

  body.bide-branded .account-main,
  body.bide-branded .register-main {
    padding-top: 28px;
  }

  body.bide-branded .account-wrap,
  body.bide-branded .register-wrap,
  body.bide-branded .member-layout,
  body.bide-branded .user-layout {
    width: min(100%, 680px) !important;
    grid-template-columns: 1fr !important;
  }

  body.bide-branded .account-intro {
    text-align: center;
  }

  .bide-footer__inner {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .bide-current-topbar .top-bar-left,
  .bide-current-hotline,
  .bide-current-search__hot {
    display: none;
  }

  .bide-current-topbar__inner {
    justify-content: flex-end;
  }

  .bide-current-topbar .top-bar-right {
    max-width: 100%;
    overflow-x: auto;
  }

  .bide-current-header__inner {
    min-height: 0;
    justify-content: space-between;
  }

  .bide-current-header__side {
    margin-left: 0;
  }

  .bide-current-header .cart-box {
    padding-inline: 12px;
  }

  .bide-current-search__tabs {
    overflow-x: auto;
  }

  .bide-current-search .search-btn {
    min-width: 82px;
  }

  .bide-current-nav a {
    min-height: 46px;
    padding-inline: 13px;
    font-size: 13px;
  }

  .bide-logo-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    font-size: 26px;
  }

  .bide-logo-copy strong {
    font-size: 19px;
  }

  .bide-logo-copy small {
    font-size: 9px;
  }

  body.bide-branded .account-header .inner,
  body.bide-branded .site-header .header-inner,
  .bide-footer__inner {
    width: calc(100% - 28px);
  }

  body.bide-branded .account-header .inner,
  body.bide-branded .site-header .header-inner {
    min-height: 68px;
    gap: 10px;
  }

  body.bide-branded .account-header .right,
  body.bide-branded .site-header .back-home {
    font-size: 0;
  }

  body.bide-branded .account-header .right::after,
  body.bide-branded .site-header .back-home::after {
    content: "首页";
    font-size: 14px;
  }

  body.bide-branded .account-main,
  body.bide-branded .register-main {
    min-height: auto;
    padding: 20px 14px 38px;
  }

  body.bide-branded .account-panel,
  body.bide-branded .register-card {
    width: 100% !important;
    padding: 24px 18px !important;
  }

  body.bide-branded .member-layout,
  body.bide-branded .user-layout,
  body.bide-branded .cart-container,
  body.bide-branded .checkout-container,
  body.bide-branded .order-container {
    width: calc(100% - 24px);
  }

  .bide-footer {
    margin-top: 36px;
  }

  .bide-footer__inner {
    padding: 28px 0 24px;
  }
}
