/* ============================================================
   assets/theme-v2-pages.css — 二级页面专属刷新层（v2.1）
   注入位置：各页面 </head> 前（页面内联 <style> 之后），
   因此同级选择器无需 !important 即可生效。
   原则：浅色可读优先，深色仅用于本就深色的 Hero 区。
   ============================================================ */

/* ---- 1. 页面 Hero：统一品牌深色渐变（白字，可读性有保障） ---- */
.cases-hero,
.about-hero,
.author-hero {
  background:
    radial-gradient(760px 340px at 86% -20%, rgba(124, 58, 237, 0.36), transparent 62%),
    radial-gradient(620px 320px at -8% 118%, rgba(6, 182, 212, 0.24), transparent 60%),
    linear-gradient(118deg, #0b1e4b 0%, #241a5e 52%, #0b3b52 100%) !important;
  position: relative;
}

.cases-hero h1,
.about-hero h1,
.author-hero h1 {
  background: linear-gradient(96deg, #ffffff 25%, #dbeafe 62%, #a5f3fc 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.about-hero-tag,
.author-hero-tag {
  border-color: rgba(165, 180, 252, 0.5) !important;
  background: linear-gradient(118deg, rgba(37, 99, 235, 0.28), rgba(124, 58, 237, 0.26));
  box-shadow: 0 6px 18px rgba(76, 81, 191, 0.28);
  letter-spacing: 1px;
}

/* ---- 2. 列表页浅色 Hero：光斑装饰 + 标题渐变短杠 ---- */
.list-hero {
  position: relative;
  overflow: hidden;
}

.list-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -110px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 58, 237, 0.14), transparent);
  pointer-events: none;
}

.list-hero h1 {
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.list-hero h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(118deg, #2563eb, #7c3aed 55%, #06b6d4);
}

/* ---- 3. 区块标题：居中渐变短杠 ---- */
.cases-section-title,
.authors-title h2 {
  position: relative;
  padding-bottom: 16px;
}

.cases-section-title::after,
.authors-title h2::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(118deg, #2563eb, #7c3aed 55%, #06b6d4);
}

.cases-section-sub,
.authors-title p {
  color: #64748b;
}

/* ---- 4. 卡片统一质感（覆盖各页内联白卡） ---- */
.case-card,
.author-card,
.about-card,
.detail-feature-item,
.lead-card,
.faq-item {
  border: 1px solid rgba(99, 102, 241, 0.16);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease, border-color 0.25s ease;
}

.case-card:hover,
.author-card:hover,
.about-card:hover,
.detail-feature-item:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.42);
  box-shadow: 0 22px 46px rgba(76, 81, 191, 0.14);
}

/* ---- 5. 案例信息表 / 版本表 ---- */
.case-table td:first-child {
  color: #4f46e5;
}

.case-table .sep {
  border-top: 1px solid rgba(99, 102, 241, 0.12);
}

