/* LDERP visual system v4.8: editorial guidance, operational clarity, restrained color. */
:root {
  --ui-ink: #14263a;
  --ui-ink-soft: #30445b;
  --ui-muted: #5f6e7f;
  --ui-line: #dce5ec;
  --ui-line-strong: #c7d4de;
  --ui-surface: #ffffff;
  --ui-canvas: #f5f8fa;
  --ui-brand: #3157a4;
  --ui-brand-dark: #24447f;
  --ui-teal: #087f83;
  --ui-teal-pale: #eaf5f4;
  --ui-blue-pale: #edf3fb;
  --ui-gold: #be8533;
  --ui-radius: 14px;
  --ui-shadow: 0 12px 32px rgba(26, 49, 73, .07);
}

html { scroll-behavior: smooth; }
body { color: var(--ui-ink); background: var(--ui-canvas); }
header.sticky {
  background: rgba(255,255,255,.96) !important;
  border-color: var(--ui-line) !important;
  box-shadow: 0 2px 14px rgba(21,40,59,.035);
  backdrop-filter: blur(14px);
}
header nav { min-height: 4.5rem; }
header nav > a:first-child img { border-radius: 11px !important; }
header nav > a:first-child span { letter-spacing: -.025em !important; }
header nav > div[class~="lg:flex"] { gap: 1.25rem !important; }
header nav > div[class~="lg:flex"] > a {
  color: #46576b !important;
  transition: color .16s ease, background .16s ease;
}
header nav > div[class~="lg:flex"] > a:hover { color: var(--ui-brand) !important; }

