/* V28: 全站按钮/客服悬浮最终可读性兜底。只处理颜色、位置和按钮文字，不改内容结构。 */
:root{
  --fg-v28-blue:#005BAC;
  --fg-v28-blue-hover:#004C95;
  --fg-v28-white:#ffffff;
  --fg-v28-text:#172033;
}

/* 顶部小字恢复为 12px */
.top-bar,.top-bar .container,.top-bar-left,.top-bar-right,.top-bar a,.top-bar span{
  font-size:12px!important;line-height:1.5!important;font-weight:400!important;
}

/* 所有按钮文字基础可见 */
a.btn,button.btn,.btn,
a[class*="btn"],button[class*="btn"],
.nav-consult-btn,.ai-btn,.fg-more-btn,.fg-cta-btn,.fg-v9-case-visit,
.filter-tab,.filter-tabs a,.filter-tabs button,
.pagination a,.pagination span,.pagination .page-num,.pager a,.page-numbers a,.page-numbers span,
.contact-modal-submit,.copy-btn,button[type="submit"]{
  opacity:1!important;visibility:visible!important;text-indent:0!important;text-decoration:none!important;
  -webkit-text-fill-color:currentColor!important;
  text-shadow:none!important;
}
a.btn *,button.btn *,.btn *,
a[class*="btn"] *,button[class*="btn"] *,
.nav-consult-btn *,.ai-btn *,.fg-more-btn *,.fg-cta-btn *,.fg-v9-case-visit *,
.filter-tab *,.filter-tabs a *,.filter-tabs button *,
.pagination a *,.pagination span *,.pager a *,.page-numbers a *,
.contact-modal-submit *,.copy-btn *,button[type="submit"] *{
  color:inherit!important;-webkit-text-fill-color:currentColor!important;opacity:1!important;visibility:visible!important;
}

