/* Shared shell for every case detail page in the Xianbao static website suite. */
body.page-redraw {
  --suite-blue: #1269d3;
  --suite-blue-dark: #0c4c9a;
  --suite-line: #dce5ef;
  --suite-ink: #10233d;
}

.page-redraw .site-header {
  border-bottom-color: rgba(201, 216, 231, 0.78) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 8px 26px rgba(19, 49, 84, 0.055) !important;
  backdrop-filter: blur(20px) !important;
}

.page-redraw .brand {
  color: var(--suite-ink) !important;
  font-weight: 900 !important;
}

.page-redraw .brand img {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  object-fit: cover !important;
  filter: none !important;
  box-shadow: 0 8px 18px rgba(18, 105, 211, 0.16) !important;
}

.page-redraw .nav-links {
  border-color: var(--suite-line) !important;
  background: #f5f8fb !important;
}

.page-redraw .nav-links a:hover,
.page-redraw .nav-links a.active {
  color: var(--suite-blue-dark) !important;
}

.page-redraw .nav-back {
  border-color: rgba(18, 105, 211, 0.2) !important;
  color: var(--suite-blue-dark) !important;
  background: #fff !important;
}

.page-redraw .nav-cta {
  background: var(--suite-blue-dark) !important;
  box-shadow: 0 9px 20px rgba(12, 76, 154, 0.2) !important;
}

:where(
  .page-redraw .hero-content h1,
  .page-redraw .section-heading h2,
  .page-redraw .flow-redraw-title h2,
  .page-redraw .faq-intro h2,
  .page-redraw .contact-copy h2,
  .page-redraw .modal-head h2
) {
  white-space: nowrap !important;
  text-wrap: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

:where(
  .page-redraw .hero-content h1,
  .page-redraw .section-heading h2,
  .page-redraw .flow-redraw-title h2,
  .page-redraw .faq-intro h2,
  .page-redraw .contact-copy h2,
  .page-redraw .modal-head h2
) br { display: none !important; }

/* Detail-page media rule: product screenshots must be shown in full, never cropped. */
.page-redraw :is(
  .hero-visual,
  .hero-showcase-card,
  .scenario-visual,
  .product-service-visual,
  .module-visual,
  .pricing-phone,
  .analytics-visual,
  .analytics-hero-card
) {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
}

.page-redraw main figure img,
.page-redraw main .hero-visual img,
.page-redraw main .product-service-visual img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
}

/* Desktop helper copy stays on one line whenever the horizontal layout allows it. */
@media (min-width: 821px) {
  .page-redraw :is(.section-heading, .flow-redraw-heading, .module-head) {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 14px 32px !important;
  }

  .page-redraw :is(.section-heading, .flow-redraw-heading, .module-head) > :first-child {
    flex: 0 0 auto !important;
    min-width: 0 !important;
  }

  .page-redraw :is(.section-heading > p, .flow-redraw-intro, .module-head > p) {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 100% !important;
    margin-left: auto !important;
    font-size: clamp(13px, 1.05vw, 15px) !important;
    line-height: 1.6 !important;
    letter-spacing: -.015em !important;
    text-align: right !important;
    white-space: nowrap !important;
  }
}

/*
 * Desktop media stages follow the real artwork ratio. Do not stretch a
 * screenshot card to match a taller text column: that creates artificial white
 * bands around otherwise complete product UI artwork.
 */
@media (min-width: 1181px) {
  .page-redraw :is(.scenario-layout, .pricing-layout, .product-service-showcase) {
    align-items: flex-start !important;
  }

  .page-redraw :is(
    .scenario-visual,
    .product-service-visual,
    .pricing-phone,
    .analytics-hero-card
  ) {
    align-self: flex-start !important;
  }

  .page-redraw .module-panel {
    min-height: 0 !important;
    align-items: flex-start !important;
  }

  .page-redraw .module-visual {
    align-self: flex-start !important;
    min-height: 0 !important;
  }

  .page-redraw .pricing-phone {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px !important;
  }

  .page-redraw .pricing-phone img {
    align-self: center !important;
  }
}

/* Data dashboards use a full-width media stage, with analysis cards below. */
.page-redraw .analytics-layout {
  display: flex !important;
  align-items: stretch !important;
  flex-direction: column !important;
  gap: 18px !important;
}

.page-redraw .analytics-visual {
  flex: 0 0 auto !important;
  width: 100% !important;
  padding: 12px !important;
  border: 1px solid rgba(183, 205, 225, .72) !important;
  border-radius: 22px !important;
  background: #fff !important;
}

.page-redraw :is(.analytics-list, .analytics-cards) {
  display: flex !important;
  flex: 0 0 auto !important;
  flex-direction: row !important;
  width: 100% !important;
  gap: 16px !important;
}

.page-redraw :is(.analytics-list, .analytics-cards) > article {
  flex: 1 1 0 !important;
}

.suite-footer {
  padding: 44px 0 120px;
  border-top: 0;
  color: #fff;
  background: linear-gradient(135deg, #06162d, #0b315f 62%, #0b586b);
}

.suite-footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 34px;
}

.suite-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.suite-footer-brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.suite-footer-brand strong,
.suite-footer-brand span { display: block; }
.suite-footer-brand strong { font-size: 14px; }
.suite-footer-brand span { color: rgba(255,255,255,.58); font-size: 10px; }
.suite-footer-company { display: flex; flex: 1 1 auto; justify-content: center; flex-wrap: wrap; gap: 18px 30px; }
.suite-footer-company p { display: flex; flex-direction: column; gap: 3px; margin: 0; }
.suite-footer-company span { color: rgba(255,255,255,.5); font-size: 10px; }
.suite-footer-company strong { color: rgba(255,255,255,.9); font-size: 12px; }
.suite-footer-side { display: flex; align-items: flex-end; flex: 0 0 auto; flex-direction: column; gap: 14px; }
.suite-footer-links { display: flex; justify-content: flex-end; gap: 18px; font-size: 12px; font-weight: 850; }
.suite-footer-links a { color: rgba(255,255,255,.76); }
.suite-footer-meta { margin: 0; color: rgba(255,255,255,.46); font-size: 10px; }

@media (max-width: 820px) {
  .page-redraw .brand span { max-width: 190px !important; }
  .suite-footer-inner { align-items: center; flex-direction: column; text-align: center; }
  .suite-footer-company { justify-content: center; }
  .suite-footer-side { align-items: center; }
  .page-redraw :is(.analytics-list, .analytics-cards) { flex-direction: column !important; }
}

@media (max-width: 420px) {
  .page-redraw .brand span { max-width: 148px !important; }
  .suite-footer-company { align-items: center; flex-direction: column; }
  .suite-footer-links { flex-wrap: wrap; justify-content: center; }
}

body.single-line-title-policy main :where(h1, h2, h3) {
  max-width: none !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  text-wrap: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  text-overflow: clip !important;
}

body.single-line-title-policy main :where(h1, h2, h3) br { display: none !important; }
