:root {
  --jby-blue: #007aff;
  --jby-blue-dark: #0062cc;
  --jby-blue-soft: #e8f3ff;
  --jby-ink: #0b1a33;
  --jby-text: #334155;
  --jby-muted: #64748b;
  --jby-line: #e8eef7;
  --jby-bg: #f7f9fc;
  --jby-white: #ffffff;
  --jby-radius: 16px;
  --jby-shadow: 0 12px 40px rgba(15, 40, 80, 0.08);
  --jby-topbar-h: 0px;
  --jby-header-h: 72px;
  --jby-chrome-h: var(--jby-header-h);
  --jby-max: 1280px;
  --jby-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --jby-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  /* 中文阅读：正文 / 标题略加字距，避免挤在一起 */
  --jby-tracking: 0.06em;
  --jby-tracking-heading: 0.03em;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.jby-body {
  margin: 0;
  font-family: var(--jby-font);
  color: var(--jby-text);
  background: var(--jby-white);
  line-height: 1.7;
  letter-spacing: var(--jby-tracking);
  -webkit-font-smoothing: antialiased;
}

/* 覆盖各页标题过大的负字距（-2px/-3px），中文标题保留轻微间隔 */
html body.jby-body .jby-page-content :is(h1, h2, h3),
html body.jby-body .jby-main :is(h1, h2, h3),
html body.jby-body .jby-footer :is(h1, h2, h3, h4, p, a, li),
html body.jby-body .jby-header .nav-link,
html body.jby-body .jby-header .navbar-brand {
  letter-spacing: var(--jby-tracking-heading);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.jby-container {
  width: min(100% - 40px, var(--jby-max));
  margin-inline: auto;
}

/* 隐藏主题页标题条（各营销页自带 Hero，避免头部下多出一块白缝） */
.jby-page-hero,
.entry-header,
.page-header,
.breadcrumbs,
.breadcrumb {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

/* Page root: first child under .jby-page-content must be jby-{slug}; do not enumerate pages here */
html body.jby-body {
  --jby-header-h: 72px !important;
}
.jby-page-content > [class^="jby-"]:not(.jby-unified-cta) {
  padding-top: 0 !important;
  margin-top: 0 !important;
  /* never overflow:hidden on page root — clips hero negative margin */
  overflow-y: visible !important;
}

/*
 * Hero flush to fixed header: block must be named jby-{slug}__hero (class ends with __hero).
 * New pages only need to follow naming; do not add selectors to this whitelist.
 */
html body.jby-body .jby-page-content [class$="__hero"] {
  margin-top: -72px !important;
  padding-top: 96px !important; /* 72 header + 24 content gap */
}

.jby-siderail {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1100;
  width: 72px;
  padding: 8px 6px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e6eef6;
  box-shadow: 0 12px 36px rgba(15, 45, 80, 0.14);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.jby-siderail__item {
  position: relative;
  appearance: none;
  border: 0;
  background: transparent;
  width: 100%;
  min-height: 64px;
  padding: 8px 4px;
  border-radius: 10px;
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  font: inherit;
  transition: background .2s, color .2s, transform .2s;
}
.jby-siderail__item:hover,
.jby-siderail__item:focus-visible {
  background: var(--jby-blue-soft);
  color: var(--jby-blue);
  outline: none;
}
.jby-siderail__item[data-rail="demo"] {
  background: transparent;
  color: #333333;
  box-shadow: none;
}
.jby-siderail__item[data-rail="demo"]:hover,
.jby-siderail__item[data-rail="demo"]:focus-visible {
  background: var(--jby-blue-soft);
  color: var(--jby-blue);
  transform: none;
}
.jby-siderail__icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
}
.jby-siderail__icon svg { width: 23px; height: 23px; }
.jby-siderail__label {
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
}
.jby-siderail__label br { display: none; }
.jby-siderail__top[hidden] { display: none !important; }

/* PC 侧栏悬停浮层 */
.jby-siderail__pop {
  display: none;
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  width: 210px;
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e6eef6;
  box-shadow: 0 16px 40px rgba(10, 40, 70, 0.18);
  color: var(--jby-ink);
  text-align: center;
  z-index: 2;
}
.jby-siderail__pop::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  width: 12px;
  height: 12px;
  background: #fff;
  border-top: 1px solid #e6eef6;
  border-right: 1px solid #e6eef6;
  transform: translateY(-50%) rotate(45deg);
}
.jby-siderail__item--hover:hover .jby-siderail__pop,
.jby-siderail__item--hover:focus-within .jby-siderail__pop {
  display: grid;
  gap: 8px;
}
.jby-siderail__pop b { font-size: 13px; }
.jby-siderail__pop strong {
  display: block;
  font-size: 20px;
  color: var(--jby-blue);
  letter-spacing: .3px;
}
.jby-siderail__pop small {
  color: var(--jby-muted);
  font-size: 12px;
  line-height: 1.5;
}
.jby-siderail__pop a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--jby-blue);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
}
.jby-siderail__pop--qr {
  width: 240px;
  padding: 14px;
}
.jby-siderail__pop--qr .jby-siderail__qr-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(62vh, 460px);
  object-fit: contain;
  border-radius: 8px;
  background: #f7fbff;
}

