.ct-pulse {
  border-radius: 50%;
  animation: pulse 2s ease-out infinite;
  -webkit-animation: pulse 2s ease-out infinite;
}

@keyframes pulse { 
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .8); }
  80% { box-shadow: 0 0 0 30px rgba(255, 255, 255, 0); }
}

/* WPForms */
#wpforms-306,
#wpforms-1497,
#wpforms-1516,
#wpforms-1896 {
  width: 100% !important;
}

/* Popup */
.ays-pb-modal {
  border-radius: 8px !important;
  overflow: hidden;
}

.ays_content_box {
  text-align: left !important;
}

.ays-pb-modal h2 {
  margin-bottom: 10px !important;
}

.ays-pb-modal-close {
  top: 10px !important;
  right: 15px !important;
}

.ays-pb-modal-close svg {
  width: 22px !important;
  height: 22px !important;
}

/* Submit Button */
.wpforms-container .wpforms-submit,
.ays-pb-modal .wpforms-submit {
  padding: 12px 28px !important;
  border-radius: 999px;
}

.wpforms-container .wpforms-submit {
  margin-top: 6px !important;
}

.ays-pb-modal .wpforms-submit {
  margin-top: 2px !important;
}

.ays-pb-modal .wpforms-submit-container {
  text-align: center;
}

/* ===== Product CTA Buttons ===== */

.cta-section{
    display:flex;
    width:100%;
    gap:24px;
    align-items:stretch;
}

.cta-section .cta-btn{

    flex:1 1 50% !important;

    width:50% !important;

    display:flex !important;

    align-items:center !important;

    justify-content:center !important;

    text-align:center !important;

    height:64px;

    padding:0 20px !important;

    margin:0 !important;

    line-height:1 !important;

    vertical-align:middle;

    font-size:18px;

    font-weight:600;

    border-radius:8px;

    text-decoration:none !important;

    box-sizing:border-box;

    white-space:nowrap;

}

.cta-section .cta-btn.primary-btn{
    background:#1f5fbf;
    color:#fff !important;
}

.cta-section .cta-btn.secondary-btn{
    background:#f1f1f1;
    color:#333 !important;
    border:1px solid #d0d0d0;
}

.cta-section .cta-btn:hover{
    transform:none;
}

.primary-btn {
  background-color: #1f5fbf;
  color: #fff;
  border: none;
}

.primary-btn:hover {
  background-color: #174a95;
}

.secondary-btn {
  background-color: #f1f1f1;
  color: #333;
  border: 1px solid #d0d0d0;
}

.secondary-btn:hover {
  background-color: #e5e5e5;
}

/* Accordion */
.kt-blocks-accordion-title a {
  text-decoration: none !important;
}

/* Tooltip */
#powerTip {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  white-space: normal !important;
  max-width: 90vw !important;
}

#powerTip:before,
#powerTip:after {
  display: none !important;
}

