html {
  --hk-site-font: "PingFang HK", "PingFang TC", "Microsoft JhengHei",
    "PingFang SC", "Microsoft YaHei", "Noto Sans TC", "Noto Sans SC",
    sans-serif;
  max-width: 100%;
  overflow-x: hidden;
}

html body,
html body button,
html body input,
html body select,
html body textarea {
  font-family: var(--hk-site-font) !important;
}

html body.header-brand-enhanced main a:not(.cta-button):not(.social-link):not(.brand-link),
html body.header-brand-enhanced main a:not(.cta-button):not(.social-link):not(.brand-link):visited,
html body.header-brand-enhanced footer a:not(.social-link),
html body.header-brand-enhanced footer a:not(.social-link):visited,
html body.header-brand-enhanced .contact-popup a {
  color: #000 !important;
  text-decoration: none !important;
}

html body.header-brand-enhanced main a:not(.cta-button):not(.social-link):not(.brand-link):hover,
html body.header-brand-enhanced main a:not(.cta-button):not(.social-link):not(.brand-link):active,
html body.header-brand-enhanced footer a:not(.social-link):hover,
html body.header-brand-enhanced footer a:not(.social-link):active,
html body.header-brand-enhanced .contact-popup a:hover {
  color: #000 !important;
  text-decoration: none !important;
}

html body.header-brand-enhanced .faq h4 {
  margin: 1.2rem 0 0.35rem !important;
}

html body.header-brand-enhanced .faq h4:first-of-type {
  margin-top: 0 !important;
}

html body.header-brand-enhanced .faq p {
  margin: 0 !important;
}

html body.header-brand-enhanced .faq p + p {
  margin-top: 0.55rem !important;
}

html body.header-brand-enhanced {
  word-break: keep-all;
}

html body.header-brand-enhanced header {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.55rem !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  padding: 0.8rem clamp(1rem, 3vw, 2rem) !important;
}

html body.header-brand-enhanced header .brand {
  margin: 0 auto !important;
}

html body.header-brand-enhanced .nav-row {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.6rem !important;
  width: auto !important;
  flex: 0 0 auto !important;
  max-width: none !important;
}

html body.header-brand-enhanced .main-nav {
  display: flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
}

html body.header-brand-enhanced header .brand {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(0.5rem, 1vw, 0.8rem) !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  text-align: center !important;
  white-space: nowrap !important;
  line-height: 1.08 !important;
  flex: 0 0 auto !important;
}

html body.header-brand-enhanced header .brand .brand-link {
  display: inline-flex !important;
  flex-direction: inherit !important;
  align-items: inherit !important;
  justify-content: inherit !important;
  gap: inherit !important;
  width: auto !important;
  min-width: 0 !important;
  color: inherit !important;
  text-decoration: none !important;
  white-space: inherit !important;
  line-height: inherit !important;
}

html body.header-brand-enhanced .brand-logo {
  display: block;
  width: clamp(56px, 5.4vw, 88px) !important;
  height: auto !important;
  flex: 0 0 auto !important;
  object-fit: contain;
}

html body.header-brand-enhanced .brand-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  text-align: center;
}

html body.header-brand-enhanced header .brand .brand-zh {
  display: block !important;
  font-size: clamp(1.25rem, 2vw, 1.6rem) !important;
  font-weight: 900 !important;
  letter-spacing: 0.02em !important;
  line-height: 1.3 !important;
  text-align: center !important;
}

html body.header-brand-enhanced header .brand .zh-top {
  color: #052d62 !important;
}
html body.header-brand-enhanced header .brand .zh-bot {
  color: #44464a !important;
  font-size: 1.5rem !important;
}
html body.header-brand-enhanced header .brand .brand-en {
  display: block !important;
  font-size: clamp(0.7rem, 0.95vw, 0.85rem) !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  color: #44464a !important;
  text-align: center !important;
  margin-top: 0.1rem;
}