/* 1. 顶部/常规实心蓝按钮：蓝底白字 */
.nav-consult-btn,
a.btn-primary,button.btn-primary,.btn-primary,
.fg-more-btn,.fg-v9-case-visit,.contact-modal-submit,button[type="submit"],
.copy-btn,
.filter-tab.active,.filter-tabs a.active,.filter-tabs button.active,
.pagination .active,.pagination .active a,.pagination li.thisclass a,.pagination li.thisclass span,
.pagination .page-num.active,.pager .active a,.page-numbers .current,
.ds-atom-button,.oper-btn,.web-build-one-btn{
  background:var(--fg-v28-blue)!important;
  border-color:var(--fg-v28-blue)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
.nav-consult-btn:hover,
a.btn-primary:hover,button.btn-primary:hover,.btn-primary:hover,
.fg-more-btn:hover,.fg-v9-case-visit:hover,.contact-modal-submit:hover,button[type="submit"]:hover,
.copy-btn:hover,
.filter-tab.active:hover,.filter-tabs a.active:hover,.filter-tabs button.active:hover,
.pagination .active:hover,.pagination .active a:hover,.pagination li.thisclass a:hover,.pagination li.thisclass span:hover,
.pagination .page-num.active:hover,.pager .active a:hover,.page-numbers .current:hover,
.ds-atom-button:hover,.oper-btn:hover,.web-build-one-btn:hover{
  background:var(--fg-v28-blue-hover)!important;
  border-color:var(--fg-v28-blue-hover)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* 2. AI 首屏主按钮：白底蓝字，避免蓝底蓝字 */
.ai-hero .ai-btn:not(.ghost),
.ai-growth-page .ai-hero-actions .ai-btn:not(.ghost),
.ai-cta .ai-btn:not(.ghost),
.ai-section .ai-btn:not(.ghost){
  background:#fff!important;
  border:1px solid #fff!important;
  color:var(--fg-v28-blue)!important;
  -webkit-text-fill-color:var(--fg-v28-blue)!important;
  box-shadow:0 10px 26px rgba(15,23,42,.16)!important;
}
.ai-hero .ai-btn:not(.ghost):hover,
.ai-growth-page .ai-hero-actions .ai-btn:not(.ghost):hover,
.ai-cta .ai-btn:not(.ghost):hover,
.ai-section .ai-btn:not(.ghost):hover{
  background:#f5faff!important;
  border-color:#f5faff!important;
  color:var(--fg-v28-blue-hover)!important;
  -webkit-text-fill-color:var(--fg-v28-blue-hover)!important;
}

/* 3. 白底按钮：白底蓝字，包括 CTA 区的电话按钮 */
.btn-white,a.btn-white,button.btn-white,.btn.btn-white,
.cta-section a[href^="tel"],.fg-blue-cta a[href^="tel"],
.cta-section .fg-cta-btn:not(.ghost),.fg-blue-cta .fg-cta-btn:not(.ghost),
.qb-bottom-cta a:not(.ghost),.fg-v18-cta a:not(.ghost),
a[style*="background:#fff"],a[style*="background: #fff"],
a[style*="background:white"],a[style*="background: white"],
a[style*="background:var(--white)"],a[style*="background: var(--white)"]{
  background:#fff!important;
  border-color:#fff!important;
  color:var(--fg-v28-blue)!important;
  -webkit-text-fill-color:var(--fg-v28-blue)!important;
}
.btn-white:hover,a.btn-white:hover,button.btn-white:hover,.btn.btn-white:hover,
.cta-section a[href^="tel"]:hover,.fg-blue-cta a[href^="tel"]:hover,
.cta-section .fg-cta-btn:not(.ghost):hover,.fg-blue-cta .fg-cta-btn:not(.ghost):hover,
.qb-bottom-cta a:not(.ghost):hover,.fg-v18-cta a:not(.ghost):hover,
a[style*="background:#fff"]:hover,a[style*="background: #fff"]:hover,
a[style*="background:white"]:hover,a[style*="background: white"]:hover,
a[style*="background:var(--white)"]:hover,a[style*="background: var(--white)"]:hover{
  background:#f5faff!important;
  border-color:#f5faff!important;
  color:var(--fg-v28-blue-hover)!important;
  -webkit-text-fill-color:var(--fg-v28-blue-hover)!important;
}

/* 4. 线框按钮：默认白底蓝字；hover 蓝底白字 */
.btn-outline,a.btn-outline,button.btn-outline,.btn.btn-outline,
.filter-tab:not(.active),.filter-tabs a:not(.active),.filter-tabs button:not(.active),
.pagination a,.pagination span,.pagination .page-num,.pager a,.page-numbers a,.page-numbers span{
  background:#fff!important;
  border-color:var(--fg-v28-blue)!important;
  color:var(--fg-v28-blue)!important;
  -webkit-text-fill-color:var(--fg-v28-blue)!important;
}
.btn-outline:hover,a.btn-outline:hover,button.btn-outline:hover,.btn.btn-outline:hover,
.filter-tab:not(.active):hover,.filter-tabs a:not(.active):hover,.filter-tabs button:not(.active):hover,
.pagination a:hover,.pagination span:hover,.pagination .page-num:hover,.pager a:hover,.page-numbers a:hover,.page-numbers span:hover{
  background:var(--fg-v28-blue)!important;
  border-color:var(--fg-v28-blue)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* 5. 深色/蓝色区域 ghost 按钮：始终白字 */
.hero-section .btn-outline,.page-banner .btn-outline,
.ai-hero .ai-btn.ghost,.ai-growth-page .ai-btn.ghost,
.ai-cta .ai-btn.ghost,
.cta-section .fg-cta-btn.ghost,.fg-blue-cta .fg-cta-btn.ghost,
.fg-v18-cta .ghost,.qb-bottom-cta .ghost{
  background:rgba(255,255,255,.10)!important;
  border-color:rgba(255,255,255,.58)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
.hero-section .btn-outline:hover,.page-banner .btn-outline:hover,
.ai-hero .ai-btn.ghost:hover,.ai-growth-page .ai-btn.ghost:hover,
.ai-cta .ai-btn.ghost:hover,
.cta-section .fg-cta-btn.ghost:hover,.fg-blue-cta .fg-cta-btn.ghost:hover,
.fg-v18-cta .ghost:hover,.qb-bottom-cta .ghost:hover{
  background:rgba(255,255,255,.20)!important;
  border-color:#fff!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* 6. 如果某个按钮被旧样式写成蓝色背景，统一兜底为白字 */
a[style*="background:#005"],a[style*="background: #005"],
a[style*="background:#006"],a[style*="background: #006"],
a[style*="background:var(--primary)"],a[style*="background: var(--primary)"],
button[style*="background:#005"],button[style*="background: #005"]{
  color:#fff!important;-webkit-text-fill-color:#fff!important;
}

/* 7. 联系方式悬浮按钮：固定右下角，不再跑到左侧，文字始终可见 */
.contact-float-btn{
  left:auto!important;right:28px!important;bottom:34px!important;
  transform:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;
  min-width:132px!important;height:54px!important;padding:0 18px!important;
  border-radius:999px!important;background:linear-gradient(135deg,#0b63c7,#d946ef)!important;
  color:#fff!important;-webkit-text-fill-color:#fff!important;text-decoration:none!important;
  font-size:15px!important;font-weight:600!important;z-index:9995!important;
}
.contact-float-btn:hover{color:#fff!important;-webkit-text-fill-color:#fff!important;background:linear-gradient(135deg,#0759b8,#c026d3)!important;}
.contact-float-btn .contact-text{display:inline!important;color:#fff!important;-webkit-text-fill-color:#fff!important;}
.contact-float-btn .contact-icon,.contact-float-btn svg{color:#fff!important;stroke:#fff!important;-webkit-text-fill-color:#fff!important;}
@media(max-width:760px){
  .contact-float-btn{left:auto!important;right:16px!important;bottom:18px!important;min-width:54px!important;width:54px!important;height:54px!important;padding:0!important;border-radius:50%!important;}
  .contact-float-btn .contact-text{display:none!important;}
}

/* 8. 回到顶部与客服按钮错开 */
.gotop,.backtop,.back-to-top,#backTop,#goTop{right:28px!important;bottom:104px!important;}
@media(max-width:760px){.gotop,.backtop,.back-to-top,#backTop,#goTop{right:16px!important;bottom:84px!important;}}

/* 9. 清理案例卡片下的孤立 0 */
.case-card-body p:empty,.case-card-body p:has(> span:empty){display:none!important;}
.case-card-body p{font-size:14px!important;line-height:1.65!important;}
