/* intro-typography-unify-20260827 — /zh/* intro pages match main site scale */
html {
  font-size: 100% !important;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 3vw, 2.4rem) !important;
  font-weight: 750 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.03em !important;
  margin-bottom: 0.65rem !important;
}

.eyebrow,
.page-hero-eyebrow {
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
}

.lead {
  font-size: 1.02rem !important;
  line-height: 1.55 !important;
  margin-bottom: 1rem !important;
}

.section h2,
.cta-inner h2,
.panel h3 {
  font-size: clamp(1.75rem, 3vw, 2.4rem) !important;
  font-weight: 750 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.03em !important;
}

.factory-card h3,
.process-card h3,
.material-card h3,
.ai-card h3 {
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}

.factory-card p,
.process-card p,
.material-card p,
.ai-card p,
.body-copy,
.faq-item p {
  font-size: 0.95rem !important;
  line-height: 1.65 !important;
}

.trust-item strong {
  font-size: 0.98rem !important;
}

.trust-item span {
  font-size: 0.86rem !important;
}

.cta-inner p {
  font-size: 1.02rem !important;
  line-height: 1.55 !important;
}

.btn {
  font-size: 0.92rem !important;
}

.spec-value {
  font-size: 0.98rem !important;
}

.spec-label {
  font-size: 0.86rem !important;
}

/* intro-nav-match-home-20260827 — mobile nav chips = main site subnav */
@media (max-width: 900px) {
  html body .header-nav {
    background: linear-gradient(180deg, #f5f8ff 0%, #eef3fb 100%) !important;
  }
  html body .header-nav-inner {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.38rem 0.32rem !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 0.45rem 0 !important;
    flex-wrap: nowrap !important;
    overflow: visible !important;
  }
  html body .header-nav .nav-item {
    width: 100% !important;
    min-width: 0 !important;
  }
  html body .header-nav .nav-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 2.05rem !important;
    padding: 0.34rem 0.38rem !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    border-radius: 0.65rem !important;
    background: #e8f0fb !important;
    color: #1a2f4a !important;
    box-shadow: inset 0 0 0 1px rgba(26, 47, 74, 0.07) !important;
  }
  html body .header-nav .nav-link:hover,
  html body .header-nav .nav-item.has-menu:focus-within > .nav-link {
    color: #1a2f4a !important;
    background: #e8f0fb !important;
  }
  html body .header-nav .nav-caret {
    font-size: 0.58rem !important;
    margin-left: 0.12rem !important;
    flex-shrink: 0 !important;
  }
}
@media (max-width: 420px) {
  html body .header-nav .nav-link {
    font-size: 0.76rem !important;
    min-height: 1.95rem !important;
    padding: 0.3rem 0.28rem !important;
  }
}

/* intro-nav-font-lg-20260827 — intro pages match larger mobile subnav */
@media (max-width: 900px) {
  html[lang] body .site-subnav-main .site-subnav-link,
  html[lang] body .site-subnav-main a.site-subnav-link {
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    min-height: 2.15rem !important;
  }
}
@media (max-width: 420px) {
  html[lang] body .site-subnav-main .site-subnav-link,
  html[lang] body .site-subnav-main a.site-subnav-link {
    font-size: 0.86rem !important;
    min-height: 2.05rem !important;
  }
}

/* intro-btn-sm-20260827 — phone: smaller header quote + hero CTA buttons */
@media (max-width: 900px) {
  html body .site-header .header-cta,
  html body .site-header .header-utils .btn.primary {
    padding: 0.38rem 0.68rem !important;
    font-size: 0.76rem !important;
    font-weight: 650 !important;
    min-height: 0 !important;
    line-height: 1.18 !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
  }
  html body .page-hero .btn.primary,
  html body .page-hero .btn,
  html body .hero-actions .btn.primary,
  html body .cta-actions .btn.primary {
    padding: 0.46rem 0.82rem !important;
    font-size: 0.8rem !important;
    font-weight: 650 !important;
    min-height: 0 !important;
    line-height: 1.22 !important;
  }
  html body .page-hero .btn.ghost,
  html body .hero-actions .btn.ghost,
  html body .cta-actions .btn.ghost {
    padding: 0.44rem 0.78rem !important;
    font-size: 0.78rem !important;
  }
}
@media (max-width: 420px) {
  html body .site-header .header-cta,
  html body .site-header .header-utils .btn.primary {
    padding: 0.34rem 0.58rem !important;
    font-size: 0.72rem !important;
  }
  html body .page-hero .btn.primary,
  html body .page-hero .btn {
    padding: 0.42rem 0.72rem !important;
    font-size: 0.76rem !important;
  }
}

/* intro-lang-menu-fix-20260828 — phone: full language menu, not half-clipped */
@media (max-width: 900px) {
  html body .site-header,
  html body .header-top,
  html body .header-top-inner,
  html body .header-utils,
  html body .intro-lang {
    overflow: visible !important;
  }
  html body .intro-lang {
    position: relative !important;
    z-index: 90 !important;
  }
  html body .intro-lang.is-open {
    z-index: 120 !important;
  }
  html body .intro-lang-menu,
  html body .intro-lang.is-open .intro-lang-menu,
  html body .intro-lang:hover .intro-lang-menu {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    top: max(4.5rem, calc(env(safe-area-inset-top, 0px) + 4rem)) !important;
    transform: translateX(-50%) !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: min(22rem, calc(100vw - 1.25rem)) !important;
    min-width: min(22rem, calc(100vw - 1.25rem)) !important;
    max-width: calc(100vw - 1.25rem) !important;
    max-height: min(68vh, 28rem) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    z-index: 200 !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2) !important;
  }
  /* hover alone is unreliable on touch — only show when .is-open */
  html body .intro-lang:not(.is-open) .intro-lang-menu {
    display: none !important;
  }
  html body .intro-lang.is-open .intro-lang-menu {
    display: grid !important;
  }
}