/* Hotspot Box */
.box_view_html {
  background: #fff !important;
  color: #333 !important;
  border-radius: 12px;
  padding: 18px;
  max-width: 420px;
  line-height: 1.6;
  word-break: break-word;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.box_view_html p {
  margin: 0 !important;
}

.box_view_html a {
  display: inline-block;
  margin-top: 6px;
  color: #0d6efd !important;
  font-weight: 600;
  font-size: 14px;
}

@media (max-width: 768px) {
  .box_view_html {
    max-width: 90vw;
    padding: 14px;
  }
}

/* Popup Overlay */
.pum-overlay {
  background-color: rgba(0, 0, 0, 0.3) !important;
}

.entry-content h1 { font-size: 36px !important; }
.entry-content h2 { font-size: 32px !important; }
.entry-content h3 { font-size: 28px !important; }
.entry-content h4 { font-size: 24px !important; }
.entry-content h5 { font-size: 20px !important; }
.entry-content h6 { font-size: 16px !important; }

.entry-content p { font-size: 16px !important; }

@media (max-width: 1024px) {
  .entry-content h1 { font-size: 30px !important; }
  .entry-content h2 { font-size: 28px !important; }
  .entry-content h3 { font-size: 24px !important; }
  .entry-content h4 { font-size: 20px !important; }
  .entry-content h5 { font-size: 18px !important; }
  .entry-content h6 { font-size: 15px !important; }

  .entry-content p { font-size: 15px !important; }
}

@media (max-width: 768px) {
  .entry-content h1 { font-size: 26px !important; }
  .entry-content h2 { font-size: 24px !important; }
  .entry-content h3 { font-size: 20px !important; }
  .entry-content h4 { font-size: 18px !important; }
  .entry-content h5 { font-size: 16px !important; }
  .entry-content h6 { font-size: 14px !important; }

  .entry-content p { font-size: 14px !important; }
}

.stk-3e16ae1 .stk-block-tab-labels__wrapper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.stk-3e16ae1 .stk-block-tab-labels__wrapper::-webkit-scrollbar {
    display: none;
}

.stk-3e16ae1 .stk-block-tabs__tab {
    flex: 0 0 auto;
    white-space: nowrap;
}

@media (max-width: 768px) {

    /* 1. 按钮缩小 */
    .wrap_svl .pins_animation {
        width: 40px !important;
        height: 40px !important;
        top: -20px !important;
        left: -20px !important;
    }

    .wrap_svl .pins_image {
        width: 40px !important;
        height: 40px !important;
        top: -20px !important;
        left: -20px !important;
    }

    /* 3. 防裁切（关键） */
    .wrap_svl,
    .wrap_svl .drag_element,
    .stk-column-wrapper,
    .stk-block-content {
        overflow: visible !important;
    }
}

/* ===== Image Hotspot 移动端气泡修复 ===== */
@media (max-width: 768px){

  /* 1️⃣ 强制气泡在可视范围内 */
  .box_view_html{
    max-width: 90vw !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    right: auto !important;
    box-sizing: border-box;
    word-break: break-word;
    z-index: 9999;
  }

  /* 2️⃣ 防止被父级裁剪（关键） */
  .box_view_html,
  .box_view_html *{
    overflow: visible !important;
  }

  /* 3️⃣ 找到热点外层容器（你这个很关键） */
  .ihewc-hover, 
  .ihewc-hotspot-wrap,
  .eael-image-hotspot,
  .eael-hotspot-wrapper {
    overflow: visible !important;
  }

}

/* ===== PostX 移动端轮播标题修复 ===== */
@media (max-width: 768px){

  /* 1️⃣ 修复标题换行问题 */
  .wp-block-post-title,
  .post-title,
  .postx-post-title,
  .postx-title{
    word-break: normal !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
  }

  /* 2️⃣ 强制标题正常显示 */
  .postx-post-title a,
  .postx-title a{
    font-size: 18px !important;
    line-height: 1.4 !important;
    display: block;
  }

  /* 3️⃣ 取消高度限制（关键） */
  .postx-post-title,
  .postx-title{
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

}

@media (max-width: 768px){

  .wp-block-post-template .post-title a{
    font-size: 18px !important;
    line-height: 1.4 !important;
    word-break: normal !important;
  }

}

@media (max-width: 768px){

  .postx-post-title a{
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 16px !important;
  }

}



/* ==========================================
   JUBEI GROUP - Latest News Carousel
   Smart Slider ID: 4

   更新版本：
   1. 图片宽度 100%
   2. 图片高度固定 300px
   3. 取消4:3比例限制
   4. 图片超出自动裁切
   5. 保留8px圆角
   6. 保留标题样式
   7. 普通指示点悬停不改变形状
========================================== */


/* ==========================================
   1. 图片图层容器
========================================== */

#n2-ss-4 .jubei-news-cover {

    position: relative !important;

    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    height: 300px !important;
    min-height: 300px !important;

    aspect-ratio: auto !important;

    overflow: hidden !important;

    border-radius: 8px !important;

    box-sizing: border-box !important;
}


/* ==========================================
   2. 图片内部链接
========================================== */

#n2-ss-4 .jubei-news-cover a {

    position: absolute !important;

    inset: 0 !important;

    display: block !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* ==========================================
   3. 图片本体：填满并裁切
========================================== */

#n2-ss-4 .jubei-news-cover img {

    position: absolute !important;

    inset: 0 !important;

    display: block !important;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;
    max-height: none !important;

    object-fit: cover !important;
    object-position: center center !important;

    margin: 0 !important;
    padding: 0 !important;

    border-radius: 8px !important;
}


/* ==========================================
   4. 新闻标题
========================================== */

