.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;
}

/* CTA Buttons */
.cta-section {
  display: flex;
  width: 100%;
  gap: 16px;
}

.cta-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 0 24px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.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;
  }

}