/* 众心说页面及首页入口；基础样式只作用于文章页。 */
.qzy-articles, .qzy-articles * { box-sizing: border-box; }
body.qzy-articles {
  margin: 0;
  color: #243b5a;
  background: linear-gradient(180deg, #eff7ff, #f5f8fc);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.article-page, .article-detail-page {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 14px calc(100px + env(safe-area-inset-bottom, 0px));
}
.article-top, .article-detail-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0 20px;
}
.article-top > div { min-width: 0; }
.article-top > a, .article-detail-head > a {
  display: grid;
  flex: 0 0 38px;
  height: 40px;
  place-items: center;
  border: 1px solid #dbe6f4;
  border-radius: 10px;
  color: #315f9c;
  background: #fff;
}
.article-top svg, .article-detail-head svg { width: 18px; height: 18px; fill: currentColor; }
.article-top h1 { margin: 0; color: #183f71; font-size: 24px; }
.article-top p { margin: 5px 0 0; color: #74859a; font-size: 12px; line-height: 1.6; }
.article-detail-head span { font-weight: 750; color: #183f71; }
.article-filter {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 16px;
}
.article-filter select, .article-filter input, .article-filter button {
  min-width: 0;
  width: 100%;
  height: 42px;
  border: 1px solid #d6e1ee;
  border-radius: 9px;
  padding: 0 9px;
  color: #243b5a;
  background: #fff;
  font: inherit;
  font-size: 14px;
}
.article-filter button { width: auto; padding: 0 14px; background: #2d67d1; border-color: #2d67d1; color: #fff; font-weight: 700; }
.article-list { display: grid; gap: 12px; }
.article-list-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  padding: 13px;
  border: 1px solid #e2e9f2;
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 5px 16px rgba(39, 73, 112, 0.04);
}
.article-list-card > img { width: 132px; height: 102px; object-fit: cover; border-radius: 8px; background: #eef3f8; }
.article-list-copy, .heart-talk-copy { min-width: 0; overflow-wrap: anywhere; }
.article-list-card em, .article-detail-card > em { font-style: normal; color: #a37a17; font-size: 12px; font-weight: 700; }
.article-list-card h2 { margin: 5px 0; color: #193f71; font-size: 18px; line-height: 1.5; }
.article-list-card p { margin: 0; color: #65768a; font-size: 13px; line-height: 1.6; }
.article-list-card h2, .article-list-card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-list-card small { display: block; margin-top: 7px; color: #7b8da4; font-size: 11px; line-height: 1.5; }
.article-empty, .heart-talk-empty { padding: 40px 18px; text-align: center; color: #73859d; line-height: 1.8; }
.article-empty { background: #fff; border-radius: 14px; }
.article-pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 20px 0; color: #65768a; font-size: 14px; }
.article-pager a { padding: 10px 14px; border: 1px solid #d6e1ee; border-radius: 9px; color: #315f9c; background: #fff; text-decoration: none; }
.article-detail-card { min-width: 0; padding: 22px; border: 1px solid #e2e9f2; border-radius: 16px; background: #fff; }
.article-detail-card h1 { margin: 8px 0 10px; color: #173d6d; font-size: 28px; line-height: 1.5; overflow-wrap: anywhere; }
.article-meta { color: #7b8da4; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.article-cover { display: block; width: 100%; max-height: 380px; object-fit: cover; border-radius: 8px; margin: 18px 0; }
.article-rich { min-width: 0; margin-top: 22px; color: #34495e; font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; overflow-x: auto; }
.article-rich * { max-width: 100%; }
.article-rich img { display: block; max-width: 100% !important; height: auto !important; margin: 14px auto; }
.article-rich video, .article-rich iframe { max-width: 100%; }
.article-rich pre { white-space: pre-wrap; }
.article-rich table { display: block; max-width: 100%; overflow-x: auto; }
.article-rich h2, .article-rich h3 { color: #173d6d; }
.article-rich p { margin: 12px 0; }

.heart-talk-panel { margin-top: 13px; padding: 15px 12px 16px; }
.heart-talk-panel .recommend-head { margin-bottom: 13px; }
.heart-talk-list { display: grid; gap: 13px; }
.heart-talk-card { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding-bottom: 13px; border-bottom: 1px solid #e4ebf4; text-decoration: none; }
.heart-talk-card:last-child { padding-bottom: 0; border-bottom: 0; }
.heart-talk-card img { width: 88px; height: 80px; object-fit: cover; border-radius: 8px; background: #eef3f8; }
.heart-talk-card em { display: block; color: #aa7d17; font-style: normal; font-size: 11px; }
.heart-talk-card b { display: -webkit-box; margin: 4px 0; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: #193f71; font-size: 15px; line-height: 1.5; }
.heart-talk-card p { margin: 0; color: #68798d; font-size: 12px; line-height: 1.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.heart-talk-card small { display: block; margin-top: 5px; color: #7b8da4; font-size: 11px; line-height: 1.5; }
.heart-talk-card img.is-logo, .article-list-card img.is-logo, .article-cover.is-logo { object-fit: contain; padding: 10px; background: #f7faff; }
.heart-talk-panel svg { width: 14px; height: 14px; vertical-align: -2px; fill: currentColor; }
.qzy-articles a:focus-visible, .qzy-articles button:focus-visible, .qzy-articles input:focus-visible, .qzy-articles select:focus-visible { outline: 3px solid #c48716; outline-offset: 3px; }

@media (max-width: 560px) {
  .article-list-card { grid-template-columns: 98px minmax(0, 1fr); gap: 11px; padding: 11px; }
  .article-list-card > img { width: 98px; height: 90px; }
  .article-list-card h2 { font-size: 16px; }
  .article-detail-card { padding: 17px; }
  .article-detail-card h1 { font-size: 24px; }
}
@media (max-width: 359px) {
  .article-page, .article-detail-page { padding-right: 11px; padding-left: 11px; }
  .article-filter { grid-template-columns: 98px minmax(0, 1fr) auto; gap: 6px; }
  .article-filter button { padding: 0 10px; }
  .article-list-card { grid-template-columns: 82px minmax(0, 1fr); gap: 9px; }
  .article-list-card > img { width: 82px; height: 82px; }
}
