/* 静态站基础样式(站点由 nginx 直出, 样式随 assets 目录投放) */
:root {
  --brand: #1d4ed8;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f6f7f9;
}

/* 整站黑白显示(后台「系统配置」static_site_grayscale 启用时, 渲染器给 <html> 打 is-grayscale 标记) */
html.is-grayscale { filter: grayscale(1); }

/* 首页横幅(后台「系统配置」static_site_banner_img): 水平长条图, 限最大高度 */
.index-banner { background: #fff; }
.index-banner img { display: block; width: 100%; max-height: 160px; object-fit: cover; }

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  /* 纵向撑满视口: 稿件少时 footer 也不会浮到页面中间(配合 main 的 flex: 1) */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--brand); }

/* width: 100% 不能省: body 是纵向 flex, main.wrap 是 flex 项, 而 flex 项上的 margin:auto 会让它
   按内容宽度收缩(shrink-to-fit)。视频稿播放器换成插件容器后整块没有内在宽度, 主列就会塌成文字宽度,
   比图文/图集页窄一大截(那些页面靠图片的内在宽度撑满)。写死 100% 后由 max-width 统一收口。 */
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 56px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; color: var(--brand); }
/* 站点 logo(mm 方形标): 蓝色系, 与 --brand 同色系; 尺寸固定, 不随文字缩放 */
.logo .logo-mark { width: 28px; height: 28px; border-radius: 7px; flex: none; display: block; }
.site-header .back, .site-header .current { color: var(--muted); font-size: 14px; }

/* flex: 1 吃掉剩余高度, 把 footer 顶到页面底部 */
main { padding: 20px 0 40px; flex: 1 0 auto; }

.detail, .channel, .channel-block, .headlines {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 16px;
}

.detail h1 { font-size: 26px; margin: 0 0 8px; line-height: 1.4; }
.sub-title { color: var(--muted); margin: 0 0 12px; }

.meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 13px; margin-bottom: 16px; }

/* 详情页封面(.cover)已按需求去掉: 详情页不再展示稿件封面, og:image 仍在 <head> 里输出 */

.content { font-size: 17px; }
.content img { max-width: 100%; height: auto; border-radius: 4px; }
/* 正文里编辑器插入的视频: UEditor 占位还原成 <video class="mm-video">(见 MediaPathHelper), 页面脚本再
   把它升级成播放插件(<div class="mm-video">)。两种形态共用同一套尺寸规则:
   显式 16:9 占位 —— 否则视频元数据到达前浏览器会按 poster(封面图)的比例撑开, 点播放后才跳回正常大小。 */
.content .mm-video,
.content video.mm-video {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
}
.content .mm-video video { object-fit: contain; }
.content p { margin: 0 0 16px; }

/* 正文图片块与图片说明(编辑器插入的 p.jf-imgborder + span.jf-textformat, 与老系统同款结构) */
.content .jf-imgborder { text-align: center; }
.content .jf-textformat { display: block; padding: 12px 0; color: var(--muted); font-size: 14px; line-height: 1.7; text-align: left; }
/* 未填写(或删空)的图片说明不显示, 避免门户出现空的说明框; 内联样式带 display:block, 故用 !important */
.content .jf-textformat:empty,
.content .jf-textformat:has(> br:only-child) { display: none !important; }
.content h2, .content h3 { margin: 24px 0 12px; }
.content blockquote {
  margin: 16px 0;
  padding: 8px 16px;
  border-left: 3px solid var(--brand);
  background: #f9fafb;
  color: #374151;
}

