/* ============================================================
   CHTV健康100 · 文章互动组件 + 头条式排版增强 v451
   在 css/toutiao-theme.css 之后加载；对内联样式一律用 !important 覆盖。
   组成：
   A) 文章页：正文 780px 单栏 -> 桌面两栏（正文 720 + 相关阅读 300）
   B) 文章页字号层级重排（标题/元信息/导语/正文/配图/返回）
   C) 互动条：点赞 / 收藏 / 分享
   D) 相关阅读侧栏
   E) 首页「最新发布」改头条式资讯条
   v448  2026-11-27
   ============================================================ */

/* ============================================================
   A) 桌面两栏：正文 + 相关阅读（>=1200px 生效）
   ============================================================ */
.ai-main { min-width: 0; }
@media (min-width: 1200px) {
  .art-wrap.ai-two-col {
    max-width: 1120px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 720px) minmax(0, 300px) !important;
    column-gap: 40px !important;
    align-items: start !important;
  }
  .art-wrap.ai-two-col > .ai-main { grid-column: 1; min-width: 0; }
  .art-wrap.ai-two-col > .ai-related {
    grid-column: 2; align-self: start;
    position: sticky; top: 96px; margin-top: 0 !important;
  }
}
/* 单栏时相关阅读排在正文之后，上下留白（兼容 .wrap 型 Word 渲染页） */
.ai-main + .ai-related { margin-top: 34px !important; }

/* ============================================================
   B) 文章页排版头条化
   ============================================================ */
