/* tgwl-detail.css —— 静态详情页通用样式（209 个自写模板详情页：news/products/solutions/case）
 * 主题配色对齐站点：主蓝 #1d62f5 / #3f51b5，灰阶 tailwind 系
 */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; color: #1f2937; background: #f3f4f6; line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: #1d62f5; text-decoration: none; }
a:hover { color: #3f51b5; text-decoration: underline; }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ===== 头部 ===== */
.site-header { background: #fff; border-bottom: 1px solid #e5e7eb; position: sticky; top: 0; z-index: 50; }
.site-header .inner { display: flex; align-items: center; justify-content: space-between; height: 62px; flex-wrap: wrap; }
.site-header img { height: 36px; width: auto; display: block; }
.site-header nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-header nav a { color: #374151; font-size: 15px; font-weight: 500; }
.site-header nav a:hover { color: #1d62f5; text-decoration: none; }

/* ===== 面包屑 ===== */
.breadcrumb { margin: 18px 0; font-size: 13px; color: #6b7280; }
.breadcrumb a { color: #6b7280; }
.breadcrumb a:hover { color: #1d62f5; }

/* ===== 内容卡 ===== */
.content { background: #fff; border-radius: 10px; padding: 38px 46px 30px; margin-bottom: 28px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.content h1 { font-size: 26px; line-height: 1.45; color: #111827; margin-bottom: 12px; letter-spacing: .2px; }
.meta { font-size: 13px; color: #9ca3af; padding-bottom: 14px; border-bottom: 1px solid #f0f1f3; margin-bottom: 22px; }

/* ===== 正文 ===== */
.article { font-size: 16px; color: #374151; word-wrap: break-word; }
.article p { margin: 15px 0; }
.article img { display: block; margin: 12px auto; border-radius: 6px; }
.article h2, .article h3, .article h4 { margin: 22px 0 10px; color: #111827; font-weight: 700; }
.article ul, .article ol { padding-left: 22px; margin: 12px 0; }
.article li { margin: 6px 0; }
.article blockquote { margin: 14px 0; padding: 10px 16px; background: #f8fafc; border-left: 4px solid #1d62f5; color: #4b5563; }
.article table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.article td, .article th { border: 1px solid #e5e7eb; padding: 8px 10px; font-size: 14px; }
.article video { max-width: 100%; display: block; margin: 12px auto; }
.article strong { color: #111827; }
/* 发布系统富文本常用 class 补丁（原 tailwind class 无规则） */
.article .text-lg { font-size: 19px; }
.article .font-bold { font-weight: 700; color: #111827; }
.article .text-center { text-align: center; }
.article .ptb-5 { padding: 20px 0; }
.article .text-2xl { font-size: 22px; }

/* ===== 上一篇 / 下一篇 ===== */
.pager { display: flex; gap: 18px; margin-top: 30px; padding-top: 20px; border-top: 1px solid #f0f1f3; }
.pager .prev, .pager .next { flex: 1; min-width: 0; font-size: 14px; }
.pager span { display: block; color: #9ca3af; font-size: 12px; margin-bottom: 5px; }
.pager a { color: #374151; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.pager .next { text-align: right; }

/* ===== 最新动态 ===== */
.rel-box { margin-top: 28px; }
.rel-box h2 { font-size: 18px; color: #111827; margin-bottom: 12px; font-weight: 700; }
.rel-box ul { list-style: none; }
.rel-box li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px dashed #eceef2; font-size: 14px; overflow: hidden; }
.rel-box li:last-child { border-bottom: none; }
.rel-box a { color: #374151; flex: 1; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.rel-box a:hover { color: #1d62f5; }
.rel-box .d { color: #9ca3af; font-size: 13px; white-space: nowrap; }

/* ===== 页脚 ===== */
.site-footer { background: #111827; color: #9ca3af; margin-top: 44px; padding: 24px 0; font-size: 13px; text-align: center; }
.site-footer .container { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.site-footer a { color: #d1d5db; }

/* ===== 移动端 ===== */
@media (max-width: 768px) {
  .site-header .inner { height: auto; padding: 10px 0; row-gap: 8px; }
  .site-header img { height: 30px; }
  .site-header nav { width: 100%; justify-content: center; gap: 13px; margin-top: 6px; }
  .site-header nav a { font-size: 13px; }
  .breadcrumb { margin: 12px 0; }
  .content { padding: 22px 18px; border-radius: 8px; }
  .content h1 { font-size: 20px; }
  .article { font-size: 15px; }
  .pager { flex-direction: column; gap: 12px; }
  .pager .next { text-align: left; }
  .rel-box li { flex-direction: column; gap: 2px; }
}