/* Bootstrap Modal 壳层（高于固定顶栏 / 侧栏） */
.jby-modal {
  --bs-modal-zindex: 10080;
  z-index: 10080;
}
.modal-backdrop {
  --bs-backdrop-zindex: 10075;
  z-index: 10075;
}
.jby-modal .modal-content {
  border: 1px solid #e6eef6;
  border-radius: 16px;
}
.jby-modal .modal-title {
  font-weight: 700;
  color: #0b1a33;
}
.jby-modal--video .modal-title {
  color: #fff;
}
.jby-modal--video .modal-content {
  border: 0;
  background: #0b1a33;
}
.jby-modal--video .jby-video__player {
  display: block;
  object-fit: contain;
  background: #000;
}
.jby-modal__qr {
  max-height: min(62vh, 460px);
  width: auto;
  margin-inline: auto;
  object-fit: contain;
  background: #f7fbff;
}
.jby-booking-form .form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--jby-ink);
}
.jby-booking-form .form-control {
  border-color: var(--jby-line);
  border-radius: 10px;
  font-size: 14px;
}
.jby-booking-form .form-control::placeholder {
  color: #999999;
  font-size: 13px;
  opacity: 1;
}
.jby-booking-form .form-control::-webkit-input-placeholder {
  color: #999999;
  font-size: 13px;
}
.jby-booking-form .form-control::-moz-placeholder {
  color: #999999;
  font-size: 13px;
  opacity: 1;
}
.jby-booking-form .form-control:focus {
  border-color: var(--jby-blue);
  box-shadow: 0 0 0 0.2rem rgba(0, 122, 255, 0.15);
}

/* 隐藏正文内嵌旧导航/侧栏，全站只用主题公共组件 */
.service-rail,
.portal-nav,
header.portal-nav,
.bda-nav,
.s-nav,
.ld-nav,
.video-nav,
.jby-page-content .nav.wrap,
.jby-page-content .nav,
.jby-page-content--home .nav,
dialog.demo-modal,
.demo-modal {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  z-index: -1 !important;
}

/* 强制右侧公共栏全站可见 */
html body.jby-body aside.jby-siderail#jbySideRail,
aside.jby-siderail#jbySideRail {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: fixed !important;
  right: 18px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 10040 !important;
  pointer-events: auto !important;
}
/* 隐藏右下角浮动智能客服入口，改由右侧栏/页脚「在线咨询」打开（保留节点以便 JS 触发） */
.mwai-chatbot-container .mwai-open-button,
.mwai-messages-theme .mwai-open-button,
.mwai-messages-theme .mwai-trigger,
.mwai-chatbot-container > .mwai-trigger,
button.mwai-open-button,
.mwai-open-button {
  position: fixed !important;
  left: -9999px !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  overflow: hidden !important;
  z-index: -1 !important;
}

/* Hero */
.jby-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 88px;
  background:
    radial-gradient(ellipse 80% 60% at 80% 10%, rgba(22,119,255,.18), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(64,158,255,.12), transparent 50%),
    linear-gradient(180deg, #f3f8ff 0%, #ffffff 70%);
}
.jby-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.jby-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--jby-line);
  color: var(--jby-blue);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  box-shadow: 0 6px 16px rgba(15,40,80,.04);
}
.jby-kicker i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--jby-blue);
  box-shadow: 0 0 0 4px rgba(22,119,255,.15);
  animation: jbyPulse 2s infinite;
}
.jby-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.18;
  color: var(--jby-ink);
  letter-spacing: -.02em;
  font-weight: 760;
}
.jby-hero h1 span {
  background: linear-gradient(135deg, #007aff, #4da3ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.jby-hero__desc {
  margin: 0 0 28px;
  font-size: 17px;
  color: var(--jby-muted);
  max-width: 540px;
}
.jby-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.jby-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  color: var(--jby-muted);
  font-size: 14px;
}
.jby-hero__meta strong { color: var(--jby-ink); font-size: 18px; display: block; }

