/* 炅文站：无 JS 辅助样式（主题仍以 taxgood 下载的 Bootstrap 样式为准） */
@media (min-width: 992px) {
  .navbar-collapse.collapse {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
    visibility: visible !important;
  }
}

.navbar-toggle {
  display: none !important;
}

body {
  min-width: 1200px;
}

/* 静态首屏横幅，替代 Revolution Slider：标题 → 描述 → 按钮，纵向居中 */
.repl-rev-hero {
  min-height: 560px;
  background: url("../../uploads/image/20201104/1604498133.jpg") center center
    no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.repl-rev-hero .inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 28px;
  box-sizing: border-box;
}

/* 主题里 .tp-caption 默认 position:absolute，在静态 Banner 中改为文档流 */
.repl-rev-hero .inner .tp-caption {
  position: static !important;
  left: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
}

/* 主题 rev-slider 里标题为 nowrap + 超大字号，易把布局撑乱，在此按 Banner 重置 */
.repl-rev-hero .inner .tp-caption.hero-text.size-95 {
  display: block;
  order: 1;
  margin: 0 0 20px !important;
  padding: 0 !important;
  white-space: normal !important;
  line-height: 1.12 !important;
  font-size: clamp(42px, 5.5vw, 88px) !important;
  letter-spacing: 0.02em;
}

.repl-rev-hero .inner .tp-caption.small-text.size-2 {
  position: static !important;
  display: block;
  order: 2;
  margin: 0 0 32px !important;
  padding: 0 !important;
  white-space: normal !important;
  max-width: 720px;
  line-height: 1.65 !important;
  font-size: 17px !important;
  font-weight: 400;
}

.repl-rev-hero .hero-btns {
  order: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 16px;
  margin: 0;
}

.repl-rev-hero .hero-btns .btn {
  margin: 0;
}

.footer.jw-minimal .footer-widgets {
  display: none !important;
}

.footer.jw-minimal .bottom-footer {
  border-top: 0;
  padding-top: 28px;
  padding-bottom: 32px;
}

/* news / about：收紧主内容区与 footer 间距（对齐首页各 section 的 pb 约 56–90px 量级） */
body.jw-page-news .main-wrapper > .section-wrap.blog-standard.bg-light {
  padding-top: 90px !important;
  padding-bottom: 56px !important;
}

body.jw-page-about .main-wrapper > .section-wrap.parallax-testimonials {
  padding-top: 72px !important;
  padding-bottom: 56px !important;
}

body.jw-page-about .main-wrapper > .section-wrap.partners.bg-light {
  padding-top: 64px !important;
  padding-bottom: 56px !important;
}

/* 关于我们：立即咨询弹窗（与 Bootstrap 主题色、圆角按钮一致） */
.jw-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: inherit;
}

.jw-modal.is-open {
  display: flex;
}

.jw-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 58, 82, 0.55);
}

.jw-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  padding: 32px 32px 28px;
  border: 1px solid #e8ebef;
}

.jw-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 0.85;
  color: #8a9399;
  cursor: pointer;
  padding: 4px 8px;
}

.jw-modal-close:hover {
  color: #1a3a52;
}

.jw-modal-title {
  margin: 0 0 8px;
  padding-right: 32px;
  font-size: 22px;
  font-weight: 600;
  color: #1a3a52;
  font-family: Montserrat, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.jw-modal-sub {
  margin: 0 0 22px;
  font-size: 14px;
  color: #5d6572;
  line-height: 1.5;
  min-height: 21px;
}

.jw-form-group {
  margin-bottom: 18px;
}

.jw-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #2b2f36;
  text-transform: none;
  letter-spacing: 0;
}

.jw-input.form-control {
  height: 44px;
  border-radius: 3px;
  border-color: #d0d6dd;
  font-size: 14px;
  box-shadow: none;
}

.jw-input.form-control:focus {
  border-color: #f36b21;
  box-shadow: 0 0 0 1px rgba(243, 107, 33, 0.25);
}

.jw-field-error {
  margin: 6px 0 0;
  min-height: 20px;
  font-size: 13px;
  color: #c0392b;
}

.jw-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.jw-consult-result {
  margin: 14px 0 0;
  min-height: 22px;
  font-size: 14px;
  color: #16853f;
}

/* 首页 iPad 手机图：屏幕空白区叠等比例 iframe（相对 500×708 素材） */
.promo-device-frame {
  position: relative;
  display: inline-block;
  max-width: 100%;
  vertical-align: middle;
}

.promo-device-frame > img {
  display: block;
  position: relative;
  z-index: 0;
  width: 100%;
  height: auto;
  max-width: 500px;
  margin: 0 auto;
}

/*
 * 屏幕区占满素材「空白」矩形；内嵌站常见 min-width:1200px，窄 iframe 会只露一角+滚动条。
 * 用固定逻辑视口 + scale(min(...)) 等比塞进屏幕区（container query）。
 */
.promo-device-screen {
  position: absolute;
  z-index: 1;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  container-type: size;
  container-name: promodevice;
}

.promo-device-frame--mobile .promo-device-screen {
  left: 5.5%;
  right: 5.5%;
  top: 8.5%;
  bottom: 11.5%;
}

.promo-device-frame--desktop .promo-device-screen {
  left: 5.85%;
  right: 5.85%;
  top: 8.75%;
  bottom: 8.75%;
}

/* 与常见 PC 站 min-width 对齐；flex 居中 + 从中心缩放，避免缩完后贴左上角留白 */
.promo-device-iframe-fit {
  flex: 0 0 auto;
  width: 1200px;
  height: 2000px;
  transform-origin: center center;
  transform: scale(min(calc(100cqw / 1200px), calc(100cqh / 2000px)));
}

.promo-device-iframe-fit .promo-device-iframe {
  display: block;
  width: 1200px;
  height: 2000px;
  max-width: none;
  border: 0;
}

/* 产品页：与主题 #ffb30f、Montserrat 标题、浅灰底一致 */
body.jw-page-products
  .main-wrapper
  > .section-wrap.jw-products-section.bg-light {
  padding-top: 72px !important;
  padding-bottom: 64px !important;
}

.jw-products-intro {
  max-width: 720px;
  margin: 0 auto 48px;
}

.jw-products-heading {
  margin: 0 0 14px;
  font-family: Montserrat, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #131314;
}

.jw-products-heading::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 18px auto 0;
  background: #ffb30f;
  border-radius: 2px;
}

.jw-products-intro-text {
  text-align: center;
  margin: 0 auto 48px;
  font-size: 16px;
  color: #5d6572;
  line-height: 1.5;
}

.jw-product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

@media (max-width: 1199px) {
  .jw-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .jw-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.jw-product-card {
  background: #fff;
  border: 1px solid #eceff3;
  border-radius: 4px;
  overflow: hidden;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.jw-product-card:hover {
  border-color: rgba(255, 179, 15, 0.55);
  box-shadow: 0 14px 32px rgba(19, 19, 20, 0.07);
}

.jw-product-card__figure {
  margin: 0;
  padding: 12px;
  box-sizing: border-box;
  background: #f4f6f8;
}

.jw-product-card__figure img {
  display: block;
  width: 100%;
  height: auto;
}