.version-table-wrap {
  border-color: rgba(99, 102, 241, 0.18);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.version-table th {
  background: linear-gradient(180deg, #eef2ff, #f8faff);
  color: #3730a3;
}

/* ---- 6. FAQ 手风琴 ---- */
.faq-item[open] {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 10px 26px rgba(76, 81, 191, 0.12);
}

.faq-item summary {
  border-left: 3px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.faq-item summary:hover {
  border-left-color: rgba(124, 58, 237, 0.55);
  background: linear-gradient(92deg, rgba(99, 102, 241, 0.05), transparent);
}

/* ---- 7. 留资表单：品牌聚焦态 + 渐变按钮 ---- */
.lead-form input:focus,
.lead-form textarea:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.lead-btn {
  background: linear-gradient(118deg, #2563eb, #7c3aed 58%, #0891b2) !important;
  background-size: 170% 100%;
  box-shadow: 0 12px 28px rgba(76, 81, 191, 0.28);
  transition: background-position 0.4s ease, transform 0.2s ease;
}

.lead-btn:hover {
  background-position: 100% 50%;
  transform: translateY(-1px);
  opacity: 1;
}

/* ---- 8. 产品详情页（detail-article 形态）小节标题 ---- */
.about-section .section-title {
  position: relative;
  padding-bottom: 14px;
}

.about-section .section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(118deg, #2563eb, #7c3aed 55%, #06b6d4);
}

/* ---- 9. 面包屑胶囊化 ---- */
.breadcrumb {
  letter-spacing: 0.3px;
}

.breadcrumb a {
  color: #4f46e5;
}

.breadcrumb a:hover {
  color: #7c3aed;
}

/* ---- 10. 案例引用条 ---- */
.case-quote {
  border-left: 3px solid #7c3aed;
  background: linear-gradient(92deg, rgba(124, 58, 237, 0.06), transparent 70%);
  border-radius: 0 10px 10px 0;
}

/* ---- 11. 低对比度提示文字加深（v2.1 可读性修正） ---- */
.lead-tip,
.contact-modal-subtitle {
  color: #64748b;
}

/* ============================================================
   悬浮客服 v2.2 — 卡片化面板 + PC hover 展开 / H5 点击展开
   （与 style.css 尾部同名规则一致；本文件在页面内联样式之后加载，
    用于压制各页 body 内 <style> 对 .contact-popups 的裸样式覆盖）
   ============================================================ */
.contact-popups {
  display: flex;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  min-width: 218px;
  padding: 14px 16px;
  gap: 12px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 16px;
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.contact-wrapper:hover .contact-popups,
.contact-wrapper.is-open .contact-popups {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%);
}

.contact-popup {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.popup-wechat-btn {
  margin-top: 7px;
  align-self: flex-start;
  padding: 3px 10px;
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 8px;
  background: #ecfdf3;
  color: #067a48;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.popup-wechat-btn:hover {
  background: #d7f7e6;
  transform: translateY(-1px);
}

.popup-wechat-btn.is-done {
  background: #067a48;
  border-color: #067a48;
  color: #fff;
}

@media (max-width: 680px) {
  .contact-popups {
    position: fixed;
    right: 14px;
    left: auto;
    top: auto;
    bottom: 132px;
    transform: translateX(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .contact-wrapper:hover .contact-popups {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(10px);
  }
  .contact-wrapper.is-open-mobile .contact-popups {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
}
/* ============================================================
   悬浮客服 v2.3 — 微三云式竖排胶囊条（在线咨询 / 24h热线 / 微信咨询）
   .fc-bar 由 site.js 渐进增强生成；无 JS 时保留 v2.2 圆形按钮 + 卡片，不受影响
   ============================================================ */
.fc-bar {
  display: flex;
  flex-direction: column;
  width: 64px;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
  overflow: hidden;
}
.fc-bar .fc-item {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100% !important;
  min-height: 0 !important;
  padding: 9px 4px 8px !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: #0d1b2a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center !important;
  cursor: pointer;
  transform: none !important;
  transition: background 0.18s ease;
}
.fc-bar .fc-item + .fc-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16%;
  right: 16%;
  height: 1px;
  background: rgba(99, 102, 241, 0.16);
}
.fc-bar .fc-item:hover {
  background: rgba(99, 102, 241, 0.08);
  transform: none !important;
}
.fc-bar .contact-trigger > span:not(.contact-icon) {
  display: block !important;
  visibility: visible !important;
}
.fc-bar .contact-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  box-shadow: none !important;
}
.fc-bar .contact-icon-gif {
  background-size: 26px 26px;
}
.fc-bar .fc-ico {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fc-bar .fc-item svg {
  width: 17px;
  height: 17px;
}
.fc-bar .fc-item-hot .fc-ico {
  background: rgba(22, 119, 255, 0.10);
  color: #1677ff;
}
.fc-bar .fc-item-wx .fc-ico {
  background: rgba(16, 185, 129, 0.12);
  color: #06a463;
}
.fc-bar .fc-item-wx > span:last-child {
  color: #067a48;
}
@media (max-width: 680px) {
  .fc-bar {
    width: 58px;
  }
  .fc-bar .fc-item {
    padding: 7px 3px 6px !important;
    font-size: 10px;
  }
  .contact-wrapper { position: relative !important; }
  .contact-popups {
    position: absolute !important;
    right: calc(100% + 12px) !important;
    left: auto !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) translateX(10px) !important;
  }
  .contact-wrapper.is-open-mobile .contact-popups {
    transform: translateY(-50%) !important;
  }
}
/* ---- 悬浮客服 v2.4 — 微信二维码缩略图（吴军已上传，廖文强待补） ---- */
.popup-qr-link {
  flex-shrink: 0;
  align-self: center;
  width: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  display: inline-flex !important;
  place-items: initial !important;
  gap: 0 !important;
  transform: none !important;
}
.popup-qr {
  display: block;
  width: 84px;
  height: 114px;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 10px;
  transition: transform 0.18s ease;
}
.popup-qr-link:hover .popup-qr {
  transform: scale(1.06);
}
@media (max-width: 680px) {
  .popup-qr { width: 72px; height: 98px; }
}
/* ============================================================
   悬浮客服 v2.5 — 竖排三入口各自独立：热线=电话卡(data-fcp=hot) / 微信=扫码面板(data-fcp=wx)
   ============================================================ */
.contact-wrapper.fc-js:hover .contact-popups,
.contact-wrapper.fc-js .fc-wxpop {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%) translateX(10px);
}
.contact-wrapper.fc-js[data-fcp="hot"] .contact-popups,
.contact-wrapper.fc-js[data-fcp="wx"] .fc-wxpop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%);
}
.fc-wxpop {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  width: 252px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 16px;
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%) translateX(10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}
.fc-wxpop-title {
  font-size: 12px;
  font-weight: 800;
  color: #5b6b80;
  text-align: center;
}
.fc-wxgrid {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.fc-wxcell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
}
.fc-wxname {
  font-size: 13px;
  font-weight: 700;
  color: #0d1b2a;
}
.fc-wxqr-link {
  display: block;
}
.fc-wxqr {
  display: block;
  width: 108px;
  height: 147px;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 10px;
  transition: transform 0.18s ease;
}
.fc-wxqr-link:hover .fc-wxqr {
  transform: scale(1.05);
}
.fc-wxqr-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 108px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
  border-style: dashed;
}
.fc-wxcell .popup-wechat-btn {
  margin-top: 0;
}
@media (max-width: 680px) {
  .fc-wxpop {
    position: absolute !important;
    right: calc(100% + 12px) !important;
    left: auto !important;
    top: 50% !important;
    bottom: auto !important;
    width: 232px;
  }
  .fc-wxqr,
  .fc-wxqr-empty {
    width: 96px;
    height: 131px;
  }
  .contact-wrapper.fc-js[data-fcp="hot"] .contact-popups,
  .contact-wrapper.fc-js[data-fcp="wx"] .fc-wxpop {
    transform: translateY(-50%) !important;
  }
}
/* ---- 悬浮客服 v2.6 — 微信面板改微三云式：竖排大二维码（可扫） ---- */
.fc-wxpop {
  width: 216px;
}
.fc-wxgrid {
  flex-direction: column;
  gap: 14px;
}
.fc-wxcell {
  gap: 6px;
}
.fc-wxqr-link {
  width: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  display: block !important;
  place-items: initial !important;
  gap: 0 !important;
  transform: none !important;
}
.fc-wxqr {
  width: 172px;
  height: 234px;
  max-width: none;
}
.fc-wxqr-empty {
  width: 172px;
  height: auto;
  min-height: 96px;
  padding: 16px 8px;
  font-size: 13px;
}
@media (max-width: 680px) {
  .fc-wxpop { width: 192px; }
  .fc-wxqr { width: 150px; height: 204px; }
  .fc-wxqr-empty { width: 150px; }
}
/* ---- 悬浮客服 v2.7 — 点击固定：pinned 入口高亮提示（hover 预览仍自动收回） ---- */
.fc-bar .fc-item.is-pinned {
  background: linear-gradient(160deg, rgba(22, 119, 255, 0.14), rgba(99, 102, 241, 0.16)) !important;
  box-shadow: inset 3px 0 0 #1677ff !important;
}
.fc-bar .fc-item-wx.is-pinned {
  box-shadow: inset 3px 0 0 #06a463 !important;
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.14), rgba(6, 164, 99, 0.16)) !important;
}