.jby-visual {
  position: relative;
  min-height: 420px;
}
.jby-visual__panel {
  position: absolute;
  border-radius: 20px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--jby-shadow);
  backdrop-filter: blur(10px);
  padding: 18px;
  animation: jbyFloat 6s ease-in-out infinite;
}
.jby-visual__panel--main {
  inset: 30px 20px 40px 40px;
  background: linear-gradient(160deg, #0b1a33, #0d3f8a 55%, #007aff);
  color: #fff;
  padding: 28px;
  animation-delay: 0s;
}
.jby-visual__panel--float {
  width: 210px;
  right: 0;
  top: 24px;
  animation-delay: 1s;
}
.jby-visual__panel--float2 {
  width: 220px;
  left: 0;
  bottom: 18px;
  animation-delay: 2s;
}
.jby-visual__panel h3 { margin: 0 0 8px; font-size: 18px; }
.jby-visual__panel p { margin: 0; opacity: .85; font-size: 13px; line-height: 1.6; }
.jby-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.jby-chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  font-size: 12px;
}
.jby-mini-stat {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--jby-line);
  font-size: 12px;
  color: var(--jby-muted);
}
.jby-mini-stat strong { display: block; color: var(--jby-ink); font-size: 16px; }

/* Sections */
.jby-section { padding: 88px 0; }
.jby-section--bg { background: var(--jby-bg); }
.jby-section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.jby-section__head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--jby-ink);
  letter-spacing: -.02em;
}
.jby-section__head p {
  margin: 0;
  color: var(--jby-muted);
  font-size: 16px;
}

.jby-grid-2,
.jby-grid-3,
.jby-grid-4 {
  display: grid;
  gap: 20px;
}
.jby-grid-2 { grid-template-columns: repeat(2, 1fr); }
.jby-grid-3 { grid-template-columns: repeat(3, 1fr); }
.jby-grid-4 { grid-template-columns: repeat(4, 1fr); }

.jby-card {
  background: #fff;
  border: 1px solid var(--jby-line);
  border-radius: var(--jby-radius);
  padding: 26px 24px;
  box-shadow: 0 8px 24px rgba(15,40,80,.03);
  transition: transform .35s var(--jby-ease), box-shadow .35s var(--jby-ease), border-color .35s;
}
.jby-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15,40,80,.1);
  border-color: #cfe2ff;
}
.jby-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: var(--jby-blue-soft);
  color: var(--jby-blue);
  font-weight: 700;
  font-size: 14px;
}
.jby-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--jby-ink);
}
.jby-card p {
  margin: 0;
  color: var(--jby-muted);
  font-size: 14px;
  line-height: 1.7;
}

.jby-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.jby-split--rev > :first-child { order: 2; }
.jby-split h3 {
  margin: 0 0 14px;
  font-size: 28px;
  color: var(--jby-ink);
}
.jby-split p { margin: 0 0 14px; color: var(--jby-muted); }
.jby-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}
.jby-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  color: var(--jby-text);
  border-bottom: 1px solid var(--jby-line);
}
.jby-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 18px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--jby-blue);
  box-shadow: 0 0 0 4px rgba(22,119,255,.15);
}

.jby-panel {
  border-radius: 24px;
  background: linear-gradient(145deg, #0b1a33, #123f86);
  color: #fff;
  padding: 36px;
  min-height: 280px;
  box-shadow: var(--jby-shadow);
  position: relative;
  overflow: hidden;
}
.jby-panel::after {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  right: -40px; bottom: -60px;
  background: radial-gradient(circle, rgba(59,139,255,.45), transparent 70%);
}

.jby-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.jby-stat {
  text-align: center;
  padding: 28px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--jby-line);
}
.jby-stat strong {
  display: block;
  font-size: 32px;
  color: var(--jby-blue);
  margin-bottom: 6px;
}
.jby-stat span { color: var(--jby-muted); font-size: 14px; }

.jby-cta {
  margin: 0 0 0;
  padding: 72px 0;
  background:
    radial-gradient(ellipse 50% 80% at 20% 50%, rgba(59,139,255,.35), transparent 60%),
    linear-gradient(120deg, #0b1a33, #0f3f8f 55%, #007aff);
  color: #fff;
  text-align: center;
}
.jby-cta h2 { margin: 0 0 12px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.jby-cta p { margin: 0 0 24px; opacity: .85; }
.jby-cta__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--jby-ease), transform .7s var(--jby-ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

@keyframes jbyFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes jbyPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(22,119,255,.15); }
  50% { box-shadow: 0 0 0 8px rgba(22,119,255,.08); }
}

/* Responsive */
@media (max-width: 980px) {
  .jby-hero__grid,
  .jby-split { grid-template-columns: 1fr; }
  .jby-split--rev > :first-child { order: 0; }
  .jby-grid-2,
  .jby-grid-3,
  .jby-grid-4,
  .jby-stats { grid-template-columns: 1fr 1fr; }
  .jby-visual { min-height: 360px; margin-top: 12px; }
}

.jby-page-content .jby-hero,
.jby-page-content .jby-cta,
.jby-page-content .jby-section--bg {
  /* keep full-bleed sections working inside article */
}

