/* 阳琦财税 · 官网 AI 助手 */
#yqai-ball {
  position: fixed; right: 24px; bottom: 28px; z-index: 99998;
  width: 64px; height: 64px; border-radius: 50%;
  background: #EAF6FE; border: 2px solid #fff; padding: 0; cursor: grab; overflow: hidden;
  touch-action: none; user-select: none; -webkit-user-drag: none;
  box-shadow: 0 8px 24px rgba(60,45,25,.16), 0 2px 6px rgba(60,45,25,.08);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
#yqai-ball:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(60,45,25,.22); }
#yqai-ball:active { cursor: grabbing; transform: translateY(-1px) scale(.98); }
#yqai-ball img, #yqai-ball svg {
  width: 100%; height: 100%; display: block;
  border-radius: 50%; object-fit: cover;
}

/* 在线小绿点 */
#yqai-ball::after {
  content: ''; position: absolute; right: 6px; bottom: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #3FB950; border: 2.5px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
  z-index: 2;
}

/* 首屏脉冲 */
#yqai-ball.yqai-pulse {
  animation: yqaiRing 1.9s ease-out 4;
}
@keyframes yqaiRing {
  0%   { box-shadow: 0 8px 24px rgba(60,45,25,.16), 0 0 0 0 rgba(201,160,99,.55); }
  70%  { box-shadow: 0 8px 24px rgba(60,45,25,.16), 0 0 0 16px rgba(201,160,99,.06); }
  100% { box-shadow: 0 8px 24px rgba(60,45,25,.16), 0 0 0 18px rgba(201,160,99,0); }
}

/* 引导气泡 */
#yqai-tip {
  position: fixed; right: 100px; bottom: 42px; z-index: 99997;
  background: #fff; border: 1px solid #E7E2D8; border-radius: 12px;
  padding: 9px 15px; font-size: 13px; line-height: 1.5; color: #3A3A3A;
  box-shadow: 0 6px 20px rgba(0,0,0,.1); white-space: nowrap;
  animation: yqaiTipIn .35s ease;
}
#yqai-tip::after {
  content: ''; position: absolute; right: -7px; top: 50%; margin-top: -7px;
  width: 0; height: 0; border: 7px solid transparent; border-left-color: #fff;
}
@keyframes yqaiTipIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }

/* 隐藏站内原有的「电话 / 顶部」浮动条（站内用了 html body 前缀，这里要压过它） */
html body .yq-float-cta,
html body .yq-float-cta.yq-float-cta,
.yq-float-cta { display: none !important; visibility: hidden !important; pointer-events: none !important; }

#yqai-panel {
  position: fixed; right: 24px; bottom: 106px; z-index: 9999;
  width: 380px; height: 560px; max-height: calc(100vh - 190px);
  background: #fff; border: 1px solid #E7E2D8; border-radius: 14px;
  box-shadow: 0 16px 48px rgba(20,33,61,.18);
  display: none; flex-direction: column; overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
#yqai-panel.open { display: flex; }

#yqai-panel header {
  background: #1F3A5F; color: #fff; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto;
}
#yqai-panel header b { font-size: 15px; font-weight: 600; letter-spacing: .2px; }
#yqai-panel header span { font-size: 12px; opacity: .72; margin-left: 8px; }
#yqai-close { background: none; border: none; color: #fff; opacity: .8; cursor: pointer; font-size: 20px; line-height: 1; padding: 0 2px; }
#yqai-close:hover { opacity: 1; }