html body.header-brand-enhanced .offer-hero {
  min-height: auto !important;
}

html body.header-brand-enhanced .offer-hero-carousel,
html body.header-brand-enhanced .offer-carousel {
  width: 100% !important;
  aspect-ratio: 1856 / 576 !important;
  height: auto !important;
  max-height: none !important;
  overflow: hidden !important;
}

html body.header-brand-enhanced .offer-slide {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

html body.header-brand-enhanced .hero:not(.offer-hero) {
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  aspect-ratio: 1856 / 576 !important;
  overflow: hidden !important;
}

html body.header-brand-enhanced .offer-disclaimer {
  position: absolute;
  right: clamp(0.75rem, 2vw, 1.35rem);
  bottom: clamp(0.75rem, 2vw, 1.15rem);
  z-index: 3;
  margin: 0;
  max-width: min(92%, 420px);
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  background: rgba(8, 38, 35, 0.72);
  color: #ffffff;
  font-size: clamp(0.72rem, 1.1vw, 0.92rem);
  line-height: 1.6;
  text-align: right;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
}

html body.header-brand-enhanced .service-card ul,
html body.header-brand-enhanced .pricing-card ul,
html body.header-brand-enhanced .contact-card ul,
html body.header-brand-enhanced .form-card ul {
  list-style: none !important;
  padding-left: 0 !important;
}

@media (max-width: 768px) {
  html body.header-brand-enhanced {
    padding-top: var(--mobile-header-offset, 56px) !important;
  }

  html body.header-brand-enhanced header {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.3rem !important;
    padding: 0.4rem clamp(0.7rem, 2vw, 1rem) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 2000 !important;
    box-sizing: border-box !important;
  }

  html body.header-brand-enhanced header .brand {
    width: auto !important;
    max-width: calc(100% - 56px) !important;
    min-width: 0 !important;
    gap: 0.4rem !important;
    justify-content: flex-start !important;
    flex: 0 1 auto !important;
    flex-direction: row !important;
  }

  html body.header-brand-enhanced .brand-logo {
    width: clamp(67px, 21vw, 98px) !important;
    height: auto !important;
    display: block !important;
    flex: 0 0 auto !important;
  }

  html body.header-brand-enhanced .brand-copy {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.02rem !important;
  }

  html body.header-brand-enhanced header .brand .brand-zh {
    font-size: clamp(1.1rem, 5.5vw, 1.4rem) !important;
    font-family: var(--hk-site-font) !important;
  }

  html body.header-brand-enhanced header .brand .zh-bot {
    font-size: 1.2rem !important;
  }

  html body.header-brand-enhanced header .brand .brand-en {
    font-size: clamp(0.55rem, 2.8vw, 0.72rem) !important;
    font-family: var(--hk-site-font) !important;
    letter-spacing: 0.08em !important;
  }

  html body.header-brand-enhanced .menu-toggle {
    display: inline-flex !important;
    margin-left: auto !important;
    flex: 0 0 auto !important;
    order: 2 !important;
  }

  html body.header-brand-enhanced .nav-row {
    display: none !important;
    flex: 1 0 100% !important;
    justify-content: center !important;
    order: 3 !important;
  }

  html body.nav-open.header-brand-enhanced .nav-row {
    display: flex !important;
  }

  html body.header-brand-enhanced .offer-hero,
  html body.header-brand-enhanced .offer-carousel {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  html body.header-brand-enhanced .offer-carousel.offer-hero-carousel {
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: 1856 / 576 !important;
    display: block !important;
  }

  html body.header-brand-enhanced .hero:not(.offer-hero) {
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: 1856 / 976 !important;
  }

  html body.header-brand-enhanced .offer-slide {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
  }

  html body.header-brand-enhanced .offer-slide.is-active {
    display: block !important;
  }

  html body.header-brand-enhanced .offer-disclaimer {
    right: 0.7rem;
    bottom: 0.7rem;
    max-width: calc(100% - 1.4rem);
    padding: 0.45rem 0.65rem;
    font-size: 0.72rem;
    line-height: 1.5;
  }
}

@media (max-width: 860px) {
  html body,
  html body *,
  html body *::before,
  html body *::after {
    box-sizing: border-box !important;
  }

html body {
  max-width: 100%;
  overflow-x: hidden;
  padding-bottom: calc(4.8rem + env(safe-area-inset-bottom, 0px)) !important;
}

html body.header-brand-enhanced header,
html body.header-brand-enhanced .floating-cta {
  max-width: 100vw !important;
}

  html body :is(
    .service-grid,
    .feature-grid,
    .story-grid,
    .value-grid,
    .visual-grid,
    .pricing-grid,
    .comparison-grid,
    .detail-grid,
    .contact-grid,
    .use-case-grid,
    .fit-grid,
    .form-grid,
    .booking-info-grid,
    .service-link-grid,
    .testimonials-grid,
    .testimonial-grid,
    .offer-text-grid,
    .choice-list,
    .size-guide,
    .plans,
    .reasons,
    .testimonials,
    .story-stack,
    .visual-strip,
    .process-flow,
    .contact-methods
  ) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: clamp(0.95rem, 3.8vw, 1.3rem) !important;
  }

  html body :is(
    .service-grid,
    .feature-grid,
    .story-grid,
    .value-grid,
    .visual-grid,
    .pricing-grid,
    .comparison-grid,
    .detail-grid,
    .contact-grid,
    .use-case-grid,
    .fit-grid,
    .form-grid,
    .booking-info-grid,
    .service-link-grid,
    .testimonials-grid,
    .testimonial-grid,
    .offer-text-grid,
    .choice-list,
    .size-guide,
    .plans,
    .reasons,
    .testimonials,
    .story-stack,
    .visual-strip,
    .process-flow,
    .contact-methods
  ) > * {
    min-width: 0 !important;
    width: 100% !important;
    max-width: none !important;
  }

  html body .split-feature {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: clamp(1rem, 4vw, 1.4rem) !important;
  }

  html body .split-feature > *,
  html body :is(
    .service-card,
    .pricing-card,
    .contact-card,
    .info-card,
    .form-card,
    .visual-card,
    .visual-strip-card,
    .story-block,
    .highlight-block,
    .plan,
    .reason,
    .testimonial,
    .testimonial-panel,
    .customer-testimonial,
    .offer-text-card,
    .size-item,
    .service-link-card,
    .copy-block
  ) {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-inline: 0 !important;
  }

  html body :is(
    .split-feature img,
    .visual-card img,
    .visual-strip-card img,
    .inline-feature-image,
    iframe
  ) {
    width: 100% !important;
    max-width: 100% !important;
  }

  html body .path-line {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.55rem !important;
  }

  html body .path-arrow {
    display: inline-flex !important;
    transform: rotate(90deg);
    transform-origin: center;
    margin: 0 !important;
  }

  html body .contact-line {
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 0.6rem !important;
  }

  html body .contact-item {
    width: 100% !important;
    min-width: 0 !important;
  }

  html body .floating-cta {
    position: fixed !important;
    left: 0.75rem !important;
    right: 0.75rem !important;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px)) !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.45rem !important;
    z-index: 1800 !important;
    pointer-events: none !important;
  }

  html body .floating-cta .cta-button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 2.7rem !important;
    padding: 0.55rem 0.45rem !important;
    border-radius: 999px !important;
    justify-content: center !important;
    gap: 0.32rem !important;
    font-size: clamp(0.68rem, 2.7vw, 0.82rem) !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    pointer-events: auto !important;
  }

  html body .floating-cta .cta-icon {
    width: 1rem !important;
    height: 1rem !important;
    flex: 0 0 auto !important;
  }

  html body .floating-cta .cta-button::after {
    display: none !important;
  }
}