.jby-page-content > .jby-section:first-child {
  padding-top: 48px;
}

.jby-page-content--home > .jby-section:first-child,
.jby-page-content--home > .jby-hero:first-child {
  padding-top: 72px;
}

/* Responsive already defined; ensure editor HTML blocks don't get WP default paragraph margins oddly */
.jby-page-content .jby-card p,
.jby-page-content .jby-section__head p {
  margin-top: 0;
}

@media (max-width: 760px) {
  .jby-grid-2,
  .jby-grid-3,
  .jby-grid-4,
  .jby-stats { grid-template-columns: 1fr; }
  .jby-hero { padding-top: 48px; }
  .jby-visual__panel--float,
  .jby-visual__panel--float2 { display: none; }
  .jby-visual__panel--main { inset: 0; position: relative; }
  .jby-visual { min-height: auto; }
}

/* ≥768：右侧浮层；<768：底部精简条 */
@media (max-width: 767.98px) {
  html body.jby-body aside.jby-siderail#jbySideRail,
  aside.jby-siderail#jbySideRail {
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: space-around !important;
    gap: 0 !important;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 0 !important;
    border: 0 !important;
    border-top: 1px solid #e6eef6 !important;
    box-shadow: 0 -8px 24px rgba(15, 45, 80, 0.1) !important;
    background: #fff !important;
  }
  .jby-siderail__item {
    min-height: 52px;
    flex: 1;
    border-radius: 10px;
  }
  .jby-siderail__label {
    font-size: 11px;
    line-height: 1.15;
  }
  .jby-siderail__label br { display: none; }
  .jby-siderail__top { display: none !important; }
  /* 小屏不用悬停浮层，改点开 Modal */
  .jby-siderail__pop { display: none !important; }

  body.jby-body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
  .jby-footer { padding-bottom: 12px; }
}

