:root {
  --ws-nav-blue: #1a73e8;
  --ws-nav-ink: #202124;
  --ws-nav-muted: #5f6368;
  --ws-nav-line: #e5e9f0;
  --ws-nav-soft: #f6f8fc;
}

@media (min-width: 768px) {
  header.f-header__desktop .f-header__inner {
    min-height: 72px !important;
  }

  header.f-header__desktop .f-header__logo {
    width: 190px !important;
    height: 44px !important;
  }

  header.f-header__desktop .f-menu__link--main {
    min-height: 72px;
    padding-inline: 17px !important;
    font-size: 15px;
  }

  header.f-header__desktop .f-menu__item--parent > .f-menu__link--main .f-menu__arrow {
    margin-left: 6px;
    opacity: .58;
    transform: scale(.76);
  }

  header.f-header__desktop .f-mega-menu:has(.f-sub-menu--level-2) {
    left: 50% !important;
    right: auto !important;
    width: min(1140px, calc(100vw - 48px)) !important;
    max-width: 1140px !important;
    min-height: 286px;
    overflow: hidden !important;
    transform: translateX(-50%) !important;
    border: 1px solid var(--ws-nav-line) !important;
    border-top: 0 !important;
    border-radius: 0 0 14px 14px !important;
    background: #fff !important;
    box-shadow: 0 18px 42px rgba(32, 33, 36, .14) !important;
  }

  header.f-header__desktop .f-mega-menu:has(.f-sub-menu--level-2) .f-mega-menu__container {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
  }

  header.f-header__desktop .f-mega-menu:has(.f-sub-menu--level-2) .f-mega-menu__inner {
    min-height: 286px;
    padding: 0 !important;
  }

  header.f-header__desktop .f-mega-menu:has(.f-sub-menu--level-2) .f-sub-menu--level-1 {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    min-height: 286px;
    padding: 20px 0 !important;
    background: linear-gradient(90deg, var(--ws-nav-soft) 0 194px, #fff 194px) !important;
  }

  header.f-header__desktop .f-mega-menu:has(.f-sub-menu--level-2) .f-sub-menu__item--level-1 {
    position: static !important;
    display: block !important;
    width: 194px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 0 !important;
  }

  header.f-header__desktop .f-mega-menu:has(.f-sub-menu--level-2) .f-sub-menu__item--level-1 > .f-menu__link {
    display: flex !important;
    align-items: center !important;
    min-height: 48px !important;
    margin: 0 0 4px !important;
    padding: 0 17px !important;
    border: 0 !important;
    border-radius: 8px !important;
    color: var(--ws-nav-ink) !important;
    font-size: 15px !important;
    font-weight: 650 !important;
    line-height: 1.25 !important;
    text-decoration: none !important;
  }

  header.f-header__desktop .f-mega-menu:has(.f-sub-menu--level-2) .f-sub-menu__item--level-1 > .f-menu__link::before,
  header.f-header__desktop .f-mega-menu:has(.f-sub-menu--level-2) .f-sub-menu__item--level-2 > .f-menu__link::before {
    display: none !important;
    content: none !important;
  }

  header.f-header__desktop .f-mega-menu:has(.f-sub-menu--level-2) .f-sub-menu__item--level-1:first-child > .f-menu__link,
  header.f-header__desktop .f-mega-menu:has(.f-sub-menu--level-2) .f-sub-menu__item--level-1:hover > .f-menu__link,
  header.f-header__desktop .f-mega-menu:has(.f-sub-menu--level-2) .f-sub-menu__item--level-1:focus-within > .f-menu__link {
    background: #e8f0fe !important;
    color: #1967d2 !important;
  }

  header.f-header__desktop .f-mega-menu:has(.f-sub-menu--level-2) .f-sub-menu__item--level-1 > .f-mega-menu__column {
    position: absolute !important;
    z-index: 1;
    top: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    left: 194px !important;
    display: block !important;
    min-height: 286px;
    padding: 28px 30px !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .14s ease;
  }

  header.f-header__desktop .f-mega-menu:has(.f-sub-menu--level-2) .f-sub-menu__item--level-1:first-child > .f-mega-menu__column {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  header.f-header__desktop .f-mega-menu:has(.f-sub-menu--level-2) .f-sub-menu--level-1:has(> .f-sub-menu__item--level-1:not(:first-child):hover) > .f-sub-menu__item--level-1:first-child > .f-mega-menu__column,
  header.f-header__desktop .f-mega-menu:has(.f-sub-menu--level-2) .f-sub-menu--level-1:has(> .f-sub-menu__item--level-1:not(:first-child):focus-within) > .f-sub-menu__item--level-1:first-child > .f-mega-menu__column {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  header.f-header__desktop .f-mega-menu:has(.f-sub-menu--level-2) .f-sub-menu__item--level-1:hover > .f-mega-menu__column,
  header.f-header__desktop .f-mega-menu:has(.f-sub-menu--level-2) .f-sub-menu__item--level-1:focus-within > .f-mega-menu__column {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  header.f-header__desktop .f-mega-menu:has(.f-sub-menu--level-2) .f-sub-menu--level-2 {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px 20px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  header.f-header__desktop .f-mega-menu:has(.f-sub-menu--level-2) .f-sub-menu__item--level-2 {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  header.f-header__desktop .f-mega-menu:has(.f-sub-menu--level-2) .f-sub-menu__item--level-2 > .f-menu__link {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start !important;
    justify-content: center !important;
    min-height: 92px !important;
    padding: 14px 16px !important;
    border: 0 !important;
    border-radius: 10px !important;
    color: var(--ws-nav-ink) !important;
    font-size: 16px !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
    white-space: normal !important;
  }

  header.f-header__desktop .f-mega-menu:has(.f-sub-menu--level-2) .f-sub-menu__item--level-2 > .f-menu__link::after {
    display: block;
    margin-top: 7px;
    color: var(--ws-nav-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
  }

  header.f-header__desktop .f-sub-menu__item--level-2 > a[href*="b2c-cross-border-retail-solution"]::after { content: "面向消费者的多语言商城与在线交易" !important; }
  header.f-header__desktop .f-sub-menu__item--level-2 > a[href*="b2b-overseas-lead-generation-solution"]::after { content: "企业展示、产品目录与询盘承接" !important; }
  header.f-header__desktop .f-sub-menu__item--level-2 > a[href*="multi-brand-global-market-solution"]::after { content: "按品牌和目标市场规划网站结构" !important; }
  header.f-header__desktop .f-sub-menu__item--level-2 > a[href*="choose-b2c-or-b2b-website"]::after { content: "从交易方式与获客目标判断网站类型" !important; }
  header.f-header__desktop .f-sub-menu__item--level-2 > a[href*="#global"]::after { content: "域名、多语言与目标市场统一规划" !important; }
  header.f-header__desktop .f-sub-menu__item--level-2 > a[href*="#content"]::after { content: "维护商品、页面、博客与导航内容" !important; }
  header.f-header__desktop .f-sub-menu__item--level-2 > a[href*="#b2c"]::after { content: "支持商品展示、购物车与订单流程" !important; }
  header.f-header__desktop .f-sub-menu__item--level-2 > a[href*="#b2b"]::after { content: "围绕产品资料与联系表单承接商机" !important; }
  header.f-header__desktop .f-sub-menu__item--level-2 > a[href*="#payment-logistics"]::after { content: "配置收款方式、运费与配送规则" !important; }
  header.f-header__desktop .f-sub-menu__item--level-2 > a[href*="#growth"]::after { content: "建立搜索收录、内容与推广基础" !important; }
  header.f-header__desktop .f-sub-menu__item--level-2 > a[href*="#data"]::after { content: "整理旧站数据并规划迁移与更新" !important; }
  header.f-header__desktop .f-sub-menu__item--level-2 > a[href*="#open"]::after { content: "通过应用、API 与 MCP 扩展流程" !important; }

  header.f-header__desktop .f-mega-menu:has(.f-sub-menu--level-2) .f-sub-menu__item--level-2 > .f-menu__link:hover,
  header.f-header__desktop .f-mega-menu:has(.f-sub-menu--level-2) .f-sub-menu__item--level-2 > .f-menu__link:focus-visible {
    background: #f4f7fd !important;
    color: #1967d2 !important;
  }
}

@media (min-width: 768px) {
  .template-home .f-slider-video .f-slide {
    min-height: 580px !important;
  }

  .template-home .f-multiple-services-style .f-section-py {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
  }

  .template-home .f-multiple-services-style .f-section-header,
  .template-home .f-multiple-services-style .f-section__header {
    max-width: 760px !important;
    margin-right: auto !important;
    margin-bottom: 42px !important;
    margin-left: auto !important;
  }

  .template-home .f-multiple-services-style .f-section-header__heading,
  .template-home .f-multiple-services-style .f-section__heading {
    font-size: clamp(34px, 3.2vw, 46px) !important;
    line-height: 1.18 !important;
  }

  .template-home .f-services-style-carousel__wrapper {
    gap: 22px !important;
  }

  .template-home .f-services-style__content {
    padding: 22px !important;
    border-color: #e2e6ec !important;
    border-radius: 12px !important;
  }

  .template-home .f-services-style__image {
    border-radius: 8px !important;
  }

  .template-home .f-card__title {
    margin-top: 4px !important;
    font-size: 21px !important;
    line-height: 1.35 !important;
  }

  .template-home .f-card__description {
    color: var(--ws-nav-muted) !important;
    font-size: 15px !important;
    line-height: 1.72 !important;
  }

  #f-section-services-style-KYxVFacC9c {
    background: #f8fafd !important;
  }
}

@media (max-width: 767px) {
  .template-home .f-slider-video .f-slide {
    min-height: 540px !important;
  }

  .template-home .f-multiple-services-style .f-section-py {
    padding-top: 52px !important;
    padding-bottom: 52px !important;
  }

  .template-home .f-multiple-services-style .f-section-header,
  .template-home .f-multiple-services-style .f-section__header {
    margin-bottom: 28px !important;
  }

  .template-home .f-services-style__content {
    border-radius: 10px !important;
  }
}
