/* ===== 行业子站专属样式（叠加在主站 main.css 之上）===== */

.sub-hero {
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #0f172a));
  color: #fff;
  padding: 72px 0;
}
.sub-hero h1 { font-size: 32px; margin: 0 0 14px; line-height: 1.3; }
.sub-lead { font-size: 16px; line-height: 1.8; opacity: .92; max-width: 760px; margin: 0 0 22px; }

.sub-page-head {
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #0f172a));
  color: #fff;
  padding: 44px 0;
}
.sub-page-head h1 { font-size: 26px; margin: 0 0 10px; }
.sub-page-head p { opacity: .9; margin: 0; max-width: 820px; line-height: 1.7; }

/* 卡片网格 */
.sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.sub-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px;
  transition: box-shadow .2s, transform .2s;
}
.sub-card:hover { box-shadow: 0 8px 24px rgba(15,23,42,.08); transform: translateY(-2px); }
.sub-card h3 { margin: 10px 0 8px; font-size: 17px; }
.sub-card p { margin: 0; color: #475569; line-height: 1.7; font-size: 14px; }
.sub-ico { font-size: 26px; }

/* 文章列表 */
.sub-list { max-width: 880px; margin: 0 auto; }
.sub-item {
  display: flex;
  gap: 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 14px;
  transition: box-shadow .2s;
}
.sub-item:hover { box-shadow: 0 8px 22px rgba(15,23,42,.07); }
.sub-date {
  flex: 0 0 92px;
  color: #94a3b8;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  padding-top: 3px;
}
.sub-body { flex: 1; min-width: 0; }
.sub-body h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.5; }
.sub-body h3 a { color: #0f172a; text-decoration: none; }
.sub-body h3 a:hover { color: var(--brand); }
.sub-body p { margin: 0 0 8px; color: #64748b; font-size: 14px; line-height: 1.7; }
.sub-more a { color: var(--brand); font-size: 14px; text-decoration: none; }
.sub-cover { flex: 0 0 140px; }
.sub-cover img { width: 140px; height: 92px; object-fit: cover; border-radius: 8px; }

/* FAQ */
.sub-faq {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  max-width: 880px;
}
.sub-faq summary { cursor: pointer; font-weight: 600; color: #0f172a; }
.sub-ans { margin-top: 12px; color: #475569; line-height: 1.8; font-size: 14px; }

/* 详情页 */
.sub-article { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 32px; }
.sub-article h1 { font-size: 26px; line-height: 1.45; margin: 10px 0 18px; }
.sub-article .sub-date { padding: 0; margin-bottom: 6px; }
.sub-art-cover { width: 100%; border-radius: 10px; margin-bottom: 22px; }
.sub-content { line-height: 1.95; color: #334155; font-size: 15.5px; }
.sub-content p { margin: 0 0 18px; }
.sub-content img { max-width: 100%; border-radius: 8px; }
/* 富文本（后台编辑器 / Word 导入）产物的基础排版 */
.sub-content h2 { font-size: 19px; font-weight: 700; color: #0f172a; margin: 24px 0 12px; }
.sub-content h3 { font-size: 16.5px; font-weight: 700; color: #0f172a; margin: 20px 0 10px; }
.sub-content h4 { font-size: 15.5px; font-weight: 700; color: #0f172a; margin: 18px 0 8px; }
.sub-content ul, .sub-content ol { padding-left: 1.6em; margin: 0 0 18px; }
.sub-content blockquote { border-left: 3px solid var(--brand); background: #f8fafc; padding: 10px 16px; margin: 0 0 18px; border-radius: 0 8px 8px 0; }
.sub-content table { border-collapse: collapse; width: 100%; margin: 0 0 18px; font-size: 14px; }
.sub-content th, .sub-content td { border: 1px solid #e2e8f0; padding: 8px 10px; text-align: left; }
.sub-content th { background: #f8fafc; }
.sub-content pre { background: #0f172a; color: #e2e8f0; padding: 14px 16px; border-radius: 10px; overflow-x: auto; font-size: 13px; }
.sub-content code { background: rgba(15,23,42,.06); padding: 2px 5px; border-radius: 4px; }
.sub-content pre code { background: none; padding: 0; }
.sub-content hr { border: 0; border-top: 1px solid #e2e8f0; margin: 1.6em 0; }
.sub-content a { color: var(--brand); }

/* 关于页正文 */
.sub-prose { max-width: 860px; margin: 0 auto; background: #fff; border: 1px solid #e2e8f0;
  border-radius: 14px; padding: 32px; line-height: 1.9; color: #334155; }
.sub-prose h2 { font-size: 19px; margin: 26px 0 12px; color: #0f172a; }
.sub-prose p { margin: 0 0 16px; }
.sub-prose a { color: var(--brand); }

/* 页脚链接使用品牌色 */
.site-footer a:hover { color: var(--brand); }

/* 邯郸分站导航：分站较多（18 个），改成多列紧凑排布，避免页脚被拉高 */
.site-footer .footer-grid > div:last-child { grid-column: span 1; }
.site-footer .footer-grid > div:last-child ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(72px, 1fr));
  gap: 2px 14px;
}
.site-footer .footer-grid > div:last-child li { padding: 3px 0; font-size: 13px; white-space: nowrap; }

@media (max-width: 900px) {
  .site-footer .footer-grid > div:last-child ul { grid-template-columns: repeat(3, minmax(64px, 1fr)); }
}
@media (max-width: 720px) {
  .site-footer .footer-grid > div:last-child ul { grid-template-columns: repeat(2, minmax(64px, 1fr)); }
  .sub-item { flex-direction: column; gap: 10px; }
  .sub-date { flex: none; }
  .sub-cover, .sub-cover img { flex: none; width: 100%; height: auto; }
  .sub-hero { padding: 48px 0; }
  .sub-hero h1 { font-size: 23px; }
  .sub-article { padding: 20px; }
}