.interact { display: flex; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.interact button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 16px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
}
.interact button:hover { border-color: var(--brand); color: var(--brand); }
/* 已点赞/已收藏的点亮态: 状态与计数由 site.js 按接口返回值维护, 再次点击会调取消接口 */
.interact button.is-active { border-color: var(--brand); background: #eff6ff; color: var(--brand); font-weight: 600; }
.interact button.is-active em { color: var(--brand); }
/* 隐藏分享按钮: (1) 已生成的旧页面立即生效, 不必等全量重建; (2) 模板里也已去掉 */
.interact button[data-action="share"] { display: none; }
.interact button:disabled { opacity: .6; cursor: not-allowed; }
.interact em { font-style: normal; color: var(--muted); margin-left: 4px; }

.related { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px 24px; margin-bottom: 16px; }
.related h2, .comments h2, .channel-block .block-title { font-size: 18px; margin: 0 0 12px; }
.related ul { list-style: none; margin: 0; padding: 0; }
.related li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.related li:last-child { border-bottom: 0; }
.related span { color: var(--muted); font-size: 12px; white-space: nowrap; }

.comments { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px 24px; }
.comment-list { list-style: none; margin: 0 0 16px; padding: 0; }
.comment-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.comment-list li:last-child { border-bottom: 0; }
.c-head { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.comment-list p { margin: 4px 0 0; }
.comment-form { display: flex; flex-direction: column; gap: 8px; }
.comment-form textarea { border: 1px solid var(--line); border-radius: 6px; padding: 8px; font: inherit; resize: vertical; }
.comment-form button {
  align-self: flex-start;
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 8px 20px;
  cursor: pointer;
}

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
/* 列表缩略图按 3:2 展示(与封面切图 600X400 同比例, 避免裁切) */
.list .thumb { width: 140px; aspect-ratio: 3 / 2; height: auto; object-fit: cover; border-radius: 6px; flex: none; }
.list .body { min-width: 0; }
.list .title { font-size: 17px; font-weight: 600; display: block; margin-bottom: 4px; }
.list .summary { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.list .time { color: var(--muted); font-size: 12px; }
.list .empty { color: var(--muted); justify-content: center; }

/* 空状态提示(专题/时间线"暂无稿件"用) */
.hint { color: var(--muted); font-size: 13px; margin: 0 0 12px; }

.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; color: var(--muted); font-size: 14px; }
.pager a { padding: 4px 12px; border: 1px solid var(--line); border-radius: 6px; }

.headlines { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
/* 头条大图同样按 3:2(封面切图 1200X800 的比例) */
.headline img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; border-radius: 6px; }
.headline h2 { font-size: 18px; margin: 10px 0 6px; }
.headline .summary { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.headline .time { color: var(--muted); font-size: 12px; }

.channel-block .block-title a { color: var(--brand); }

/* 稿件类型标识(图集等) */
.tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: #fff1f0;
  border: 1px solid #ffccc7;
  color: #cf1322;
  font-size: 12px;
  line-height: 18px;
  vertical-align: middle;
}

/* 置顶标识(融媒体库置顶稿件, 与稿件类型标识区分) */
.tag-top {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

/* 专题页: 头部信息 + 封面 + 分类区块 */
.special-head { margin: 0 0 12px; }
.special-head h1 { margin: 0 0 8px; font-size: 26px; line-height: 1.4; }
.special-banner { margin: 0 0 20px; }
.special-banner img { width: 100%; max-width: 100%; display: block; border-radius: 8px; }
.special-block { margin: 0 0 28px; }
.special-block .block-title {
  margin: 0 0 12px;
  padding-left: 10px;
  border-left: 3px solid var(--brand);
  font-size: 18px;
  line-height: 1.4;
}

/* 时间线页: 左侧竖线 + 圆点 */
.timeline-block { margin: 8px 0 24px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid #e5e7eb; }
.timeline-item { position: relative; padding: 0 0 22px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -30px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px #e8edfb;
}
.timeline-body { display: block; }
.timeline-body .title { display: inline-block; font-size: 16px; font-weight: 600; color: var(--brand); }
.timeline-thumb { display: block; margin: 8px 0 0; max-width: 320px; width: 100%; border-radius: 6px; }

/* 视频稿: 播放器 + 简介 */
.video-block { margin: 0 0 20px; }
/*
 * 播放器盒子(竖屏/横屏都显式给比例, 与 PC 端编辑器预览 .ve-player 同一口径: 16:9 + contain)。
 *
 * 【为什么要显式比例】视频元数据到达前, 浏览器会拿 poster(封面图)的尺寸当 <video> 的内在尺寸来排版:
 *   封面若是 4:3 之类的裁切图, 开屏就是一个按封面比例撑大的错比例播放器, 点播放(元数据到位)后才跳回正常大小。
 *   显式 aspect-ratio 优先于封面推导出的比例, 于是"开屏尺寸"与"播放后尺寸"一致, 不再跳变。
 * 【为什么按容器写】播放改用插件(xgplayer)后, 这个类落在插件容器 div 上而不是 <video> 上;
 *   规则同时兼容"插件未加载时的原生 <video>", 两种形态尺寸一致。
 */
.video-player {
  width: 100%;
  max-width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 6px;
  background: #000;
  overflow: hidden;
}
/* 画面按原比例居中留黑, 不拉伸不变形 */
.video-player video { object-fit: contain; }
/* 竖屏稿(画面方向=竖屏): 不能铺满内容宽度 —— 9:16 的视频会被拉成一条极长的播放器,
   整屏都在播一个细长画面。改为限宽居中: 宽度取 min(320px, 70vh 换算出的宽度), 保证既限宽又不超一屏高度。 */
.video-player.is-portrait { width: min(320px, calc(70vh * 9 / 16)); aspect-ratio: 9 / 16; margin: 0 auto; }
.video-desc { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

/* 外链稿 / 直播稿: 入口卡片 */
.link-block, .live-block {
  margin: 0 0 20px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.link-tip { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.link-btn {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff !important;
  font-size: 14px;
}
.link-btn:hover { color: #fff !important; opacity: .9; }
.link-url { display: block; margin-top: 10px; color: var(--muted); font-size: 12px; word-break: break-all; }

.live-status {
  display: inline-block;
  margin: 0 0 10px;
  padding: 2px 10px;
  border-radius: 12px;
  background: #fff1f0;
  color: #cf1322;
  font-size: 13px;
}
.live-time { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.live-desc { margin: 0 0 12px; color: #1f2937; font-size: 15px; line-height: 1.7; }
.live-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* 图集稿: 图片列表(每张图 + 图说) */
.gallery { margin: 0 0 20px; display: flex; flex-direction: column; gap: 18px; }
.gallery-item { margin: 0; }
.gallery-item img { width: 100%; max-width: 100%; height: auto; border-radius: 6px; display: block; background: #f6f7f9; }
.gallery-item figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.7; }

.site-footer { border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 13px; padding: 16px 0; text-align: center; }

/* ============================================================
   首页(门户版式): 顶部频道导航 + 头条大图/要闻列表
   + 主列两列卡片流 + 右栏(最热稿件 / 最新稿件)
   ============================================================ */
.site-header .header-inner { gap: 24px; height: 60px; }

.nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; min-width: 0; }
.nav-item { padding: 0 10px; font-size: 15px; color: #374151; line-height: 60px; white-space: nowrap; }
.nav-item:hover { color: var(--brand); }
.nav-item.is-active { color: var(--brand); font-weight: 700; box-shadow: inset 0 -2px 0 var(--brand); }

.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.home-main { min-width: 0; }
.home-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 76px; }

/* 头条区: 左大图 + 右要闻列表 */
.lead {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 1fr);
  gap: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}
.lead-main { min-width: 0; }
.lead-photo { display: block; }
.lead-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  background: #f1f5f9;
}
.lead-title { font-size: 20px; line-height: 1.45; margin: 12px 0 0; }
.lead-news { list-style: none; margin: 0; padding: 0 0 0 20px; border-left: 1px solid var(--line); }
.lead-news li { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.lead-news li:last-child { border-bottom: 0; padding-bottom: 0; }
.lead-news .title { display: block; font-size: 16px; font-weight: 600; line-height: 1.5; }
.lead-news .meta { margin: 4px 0 0; }

/* 只有一条置顶(没有右侧要闻)时: 大图铺满整行, 并限制高度免得整屏都是图 */
.lead.is-single { grid-template-columns: minmax(0, 1fr); }
.lead.is-single .lead-photo img { max-height: 440px; }

/* 频道页的 lead 已经嵌在 .channel 卡片里: 去掉自身卡片外观, 只与下方列表用一条分隔线区隔 */
.lead.is-flat { background: none; border: 0; border-radius: 0; padding: 0; margin-bottom: 4px; }
.lead.is-flat + .list { border-top: 1px solid var(--line); margin-top: 16px; }

.meta { color: var(--muted); font-size: 12px; margin: 0; }

/* 两列卡片流 */
.feed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; gap: 12px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.card-thumb { flex: none; width: 140px; }
.card-thumb img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  background: #f1f5f9;
}
.card-body { min-width: 0; }
.card-title { display: block; font-size: 15px; font-weight: 600; line-height: 1.5; margin-bottom: 6px; }

/* 右栏 */
.side-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.side-title { font-size: 15px; margin: 0 0 12px; padding-left: 8px; border-left: 3px solid var(--brand); line-height: 1.2; }
.side-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.side-chips a { padding: 4px 10px; border-radius: 999px; background: var(--bg); font-size: 13px; color: #374151; }
.side-chips a:hover { background: #e8edfb; color: var(--brand); }
/* 右栏列表: 最热稿件带序号 + 点击数, 最新稿件带时间; 标题单行省略 */
.side-rank { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.side-rank li { display: flex; gap: 8px; align-items: baseline; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.side-rank li:last-child { border-bottom: 0; padding-bottom: 0; }
.side-rank li::before { counter-increment: rank; content: counter(rank); flex: none; width: 16px; color: var(--muted); font-size: 12px; }
.side-rank a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }

.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { display: flex; gap: 8px; align-items: baseline; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.side-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.side-list a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.side-list .time { flex: none; color: var(--muted); font-size: 12px; }

/* 首页栏目区块: 两列卡片(缩略图 + 标题), 与上方卡片流同一视觉 */
.channel-block .list-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.list-cards li { align-items: flex-start; }
.list-cards .thumb-link { flex: none; width: 132px; }
.list-cards .thumb-link img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  background: #f1f5f9;
}
.list-cards .title { font-size: 15px; }
.list-cards .empty { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .site-header .header-inner { height: auto; padding: 8px 0; gap: 12px; }
  .nav-item { line-height: 2; }
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .home-side { position: static; }
  .lead { grid-template-columns: minmax(0, 1fr); }
  .lead-news { padding: 8px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .lead-news li:first-child { padding-top: 0; }
  .feed, .channel-block .list-cards { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   登录: 头部登录态([data-user] 由 site.js 渲染) + 登录弹窗 + 轻提示
   点赞/收藏/评论必须先登录, 未登录时由 site.js 弹出登录框, 登录成功后重放原操作。
   ============================================================ */
.header-user { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; flex: none; }
.header-user .login-link { color: var(--brand); font-weight: 600; }
.header-user .user-name { color: var(--text); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-user .user-pwd, .header-user .user-logout { color: var(--muted); font-size: 13px; }
.header-user .user-pwd:hover, .header-user .user-logout:hover { color: var(--brand); }

.mm-login-mask {
  position: fixed; inset: 0; z-index: 60; display: none;
  align-items: center; justify-content: center; padding: 16px;
  background: rgba(15, 23, 42, .45);
}
.mm-login-mask.is-show { display: flex; }
.mm-login {
  position: relative; width: 100%; max-width: 380px; padding: 24px 22px 20px;
  background: #fff; border-radius: 14px; box-shadow: 0 24px 60px rgba(15, 23, 42, .24);
}
.mm-login-close {
  position: absolute; right: 10px; top: 6px; border: 0; background: none; cursor: pointer;
  font-size: 24px; line-height: 1; color: var(--muted);
}
.mm-login-title { margin: 0 0 4px; font-size: 20px; }
.mm-login-tip { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
/* 登录方式页签: 验证码登录 / 密码登录 */
.mm-tabs { display: flex; gap: 18px; margin: 0 0 14px; border-bottom: 1px solid var(--line); }
.mm-tab { padding: 0 2px 8px; border: 0; background: none; cursor: pointer; font-size: 15px; color: var(--muted); }
.mm-tab.is-active { color: var(--brand); font-weight: 600; box-shadow: inset 0 -2px 0 var(--brand); }
.mm-login-foot { display: flex; gap: 16px; margin: 12px 0 0; font-size: 13px; }
.mm-login-foot a { color: var(--brand); }
.mm-field { margin-bottom: 12px; }
.mm-field input {
  width: 100%; height: 44px; padding: 0 12px; font-size: 15px; color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; outline: none; background: #fff;
}
.mm-field input:focus { border-color: var(--brand); }
.mm-field-code { display: flex; gap: 8px; }
/* 该行设了 display, 会盖掉 [hidden] 的 UA 样式(display:none):
   切到「密码登录」时验证码输入框不会被隐藏 —— 这里显式补一条 */
.mm-field-code[hidden] { display: none; }
.mm-field-code input { flex: 1; min-width: 0; }
.mm-code-btn {
  flex: none; width: 116px; height: 44px; border: 1px solid var(--brand); border-radius: 8px;
  background: #fff; color: var(--brand); font-size: 14px; cursor: pointer;
}
.mm-code-btn:disabled { border-color: var(--line); color: var(--muted); cursor: default; }
.mm-login-hint { margin: 0 0 12px; min-height: 18px; font-size: 12px; color: var(--muted); }
.mm-login-hint.is-error { color: #dc2626; }
.mm-agree { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 2px 6px; margin-bottom: 14px; font-size: 12px; color: var(--muted); }
.mm-agree input { margin: 4px 0 0; flex: none; }
.mm-agree label { cursor: pointer; }
/* 《用户协议》《隐私政策》: 点开新页签查看, 不影响当前登录状态 */
.mm-agree a { color: var(--brand); }
.mm-agree a:hover { text-decoration: underline; }
.mm-login-submit {
  width: 100%; height: 44px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--brand); color: #fff; font-size: 16px; font-weight: 600;
}
.mm-login-submit:disabled { opacity: .7; cursor: default; }

.mm-toast {
  position: fixed; left: 50%; bottom: 48px; transform: translate(-50%, 12px); z-index: 80;
  max-width: 80vw; padding: 10px 18px; border-radius: 999px; background: rgba(17, 24, 39, .9);
  color: #fff; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.mm-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.mm-toast.is-error { background: rgba(190, 24, 41, .92); }

/* -------------------------------------------------- 内容页(用户协议 / 隐私政策) */
.doc-card {
  margin: 20px 0 40px; padding: 32px 36px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px;
}
.doc-title { margin: 0 0 6px; font-size: 26px; line-height: 1.35; color: var(--text); }
.doc-meta { margin: 0 0 22px; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.doc-body { font-size: 15px; line-height: 1.9; color: var(--text); }
.doc-body h2 { margin: 26px 0 8px; font-size: 17px; color: var(--text); }
.doc-body p { margin: 0 0 12px; }
.doc-back { margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.doc-back a { color: var(--brand); }

@media (max-width: 640px) {
  .list .thumb { width: 100px; }
  .detail, .channel, .channel-block, .headlines, .related, .comments, .doc-card { padding: 16px; }
  .doc-title { font-size: 22px; }
  .gallery { gap: 14px; }
  .gallery-item figcaption { font-size: 13px; }
  .header-user .user-name { max-width: 72px; }
}