/* ---- Gutenberg core blocks (visual editing) ---- */
.jby-page-content > .wp-block-group.alignfull,
.editor-styles-wrapper > .wp-block-group.alignfull {
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.wp-block-columns.jby-hero__grid,
.wp-block-columns.jby-split,
.wp-block-columns.jby-grid-2,
.wp-block-columns.jby-grid-3,
.wp-block-columns.jby-grid-4,
.wp-block-columns.jby-stats,
.wp-block-columns.jby-contact-grid,
.wp-block-columns.jby-hero__meta {
  display: grid !important;
  gap: 20px;
}
.wp-block-columns.jby-hero__grid,
.wp-block-columns.jby-split {
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.wp-block-columns.jby-grid-2,
.wp-block-columns.jby-contact-grid { grid-template-columns: repeat(2, 1fr); }
.wp-block-columns.jby-grid-3 { grid-template-columns: repeat(3, 1fr); }
.wp-block-columns.jby-grid-4,
.wp-block-columns.jby-stats { grid-template-columns: repeat(4, 1fr); }
.wp-block-columns.jby-hero__meta {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.wp-block-columns.jby-grid-2 > .wp-block-column,
.wp-block-columns.jby-grid-3 > .wp-block-column,
.wp-block-columns.jby-grid-4 > .wp-block-column,
.wp-block-columns.jby-stats > .wp-block-column,
.wp-block-columns.jby-contact-grid > .wp-block-column,
.wp-block-columns.jby-split > .wp-block-column,
.wp-block-columns.jby-hero__grid > .wp-block-column,
.wp-block-columns.jby-hero__meta > .wp-block-column {
  flex-basis: auto !important;
  width: auto !important;
  margin: 0 !important;
}

.wp-block-group.jby-card,
.wp-block-group.jby-panel,
.wp-block-group.jby-stat,
.wp-block-group.jby-contact-card,
.wp-block-group.jby-visual__panel {
  box-sizing: border-box;
}

.wp-block-group.jby-card > *:last-child,
.wp-block-group.jby-panel > *:last-child,
.wp-block-group.jby-stat > *:last-child,
.wp-block-group.jby-contact-card > *:last-child {
  margin-bottom: 0;
}

.jby-card-note {
  margin-top: 12px !important;
  color: var(--jby-blue) !important;
  font-size: 13px !important;
  font-weight: 600;
}

.jby-stat .wp-block-group__inner-container > p:first-child,
.jby-stat > p:first-child {
  margin: 0 0 6px;
}
.jby-stat .wp-block-group__inner-container > p:first-child strong,
.jby-stat > p:first-child strong {
  display: block;
  font-size: 32px;
  color: var(--jby-blue);
}
.jby-stat .wp-block-group__inner-container > p:last-child,
.jby-stat > p:last-child {
  margin: 0;
  color: var(--jby-muted);
  font-size: 14px;
}

.wp-block-button.jby-btn .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none !important;
  border: 1px solid transparent;
  transition: .2s var(--jby-ease);
  box-shadow: none;
}
.wp-block-button.jby-btn--primary .wp-block-button__link {
  background: var(--jby-blue) !important;
  color: #fff !important;
}
.wp-block-button.jby-btn--primary .wp-block-button__link:hover {
  background: #0f5fd6 !important;
}
.wp-block-button.jby-btn--ghost .wp-block-button__link {
  background: #fff !important;
  color: var(--jby-ink) !important;
  border-color: var(--jby-line) !important;
}
.wp-block-button.jby-btn--ghost .wp-block-button__link:hover {
  background: var(--jby-blue-soft) !important;
}
.wp-block-button.jby-btn--white .wp-block-button__link {
  background: #fff !important;
  color: var(--jby-ink) !important;
}
.wp-block-button.jby-btn--light .wp-block-button__link {
  background: rgba(255,255,255,.14) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.35) !important;
}
.wp-block-button.jby-btn--light .wp-block-button__link:hover {
  background: rgba(255,255,255,.25) !important;
}

.jby-cta .wp-block-heading,
.jby-cta p { color: #fff; }
.jby-panel .wp-block-heading,
.jby-panel p { color: #fff; position: relative; z-index: 1; }
.jby-panel p { opacity: .9; }

.jby-contact-card a { color: var(--jby-blue); font-weight: 600; font-size: 14px; }

.jby-chip-row .jby-chip {
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(22,119,255,.12);
  color: var(--jby-blue);
  font-size: 12px;
  font-weight: 600;
}
.jby-panel .jby-chip {
  background: rgba(255,255,255,.14);
  color: #fff;
}

@media (max-width: 980px) {
  .wp-block-columns.jby-hero__grid,
  .wp-block-columns.jby-split { grid-template-columns: 1fr; }
  .wp-block-columns.jby-grid-2,
  .wp-block-columns.jby-grid-3,
  .wp-block-columns.jby-grid-4,
  .wp-block-columns.jby-stats,
  .wp-block-columns.jby-contact-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .wp-block-columns.jby-grid-2,
  .wp-block-columns.jby-grid-3,
  .wp-block-columns.jby-grid-4,
  .wp-block-columns.jby-stats,
  .wp-block-columns.jby-contact-grid,
  .wp-block-columns.jby-hero__meta { grid-template-columns: 1fr; }
}

/* ========== AI Engine chatbot ========== */
/* 客服窗口层级高于右侧导航（10040）与顶栏（10050） */
html body .mwai-chat.mwai-window,
html body #mwai-chatbot-jby-cs,
.mwai-chatbot-container .mwai-chat.mwai-window,
.mwai-messages-theme.mwai-window {
  z-index: 10060 !important;
}

.mwai-messages-theme.mwai-window {
  --mwai-borderRadius: 20px;
  --mwai-borderColor: #e7eaf0;
  --mwai-backgroundHeaderColor: #ffffff;
  --mwai-backgroundUserColor: #007aff;
  --mwai-backgroundSecondaryColor: #f5f6f8;
  --mwai-bubbleColor: #007aff;
  --mwai-accentColor: #007aff;
  --mwai-iconTextBackgroundColor: #007aff;
  --mwai-iconTextColor: #fff;
  --mwai-headerColor: #1f2329;
  --mwai-backgroundPrimaryColor: #f5f6f8;
  --mwai-backgroundAiColor: #ffffff;
  --mwai-backgroundAiSecondaryColor: #eef2f7;
  --mwai-fontColor: #1f2329;
  --mwai-fontSize: 14px;
  --mwai-spacing: 12px;
  --mwai-lineHeight: 1.65;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif !important;
}

.mwai-messages-theme.mwai-window .mwai-window-box {
  overflow: hidden;
  border-radius: 20px;
  background: #f5f6f8;
  border: 1px solid #e8ebf0;
  filter: none !important;
  box-shadow: 0 18px 48px rgba(31, 35, 41, 0.16);
}

/* Header */
.mwai-messages-theme.mwai-window .mwai-header {
  background: #fff !important;
  color: #1f2329 !important;
  border-bottom: 1px solid #eef0f3;
  min-height: 56px;
  padding: 0 8px 0 16px !important;
  border-radius: 20px 20px 0 0 !important;
}
.mwai-messages-theme.mwai-window .mwai-header .mwai-name,
.mwai-messages-theme.mwai-window .mwai-header .mwai-title,
.mwai-messages-theme.mwai-window .mwai-header .mwai-subtitle,
.mwai-messages-theme.mwai-window .mwai-header span {
  color: #1f2329 !important;
}
.mwai-messages-theme.mwai-window .mwai-header .mwai-name,
.mwai-messages-theme.mwai-window .mwai-header .mwai-title {
  font-weight: 700 !important;
  font-size: 15px !important;
}
.mwai-messages-theme.mwai-window .mwai-header .mwai-buttons .mwai-close-button:before,
.mwai-messages-theme.mwai-window .mwai-header .mwai-buttons .mwai-close-button:after,
.mwai-messages-theme.mwai-window .mwai-header .mwai-buttons .mwai-resize-button:before {
  background-color: #646a73 !important;
}

.mwai-messages-theme.mwai-window .mwai-body {
  background: #f5f6f8 !important;
  border: none !important;
  box-shadow: none !important;
}

/* 对话区 */
.mwai-messages-theme.mwai-window .mwai-conversation {
  background: transparent !important;
  padding: 16px 14px 8px !important;
  gap: 4px;
}

/* AI 消息：白卡片，无气泡尾巴 */
.mwai-messages-theme.mwai-window .mwai-conversation .mwai-reply.mwai-ai,
.mwai-messages-theme.mwai-window .mwai-conversation .mwai-reply.mwai-error {
  background: #fff !important;
  color: #1f2329 !important;
  border-radius: 16px !important;
  padding: 14px 16px !important;
  max-width: 92% !important;
  margin: 0 0 12px 0 !important;
  box-shadow: 0 4px 16px rgba(31, 35, 41, 0.06);
  border: 1px solid #eef0f3;
}
.mwai-messages-theme.mwai-window .mwai-conversation .mwai-reply.mwai-ai::before,
.mwai-messages-theme.mwai-window .mwai-conversation .mwai-reply.mwai-ai::after,
.mwai-messages-theme.mwai-window .mwai-conversation .mwai-reply.mwai-error::before,
.mwai-messages-theme.mwai-window .mwai-conversation .mwai-reply.mwai-error::after,
.mwai-messages-theme.mwai-window .mwai-conversation .mwai-reply.mwai-user::before,
.mwai-messages-theme.mwai-window .mwai-conversation .mwai-reply.mwai-user::after {
  display: none !important;
  content: none !important;
}

/* 用户消息：蓝色圆角气泡 */
.mwai-messages-theme.mwai-window .mwai-conversation .mwai-reply.mwai-user {
  background: #007aff !important;
  color: #fff !important;
  border-radius: 16px 16px 4px 16px !important;
  padding: 12px 14px !important;
  max-width: 82% !important;
  margin: 0 0 12px 0 !important;
  box-shadow: 0 6px 16px rgba(0, 122, 255, 0.2);
  border: none;
}

/* 顶部快捷标签：一排四枚 */
.mwai-messages-theme.mwai-window .mwai-shortcuts {
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: stretch !important;
  gap: 6px;
  padding: 2px 12px 8px;
}
.mwai-messages-theme.mwai-window .mwai-shortcuts .mwai-shortcut {
  margin: 0 !important;
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: none !important;
  background: #fff !important;
  color: #3b4a5c !important;
  border: 1px solid #e6ebf2 !important;
  border-radius: 999px !important;
  padding: 5px 6px !important;
  font-size: 11px !important;
  font-weight: 500;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  justify-content: center !important;
  transition: background .2s, border-color .2s, color .2s;
}
.mwai-messages-theme.mwai-window .mwai-shortcuts .mwai-shortcut:hover {
  filter: none !important;
  background: #f0f6ff !important;
  border-color: rgba(0, 122, 255, 0.35) !important;
  color: #007aff !important;
  transform: none;
}

/* 欢迎区：快捷服务 + 常见问题，同一套视觉 */
.mwai-messages-theme.mwai-window .jby-chat-welcome,
.mwai-messages-theme.mwai-window .jby-chat-panel {
  margin: 0 0 12px;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 4px 16px rgba(31, 35, 41, 0.05);
}
.mwai-messages-theme.mwai-window .jby-chat-section + .jby-chat-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eef0f3;
}
.mwai-messages-theme.mwai-window .jby-chat-panel__title {
  margin: 0 0 10px;
  font-size: 12px;
  color: #8f959e;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.mwai-messages-theme.mwai-window .jby-chat-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.mwai-messages-theme.mwai-window .jby-chat-action {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e6ebf2;
  background: #f8fafc;
  color: #1f2329;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: border-color .2s, background .2s, color .2s;
}
.mwai-messages-theme.mwai-window .jby-chat-action:hover {
  background: #f0f6ff;
  border-color: rgba(0, 122, 255, 0.35);
  color: #007aff;
  transform: none;
}
.mwai-messages-theme.mwai-window .jby-chat-action__ico,
.mwai-messages-theme.mwai-window .jby-chat-action__dot {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #007aff;
  background: rgba(0, 122, 255, 0.1);
  flex: 0 0 auto;
}
.mwai-messages-theme.mwai-window .jby-chat-action__ico svg {
  width: 13px;
  height: 13px;
  display: block;
}

.mwai-messages-theme.mwai-window .jby-chat-faqs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mwai-messages-theme.mwai-window .jby-chat-faq {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 10px 10px 12px;
  border: 0;
  border-radius: 12px;
  background: #eef4ff;
  color: #1f2329;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.mwai-messages-theme.mwai-window .jby-chat-faq::after {
  display: none !important;
  content: none !important;
}
.mwai-messages-theme.mwai-window .jby-chat-faq > span {
  flex: 1 1 auto;
  min-width: 0;
}
.mwai-messages-theme.mwai-window .jby-chat-faq em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  color: #007aff;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(15, 40, 80, 0.06);
}
.mwai-messages-theme.mwai-window .jby-chat-faq:hover {
  background: #e4eeff;
  color: #1f2329;
}
.mwai-messages-theme.mwai-window .jby-chat-faq:hover em {
  color: #0062d6;
}

/* 输入区 */
.mwai-messages-theme.mwai-window .mwai-input {
  background: #f3f1f8 !important;
  border-top: 1px solid #eceaf2 !important;
  padding: 12px 14px 16px !important;
  position: relative;
}
.mwai-messages-theme.mwai-window .mwai-input .mwai-input-text {
  background: #fff !important;
  border: none !important;
  border-radius: 28px !important;
  overflow: visible !important;
  min-height: 52px;
  align-items: center;
  box-shadow: 0 6px 20px rgba(70, 55, 120, 0.08);
  padding-right: 52px !important; /* 给纸飞机发送留位 */
  position: relative;
}
.mwai-messages-theme.mwai-window .mwai-input .mwai-input-text:focus-within {
  border: none !important;
  box-shadow: 0 8px 24px rgba(70, 55, 120, 0.12);
  background: #fff !important;
}
.mwai-messages-theme.mwai-window .mwai-input .mwai-input-text textarea {
  background: transparent !important;
  padding: 15px 8px 15px 18px !important;
  min-height: 52px !important;
  color: #1f2329 !important;
  line-height: 1.45 !important;
}
.mwai-messages-theme.mwai-window .mwai-input .mwai-input-text textarea::placeholder {
  color: #a8a0b5 !important;
  opacity: 1 !important;
}

/* 发送：纸飞机图标（空=浅紫灰，有内容=品牌蓝） */
.mwai-messages-theme.mwai-window .mwai-input-submit,
.mwai-messages-theme.mwai-window button.mwai-submit,
.mwai-messages-theme.mwai-window .mwai-send-button {
  position: absolute !important;
  right: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  z-index: 4;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  transition: opacity .2s, filter .2s;
}
.mwai-messages-theme.mwai-window .mwai-input-submit.jby-force-send {
  font-size: 0 !important;
}
.mwai-messages-theme.mwai-window .mwai-input-submit.jby-force-send > * {
  display: none !important;
}
.mwai-messages-theme.mwai-window .mwai-input-submit.jby-force-send::after {
  content: "";
  width: 22px;
  height: 22px;
  display: block;
  background-color: #b7a9d4; /* 空输入：浅紫灰 */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3.4 11.2 20.1 3.7c.7-.3 1.4.4 1.1 1.1l-7.5 16.7c-.3.7-1.3.6-1.5-.2l-1.7-6.1-6.1-1.7c-.8-.2-.9-1.2-.2-1.5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3.4 11.2 20.1 3.7c.7-.3 1.4.4 1.1 1.1l-7.5 16.7c-.3.7-1.3.6-1.5-.2l-1.7-6.1-6.1-1.7c-.8-.2-.9-1.2-.2-1.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.mwai-messages-theme.mwai-window .mwai-input-submit.jby-force-send:not(.jby-send-disabled)::after {
  background-color: #007aff; /* 有内容：品牌蓝 */
}
.mwai-messages-theme.mwai-window .mwai-input-submit.jby-send-disabled {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
}
.mwai-messages-theme.mwai-window .mwai-input-submit.jby-force-send:not(.jby-send-disabled):hover {
  filter: brightness(1.05);
}

/* 若提交按钮在 input 容器而非 input-text 内，也对齐到右侧 */
.mwai-messages-theme.mwai-window .mwai-input {
  --jby-send-right: 22px;
}
.mwai-messages-theme.mwai-window .mwai-input > .mwai-input-submit {
  right: 22px !important;
}

/* 首次提示：开始对话后隐藏 */
.mwai-messages-theme.mwai-window.jby-chat-started .jby-chat-welcome,
.mwai-messages-theme.mwai-window.jby-chat-started .jby-chat-panel,
.mwai-messages-theme.mwai-window.jby-chat-started .mwai-shortcuts {
  display: none !important;
}

/* 聊天气泡内微信二维码 */
.mwai-messages-theme.mwai-window .mwai-conversation img,
.mwai-messages-theme.mwai-window .mwai-reply img,
.mwai-messages-theme.mwai-window .mwai-content img {
  max-width: 200px !important;
  height: auto !important;
  border-radius: 8px;
  display: block;
  margin: 8px 0;
}

/* 加高对话区 */
.mwai-messages-theme.mwai-window {
  --mwai-maxHeight: 78vh !important;
}
.mwai-messages-theme.mwai-window .mwai-conversation {
  min-height: 520px !important;
  max-height: 78vh !important;
}

/* 悬浮入口 */
.mwai-messages-theme .mwai-open-button .mwai-icon-text,
.mwai-messages-theme .mwai-trigger .mwai-icon-text {
  background-color: #007aff;
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 122, 255, 0.28);
}
.mwai-messages-theme .mwai-trigger .mwai-icon-container {
  background-color: #007aff;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 122, 255, 0.32);
}