.btn-primary, .btn-secondary {
  min-height: 2.85rem;
  align-items: center;
  justify-content: center;
  border-radius: 9px !important;
  font-weight: 650 !important;
  letter-spacing: -.01em;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn-primary {
  background: var(--ui-brand) !important;
  box-shadow: 0 5px 12px rgba(49,87,164,.16);
}
.btn-primary:hover { background: var(--ui-brand-dark) !important; transform: translateY(-1px); }
.btn-secondary {
  border: 1px solid var(--ui-line-strong) !important;
  background: #fff !important;
  color: var(--ui-ink) !important;
}
.btn-secondary:hover { border-color: #9eb1c2 !important; background: #f8fafc !important; }

main { background: var(--ui-canvas); }
main .container-page { width: min(100% - 2.5rem, 76rem); }
main section { scroll-margin-top: 6rem; }
main section.section { padding-block: clamp(3rem, 6vw, 5.25rem) !important; }
main section.bg-white { background: var(--ui-canvas) !important; }
main section.bg-white:nth-of-type(even) { background: #fff !important; }
main h1, main h2, main h3 { color: var(--ui-ink); letter-spacing: -.035em; }
main h2 { font-size: clamp(1.65rem, 2.6vw, 2.25rem) !important; line-height: 1.17 !important; }
main h3 { line-height: 1.28; }
main p { color: var(--ui-muted); }

/* The same component rhythm on product, pricing, comparison, industry and article pages. */
main .grid > a[class*="rounded"],
main .grid > div[class*="rounded"],
main article [class*="rounded-xl border"] {
  border-color: var(--ui-line) !important;
  border-radius: var(--ui-radius) !important;
  box-shadow: 0 5px 18px rgba(24,44,65,.035);
}
main .grid > a[class*="rounded"]:hover {
  border-color: #afc1d0 !important;
  box-shadow: var(--ui-shadow);
  transform: translateY(-2px);
}
main [class*="bg-brand-50"] { background: var(--ui-blue-pale) !important; }
main [class*="border-brand-200"] { border-color: #cfdaeb !important; }
main [class*="text-brand-700"], main [class*="text-brand-600"] { color: var(--ui-brand) !important; }
main table { border-collapse: separate; border-spacing: 0; color: var(--ui-ink-soft); }
main table thead { background: #eff3f6; }
main table th { color: #344a60; font-weight: 650; }
main table th, main table td { padding: .85rem 1rem !important; border-color: var(--ui-line) !important; }
main table tr:last-child td { border-bottom-color: transparent !important; }
main .overflow-x-auto { border: 1px solid var(--ui-line); border-radius: 12px; background: #fff; }

.hub-hero {
  position: relative;
  overflow: hidden;
  color: var(--ui-ink);
  background:
    radial-gradient(ellipse at 88% 24%, rgba(26,139,143,.09), transparent 33%),
    linear-gradient(130deg, #f1f6fa 0%, #f7f9fb 62%, #edf5f4 100%) !important;
  border-bottom: 1px solid var(--ui-line);
}
.hub-hero h1 { color: var(--ui-ink) !important; }
.hub-hero p { color: #506176 !important; }
.hub-hero .container-page { padding-block: clamp(3.2rem, 7vw, 6.2rem) !important; }
.hub-hero .container-page > div:first-child > span {
  border: 1px solid #d3dfeb;
  background: rgba(255,255,255,.76) !important;
  color: #38577b !important;
  letter-spacing: .025em;
}
.hub-hero .btn-primary, .hub-hero .btn-secondary { min-height: 3.15rem; padding-inline: 1.35rem !important; }
.hub-hero .container-page > div:first-child > p:last-child { font-size: .87rem !important; line-height: 1.65; }
.hub-hero .container-page > div:first-child > p:last-child a { color: var(--ui-brand) !important; }
.hub-hero:has(.ui-v4-hero-panel) .container-page {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(19rem, .78fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(3.5rem, 7.4vw, 6.7rem) !important;
}
.hub-hero:has(.ui-v4-hero-panel) .container-page > div {
  max-width: 47rem !important;
  margin: 0 !important;
  text-align: left !important;
}
.hub-hero:has(.ui-v4-hero-panel) h1 { max-width: 13ch; font-size: clamp(2.8rem, 5.2vw, 4.65rem) !important; line-height: 1.035 !important; }
.hub-hero:has(.ui-v4-hero-panel) .container-page > div > p:not(:last-child) { max-width: 38rem; margin-left: 0 !important; }
.hub-hero:has(.ui-v4-hero-panel) .container-page > div > div { justify-content: flex-start !important; }
.hub-hero:has(.ui-v4-hero-panel) .container-page > div > p:last-child { max-width: 40rem; }
.ui-v4-home .hub-home-visual { display: none !important; }
.ui-v4-hero-panel {
  position: relative;
  padding: clamp(1.5rem, 2.8vw, 2.2rem);
  border: 1px solid rgba(192,208,220,.9);
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 22px 56px rgba(25,55,78,.09);
}
.ui-v4-hero-panel:before { content: ""; position: absolute; left: 0; top: 1.5rem; bottom: 1.5rem; width: 3px; background: var(--ui-teal); border-radius: 0 4px 4px 0; }
.ui-v4-hero-kicker { margin: 0 0 .55rem !important; color: var(--ui-teal) !important; font-size: .76rem !important; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.ui-v4-hero-panel h2 { margin: 0 0 1.2rem !important; font-size: 1.45rem !important; line-height: 1.23 !important; }
.ui-v4-steps { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.ui-v4-steps li { display: grid; grid-template-columns: 2.1rem 1fr; gap: .75rem; align-items: start; margin: 0; color: var(--ui-ink-soft); font-size: .94rem; line-height: 1.45; }
.ui-v4-step-number { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 8px; background: var(--ui-teal-pale); color: var(--ui-teal); font-size: .8rem; font-weight: 750; }
.ui-v4-steps a { color: var(--ui-ink); font-weight: 650; text-decoration: none; }
.ui-v4-steps a:hover { color: var(--ui-teal); text-decoration: underline; text-underline-offset: 3px; }
.ui-v4-panel-note { margin: 1.25rem 0 0 !important; padding-top: 1rem; border-top: 1px solid var(--ui-line); font-size: .83rem !important; line-height: 1.55 !important; }

.seo-content-block {
  max-width: 76rem;
  margin: clamp(2rem, 4vw, 3.5rem) auto;
  padding: clamp(1.35rem, 3.6vw, 2.5rem);
  border: 1px solid var(--ui-line) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(24,44,65,.035);
  color: var(--ui-ink-soft);
  line-height: 1.72;
}
.seo-content-block h2 { color: var(--ui-ink); }
.seo-content-block h3 { color: var(--ui-ink-soft); }
.seo-content-block a { color: var(--ui-brand); }
.seo-actions a { border-radius: 9px !important; background: var(--ui-brand) !important; }
.seo-actions .seo-action-secondary { background: var(--ui-blue-pale) !important; color: var(--ui-brand-dark) !important; }
.seo-note { color: #647487; }

article .article-body { max-width: 74ch; margin-inline: auto; color: #35485c; font-size: 1.075rem; line-height: 1.82; }
article .article-body h2 { margin-top: 2.7em; padding-top: .55em; border-top: 1px solid var(--ui-line); }
article .article-body h3 { margin-top: 2em; color: var(--ui-ink-soft); }
article .article-body a { color: var(--ui-brand); text-decoration-thickness: 1px; }
/* Static article pages use a separate inline-styled masthead; align it with the rest of the site. */
header.relative.overflow-hidden {
  background:
    radial-gradient(ellipse at 90% 18%, rgba(8,127,131,.10), transparent 34%),
    linear-gradient(130deg, #f1f6fa 0%, #f8fafb 66%, #edf5f4 100%) !important;
  border-block: 1px solid var(--ui-line);
}
header.relative.overflow-hidden > svg { display: none; }
header.relative.overflow-hidden > .container-page { padding-block: clamp(2.5rem, 6vw, 4.5rem) !important; }
header.relative.overflow-hidden h1 { color: var(--ui-ink) !important; }
header.relative.overflow-hidden time,
header.relative.overflow-hidden .text-white\/85 { color: var(--ui-muted) !important; }
header.relative.overflow-hidden span.inline-flex { background: #eaf5f4 !important; color: #176f73 !important; box-shadow: inset 0 0 0 1px #d3e8e5; }
footer { background: #f0f4f7 !important; border-color: var(--ui-line) !important; }
footer a:hover { color: var(--ui-brand) !important; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #138b8c !important; outline-offset: 3px; }

@media (max-width: 900px) {
  .hub-hero:has(.ui-v4-hero-panel) .container-page { grid-template-columns: minmax(0,1fr) minmax(17rem,.85fr); gap: 1.5rem; }
  .hub-hero:has(.ui-v4-hero-panel) h1 { font-size: clamp(2.5rem,5.5vw,3.6rem) !important; }
}
@media (max-width: 680px) {
  main .container-page { width: min(100% - 1.5rem, 76rem); }
  header nav { min-height: 4rem; }
  header nav > div[class~="lg:flex"] > a { border: 1px solid var(--ui-line) !important; border-radius: 8px !important; background: #f6f8fa !important; color: #42546a !important; }
  .hub-hero:has(.ui-v4-hero-panel) .container-page { display: flex; flex-direction: column; align-items: stretch; gap: 1.8rem; padding-block: 3rem !important; }
  .hub-hero:has(.ui-v4-hero-panel) .container-page > div,
  .hub-hero:has(.ui-v4-hero-panel) .container-page > div h1,
  .hub-hero:has(.ui-v4-hero-panel) .container-page > div p { text-align: left !important; }
  .hub-hero:has(.ui-v4-hero-panel) .container-page > div p:not(:last-child) { margin-right: 0 !important; }
  .hub-hero:has(.ui-v4-hero-panel) h1 { max-width: 11ch; font-size: clamp(2.55rem,11vw,3.55rem) !important; }
  .hub-hero:has(.ui-v4-hero-panel) .container-page > div > div { align-items: stretch; }
  .hub-hero:has(.ui-v4-hero-panel) .btn-primary, .hub-hero:has(.ui-v4-hero-panel) .btn-secondary { width: 100%; }
  .ui-v4-hero-panel { padding: 1.4rem; }
  .hub-hero .container-page { padding-block: 3rem !important; }
  .seo-content-block { margin-inline: .75rem; padding: 1.25rem; }
  .seo-actions { display: grid; grid-template-columns: 1fr; }
  .seo-actions a { text-align: center; }
  article .article-body { font-size: 1rem; }
  main table { min-width: 36rem; }
  /* Keep the persistent WeChat CTA from covering the hero copy on small screens. */
  button[aria-label^="微信咨询"] {
    right: .75rem !important;
    bottom: .75rem !important;
    width: 2.85rem !important;
    height: 2.85rem !important;
    min-width: 2.85rem;
    max-width: none;
    gap: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    font-size: 0 !important;
    line-height: 0 !important;
    box-shadow: 0 5px 16px rgba(15,23,42,.2) !important;
  }
  button[aria-label^="微信咨询"] > span { display: none !important; }
  button[aria-label^="微信咨询"] > svg { flex: none; width: 1.25rem; height: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
