/* Shared mobile overrides. Desktop styles remain unchanged. */
@media (max-width: 809.98px) {
  body {
    min-width: 0;
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
  }

  .nav-container {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
  }

  .nav-container .header-content {
    width: 100%;
    min-width: 0;
    height: 64px;
    padding: 0 16px;
  }

  .nav-container .header-left {
    min-width: 0;
    flex: 1 1 auto;
  }

  .nav-container .logo-container {
    height: 64px;
    min-width: 0;
  }

  .nav-container .logo-img {
    display: block;
    width: auto;
    max-width: 132px;
    height: auto;
    max-height: 24px;
  }

  .nav-container .menu-list,
  .nav-container .dropdown-container {
    display: none !important;
  }

  .nav-container .navbar-right {
    flex: 0 0 auto;
    margin-left: 8px;
    column-gap: 8px;
  }

  .nav-container .login-switcher {
    display: none;
  }

  .nav-container .nav_custom_button {
    height: 36px;
    padding: 0 12px;
    font-size: 14px;
    line-height: 20px;
  }

  .nav-container .login-switcher__panel {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin-left: 8px;
    padding: 8px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid #d0d3d6;
    border-radius: 8px;
    background: #fff;
    color: #1f2329;
    cursor: pointer;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
  }

  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .mobile-nav-panel {
    display: none;
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    z-index: 3;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 8px;
    max-height: calc(100vh - 64px);
    padding: 12px 16px 18px;
    overflow-y: auto;
    border-top: 1px solid #eef0f2;
    background: #fff;
    box-shadow: 0 12px 28px rgba(31, 35, 41, .12);
  }

  .mobile-nav-panel.is-open {
    display: grid;
  }

  .mobile-nav-panel a {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    color: #1f2329;
    font-size: 15px;
    line-height: 22px;
    text-decoration: none;
  }

  .mobile-nav-panel a:active,
  .mobile-nav-panel a:focus {
    background: #f0f4ff;
    color: #1456f0;
  }

  .customer-server-container {
    right: 12px;
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    width: 52px;
    height: 52px;
  }

  .customer-server-container .customer-service {
    width: 52px;
    height: 52px;
  }

  .customer-server-container .qr-code {
    display: none !important;
  }

  #app,
  #main,
  #header-container {
    width: 100% !important;
    min-width: 0;
    max-width: 100% !important;
  }

  #app [data-page-id="Root"] {
    width: 100%;
    min-width: 0;
  }

  #main > [data-framer-root],
  #main > [data-framer-root][style*="width"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  #app [data-page-id="Root"],
  #app [data-elem-id="responsive-container"] {
    max-width: 100%;
  }

  #app [data-page-id="Block_Hero"] .hero_container-fixWidth {
    width: 100%;
  }

  #app [data-page-id="Block_Hero"] .hero-product-matrix {
    width: 100% !important;
  }

  #app :is([data-page-id="Block_Hero"], [data-page-id="Block_HeroSection"]) .hero_container_content_logoContainer {
    width: 100%;
    max-width: 100%;
  }

  #app [data-page-id="Block_Hero"] [data-elem-id="b52AzCS1pL"] {
    width: 100%;
  }

  #app :is([data-page-id="Block_Hero"], [data-page-id="Block_HeroSection"]) :is(.hero_container_content_logo1, .hero_container_content_logo2) {
    max-width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  #app :is([data-page-id="Block_Hero"], [data-page-id="Block_HeroSection"]) .hero_container_content_logo_img {
    max-width: 22%;
    object-fit: contain;
  }

  #app .app-wall-title,
  #app .customerVideo_bottom_content :is(.customerVideo_bottom_content_left, .customerVideo_bottom_content_right, .customerVideo_bottom_content_rightContainer) {
    max-width: 100%;
  }

  #app .customerVideo_bottom_content {
    padding-inline: 16px;
  }

  #app .customerVideo_bottom_content_left .ud__button,
  #app .trust_topContent_right {
    min-width: 0;
    max-width: 100%;
  }

  #app .modal-card {
    inset-inline: 0;
    width: 100%;
    max-height: 80dvh;
    overflow-y: auto;
    visibility: hidden;
  }

  #app .modal-card.open {
    visibility: visible;
  }

  /* 旧版产品模板的按钮和产品入口仍带有桌面固定宽度。 */
  #main [data-framer-name="heroModule"] [data-framer-name="Buttons"] {
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    max-width: 100%;
  }

  #main [data-framer-name="heroModule"] [data-framer-name="Hero Image"] {
    max-width: 100%;
  }

  #main [data-framer-name="heroModule"] [data-framer-name="Buttons"] > .ssr-variant > div {
    width: auto;
    max-width: 100%;
  }

  #main [data-framer-name="heroModule"] [data-framer-name="Buttons"] .wk-ai-btn {
    margin-left: 0 !important;
    padding-inline: 18px;
  }

  #main .framer-b1EZB :is(.framer-mnkb29, .framer-1bgta5p, .framer-1wjzyaj, .framer-1do1ciw, .framer-b8xbfo) {
    width: 100%;
  }

  #main .framer-b1EZB .framer-mnkb29 {
    gap: 20px;
    padding-inline: 16px;
  }

  #main .framer-b1EZB .framer-b8xbfo {
    justify-content: center;
    gap: 16px;
  }

  #main .framer-b1EZB .framer-b8xbfo > div {
    width: clamp(86px, 26vw, 110px);
  }

  #main .framer-b1EZB .framer-b8xbfo .framer-1f793mw {
    max-width: 100%;
    white-space: normal;
  }

  #main .framer-CCfOH .framer-dr29dk {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  #main .framer-CCfOH [data-framer-name="Final CTA"] .framer-s8neb6 {
    flex: 0 1 auto;
    width: 100%;
    min-width: 0;
  }

  #main .framer-CCfOH [data-framer-name="Final CTA"] :is(.framer-1dvi2mo, .framer-12npv3u) {
    display: none;
  }

  #main .framer-CCfOH [data-framer-name="Final CTA"] :is(.framer-8tcmma, .framer-1kfswf2, .framer-gc1aoj) {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  #main .framer-XCytP .framer-n86b79 {
    max-width: 100%;
    white-space: normal;
  }

  #app [data-page-id="Block_HeroSection"] :is(.heroSection_hero_bg, .heroSection_hero, .heroSection_hero_left) {
    width: 100%;
    min-width: 0;
  }

  #app [data-page-id="Block_HeroSection"] :is(.heroSection_hero_left_title, .heroSection_hero_left_desc) {
    max-width: 100%;
  }

  #app [data-page-id="Block_HeroSection"] .heroSectionContainer_btnContainer {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  #app [data-page-id="Block_HeroSection"] .heroSectionContainer_btnContainer .wk-ai-btn {
    margin-left: 0 !important;
  }

  #app [data-page-id="Block_HeroSection"] .heroSection_hero .heroSection_hero_right .heroSection_hero_right_img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  #app [data-page-id="Block_HeroSection"] [data-elem-id="TP8VHIm2J7"] {
    width: 100%;
    padding-inline: 16px;
  }

  #main img,
  #main video,
  #main iframe,
  #app img,
  #app video,
  #app iframe {
    max-width: 100%;
  }

  #main table,
  #app table {
    max-width: 100%;
  }

  #main table {
    display: block;
    overflow-x: auto;
  }

  #main [style*="width: 1200px"],
  #main [style*="width:1200px"],
  #main [style*="width: 1136px"],
  #main [style*="width:1136px"],
  #main [style*="width: 1000px"],
  #main [style*="width:1000px"],
  #app [style*="width: 1200px"],
  #app [style*="width:1200px"],
  #app [style*="width: 1136px"],
  #app [style*="width:1136px"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* 人资、财务、进销存共用同一套产品页结构。 */
  #root [data-id="tBWgt2UUlG"] {
    height: auto;
    margin-top: 0;
  }

  #root [data-id="Y9rgLCTmC9"] {
    flex-direction: column;
    gap: 20px;
    width: 100%;
    height: auto;
    padding: 32px 20px 16px;
  }

  #root [data-id="bUhhOvRj2b"],
  #root [data-id="FOkgNFJ31u"] {
    flex: none;
    min-width: 0;
    padding: 0;
  }

  #root [data-id="HReesBSpW9"] {
    margin-bottom: 12px;
    font-size: clamp(26px, 5.5vw, 38px);
    line-height: 1.25;
  }

  #root [data-id="j1qFsvbHhI"] {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
  }

  #root [data-id="VXkBKKUUbG"],
  #root .heraComp_signBanner-button {
    flex-wrap: wrap;
    gap: 10px;
  }

  #root [data-id="VXkBKKUUbG"] > .wk-ai-btn {
    margin-left: 0 !important;
  }

  #root :is([data-id="VXkBKKUUbG"], .heraComp_signBanner-button) :is(.heraComp_button, .wk-ai-btn) {
    height: 44px;
    padding: 0 18px;
    font-size: 15px;
  }

  #root :is([data-id="FOkgNFJ31u"], .heraComp_featureList-figure) .heraComp_image {
    max-width: 100%;
    height: auto !important;
    margin-inline: auto;
  }

  #root [data-id="oZIX2p0wLv"],
  #root .heraComp_featureList {
    width: 100%;
  }

  #root [data-id="oZIX2p0wLv"] {
    margin-top: 0;
  }

  #root .heraComp_featureList-item.heraComp_featureList-itemLark {
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: auto;
    margin: 0;
    padding: 32px 20px;
  }

  #root .heraComp_featureList-item > :is(.heraComp_featureList-intro, .heraComp_featureList-figure) {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  #root .heraComp_featureList-itemLark .heraComp_featureList-title {
    margin-bottom: 12px;
    font-size: clamp(22px, 4vw, 30px);
    line-height: 1.35;
  }

  #root .heraComp_featureList-itemLark .heraComp_featureList-content {
    font-size: 16px;
    line-height: 1.65;
  }

  #root [data-id="7GPUgVtXAm"] {
    margin-top: 0;
  }

  #root .heraComp_signBanner :is(.heraComp_signBanner-contanier, .heraComp_signBanner-wrapper, .heraComp_signBanner-center-wrap) {
    min-width: 0;
    height: auto;
  }

  #root .heraComp_signBanner .heraComp_signBanner-wrapper {
    padding: 28px 20px;
  }

  #root .heraComp_signBanner .heraComp_signBanner-wrapper > img {
    display: none !important;
  }

  #root .heraComp_signBanner .heraComp_signBanner-wrapper .heraComp_signBanner-center-wrap {
    margin: 0;
  }

  #root .heraComp_signBanner .heraComp_signBanner-wrapper .heraComp_signBanner-content {
    font-size: 24px;
    line-height: 1.35;
  }

  #root .heraComp_signBanner .heraComp_signBanner-wrapper .heraComp_signBanner-button {
    margin-top: 16px;
  }

  #root .heraComp_signBanner .heraComp_signBanner-wrapper .heraComp_signBanner-button1 {
    margin-right: 0;
  }
}

@media (max-width: 380px) {
  .nav-container .header-content {
    padding: 0 12px;
  }

  .nav-container .logo-img {
    max-width: 122px;
  }

  #app [data-page-id="Block_Usecase"] .usecase_ab_contrastContainer {
    height: auto;
    padding: 20px 16px;
  }

  #app [data-page-id="Block_Usecase"] .usecase_ab_contrastContainer .usecase_contrast_right {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: center;
    gap: 12px;
    width: 100%;
  }
}