/* ========== 营销正文移动端兼容 ========== */
@media (max-width: 767.98px) {
  html,
  body.jby-body {
    overflow-x: clip;
  }
  .jby-main,
  .jby-page-content,
  .jby-page-content > * {
    max-width: 100%;
  }
  .jby-page-content > .wp-block-group.alignfull,
  .editor-styles-wrapper > .wp-block-group.alignfull {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* 常见营销栅格压成单列，避免横向溢出 */
  .jby-page-content .hero-grid,
  .jby-page-content .ability-grid,
  .jby-page-content .scene-grid,
  .jby-page-content .pain-grid,
  .jby-page-content .journey-visual,
  .jby-page-content .closing,
  .jby-page-content .engine-grid,
  .jby-page-content .feature-grid,
  .jby-page-content .sol-grid,
  .jby-page-content .video-grid,
  .jby-page-content .bda-grid,
  .jby-page-content .ld-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .jby-page-content .wrap,
  .jby-page-content .container-fluid {
    width: min(100% - 32px, 1160px) !important;
    max-width: 100% !important;
    margin-inline: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .jby-page-content img,
  .jby-page-content video,
  .jby-page-content iframe,
  .jby-page-content svg {
    max-width: 100% !important;
    height: auto;
  }
  .jby-page-content .closing,
  .jby-page-content .challenge {
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 16px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .jby-page-content h1,
  .jby-page-content h2 {
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .jby-page-content .pain-intro h2,
  .jby-page-content .section-intro h2,
  .jby-page-content .closing h2,
  .jby-page-content .start h2 {
    font-size: clamp(1.6rem, 7vw, 2.2rem) !important;
    letter-spacing: -0.5px !important;
  }

  /* 客服窗小屏贴边 */
  html body .mwai-chat.mwai-window.mwai-open,
  html body .mwai-messages-theme.mwai-window.mwai-open {
    width: min(100vw - 16px, 420px) !important;
    max-height: min(78vh, 640px) !important;
    right: 8px !important;
    left: auto !important;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* 主导航页统一末尾行动区。 */
.jby-unified-cta {
  padding: 96px 0 102px;
  font-family: var(--jby-font);
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(69, 137, 255, .36), transparent 58%),
    linear-gradient(112deg, #071d3e 0%, #1d57c8 100%);
}
.jby-unified-cta h2 {
  margin: 0;
  color: #fff;
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -1.5px;
}
.jby-unified-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}
.jby-unified-cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 176px;
  min-height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 5px;
  font-size: 17px;
  font-weight: 600;
  box-shadow: 0 12px 26px rgba(2, 18, 53, .24);
}
.jby-unified-cta__consult {
  border: 2px solid rgba(255, 255, 255, .82) !important;
  color: #fff !important;
  background: linear-gradient(105deg, rgba(255, 255, 255, .14), rgba(174, 218, 255, .25));
  box-shadow: inset 0 0 20px rgba(188, 228, 255, .22), 0 0 18px rgba(156, 219, 255, .2) !important;
}
.jby-unified-cta__consult:hover {
  border-color: #fff !important;
  color: #287cf4 !important;
  background: #fff;
}

/* 首页与产品页共用的蓝色对号列表。 */
.jby-check-list {
  display: grid;
  gap: 9px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: #333;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}
.jby-check-list li { position: relative; padding-left: 25px; }
.jby-check-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: #2878ff;
  content: "✓";
  font-weight: 800;
}
@media (max-width: 575.98px) {
  .jby-unified-cta { padding: 70px 0; }
  .jby-unified-cta h2 { font-size: 28px; letter-spacing: -1px; }
  .jby-unified-cta__actions { gap: 14px; margin-top: 28px; }
  .jby-unified-cta .btn { width: 100%; min-width: 0; min-height: 56px; font-size: 17px; }
}