.art-wrap {
  max-width: 780px !important;
  padding-bottom: 40px !important;
}
.art-wrap .art-title {
  font-size: 30px !important; line-height: 1.34 !important;
  font-weight: 800 !important; letter-spacing: -.5px !important;
  margin-bottom: 12px !important; color: #1A1A1A !important;
}
.art-wrap .art-meta {
  font-size: 12.5px !important; color: #999 !important;
  gap: 6px 14px !important; padding-bottom: 14px !important;
  border-bottom: 1px solid #F0F1F3 !important;
}
.art-wrap .art-tag {
  border-radius: 3px !important; font-size: 11px !important;
  margin-bottom: 14px !important;
}
/* 导语：去花哨底色，改素色 + 细竖线 */
.art-wrap .art-lead {
  background: #F7F8FA !important;
  border-left: 3px solid #1E5BB5 !important;
  border-radius: 0 4px 4px 0 !important;
  padding: 14px 18px !important;
  font-size: 15.5px !important; line-height: 1.8 !important;
  color: #4A5563 !important; margin: 20px 0 8px !important;
}
/* 正文：头条阅读字号 */
.art-wrap .art-sec p {
  font-size: 17px !important; line-height: 1.85 !important;
  color: #222 !important; margin-bottom: 18px !important;
  letter-spacing: .1px !important;
}
.art-wrap .art-sec h2 {
  font-size: 21px !important; line-height: 1.4 !important;
  margin: 32px 0 14px !important; font-weight: 700 !important;
}
.art-wrap .art-sec h2::before { background: #1E5BB5 !important; }
/* 配图：去边框/阴影/大圆角，头条式直角满宽 */
.art-wrap .art-fig img {
  border: none !important; box-shadow: none !important;
  border-radius: 4px !important; display: block !important;
}
.art-wrap .art-fig figcaption { font-size: 12px !important; color: #999 !important; }
.art-wrap .art-info {
  background: #F7F8FA !important; border: 1px solid #EBEDF0 !important;
  border-radius: 6px !important;
}
/* 返回：去胶囊，改朴素文字链 */
.art-wrap .art-backbar .art-back {
  border: none !important; background: none !important;
  border-radius: 0 !important; padding: 4px 0 !important;
  color: #1E5BB5 !important; font-size: 13px !important;
}
.art-wrap .art-backbar .art-back:hover { transform: none !important; background: none !important; }
.art-wrap .art-back a { font-size: 13px !important; }
/* 旧分享卡同步收紧 */
.art-wrap .share-card {
  border-radius: 8px !important; border-color: #E8ECF0 !important;
  background: #FAFBFC !important; padding: 18px 20px !important;
  margin: 26px 0 18px !important; box-shadow: none !important;
}
.art-wrap .share-btn { border-radius: 6px !important; }

@media (max-width: 768px) {
  .art-wrap .art-title { font-size: 24px !important; line-height: 1.38 !important; }
  .art-wrap .art-sec p { font-size: 16px !important; line-height: 1.82 !important; margin-bottom: 16px !important; }
  .art-wrap .art-lead { font-size: 14.5px !important; }
}

/* ============================================================
   C) 互动条
   ============================================================ */
.ai-bar {
  display: flex !important; align-items: center; flex-wrap: wrap;
  gap: 10px !important;
  padding: 16px 0 !important; margin: 8px 0 0 !important;
  border-top: 1px solid #EDEFF2 !important;
  border-bottom: 1px solid #EDEFF2 !important;
}
.ai-act {
  display: inline-flex !important; align-items: center; gap: 7px;
  padding: 9px 16px !important; min-height: 38px;
  border: 1px solid #E4E7EB !important; border-radius: 6px !important;
  background: #fff !important; color: #4A5563 !important;
  font-size: 13.5px !important; font-weight: 500 !important;
  font-family: inherit; line-height: 1 !important;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: color .15s, border-color .15s, background .15s;
}
.ai-act svg { width: 17px; height: 17px; flex: 0 0 17px; }
.ai-act:hover { border-color: #C9D4E2 !important; background: #F7F9FC !important; color: #1E5BB5 !important; }
.ai-act .ai-num { font-style: normal; font-size: 12.5px; color: #8F9AA8; margin-left: 2px; }
.ai-act.is-on { color: #F04142 !important; border-color: #F8D7D7 !important; background: #FEF1F1 !important; }
.ai-act.is-on .ai-num { color: #F04142; }
.ai-act.is-on svg { fill: currentColor; }
.ai-act[data-act="fav"].is-on { color: #E8A317 !important; border-color: #F5E3BF !important; background: #FFFAEF !important; }
.ai-act[data-act="fav"].is-on .ai-num { color: #E8A317; }
.ai-bar-note { margin-left: auto !important; font-size: 12px !important; color: #A2ADBA !important; }

.ai-toast {
  position: fixed; left: 50%; bottom: 42px; z-index: 1400;
  transform: translate(-50%, 12px);
  background: rgba(31, 35, 41, .92); color: #fff;
  font-size: 13.5px; padding: 10px 18px; border-radius: 6px;
  opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s;
}
.ai-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   D) 相关阅读侧栏
   ============================================================ */
.ai-related { min-width: 0; }
.ai-r-hd {
  font-size: 16px !important; font-weight: 700 !important; color: #1A1A1A !important;
  padding: 0 0 12px !important; border-bottom: 2px solid #1E5BB5 !important;
  margin-bottom: 4px !important;
}
.ai-r-list { list-style: none; margin: 0 !important; padding: 0 !important; }
.ai-r-list li { border-bottom: 1px solid #F0F1F3 !important; }
.ai-r-list a {
  display: flex; gap: 9px; align-items: flex-start;
  padding: 12px 0 !important; text-decoration: none;
}
.ai-r-i {
  flex: 0 0 17px; font-size: 12px; font-weight: 700; color: #B7C0CC;
  line-height: 1.6; font-style: normal;
}
.ai-r-list li:nth-child(1) .ai-r-i { color: #F04142; }
.ai-r-list li:nth-child(2) .ai-r-i { color: #F4784A; }
.ai-r-list li:nth-child(3) .ai-r-i { color: #E8A317; }
.ai-r-t {
  flex: 1 1 auto; min-width: 0;
  font-size: 14px !important; line-height: 1.55 !important;
  color: #2B3440 !important; font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.ai-r-list a:hover .ai-r-t { color: #F04142 !important; }
.ai-r-more { padding-top: 14px !important; }
.ai-r-more a { font-size: 12.5px; color: #1E5BB5; text-decoration: none; }
/* 移动端：给悬浮返回胶囊留出空间，避免遮挡末条相关阅读 */
@media (max-width: 860px) {
  .ai-related { padding-bottom: 52px !important; }
}

/* 首页「最新发布」资讯条规则见 css/toutiao-theme.css（首页不加载本文件） */
