/* ============ 全站公共清零补丁 2026-11-27 ============
   主题里有一条全局 `a { border-bottom: 1px solid currentColor }`：
   页眉 logo、导航项、老模板卡片标题因此都挂着下划线。这里只清指定位置，
   不动 .a2 自己的链接规则。launcher 与首页保持同一个 48px 圆形线性图标钮。 */

/* 1) 页眉：logo 与所有导航项（含下拉、移动抽屉）不留底边线 */
header a,
header a:hover,
header a:focus-visible,
header .dropdown-item,
header .dropdown-menu a,
header .dropdown-content a,
header nav a,
header .mobile-menu a {
  border-bottom: 0 !important;
  text-decoration: none;
}

/* 2) 老模板卡片（/product/ 与其它 Tailwind 卡片）：标题链接不留粗黑下划线 */
main .bg-white.rounded-2xl a,
main .bg-white.rounded-2xl a:hover,
main .bg-white.rounded-xl a,
main .bg-white.rounded-xl a:hover,
main a.line-clamp-2,
main a.line-clamp-2:hover {
  border-bottom: 0 !important;
}
/* 需要保留可识别性的卡片内动作链接，用细浅色线自己画 */
main .bg-white.rounded-2xl a[href*="/contact/"] { border-bottom: 0 !important; }

/* 3) Ask Ascend 悬浮客服：48px 圆形线性图标钮（隐藏卡通头像与文字），与 a2 页面完全一致 */
:root {
  --a2-chat-glyph: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M21 11.5a8.4 8.4 0 0 1-9 8.4 9.6 9.6 0 0 1-3.3-.6L3 21l1.7-4.6A8.2 8.2 0 0 1 3 11.5 8.4 8.4 0 0 1 12 3a8.4 8.4 0 0 1 9 8.5z'/></svg>");
}
#ascend-ai-chat .ascend-ai-chat__avatar { display: none !important; }
#ascend-ai-chat .ascend-ai-chat__launcher {
  width: 48px;
  height: 48px;
  min-width: 48px;
  padding: 0 !important;
  gap: 0 !important;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0 !important;
  overflow: visible;
}
#ascend-ai-chat .ascend-ai-chat__launcher > span { display: none !important; }
#ascend-ai-chat .ascend-ai-chat__launcher::before {
  content: "";
  width: 21px;
  height: 21px;
  background-color: currentColor;
  -webkit-mask: var(--a2-chat-glyph) center / contain no-repeat;
  mask: var(--a2-chat-glyph) center / contain no-repeat;
}
/* 面板本身也别再用旧品牌色 */
.ascend-ai-chat__form button { background: var(--a2-navy) !important; }
.ascend-ai-chat__message--user { background: #e8f0fb !important; color: #071a2f !important; }
.ascend-ai-chat { color: #071a2f; }

@media (max-width: 767px) {
  #ascend-ai-chat { right: 14px !important; bottom: 14px !important; }
  #ascend-ai-chat .ascend-ai-chat__launcher { width: 44px; height: 44px; min-width: 44px; }
  #ascend-ai-chat .ascend-ai-chat__launcher::before { width: 19px; height: 19px; }
}

/* ================================================================
   1024–1100px：Products 下拉菜单默认收起时 visibility:hidden 但仍占位，
   右侧探出视口 19px，整站都能横滑一小截。右对齐到触发器即可收回。
   ================================================================ */
header .dropdown-trigger > .dropdown-menu { left: auto; right: 0; }

/* 管理员登录态下 WP 黑条 32px，吸顶页眉要跟着让位 */
body.admin-bar header.sticky { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar header.sticky { top: 46px; } }