#n2-ss-4 .jubei-news-heading,
#n2-ss-4 .jubei-news-heading * {

    font-size: 20px !important;

    font-weight: 700 !important;

    line-height: 1.4 !important;

    color: #10243d !important;
}


/* ==========================================
   5. 指示点：默认状态
========================================== */

#n2-ss-4 .n2-ss-control-bullet
.n2-bullet:not(.n2-active) {

    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;

    border-radius: 999px !important;

    background: #46a1d245 !important;

    opacity: 1 !important;

    box-shadow: none !important;
    transform: none !important;

    transition: none !important;
}


/* ==========================================
   6. 普通圆点悬停保持原样
========================================== */

#n2-ss-4 .n2-ss-control-bullet
.n2-bullet:not(.n2-active):hover {

    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;

    border-radius: 999px !important;

    background: #46a1d245 !important;

    box-shadow: none !important;
    transform: none !important;
}


/* ==========================================
   7. 当前激活的指示点
========================================== */

#n2-ss-4 .n2-ss-control-bullet
.n2-bullet.n2-active {

    width: 30px !important;
    height: 8px !important;
    min-width: 30px !important;

    border-radius: 999px !important;

    background: #014098a6 !important;

    opacity: 1 !important;

    box-shadow: none !important;
    transform: none !important;

    transition: none !important;
}


/* ==========================================
   8. 激活圆点悬停保持原样
========================================== */

#n2-ss-4 .n2-ss-control-bullet
.n2-bullet.n2-active:hover {

    width: 30px !important;
    height: 8px !important;

    background: #014098a6 !important;

    box-shadow: none !important;
    transform: none !important;
}


/* ==========================================
   9. 平板适配
========================================== */

@media (max-width: 1024px) {

    #n2-ss-4 .jubei-news-cover {

        width: 100% !important;
        max-width: 100% !important;

        height: 260px !important;
        min-height: 260px !important;
    }

    #n2-ss-4 .jubei-news-heading,
    #n2-ss-4 .jubei-news-heading * {

        font-size: 18px !important;

        line-height: 1.4 !important;
    }
}


/* ==========================================
   10. 手机端适配
========================================== */

@media (max-width: 767px) {

    #n2-ss-4 .jubei-news-cover {

        width: 100% !important;
        max-width: 100% !important;

        height: 220px !important;
        min-height: 220px !important;

        border-radius: 8px !important;
    }

    #n2-ss-4 .jubei-news-cover img {

        width: 100% !important;
        height: 100% !important;

        object-fit: cover !important;
    }

    #n2-ss-4 .jubei-news-heading,
    #n2-ss-4 .jubei-news-heading * {

        font-size: 17px !important;

        line-height: 1.4 !important;
    }
}


/* ==========================================
   JUBEI GROUP - Quick Contact Popup
   WPForms 306 双列字段间距修复
========================================== */

/* 1. 双列布局增加左右间隔 */
#jubei-quick-contact-modal
.wpforms-field-row,
#jubei-quick-contact-modal
.wpforms-field-layout-columns {

    column-gap: 16px !important;
    gap: 16px !important;
}


/* 2. WPForms 经典双列布局修复 */
#jubei-quick-contact-modal
.wpforms-one-half {

    width: calc(50% - 8px) !important;
}


/* 左列 */
#jubei-quick-contact-modal
.wpforms-first.wpforms-one-half {

    margin-left: 0 !important;
}


/* 右列 */
#jubei-quick-contact-modal
.wpforms-one-half:not(.wpforms-first) {

    margin-left: 16px !important;
}


/* 3. 防止输入框超出字段容器 */
#jubei-quick-contact-modal
.wpforms-field input,
#jubei-quick-contact-modal
.wpforms-field select,
#jubei-quick-contact-modal
.wpforms-field textarea {

    box-sizing: border-box !important;

    max-width: 100% !important;
}


/* 4. 恢复字段之间的纵向间距 */
#jubei-quick-contact-modal
.wpforms-field {

    margin-bottom: 12px !important;
}


/* 5. 手机端改为单列 */
@media (max-width: 767px) {

    #jubei-quick-contact-modal
    .wpforms-one-half {

        float: none !important;

        width: 100% !important;

        margin-left: 0 !important;
    }

    #jubei-quick-contact-modal
    .wpforms-field-layout-columns {

        display: block !important;
    }

}