/* intro-lang-portal-20260828 — phone: intro locale menu on body */
@media (max-width: 900px) {
  html body .intro-lang-backdrop {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 9000 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: rgba(8, 20, 40, 0.42) !important;
    cursor: pointer !important;
  }
  html body .intro-lang-menu.is-mobile-portal {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    top: max(4.5rem, calc(env(safe-area-inset-top, 0px) + 4rem)) !important;
    width: min(22rem, calc(100vw - 1.25rem)) !important;
    min-width: min(22rem, calc(100vw - 1.25rem)) !important;
    max-width: calc(100vw - 1.25rem) !important;
    max-height: min(70vh, 30rem) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    z-index: 9010 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.12rem !important;
    padding: 0.45rem !important;
    margin: 0 !important;
    list-style: none !important;
    background: #ffffff !important;
    border: 1px solid var(--line, #d7e0ea) !important;
    border-radius: 0.85rem !important;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.24) !important;
    isolation: isolate !important;
  }
  html body .intro-lang-menu.is-mobile-portal a {
    background: #ffffff !important;
  }
  html body .intro-lang-menu.is-mobile-portal a:hover,
  html body .intro-lang-menu.is-mobile-portal a.is-active {
    background: #eef4ff !important;
  }
}

/* lang-menu-solid-20260828 — phone: opaque locale layer, never bleed hero text */
@media (max-width: 900px) {
  html body:has(.locale-switch.is-open)::before,
  html body:has(.intro-lang.is-open)::before {
    content: "" !important;
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 8999 !important;
    background: rgba(8, 20, 40, 0.46) !important;
    pointer-events: auto !important;
  }
  html body:has(.locale-switch.is-open),
  html body:has(.intro-lang.is-open) {
    overflow: hidden !important;
  }
  html body .site-header .site-header-bar:has(.locale-switch.is-open),
  html body .site-header > .container.site-header-bar:has(.locale-switch.is-open) {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow: visible !important;
  }
  html body .locale-switch.is-open .locale-switch-menu,
  html body .locale-switch.is-open .locale-switch-menu.is-wide,
  html body .locale-switch-menu.is-mobile-portal,
  html body .locale-switch-menu.is-mobile-portal.is-wide {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    inset-inline-end: auto !important;
    transform: translateX(-50%) !important;
    top: max(3.85rem, calc(env(safe-area-inset-top, 0px) + 3.35rem)) !important;
    width: min(22rem, calc(100vw - 1.25rem)) !important;
    min-width: min(22rem, calc(100vw - 1.25rem)) !important;
    max-width: calc(100vw - 1.25rem) !important;
    max-height: min(72vh, 32rem) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    z-index: 9010 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.12rem !important;
    padding: 0.45rem !important;
    margin: 0 !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    opacity: 1 !important;
    border: 1px solid #d7e0ea !important;
    border-radius: 0.85rem !important;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.28) !important;
    isolation: isolate !important;
    mix-blend-mode: normal !important;
    pointer-events: auto !important;
  }
  html body .locale-switch-menu .locale-switch-item,
  html body .locale-switch-menu.is-mobile-portal .locale-switch-item {
    background: #ffffff !important;
    position: relative !important;
    z-index: 1 !important;
  }
  html body:has(.locale-switch.is-open) main,
  html body:has(.locale-switch.is-open) .hero-quote,
  html body:has(.locale-switch.is-open) .hero-quote-inner,
  html body:has(.locale-switch.is-open) .hero-quote-intro,
  html body:has(.locale-switch.is-open) .hero-quote-intro h1,
  html body:has(.locale-switch.is-open) .quote-board-unified {
    z-index: 0 !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
  html body .intro-lang-menu,
  html body .intro-lang.is-open .intro-lang-menu,
  html body .intro-lang-menu.is-mobile-portal {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    top: max(4rem, calc(env(safe-area-inset-top, 0px) + 3.75rem)) !important;
    width: min(22rem, calc(100vw - 1.25rem)) !important;
    min-width: min(22rem, calc(100vw - 1.25rem)) !important;
    max-width: calc(100vw - 1.25rem) !important;
    max-height: min(72vh, 32rem) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    z-index: 9010 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.12rem !important;
    padding: 0.45rem !important;
    margin: 0 !important;
    list-style: none !important;
    background: #ffffff !important;
    border: 1px solid #d7e0ea !important;
    border-radius: 0.85rem !important;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.28) !important;
    isolation: isolate !important;
  }
  html body .intro-lang:not(.is-open) .intro-lang-menu {
    display: none !important;
  }
}

/* intro-mega-font-sm-20260828 — desktop: smaller intro nav dropdown text */
@media (min-width: 901px) {
  html body .nav-mega-link {
    gap: 0.1rem !important;
    padding: 0.42rem 0.55rem !important;
  }
  html body .nav-mega-link strong {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
  }
  html body .nav-mega-link span {
    font-size: 0.68rem !important;
    line-height: 1.35 !important;
  }
  html body .nav-mega {
    padding: 0.7rem !important;
    gap: 0.28rem 0.85rem !important;
  }
}