#yqai-msgs { flex: 1 1 auto; overflow-y: auto; padding: 16px; background: #FCFAF6; }
.yqai-m { display: flex; margin-bottom: 12px; }
.yqai-m.user { justify-content: flex-end; }
.yqai-b {
  max-width: 82%; padding: 10px 13px; border-radius: 12px;
  font-size: 14px; line-height: 1.65; word-break: break-word; white-space: pre-wrap;
}
.yqai-m.bot .yqai-b { background: #fff; border: 1px solid #EDE8DE; color: #2A2A2A; border-top-left-radius: 4px; }
.yqai-m.user .yqai-b { background: #1F3A5F; color: #fff; border-top-right-radius: 4px; }
.yqai-tip { font-size: 12px; color: #8A8578; text-align: center; padding: 6px 0 14px; line-height: 1.6; }

#yqai-foot { flex: 0 0 auto; border-top: 1px solid #EDE8DE; background: #fff; padding: 10px 12px; }
#yqai-row { display: flex; gap: 8px; align-items: flex-end; }
#yqai-in {
  flex: 1 1 auto; resize: none; min-height: 42px; border: 1px solid #E2DCD0; border-radius: 10px;
  padding: 9px 11px; font-size: 14px; line-height: 1.5; max-height: 88px;
  font-family: inherit; color: #2A2A2A; outline: none;
}
#yqai-in:focus { border-color: #1F3A5F; }
#yqai-send {
  flex: 0 0 auto; min-width: 62px; white-space: nowrap; background: #1F3A5F; color: #fff; border: none; border-radius: 10px;
  padding: 9px 15px; font-size: 14px; cursor: pointer; font-family: inherit;
}
#yqai-send:disabled { opacity: .5; cursor: not-allowed; }
#yqai-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 12px; color: #8A8578; }
#yqai-up { background: none; border: 1px dashed #C9C2B2; border-radius: 8px; padding: 5px 10px; font-size: 12px; color: #4C6573; cursor: pointer; font-family: inherit; }
#yqai-up:hover { border-color: #2A72AD; color: #2A72AD; }

.yqai-kpi { background: #fff; border: 1px solid #EDE8DE; border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.yqai-kpi h4 { margin: 0 0 10px; font-size: 13px; color: #1F3A5F; font-weight: 600; }
.yqai-k { display: flex; justify-content: space-between; align-items: baseline; padding: 7px 0; border-bottom: 1px dashed #F0EBE1; }
.yqai-k:last-child { border-bottom: none; }
.yqai-k span { font-size: 13px; color: #55503F; }
.yqai-k b { font-size: 16px; color: #2A72AD; font-weight: 600; }
.yqai-disc { font-size: 11px; color: #9A9486; line-height: 1.6; padding: 4px 2px 0; }

@media (max-width: 480px) {
  #yqai-panel { right: 0; bottom: 0; width: 100%; height: 100%; max-height: 100%; border-radius: 0; border: none; }
  #yqai-ball { right: 14px; bottom: 20px; width: 58px; height: 58px; }
  #yqai-ball img, #yqai-ball svg { width: 100%; height: 100%; }
  #yqai-tip { right: 84px; bottom: 34px; font-size: 12px; }
}

/* 思考中动画 */
.yqai-dots { display: inline-flex; gap: 5px; align-items: center; height: 18px; padding: 2px 0; }
.yqai-dots i {
  width: 6px; height: 6px; border-radius: 50%; background: #B9B2A2;
  animation: yqaiBlink 1.15s infinite ease-in-out;
}
.yqai-dots i:nth-child(2) { animation-delay: .16s; }
.yqai-dots i:nth-child(3) { animation-delay: .32s; }
@keyframes yqaiBlink {
  0%, 80%, 100% { opacity: .28; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

/* ========== 底部行动条：只留拨打电话 ========== */
/* 1) 在线咨询按钮全部去掉 */
.yqh-mb-quote { display: none !important; }

/* 2) 移动端：只剩一个按钮，铺满整宽 */
@media (max-width: 781px) {
  html body .yqh-mobile-bar { gap: 0 !important; }
  html body .yqh-mobile-bar .yqh-mb-call {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600 !important;
  }
}

/* PC 端不显示底部电话条（用户要求只在移动端保留） */

/* ============================================================
   文章页版式（全站 727 篇统一）
   设计基准：阅读栏 760px ｜ 表格 breakout 920px
   只在 body.single 生效，不影响首页与分类页
   ============================================================ */
html body.single .entry-content,
html body.single .wp-block-post-content {

  font-size: 16.5px !important;
  line-height: 1.95 !important;
  color: #16323D !important;
  overflow: visible !important;

}

html body.single .entry-content p,
html body.single .wp-block-post-content p {

  margin: 0 0 20px !important;

}

/* H2：赤陶竖条 + 顶部分割线，滚动时提供段落锚点 */
html body.single .entry-content h2 {

  font-size: 27px !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
  color: #0A2540 !important;
  margin: 64px 0 24px !important;
  padding: 26px 0 0 16px !important;
  border-left: 4px solid #2A72AD !important;
  border-top: 1px solid #D3E7F6 !important;

}

/* H3：金色短竖条，层级弱一档 */
html body.single .entry-content h3 {

  font-size: 19px !important;
  line-height: 1.6 !important;
  font-weight: 600 !important;
  color: #0A2540 !important;
  margin: 34px 0 12px !important;
  padding-left: 12px !important;
  border-left: 3px solid #2A72AD !important;

}

html body.single .entry-content h4 {

  font-size: 17px !important;
  font-weight: 600 !important;
  color: #0A2540 !important;
  margin: 28px 0 10px !important;

}

/* 关键句：浅金下划，不用纯加粗（原文 strong 太多，全加粗等于没重点） */
html body.single .entry-content strong,
html body.single .wp-block-post-content strong {

  font-weight: 600 !important;
  color: #0A2540 !important;
  background: linear-gradient(transparent 60%, rgba(201, 154, 75, 0.26) 60%) !important;

}

/* 列表 */
html body.single .entry-content ul,
html body.single .entry-content ol {

  margin: 0 0 22px !important;
  padding-left: 22px !important;

}

html body.single .entry-content li {

  margin-bottom: 10px !important;
  line-height: 1.85 !important;

}

html body.single .entry-content li::marker {

  color: #2A72AD !important;
  font-weight: 600 !important;

}

/* 表格：桌面端向两侧溢出到 920px，移动端回落 */
html body.single .entry-content table {

  width: 920px !important;
  max-width: none !important;
  border-collapse: collapse !important;
  margin: 28px calc(50% - 460px) !important;
  font-size: 14.5px !important;
  line-height: 1.65 !important;
  background: #fff !important;
  box-shadow: 0 1px 3px rgba(42, 39, 33, 0.06) !important;
  border-radius: 8px !important;
  overflow: hidden !important;

}

html body.single .entry-content th {

  background: #0A2540 !important;
  color: #F2F8FD !important;
  font-weight: 600 !important;
  text-align: left !important;
  padding: 13px 15px !important;
  font-size: 13.5px !important;

}

html body.single .entry-content td {

  padding: 13px 15px !important;
  border-bottom: 1px solid #D3E7F6 !important;
  color: #16323D !important;
  vertical-align: top !important;

}

html body.single .entry-content tbody tr:nth-child(even) {

  background: #FBF8F2 !important;

}

html body.single .entry-content tbody tr:last-child td {

  border-bottom: 0 !important;

}

html body.single .entry-content a {

  color: #2A72AD !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(42, 114, 173, 0.3) !important;

}

html body.single .entry-content a:hover {

  border-bottom-color: #2A72AD !important;

}

html body.single .entry-content img {

  max-width: 100% !important;
  height: auto !important;
  border-radius: 8px !important;

}

html body.single .entry-content blockquote {

  margin: 24px 0 !important;
  padding: 16px 20px !important;
  border-left: 3px solid #2A72AD !important;
  background: #FAF8F4 !important;
  border-radius: 0 8px 8px 0 !important;
  color: #16323D !important;

}

/* 移动端：收紧所有 breakout */
@media (max-width: 900px) {
  html body.single .entry-content h2 {
 font-size: 22px; margin-top: 48px !important;
}
  html body.single .entry-content h3 {
 font-size: 17.5px !important;
}
  html body.single .entry-content table {

    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    font-size: 13px !important;
  
}
  html body.single .entry-content th,
  html body.single .entry-content td {
 padding: 10px 11px !important;
}
}

/* ---------- 文章页「更多文章」卡片：去掉空白封面区，改纯文字卡 ---------- */
html body.single .yq-card-cover {
  height: auto !important;
  min-height: 0 !important;
  background: transparent !important;
  padding: 18px 18px 0 !important;
  display: block !important;
}

html body.single .yq-card-cover__tag {
  display: inline-block !important;
  position: static !important;
  background: #F7F3EA !important;
  color: #2A72AD !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  padding: 4px 11px !important;
  border-radius: 999px !important;
  letter-spacing: .01em !important;
}

/* 卡片本体：白底细边 + 圆角 + 悬停上浮 */
html body.single .wp-block-post.type-post {
  background: #ffffff !important;
  border: 1px solid #D3E7F6 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease !important;
}

html body.single .wp-block-post.type-post:hover {
  border-color: #2A72AD !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(60, 45, 25, .08) !important;
}

/* 卡片标题：收紧行高，别撑太高 */
html body.single .wp-block-post .wp-block-post-title {
  font-size: 15px !important;
  line-height: 1.55 !important;
  font-weight: 600 !important;
  color: #0A2540 !important;
  margin: 12px 0 0 !important;
  padding: 0 18px 18px !important;
}

html body.single .wp-block-post .wp-block-post-title a {
  color: #0A2540 !important;
  text-decoration: none !important;
  border-bottom: 0 !important;
}

/* ============================================================
   绕开站内「每 1 秒刷新内联样式」的脚本：
   1) 竖条用 ::before 伪元素（站内只设元素的 border，不管伪元素）
   2) 左缩进用 text-indent（站内没设这个属性）
   3) 表格宽度用 min-width（站内只设 width/max-width）
   ============================================================ */
html body.single .entry-content h2 {
  position: relative !important;
  text-indent: 18px !important;
}

html body.single .entry-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  bottom: 0;
  width: 4px;
  background: #2A72AD;
  border-radius: 2px;
}

html body.single .entry-content h3 {
  position: relative !important;
  text-indent: 15px !important;
}

html body.single .entry-content h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  background: #2A72AD;
  border-radius: 2px;
}

/* 表格：站内只设 width:100% + max-width:min(880px,100%)，用 min-width 顶开 */
html body.single .entry-content table {
  min-width: 0 !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

@media (max-width: 900px) {
  html body.single .entry-content table {
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  html body.single .entry-content h2 { text-indent: 14px !important; }
  html body.single .entry-content h3 { text-indent: 12px !important; }
}

/* 章节竖条：真实 span（伪元素会被站内规则清掉） */
.yqai-bar {
  display: inline-block !important;
  width: 4px !important;
  height: 0.82em !important;
  background: #2A72AD !important;
  border-radius: 2px !important;
  margin-right: 14px !important;
  vertical-align: -0.02em !important;
}
.yqai-bar--gold {
  width: 3px !important;
  background: #2A72AD !important;
  margin-right: 10px !important;
}

/* ============================================================
   「更多文章」卡片：清空重建后的新结构（.yqai-card）
   ============================================================ */
html body.single .yqai-card {
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  padding: 16px 18px !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  background: #ffffff !important;
  border: 1px solid #D3E7F6 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  transition: border-color .18s ease, transform .18s ease !important;
}

html body.single .yqai-card:hover {
  border-color: #2A72AD !important;
  transform: translateY(-2px) !important;
}

html body.single .yqai-card-t {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
  font-weight: 600 !important;
  color: #0A2540 !important;
  text-decoration: none !important;
  border: 0 !important;
}

html body.single .yqai-card-t:hover {
  color: #2A72AD !important;
}

html body.single .yqai-card-tag {
  display: inline-block !important;
  align-self: flex-start !important;
  margin: auto 0 0 0 !important;
  padding: 4px 11px !important;
  background: #F7F3EA !important;
  color: #2A72AD !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  border: 0 !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
}

/* 「更多文章」卡片里的分类标签（阳琦财税 · 财税实务）：用户认为无意义，全端隐藏。
   用 CSS 而不是等 JS，即使 JS 没执行也不显示。 */
html body.single .yq-card-cover__tag,
html body.single [class*="cover__tag"] {
  display: none !important;
}

/* ============================================================
   事实对照列表（原表格转成，给 AI 抓取用的连贯文本）
   ============================================================ */
html body.single .yq-fact-list {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 26px 0 !important;
}

html body.single .yq-fact-list li {
  position: relative !important;
  padding: 15px 0 15px 22px !important;
  border-bottom: 1px solid #EFEAE0 !important;
  font-size: 16px !important;
  line-height: 1.85 !important;
  color: #16323D !important;
  margin: 0 !important;
}

html body.single .yq-fact-list li:last-child {
  border-bottom: 0 !important;
}

html body.single .yq-fact-list li::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 26px !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: #2A72AD !important;
}

html body.single .yq-fact-list strong {
  color: #0A2540 !important;
  background: none !important;
  font-weight: 600 !important;
}

/* ============================================================
   面板样式隔离（2026-10-24 修复“在线咨询看不清”）
   背景：站内 yq-site-overrides.css 有一条裸 header 选择器，
         background:rgba(255,255,255,.94) !important，会把 AI 面板
         头部压成白底；yq-ui-runtime-v3 又会把白字归并成 #E2E7EF，
         结果白底白字，对比度仅 1.17:1。
   做法：用 ID 特异性 + !important 把面板头部锁回自身深蓝配色。
   ============================================================ */
#yqai-panel header {
  background: #1F3A5F !important;
  background-image: none !important;
  color: #fff !important;
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.16) !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  padding: 14px 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex: 0 0 auto !important;
}
#yqai-panel header b {
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}
#yqai-panel header span {
  color: rgba(255,255,255,.88) !important;
  opacity: 1 !important;
  font-size: 12px !important;
}
#yqai-close {
  color: #fff !important;
  opacity: .92 !important;
  background: transparent !important;
  border: 0 !important;
}
/* 辅助文字对比度：原 #8A8578 只有 3.5:1，提到 5.5:1 */
#yqai-panel .yqai-tip { color: #4C6573 !important; }
#yqai-bar { color: #4C6573 !important; }
#yqai-panel .yqai-disc { color: #4C6573 !important; }