/* Shared polish for the product dropdown and footer quick links. */
.brand-fallback {
  display: none !important;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.site-header-inner,
.brand,
.brand-copy,
.nav {
  min-width: 0;
}

.site-header .brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.site-header .brand-copy strong,
.site-header .brand-copy > .brand-subtitle {
  display: block;
}

@media (min-width: 1281px) {
  .site-header .brand {
    flex: 0 0 auto;
    align-items: center;
  }

  .site-header .brand-copy {
    gap: 3px;
  }

  .site-header .brand-copy strong {
    font-size: 1.06rem;
    line-height: 1.15;
    white-space: nowrap;
  }

  .site-header .brand-copy span {
    max-width: none;
    font-size: 0.95rem;
    line-height: 1.25;
    white-space: nowrap;
  }
}

.nav-panel {
  max-width: min(430px, calc(100vw - 32px));
  max-height: min(56vh, 460px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  z-index: 200;
}

details.nav-menu {
  position: relative;
}

details.nav-menu[open] {
  z-index: 200;
}

/* A horizontally scrollable header turns overflow-y into auto and clips an
   open dropdown. Release the nav overflow only while a menu is open. */
.nav:has(details.nav-menu[open]) {
  overflow: visible;
}

details.nav-menu > summary {
  position: relative;
  z-index: 1;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

details.nav-menu:not([open]) > .nav-panel {
  display: none !important;
}

details.nav-menu[open] > .nav-panel {
  display: block;
}

.product-nav-panel {
  width: min(380px, calc(100vw - 28px));
  min-width: 0;
  max-height: min(52vh, 430px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.product-nav-group {
  margin: 1px 0;
}

.product-nav-group > summary {
  min-height: 40px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink, #1d2630);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
  box-shadow: none;
}

.product-nav-group > summary::-webkit-details-marker {
  display: none;
}

.product-nav-group > summary::after {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  margin-left: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.42;
  transform: rotate(45deg);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.product-nav-group > summary:hover,
.product-nav-group[open] > summary {
  background: #f4ede0;
  color: var(--accent-dark, #d46d00);
}

.product-nav-group[open] > summary::after {
  margin-top: 2px;
  opacity: 0.85;
  transform: rotate(225deg);
}

.product-nav-sublist {
  display: grid;
  gap: 2px;
  margin: 1px 0 5px;
  padding: 1px 0 3px 12px;
  border-left: 2px solid rgba(244, 139, 32, 0.22);
}

.product-nav-panel .nav-sub {
  padding: 6px 10px;
  color: var(--muted, #66707d);
  font-size: 0.86rem;
  line-height: 1.22;
}

.product-nav-panel .nav-sub::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 999px;
  background: rgba(244, 139, 32, 0.42);
}

.product-nav-panel .nav-sub-all {
  color: var(--navy, #223546);
  font-weight: 750;
}

.product-nav-panel > a,
.nav-panel > a {
  min-height: 34px;
  padding-top: 7px;
  padding-bottom: 7px;
  line-height: 1.24;
}

.footer-top .footer-col:last-child {
  gap: 8px;
}

.footer {
  padding: 46px 0 34px;
}

.footer-inner {
  display: grid;
  gap: 18px;
  padding-top: 0;
  border-top: 0;
  color: inherit;
  font-size: inherit;
}

.footer-panel {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  color: var(--ink, #1d2630);
  border: 1px solid rgba(222, 211, 193, 0.9);
  box-shadow: 0 20px 48px rgba(24, 31, 40, 0.08);
}

.footer-panel::before {
  display: none;
}

.footer-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.7fr) minmax(190px, 0.55fr);
  gap: 34px;
  padding: 36px;
  align-items: start;
}

.footer-company {
  min-height: 0;
  max-width: 640px;
}

.footer-company strong {
  display: block;
  color: var(--muted, #66707d);
  font-size: clamp(1.25rem, 2.2vw, 1.78rem);
  font-weight: 760;
  line-height: 1.18;
  margin-bottom: 12px;
  letter-spacing: 0;
}

.footer-company span {
  display: block;
  color: var(--muted, #66707d);
  line-height: 1.65;
}

.footer-tagline {
  margin-top: 18px;
  max-width: 520px;
}

.footer-col {
  display: grid;
  gap: 8px;
}

.footer-col h3 {
  margin: 0 0 8px;
  color: var(--muted, #66707d);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col a,
.footer-col span {
  display: block;
  color: var(--muted, #66707d);
  line-height: 1.55;
  font-size: 0.98rem;
}

.footer-top .footer-col:last-child a {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 2px 0 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted, #66707d);
  font-weight: 750;
  box-shadow: none;
  transition: color 0.18s ease;
}

.footer-top .footer-col:last-child a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 18px;
  height: 2px;
  border: 0;
  border-radius: 999px;
  background: var(--accent, #f48b20);
  opacity: 0;
  transform: translateX(0) scaleX(0.45);
  transform-origin: left center;
  transition: opacity 0.18s ease, transform 0.22s ease, width 0.22s ease;
}

.footer-top .footer-col:last-child a:hover {
  color: var(--accent-dark, #d46d00);
  text-decoration: none;
}

.footer-top .footer-col:last-child a:hover::after {
  width: 34px;
  opacity: 1;
  transform: translateX(8px) scaleX(1);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 4px;
  color: var(--muted, #66707d);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.6;
}

.footer-bottom a {
  color: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.footer-bottom a:hover {
  color: var(--accent-dark, #d46d00);
}

@media (max-width: 760px) {
  .site-header-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .brand {
    max-width: 100%;
  }

  .brand-copy strong,
  .brand-copy span {
    overflow-wrap: anywhere;
  }

  .nav {
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    justify-content: flex-start;
    padding-right: 18px;
    scroll-padding-inline: 16px;
    -webkit-overflow-scrolling: touch;
  }

  .product-nav-panel {
    width: min(420px, calc(100vw - 24px));
    min-width: 0;
    max-height: min(58vh, 440px);
  }

  .footer {
    padding: 34px 0 28px;
  }

  .footer-panel {
    border-radius: 18px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px;
  }

  .footer-company strong {
    font-size: 1.3rem;
  }

  .footer-company span,
  .footer-col a,
  .footer-col span {
    font-size: 0.95rem;
  }

  .location-map iframe {
    height: 190px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 0 2px;
  }
}

@media (max-width: 520px) {
  .footer-company strong {
    font-size: 1.16rem;
  }

  .footer-top {
    padding: 20px;
  }

  .location-map iframe {
    height: 170px;
  }
}

/* Flat five-column footer, aligned with the reference ecommerce footer style. */
.entity-flat-footer.footer,
.footer.entity-flat-footer {
  margin-top: 48px;
  padding: 0;
  background: var(--warm, var(--knowledge-bg, #f7efe3));
  color: #1f2630;
}

.entity-flat-footer .footer-inner,
.entity-flat-footer .entity-footer-inner {
  display: grid;
  gap: 0;
  width: min(1680px, calc(100% - 72px));
  max-width: none;
  margin: 0 auto;
  padding: 34px 0 22px;
  color: #1f2630;
}

.entity-flat-footer .entity-footer-grid {
  display: grid;
  grid-template-columns:
    minmax(132px, 0.82fr)
    minmax(172px, 1fr)
    minmax(150px, 0.9fr)
    minmax(154px, 0.9fr)
    minmax(340px, 1.65fr);
  gap: clamp(22px, 2.4vw, 42px);
  padding-top: 34px;
  padding-bottom: 34px;
  border-top: 1px solid rgba(124, 93, 54, 0.18);
  border-bottom: 1px solid rgba(124, 93, 54, 0.18);
}

.entity-flat-footer .entity-footer-col {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.entity-flat-footer .entity-footer-col h3 {
  margin: 0 0 12px;
  color: #161c24;
  font-size: 0.98rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.entity-flat-footer .entity-footer-col a,
.entity-flat-footer .entity-footer-col p {
  margin: 0;
  color: #2d3540;
  font-size: 0.98rem;
  line-height: 1.55;
  font-weight: 500;
  text-decoration: none;
}

.entity-flat-footer .entity-footer-col a:hover {
  color: var(--accent-dark, #d46d00);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.entity-flat-footer .entity-footer-contact p {
  max-width: 480px;
  color: #4f5966;
  overflow-wrap: anywhere;
}

#catalogContact .contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

#catalogContact .contact-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-content: stretch;
  gap: 16px;
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding: 24px;
  border-color: rgba(222, 211, 193, 0.9);
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.92), rgba(255, 255, 255, 0.96)),
    #fff;
  box-shadow: 0 18px 42px rgba(24, 31, 40, 0.07);
}

#catalogContact .contact-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent, #f48b20), rgba(20, 32, 107, 0.78));
  opacity: 0.78;
}

#catalogContact .contact-card .lead {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  margin: 0;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(244, 139, 32, 0.1);
  color: #1d2630;
  font-weight: 820;
}

#catalogContact .contact-card p:not(.lead) {
  margin: 0;
  color: #66707d;
  font-weight: 650;
  line-height: 1.7;
}

#catalogContact .contact-card .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(244, 139, 32, 0.34);
  border-radius: 999px;
  color: #1d2630;
  background: rgba(255, 247, 236, 0.92);
  font-weight: 820;
  line-height: 1.1;
  text-decoration: none;
  align-self: end;
}

#catalogContact .contact-card .button.primary {
  color: #fff;
  border-color: transparent;
  background: var(--accent, #f48b20);
  box-shadow: 0 12px 24px rgba(212, 109, 0, 0.18);
}

#catalogContact .contact-card .button:hover,
#catalogContact .contact-card .button:focus-visible {
  color: #fff;
  border-color: transparent;
  background: var(--accent-dark, #d46d00);
  text-decoration: none;
}

#catalogContact .contact-card .button + .button {
  margin-top: 10px;
}

.entity-flat-footer .social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.entity-flat-footer .social-link {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #14206b;
  color: #fff !important;
  text-decoration: none;
}

.entity-flat-footer .social-link:visited,
.entity-flat-footer .social-link:hover {
  background: var(--accent-dark, #d46d00);
  color: #fff !important;
  text-decoration: none;
}

.entity-flat-footer .social-link svg {
  color: currentColor;
}

.entity-flat-footer .social-link svg [stroke] {
  stroke: currentColor;
}

.entity-flat-footer .social-link svg [fill]:not([fill="none"]) {
  fill: currentColor;
}

.quick-lead-bar {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(640px, calc(100vw - 32px));
  padding: 8px;
  border: 1px solid rgba(244, 139, 32, 0.28);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.96);
  box-shadow: 0 14px 34px rgba(24, 31, 40, 0.16);
  backdrop-filter: blur(14px);
}

.quick-lead-bar strong {
  color: #1d2630;
  font-size: 0.86rem;
  line-height: 1.25;
  white-space: nowrap;
}

.quick-lead-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #fff;
  background: #14206b;
  font-size: 0.86rem;
  font-weight: 780;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}

.quick-lead-bar .quick-sales,
.quick-lead-bar .quick-whatsapp {
  background: var(--accent-dark, #d46d00);
}

.quick-lead-bar .quick-sales {
  padding-inline: 18px;
}

.quick-lead-bar a:hover,
.quick-lead-bar a:focus-visible {
  color: #fff;
  transform: translateY(-1px);
}

.quick-lead-bar.is-contact-visible {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
}

.seo-faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.seo-faq-card {
  padding: 20px;
  border: 1px solid rgba(222, 211, 193, 0.86);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 32px rgba(24, 31, 40, 0.06);
}

.seo-faq-card h3 {
  margin: 0 0 10px;
  color: #1d2630;
  font-size: 1rem;
  line-height: 1.35;
}

.seo-faq-card p {
  margin: 0;
  color: #66707d;
  line-height: 1.65;
}

.entity-flat-footer .entity-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(124, 93, 54, 0.18);
}

.entity-flat-footer .entity-footer-links a {
  color: #2d3540;
  font-size: 0.94rem;
  line-height: 1.4;
  text-decoration: none;
}

.entity-flat-footer .entity-footer-links a:not(:last-child)::after {
  content: "|";
  margin-left: 12px;
  color: rgba(31, 38, 48, 0.48);
}

.entity-flat-footer .entity-footer-bottom {
  padding-top: 22px;
  color: #2d3540;
  font-size: 0.92rem;
  line-height: 1.5;
}

@media (max-width: 1280px) {
  .entity-flat-footer .entity-footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 36px;
  }

  .entity-flat-footer .entity-footer-col h3 {
    white-space: normal;
  }
}

/* Global typography v64: Apple-inspired system clarity.
   Layout, colors, imagery and component geometry intentionally stay unchanged. */
:root {
  --hm-font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Segoe UI", Arial, sans-serif;
}

html {
  font-family: var(--hm-font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
  font-family: var(--hm-font-sans) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-copy strong {
  font-family: var(--hm-font-sans);
  font-feature-settings: "kern" 1, "liga" 1;
  font-synthesis: none;
}

h1 {
  font-weight: 650;
  letter-spacing: -0.032em;
}

h2 {
  font-weight: 640;
  letter-spacing: -0.026em;
}

h3,
h4,
h5,
h6 {
  font-weight: 620;
  letter-spacing: -0.018em;
}

p,
li,
dd,
dt {
  font-weight: 400;
  letter-spacing: -0.006em;
}

.lang-zh {
  letter-spacing: 0;
}

.site-header .brand-copy strong {
  font-weight: 650;
  letter-spacing: -0.018em;
}

.site-header .brand-copy > span {
  font-weight: 400;
  letter-spacing: -0.008em;
}

.site-header .nav > a,
.site-header .nav > details > summary {
  font-weight: 500 !important;
  letter-spacing: -0.012em;
}

.site-header .nav-panel > a,
.site-header .product-nav-group > summary,
.site-header .product-nav-panel .nav-sub {
  letter-spacing: -0.008em;
}

.site-header .lang-toggle,
.button,
.quote-link,
.floating-contact a,
.floating-contact button,
.sticky-contact a,
.contact-float a {
  font-weight: 600;
  letter-spacing: -0.012em;
}

.eyebrow,
.section-kicker,
.kicker,
.badge {
  font-weight: 650;
  letter-spacing: 0.012em;
}

strong,
b {
  font-weight: 620;
}

/* Mobile conversion cleanup: keep the header compact until the buyer opens it. */
.mobile-nav-toggle {
  display: none;
}

@media (max-width: 760px) {
  .site-header.has-mobile-nav-toggle .site-header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 10px;
  }

  .site-header.has-mobile-nav-toggle .brand {
    min-width: 0;
  }

  .site-header.has-mobile-nav-toggle .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid rgba(222, 211, 193, 0.92);
    border-radius: 999px;
    color: var(--ink, #1d2630);
    background: rgba(255, 255, 255, 0.82);
    font: 750 0.9rem/1 "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Segoe UI", Arial, sans-serif;
    cursor: pointer;
  }

  .site-header.has-mobile-nav-toggle .mobile-nav-toggle:focus-visible {
    outline: 3px solid var(--accent, #f48b20);
    outline-offset: 3px;
  }

  .site-header.has-mobile-nav-toggle .nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    max-height: min(58vh, 440px);
    margin: 0 !important;
    padding: 4px 0 8px !important;
    overflow-x: hidden;
    overflow-y: auto;
    flex-wrap: wrap;
    gap: 8px;
  }

  .site-header.has-mobile-nav-toggle.mobile-nav-open .nav {
    display: flex;
  }

  .site-header.has-mobile-nav-toggle .nav > a,
  .site-header.has-mobile-nav-toggle .nav > details,
  .site-header.has-mobile-nav-toggle .lang-toggle {
    flex: 0 0 auto;
  }

  .site-header.has-mobile-nav-toggle .nav-panel,
  .site-header.has-mobile-nav-toggle .product-nav-panel {
    top: 116px;
  }

  body {
    padding-bottom: 20px;
  }

  .quick-lead-bar {
    left: auto;
    right: 12px;
    bottom: 12px;
    display: block;
    width: auto;
    max-width: calc(100vw - 24px);
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .quick-lead-bar strong,
  .quick-lead-bar .quick-whatsapp,
  .quick-lead-bar .quick-email {
    display: none;
  }

  .quick-lead-bar .quick-sales {
    width: auto;
    min-width: 132px;
    min-height: 48px;
    padding: 10px 18px;
    box-shadow: 0 12px 28px rgba(24, 31, 40, 0.2);
  }

  .quick-lead-bar.is-contact-visible {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
  }
}

@media (max-width: 980px) {
  #catalogContact .contact-grid,
  .seo-faq-grid,
  .entity-flat-footer .entity-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .entity-flat-footer .entity-footer-col h3 {
    white-space: normal;
  }
}

@media (max-width: 620px) {
  body {
    padding-bottom: 76px;
  }

  .quick-lead-bar {
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-width: none;
    min-width: 0;
    border-radius: 18px;
  }

  .quick-lead-bar strong,
  .quick-lead-bar .quick-email {
    display: none;
  }

  .quick-lead-bar a {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 7px 8px;
    font-size: 0.82rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .quick-lead-bar .quick-sales {
    grid-column: auto;
  }

  .entity-flat-footer .footer-inner,
  .entity-flat-footer .entity-footer-inner {
    width: min(100% - 28px, 1680px);
    padding-top: 28px;
  }

  #catalogContact .contact-grid,
  .seo-faq-grid,
  .entity-flat-footer .entity-footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  html,
  body.catalog-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body.catalog-page,
  body:has(.catalog-intro) {
    overflow-x: hidden;
  }

  body.catalog-page .shell,
  body.catalog-page .site-header-inner,
  body:has(.catalog-intro) .shell,
  body:has(.catalog-intro) .site-header-inner {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }

  body.catalog-page .catalog-intro .section-card,
  body.catalog-page .catalog-structure-grid,
  body.catalog-page .catalog-structure-grid article,
  body.catalog-page .catalog-app,
  body.catalog-page .catalog-sidebar,
  body.catalog-page .catalog-results,
  body.catalog-page .catalog-product-grid,
  body.catalog-page .catalog-product-card,
  body:has(.catalog-intro) .catalog-intro .section-card,
  body:has(.catalog-intro) .catalog-structure-grid,
  body:has(.catalog-intro) .catalog-structure-grid article,
  body:has(.catalog-intro) .catalog-app,
  body:has(.catalog-intro) .catalog-sidebar,
  body:has(.catalog-intro) .catalog-results,
  body:has(.catalog-intro) .catalog-product-grid,
  body:has(.catalog-intro) .catalog-product-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body.catalog-page .catalog-intro .section-card,
  body:has(.catalog-intro) .catalog-intro .section-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding-right: 22px;
    padding-left: 22px;
  }

  body.catalog-page .catalog-structure-grid,
  body:has(.catalog-intro) .catalog-structure-grid {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  body.catalog-page .catalog-structure-grid article,
  body:has(.catalog-intro) .catalog-structure-grid article {
    width: 100%;
    max-width: 100%;
    padding-right: 40px;
  }

  body.catalog-page .catalog-intro .section-head,
  body:has(.catalog-intro) .catalog-intro .section-head {
    display: block;
  }

  body.catalog-page .catalog-intro .section-head h1,
  body.catalog-page .catalog-structure-grid h3,
  body.catalog-page .catalog-structure-grid p,
  body.catalog-page .catalog-structure-grid h3 span,
  body.catalog-page .catalog-structure-grid p span,
  body:has(.catalog-intro) .catalog-intro .section-head h1,
  body:has(.catalog-intro) .catalog-structure-grid h3,
  body:has(.catalog-intro) .catalog-structure-grid p,
  body:has(.catalog-intro) .catalog-structure-grid h3 span,
  body:has(.catalog-intro) .catalog-structure-grid p span {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body.catalog-page .catalog-intro .section-head h1,
  body:has(.catalog-intro) .catalog-intro .section-head h1 {
    font-size: clamp(1.42rem, 7vw, 1.86rem);
    line-height: 1.16;
  }

  body.catalog-page .catalog-structure-grid p,
  body:has(.catalog-intro) .catalog-structure-grid p {
    font-size: 0.84rem;
    line-height: 1.62;
  }

  body.catalog-page .nav,
  body:has(.catalog-intro) .nav {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  body.catalog-page .nav > a,
  body.catalog-page .nav > details,
  body.catalog-page .lang-toggle,
  body:has(.catalog-intro) .nav > a,
  body:has(.catalog-intro) .nav > details,
  body:has(.catalog-intro) .lang-toggle {
    flex: 0 0 auto;
  }

  .site-header .brand {
    width: 100%;
    min-width: 0;
  }

  .site-header .brand-copy {
    max-width: calc(100vw - 72px);
    min-width: 0;
  }

  .site-header .brand-copy strong {
    display: block;
    max-width: 100%;
    font-size: 0;
    line-height: 0;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  .site-header .brand-copy strong .lang-en,
  .site-header .brand-copy strong .lang-zh {
    display: none !important;
  }

  .site-header .brand-copy strong::after {
    content: "Huamao Textile";
    display: block;
    max-width: 100%;
    font-size: 0.92rem;
    line-height: 1.15;
    font-weight: 720;
    white-space: normal;
    overflow-wrap: anywhere;
    color: var(--ink, #1d2530);
  }

  body[data-lang="zh"] .site-header .brand-copy strong::after {
    content: "常熟华懋纺织";
  }

  body.catalog-page .catalog-structure-grid article {
    box-sizing: border-box;
    padding: 18px;
  }

  body.catalog-page .catalog-structure-grid p {
    max-width: 30ch;
  }
}

@media (max-width: 430px) {
  .quick-lead-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-lead-bar a {
    padding-inline: 6px;
  }
}

/* Final shared header alignment. Keep every top-level item on one baseline. */
.site-header .nav {
  align-items: center;
  column-gap: clamp(10px, 1vw, 17px);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Segoe UI", Arial, sans-serif;
  font-size: 0.94rem;
  line-height: 1;
}

.site-header .nav > a,
.site-header .nav > details > summary,
.site-header .lang-toggle {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px !important;
  margin: 0;
  padding-block: 0;
  color: var(--muted, #66707d);
  font-family: inherit;
  font-size: inherit;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.site-header .nav > details > summary {
  gap: 8px;
}

.site-header .nav > details > summary::after {
  box-sizing: border-box;
  width: 8px;
  height: 8px;
  margin: -4px 1px 0 0;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transform-origin: center;
}

.site-header .nav > details[open] > summary::after {
  margin-top: 4px;
  transform: rotate(225deg);
}

.site-header .nav-panel:not(.product-nav-panel) {
  min-width: 286px;
  padding: 10px;
}

.site-header .knowledge-nav-panel {
  width: min(320px, calc(100vw - 32px));
  min-width: 0;
  max-height: min(52vh, 360px);
}

.site-header .solution-nav-panel {
  width: min(320px, calc(100vw - 32px));
  min-width: 0;
}

.site-header .solution-nav-panel > a.solution-nav-divider {
  margin-top: 7px;
  padding-top: 14px;
  border-top: 1px solid rgba(30, 42, 54, 0.12);
  border-radius: 0 0 10px 10px;
}

.site-header .nav-panel > a {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 620;
  line-height: 1.35;
  letter-spacing: 0;
}

.site-header .product-nav-group > summary {
  min-height: 42px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 0;
}

.site-header .product-nav-panel .nav-sub {
  min-height: 38px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 520;
  line-height: 1.35;
  letter-spacing: 0;
}

.site-header .product-nav-panel .nav-sub-all {
  font-weight: 650;
}

@media (min-width: 1281px) {
  .site-header .site-header-inner {
    min-height: 82px;
  }
}

@media (max-width: 1280px) {
  .site-header .site-header-inner {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .site-header .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
  }

  .site-header .brand-mark {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    object-fit: contain;
  }

  .site-header .brand-logo-wrap {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  .site-header .brand-copy > span {
    display: none !important;
  }

  .site-header .nav {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 6px;
    row-gap: 0;
  }

  .site-header .nav > a,
  .site-header .nav > details > summary,
  .site-header .lang-toggle {
    min-height: 40px !important;
  }
}

/* Keep expanded mobile dropdowns inside the scrollable navigation flow. */
@media (max-width: 760px) {
  .site-header.has-mobile-nav-toggle .nav > details[open] {
    flex-basis: 100%;
    width: 100%;
  }

  .site-header.has-mobile-nav-toggle .nav > details[open] > summary {
    width: fit-content;
  }

  .site-header.has-mobile-nav-toggle .nav-panel,
  .site-header.has-mobile-nav-toggle .product-nav-panel {
    position: static !important;
    inset: auto !important;
    width: 100%;
    max-width: 100%;
    margin-top: 6px;
    transform: none !important;
  }

  .site-header.has-mobile-nav-toggle .knowledge-nav-panel {
    max-height: min(48vh, 360px);
  }
}

/* Full knowledge directory in the footer: use the same card treatment on
   every page while keeping the compact site-information row below it. */
@media (min-width: 981px) {
  .entity-flat-footer .entity-footer-grid {
    grid-template-columns:
      minmax(120px, 0.76fr)
      minmax(150px, 0.9fr)
      minmax(150px, 0.9fr)
      minmax(280px, 1.6fr);
  }

  .entity-flat-footer .entity-footer-grid > .entity-footer-col:nth-child(1) {
    grid-column: 1;
    grid-row: 2;
  }

  .entity-flat-footer .entity-footer-grid > .entity-footer-col:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .entity-flat-footer .entity-footer-grid > .entity-footer-col:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
  }

  .entity-flat-footer .entity-footer-grid > .entity-footer-col:nth-child(5) {
    grid-column: 4;
    grid-row: 2;
  }
}

.entity-flat-footer .entity-footer-knowledge,
.entity-flat-footer .entity-footer-grid > .entity-footer-col:nth-child(2) {
  grid-column: 1 / -1;
  grid-row: 1;
  order: -1;
  display: block;
  margin: 0;
  padding: 0 0 28px;
  border-bottom: 1px solid rgba(124, 93, 54, 0.18);
}

.entity-flat-footer .entity-footer-knowledge h3,
.entity-flat-footer .entity-footer-grid > .entity-footer-col:nth-child(2) h3 {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
}

.entity-flat-footer .entity-footer-knowledge h3::before,
.entity-flat-footer .entity-footer-grid > .entity-footer-col:nth-child(2) h3::before {
  display: none;
}

.entity-flat-footer .entity-footer-knowledge-intro {
  max-width: 680px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  color: var(--muted, #68717d);
  font-size: 0.91rem;
  line-height: 1.6;
}

.entity-flat-footer .entity-footer-knowledge-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.entity-flat-footer .entity-footer-knowledge-group {
  min-width: 0;
  padding: 20px 24px;
  border: 1px solid rgba(222, 211, 193, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 26px rgba(38, 45, 55, 0.035);
}

.entity-flat-footer .entity-footer-knowledge-group:first-child {
  padding-left: 24px;
  border-left: 1px solid rgba(222, 211, 193, 0.92);
}

.entity-flat-footer .entity-footer-knowledge-group h4 {
  margin: 0 0 9px;
  color: var(--navy, #17233b);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.35;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.entity-flat-footer .entity-footer-knowledge-group h4::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 2px;
  margin: 0 8px 4px 0;
  border-radius: 999px;
  background: var(--orange, #dc6b00);
}

.entity-flat-footer .entity-footer-knowledge-links a {
  position: relative;
  display: block;
  min-height: 0;
  padding: 10px 22px 10px 0;
  border-bottom: 1px solid rgba(124, 93, 54, 0.13);
  color: var(--ink, #25303f);
  font-size: 0.91rem;
  font-weight: 560;
  line-height: 1.4;
}

body[data-lang="en"] .entity-flat-footer .entity-footer-knowledge-links a.lang-en,
body[data-lang="zh"] .entity-flat-footer .entity-footer-knowledge-links a.lang-zh {
  display: block !important;
}

body[data-lang="zh"] .entity-flat-footer .entity-footer-knowledge > h3 {
  font-size: 0.93rem;
  font-weight: 680;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

body[data-lang="zh"] .entity-flat-footer .entity-footer-knowledge-intro {
  font-size: 0.92rem;
  font-weight: 440;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

body[data-lang="zh"] .entity-flat-footer .entity-footer-knowledge-group h4 {
  margin-bottom: 10px;
  font-size: 0.79rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.04em;
}

body[data-lang="zh"] .entity-flat-footer .entity-footer-knowledge-links a.lang-zh {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.005em;
}

.entity-flat-footer .entity-footer-knowledge-links a:last-child {
  border-bottom: 0;
}

.entity-flat-footer .entity-footer-knowledge-links a::after {
  content: "\2192";
  position: absolute;
  top: 50%;
  right: 1px;
  color: rgba(37, 48, 63, 0.38);
  font-size: 0.9rem;
  transform: translateY(-50%);
  transition: color 160ms ease, transform 160ms ease;
}

.entity-flat-footer .entity-footer-knowledge-links a:hover {
  color: var(--orange, #c96000);
  transform: none;
}

.entity-flat-footer .entity-footer-knowledge-links a:hover::after {
  color: var(--orange, #c96000);
  transform: translate(3px, -50%);
}

@media (max-width: 980px) {
  .entity-flat-footer .entity-footer-knowledge,
  .entity-flat-footer .entity-footer-grid > .entity-footer-col:nth-child(2) {
    display: block;
  }

  .entity-flat-footer .entity-footer-knowledge-intro {
    margin-bottom: 16px;
  }

  .entity-flat-footer .entity-footer-knowledge h3,
  .entity-flat-footer .entity-footer-grid > .entity-footer-col:nth-child(2) h3,
  .entity-flat-footer .entity-footer-knowledge-intro {
    padding-right: 0;
    border-right: 0;
  }

  .entity-flat-footer .entity-footer-knowledge-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 620px) {
  .entity-flat-footer .entity-footer-knowledge,
  .entity-flat-footer .entity-footer-grid > .entity-footer-col:nth-child(2) {
    padding: 0 0 22px;
  }

  .entity-flat-footer .entity-footer-knowledge-intro {
    margin-bottom: 14px;
  }

  .entity-flat-footer .entity-footer-knowledge-groups {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .entity-flat-footer .entity-footer-knowledge-group {
    padding: 18px 20px;
    border: 1px solid rgba(222, 211, 193, 0.92);
    border-radius: 16px;
  }

  .entity-flat-footer .entity-footer-knowledge-group:first-child {
    padding-left: 20px;
    border-left: 1px solid rgba(222, 211, 193, 0.92);
  }
}
