/* Shared refinements for the existing Qupei pages. */
img { height: auto; }
[hidden] { display: none !important; }
:where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 4px;
}
:where(section[id], h2[id], h3[id]) { scroll-margin-top: 150px; }
:where(button, a, summary) { touch-action: manipulation; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 20px;
  color: #fff;
  background: #1d4ed8;
  border-radius: 8px;
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }
.consultation-hint {
  max-width: 32em;
  margin: 12px 0 18px;
  color: #475569;
  font-size: 14px;
  line-height: 1.65;
}
.support-resource-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 10px;
  color: #1d4ed8;
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.support-resource-link:hover { color: #0f172a; }
.wechat-trigger {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 60;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid #1d4ed8;
  border-radius: 24px;
  background: #1d4ed8;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 18px rgb(29 78 216 / 18%);
}
.wechat-trigger:hover { background: #1e40af; }
.wechat-dialog {
  width: min(380px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid #dbeafe;
  border-radius: 20px;
  color: #0f172a;
  background: #fff;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.wechat-dialog::backdrop { background: rgb(15 23 42 / 45%); }
.wechat-dialog .popup-content { padding: 60px 24px 28px; }
.wechat-dialog h2 { margin: 0 0 12px; font-size: 22px; line-height: 1.4; }
.wechat-dialog .popup-close { width: 44px; height: 44px; color: #475569; }
.wechat-dialog .qr-code { width: 180px; height: 180px; }
.wechat-dialog .primary-btn { width: 100%; }
.customer-motion-control {
  display: block;
  min-height: 44px;
  margin: 0 auto 20px;
  padding: 8px 18px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #334155;
  background: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.customer-motion-control:hover { border-color: #2563eb; color: #1d4ed8; }
.customer-marquee-stack.is-paused .customer-track,
.customer-marquee-stack:focus-within .customer-track { animation-play-state: paused; }
.pricing-cost-guide {
  width: min(1060px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 12px;
}
.pricing-cost-guide h2 { margin: 0 0 24px; font-size: clamp(24px, 3vw, 32px); }
.pricing-cost-guide dl { margin: 0; }
.pricing-cost-guide dl > div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid #e2e8f0;
}
.pricing-cost-guide dt { color: #0f172a; font-weight: 600; }
.pricing-cost-guide dd { margin: 0; color: #475569; line-height: 1.8; }
.pricing-cost-guide :where(dt, dd) { font-size: 16px; }
.footer-contact-text a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1120px) {
  .home-tab-list-left { order: 0; }
  .home-tab-list-right { order: 1; }
  .home-feature-stage { order: 2; }
}
@media (max-width: 760px) {
  .site-header, .pricing-page .site-header { grid-template-columns: minmax(0, 1fr) auto; }
  .site-header .brand { grid-column: 1; grid-row: 1; justify-self: start; }
  .site-header .header-cta {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
    min-height: 44px;
    padding: 0 16px;
  }
  .site-header .site-nav, .pricing-page .site-nav {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .site-header .site-nav a { min-height: 44px; padding-inline: 12px; }
  .home-feature-section { width: 100%; padding-inline: 14px; }
  .home-feature-section .home-section-head,
  .home-feature-section .home-feature-tabs { width: 100%; }
  .home-feature-section .home-section-head h2 { font-size: clamp(26px, 7vw, 30px); line-height: 1.3; }
  .home-tab-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .home-tab-list button { min-height: 48px; padding: 12px 6px; border-radius: 10px; text-align: center; }
  .home-tab-list button strong { margin: 0; font-size: 14px; }
  .home-tab-list button span,
  .home-tab-list button em,
  .home-tab-list button b { display: none; }
  .home-hero-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qp-price-heading h1 em { display: block; }
  .pricing-cost-guide { width: calc(100% - 28px); padding-top: 32px; }
  .pricing-cost-guide dl > div { grid-template-columns: 1fr; gap: 6px; }
  .site-footer { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
