:root {
  --site-shell-max: 1440px;
  --site-shell-gutter: clamp(24px, 3vw, 48px);
}

/* 全站统一的导航、经销商栏和正文宽度 */
.header-inner,
.dealerbar-inner,
.wrap,
.container,
.pricing-cn-hero__inner {
  box-sizing: border-box;
  width: 100% !important;
  max-width: var(--site-shell-max) !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding-right: var(--site-shell-gutter) !important;
  padding-left: var(--site-shell-gutter) !important;
}

.dealerbar-inner {
  min-height: 64px;
  gap: 14px;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

.dealer-pill {
  flex: 0 0 auto;
  padding: 6px 12px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px !important;
  font-weight: 700;
  line-height: 1.2 !important;
}

.dealer-text {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px !important;
  line-height: 1.4 !important;
}

.nav > a,
.nav .nav-btn,
.nav .nav-drop a {
  text-decoration: none !important;
}

.nav .nav-current {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 5px !important;
}

/* 全站功能下拉菜单 */
.caret {
  transition: transform 0.2s ease;
  transform-origin: 60% 60%;
}

.nav-drop.open .caret,
.nav-btn[aria-expanded="true"] .caret {
  transform: rotate(225deg) translate(-1px, -1px);
}

.nav-drop:not(.open) .mega {
  display: none !important;
}

.nav-drop.open .mega {
  display: block !important;
}

.mega {
  position: fixed !important;
  top: calc(var(--nav-height) + 8px) !important;
  right: auto !important;
  left: 50% !important;
  width: min(
    calc(100vw - (var(--site-shell-gutter) * 2)),
    var(--site-shell-max)
  ) !important;
  max-height: calc(100vh - var(--nav-height) - 16px);
  padding: 0 !important;
  overflow-x: hidden;
  overflow-y: auto;
  background: #ebecee !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  border-radius: 22px !important;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.18) !important;
  transform: translateX(-50%);
}

.mega-inner {
  display: grid !important;
  grid-template-columns: 32% 68% !important;
  align-items: stretch !important;
  gap: 0 !important;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
}

.mega-inner > div:first-child {
  position: relative;
  z-index: 0;
  align-self: stretch;
  padding: 36px 38px 40px;
  background: #fff;
}

.mega-inner > div:first-child::before {
  display: none;
}

.mega-inner > div:last-child {
  padding: 36px 42px 38px;
}

.mega-kicker {
  margin-bottom: 22px;
  color: #111;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  opacity: 1;
}

.mega-media {
  width: min(100%, 240px);
  margin-bottom: 24px;
  border: 0;
  border-radius: 16px;
  background: #ebecee;
}

.mega-block {
  max-width: 350px;
  margin-bottom: 20px;
}

.mega-h {
  margin-bottom: 7px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.mega-p {
  color: #222;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  opacity: 1;
}

.mega-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 46px;
}

.mega-feature .mega-h {
  margin-bottom: 7px;
  font-size: 17px;
}

.mega-footer {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 30px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.mega-footer-link {
  position: relative;
  display: block;
  color: #111;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.mega-footer-link::before {
  position: absolute;
  top: 38px;
  left: -28px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  content: "→";
}

.mega-footer-link:hover,
.mega-footer-link:focus-visible {
  transform: translateX(22px);
}

.mega-footer-link:hover::before,
.mega-footer-link:focus-visible::before {
  opacity: 1;
  transform: translateX(0);
}

.mega-link-title {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 750;
  line-height: 1.2;
}

.mega-footnote {
  max-width: 760px;
  color: #222;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  opacity: 1;
}

@media (max-width: 980px) {
  :root {
    --site-shell-gutter: 24px;
  }

  .dealerbar-inner {
    min-height: 58px;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  .dealer-pill {
    font-size: 14px !important;
  }

  .dealer-text {
    font-size: 14px !important;
  }

  .mega-inner {
    grid-template-columns: 1fr !important;
    padding: 0 !important;
  }

  .mega {
    border-radius: 16px !important;
  }

  .mega-inner > div:first-child,
  .mega-inner > div:last-child {
    padding: 30px 24px 34px;
  }

  .mega-inner > div:first-child::before {
    display: none;
  }

  .mega-features {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .mega-footer {
    padding: 26px 24px 32px;
  }

  .mega-footer-link::before {
    top: 37px;
  }
}

@media (max-width: 575px) {
  :root {
    --site-shell-gutter: 16px;
  }

  .header-inner,
  .dealerbar-inner,
  .wrap,
  .container,
  .pricing-cn-hero__inner {
    padding-right: var(--site-shell-gutter) !important;
    padding-left: var(--site-shell-gutter) !important;
  }

  .dealerbar-inner {
    align-items: flex-start;
    min-height: auto;
    gap: 8px;
  }

  .dealer-pill {
    padding: 5px 9px;
    font-size: 12px !important;
    white-space: nowrap;
  }

  .dealer-text {
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  .header-inner {
    min-height: var(--nav-height);
    gap: 8px;
  }

  .brand {
    min-width: 92px;
  }

  .brand-logo {
    height: 22px;
  }

  .nav {
    gap: 0;
  }

  .nav > a,
  .nav .nav-btn {
    height: 38px;
    padding: 0 4px;
    font-size: 12px;
    line-height: 38px;
  }

  .caret {
    width: 6px;
    height: 6px;
    margin-left: 5px;
  }

  .mega-inner > div:first-child,
  .mega-inner > div:last-child {
    padding: 25px 16px 30px;
  }

  .mega-kicker {
    margin-bottom: 20px;
  }

  .mega-h,
  .mega-feature .mega-h {
    font-size: 18px;
  }

  .mega-p {
    font-size: 13px;
  }

  .mega-footer {
    padding: 24px 16px 30px;
  }

  .mega-footer-link:hover,
  .mega-footer-link:focus-visible {
    transform: translateX(16px);
  }

  .mega-link-title {
    font-size: 20px;
  }

  .mega-footnote {
    font-size: 13px;
  }
}
