/* ============================================================
   百年巨匠 响应式层（移动端支持）
   --------------------------------------------------------------
   安全约定：
   1) 本文件在每页 CSS 最后引入；
   2) 除「移动专属组件默认隐藏」一小段外，所有重排规则全部包在
      @media (max-width: 1023.98px) 内 —— ≥1024px 桌面端逐像素不变；
   3) 回退：删掉本文件的 <link> 即恢复纯 PC 站。
   断点：<1024px 进入移动布局；≥1024px 沿用现有 PC（含 1199.98 小屏档）。
   ============================================================ */

/* ---- 移动专属组件：默认隐藏，桌面端不显示 ---- */
.m-menu-trigger { display: none; }                /* 汉堡触发器，仅窄屏显示 */
.master-profile__bio-expand { display: none; }    /* 简介展开按钮，JS 全宽度注入，仅窄屏显示 */

/* 侧边抽屉（sidebar.js 在所有宽度注入 <aside>，默认隐藏，仅窄屏汉堡可唤起）*/
.m-sidebar {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0);
  visibility: hidden;
  transition: background .25s ease, visibility 0s linear .25s;
}
.m-sidebar.is-open {
  background: rgba(0,0,0,.5);
  visibility: visible;
  transition: background .25s ease, visibility 0s linear 0s;
}
.m-sidebar__panel {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 220px;
  background: #f8f3e7 url("../img/common/sidebar_bg.png") center / cover no-repeat;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform .25s ease;
}
.m-sidebar.is-open .m-sidebar__panel { transform: translateX(0); }
.m-sidebar__close {
  position: absolute; right: 16px; top: 26px;
  width: 40px; height: 40px;
  border-radius: 16px;
  background: #f0e6cf; border: 0; padding: 0; cursor: pointer;
}
.m-sidebar__close span {
  position: absolute; top: 50%; left: 50%;
  width: 16px; height: 1.5px; background: #614400;
}
.m-sidebar__close span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.m-sidebar__close span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }
.m-sidebar__nav {
  position: absolute; left: 34px; top: 80px;
  display: flex; flex-direction: column; gap: 34px;
}
.m-sidebar__nav a {
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 16px; font-weight: 700;
  color: var(--color-text-secondary); line-height: 1;
}
.m-sidebar__nav a.is-current { color: var(--color-brand-deep); }


/* ============================================================
   <1024px：移动布局
   ============================================================ */
@media (max-width: 1023.98px) {

  /* ---------- 公共 ---------- */
  /* 移动端 body 背景：按设计稿用米黄 var(--color-bg) = #F8F3E7（PC 同色） */
  body { min-width: 0; background: var(--color-bg); }
  /* detail 页 PC 是白底（renwuzhi-detail.css 第 4 行），移动端也按设计稿改米黄 */
  body.renwuzhi-detail-page { background: var(--color-bg); }
  .container-w { padding: 0 var(--m-pad); }

  /* 顶栏：收起跑马灯与长导航，露出汉堡；搜索压成图标 */
  .site-topbar__top { display: none; }
  .site-topbar__main { height: 56px; }
  .site-topbar__logo img { height: 40px; width: auto; }
  .site-topbar__nav { display: none; }
  .site-topbar__search {
    margin-left: auto;
    width: auto; height: auto; padding: 6px;
    border: 0; font-size: 0;          /* 隐藏“搜索”文字，仅留图标 */
    gap: 0;
  }
  .site-topbar__search img { width: 22px; height: 22px; }
  /* 汉堡触发器钉在屏幕右缘：自身 margin-left:auto 兜底（TRS 若去掉搜索链接也不回弹到 logo 旁）；
     有搜索链接时由相邻选择器改回 12px，紧跟搜索图标。 */
  .m-menu-trigger {
    display: inline-flex; align-items: center;
    margin-left: auto; padding: 6px;
  }
  .site-topbar__search + .m-menu-trigger { margin-left: 12px; }
  .m-menu-trigger img { width: 24px; height: 24px; filter: brightness(0) invert(1); }

  /* 内页 hero：压缩高度与标题 */
  .inner-hero { height: auto; }
  .inner-hero__title { padding-top: 78px; padding-bottom: 22px; }
  .inner-hero__title h1 { font-size: 24px; letter-spacing: 1px; }

  /* 章节大标题 */
  .section-title { font-size: 22px; line-height: 32px; }

  /* “了解更多”按钮：参考移动稿 .m-more-btn —— 矮胶囊、12px、上距收窄 */
  .more-link {
    margin-top: 20px;
    padding: 9px 0;
    font-size: 12px;
    color: var(--color-brand-deep);
  }

  /* Footer：三列改单列堆叠 + 背景图（参考移动稿 .m-footer）*/
  .bnjj-footer {
    padding-top: 24px;
    background: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.7)),
                #1A1A1A url("../img/common/footer_bg.png") center top / cover no-repeat;
  }
  .bnjj-footer__inner { grid-template-columns: 1fr; gap: 18px; padding-bottom: 20px; }
  .bnjj-footer__col h4 { font-size: 14px; margin-bottom: 12px; }
  .bnjj-footer__col p { display: block; font-size: 12px; line-height: 1.7; margin: 0 0 4px; }
  .bnjj-footer__links { gap: 8px 16px; }
  .bnjj-footer__links a { font-size: 13px; }
  /* 移动端二维码组：3 张 60×60 图 + 72px 卡宽（避免"微信公众号"5 字换行），间距 14px */
  .bnjj-footer__qr { justify-content: flex-start; gap: 14px; margin-top: 4px; }
  .bnjj-footer__qr div { flex: 0 0 72px; }
  .bnjj-footer__qr img { width: 60px; height: 60px; }
  .bnjj-footer__qr span { white-space: nowrap; }
  /* 版权栏：窄屏字号收小 + 允许多行；内部 flex-wrap 让 4 段自然换行 */
  .bnjj-footer__copyright { min-height: auto; font-size: 11px; line-height: 1.6; }
  .bnjj-footer__copyright .container-w {
    gap: 2px 12px;
    padding-top: 8px;
    padding-bottom: 10px;
  }
  .bnjj-footer__copyright .container-w span {
    white-space: normal;     /* 单条内容太长时允许字符间换行 */
    word-break: break-word;
  }

  /* 分页（窄屏）：用省略号压缩长分页 —— HTML 结构和桌面端共用
     最多显示 7 个圆按钮：prev / 首页 / [...] / 当前页±1 / [...] / 末页 / next
     在首页与"当前-1"、"当前+1"与末页之间存在跳跃时由 ::after / ::before 补省略号 */
  .pagination {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 6px;
    padding: 24px var(--m-pad) 40px;
  }
  .pagination > a,
  .pagination > span {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
  /* prev / next：保持圆形箭头按钮（文字隐藏）*/
  .pagination .prev,
  .pagination .next {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    gap: 0;
    font-size: 0;
  }
  .pagination .prev::after,
  .pagination .next::before {
    width: 32px;
    height: 32px;
    font-size: 20px;
    box-shadow: inset 0 0 0 1px #e0d7c0;
  }

  /* 默认隐藏（特异性 0,2,1）—— 用 :not(:is(.prev, .next)) 把两个 class 合并进一个 :not，
     特异性 = .pagination(0,1,0) + :is(a,span)(0,0,1) + :not(:is(...))(0,1,0) = (0,2,1) */
  .pagination > :is(a, span):not(:is(.prev, .next)) {
    display: none !important;
  }
  /* 始终显示（特异性 ≥ 0,2,1，让后写或更高的规则覆盖隐藏）*/
  .pagination > :is(a, span).prev,
  .pagination > :is(a, span).next,
  .pagination > :is(a, span):nth-child(2),                /* 首页 */
  .pagination > :is(a, span):nth-last-child(2),           /* 末页 */
  .pagination > :is(a, span).is-active,                   /* 当前页 */
  .pagination > .is-active + :is(a, span):not(.next),     /* 当前页 +1 */
  .pagination > :is(a, span):has(+ .is-active):not(.prev) { /* 当前页 -1 */
    display: inline-flex !important;
  }

  /* 省略号 ① —— 首页 ::after：当首页与"当前-1"之间存在跳跃时显示
     不显示的条件：首页就是当前页、首页紧邻当前页、首页 + 1 = 当前-1（即两者中间只有 1 个就是当前-1） */
  .pagination > :nth-child(2)::after {
    content: '…';
    margin-left: 6px;
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 30px;
  }
  .pagination > :nth-child(2).is-active::after,
  .pagination > :nth-child(2):has(+ .is-active)::after,
  .pagination > :nth-child(2):has(+ * + .is-active)::after {
    content: none;
  }

  /* 省略号 ② —— 末页 ::before：当"当前+1"与末页之间存在跳跃时显示
     用 :has() 反向检测：父容器 :nth-last-child(3) 是 is-active 或 :nth-last-child(4) 是 is-active 时不显示 */
  .pagination > :nth-last-child(2)::before {
    content: '…';
    margin-right: 6px;
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 30px;
  }
  .pagination:has(> :nth-last-child(2).is-active) > :nth-last-child(2)::before,
  .pagination:has(> :nth-last-child(3).is-active) > :nth-last-child(2)::before,
  .pagination:has(> :nth-last-child(4).is-active) > :nth-last-child(2)::before {
    content: none;
  }

  /* ---------- 首页 index ---------- */
  /* .intro__grid 已由现有 @media(max-width:1199.98) 改为上下堆叠；但卡片的左 120px 内边距
     （PC 用于叠压视频）未被复位，窄屏会把文字挤到右侧 → 这里复位并按移动稿收小字号 */
  .intro { padding-top: 24px; }
  .intro__poster { border-radius: 8px; }
  /* 复位 PC 残留的 height:100%（1199 断点未复位），按内容自适应高度 */
  .intro__card { height: auto; padding: 20px 16px; margin-top: 12px; border-radius: 8px; }
  .intro__text { font-size: 13px; line-height: 1.8; -webkit-line-clamp: 4; }  /* 7 行 → 4 行，卡片更紧凑 */
  .intro__more { font-size: 13px; }

  /* hero：PC 等比 1920/812 在 390 宽下仅 ~165px 偏矮，窄屏给固定高度并裁切居中，让主视觉更突出 */
  .hero { aspect-ratio: auto; height: 200px; }
  .hero__img { object-position: center; }

  /* 项目介绍播放按钮：120px 大圆缩到 56px，三角同比缩小 */
  .intro__play { width: 56px; height: 56px; }
  .intro__play::after { border-width: 10px 0 10px 16px; left: 56%; }

  .latest { margin-top: -20px; }
  .latest__list { flex-direction: column; gap: 0; margin-top: 0; }
  .latest__inner { height: auto; overflow: visible; padding: 8px 16px; }
  /* 每条用分隔线区隔（参考移动稿 .m-latest__list li）*/
  .latest__item { position: relative; padding: 14px 0; border-bottom: 1px solid var(--color-divider); }
  .latest__item:last-child { border-bottom: 0; padding-bottom: 0; }
  /* 贴近移动稿 .m-latest__t：标题在左、小号日期在同一行右侧、正文在下。
     PC 中日期(.latest__date)与标题(.latest__link>.latest__title)分属不同 DOM 分支，
     单套 DOM 不便改 HTML，这里用绝对定位把日期移到标题行右上角实现「同行」效果。 */
  .latest__year { display: none; }            /* 移动稿无逐条年份标签 */
  .latest__dots { display: none; }            /* 隐藏日期后的虚线 */
  .latest__date {
    position: absolute; top: 15px; right: 0;
    height: auto; align-items: baseline;
    color: var(--color-text-muted); font-weight: 600;
  }
  .latest__date .d,
  .latest__date .dm,
  .latest__date .m {
    font-size: 12px; line-height: 1.4; font-weight: 600; margin-left: 0;
  }
  .latest__link { margin-top: 0; }
  /* 解除 PC 基础样式的单行省略号截断（index.css 的 nowrap+ellipsis），窄屏标题换行显示完整；
     padding-right 给右上角绝对定位的小日期留位 */
  .latest__title {
    font-size: 15px; line-height: 1.4; margin-bottom: 4px; padding-right: 64px;
    white-space: normal; overflow: visible; text-overflow: clip;
  }
  .latest__desc { font-size: 13px; line-height: 1.6; }
  /* 人物志：参考原移动端 .m-persons —— 100px 圆形头像横滑卡。
     注意 PC 的 .persons__item 有固定 height:603px（防 hover 抖动），窄屏必须复位为 auto，
     否则每张卡 603px 高会撑出大片空白。 */
  .persons { padding-top: 24px; }
  .persons__list {
    display: flex; flex-wrap: nowrap;
    gap: 16px; overflow-x: auto; padding-bottom: 8px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .persons__list::-webkit-scrollbar { display: none; }
  .persons__item {
    /* 一屏显示 3.5 个卡片（露出半张，提示可横滑）：(可用宽 - 3 个 16px 间距) / 3.5 */
    flex: 0 0 calc((100% - 48px) / 3.5);
    height: auto; overflow: visible;
    padding: 0; cursor: default;
  }
  /* 头像保持竖长方形（圆角矩形），沿用 PC 的 aspect-ratio 212/285，仅填满 100px 卡宽 */
  .persons__photo {
    width: 100%; max-width: none;
    margin: 0 auto 8px;
  }
  .persons__name {
    font-family: var(--font-serif);
    font-size: 15px; font-weight: 700;
    line-height: 1.3; margin-bottom: 4px;
  }
  .persons__meta { font-size: 12px; line-height: 1.4; }
  .persons__meta span:first-child { margin-bottom: 2px; }
  .persons__meta span:last-child { font-size: 10px; }
  .persons__bio { display: none; }
  /* 触屏点按会触发 mouseenter → JS 加 .is-active，PC 的激活态会把文字翻白；
     窄屏完整复位激活态外观，保持常态（含 meta 身份/生卒颜色，避免点击后变白）*/
  .persons__item.is-active { background: none; padding: 0; }
  .persons__item.is-active .persons__photo { display: block; }
  .persons__item.is-active .persons__name { color: var(--color-text-secondary); font-size: 15px; }
  .persons__item.is-active .persons__meta { color: var(--color-text-secondary); }
  .persons__item.is-active .persons__meta span:last-child { color: var(--color-text-muted); }
  .persons__item.is-active .persons__bio { display: none; }
  /* 项目介绍子项（主创/荣誉/报道）：PC 为 112px 高 / 20px 字，窄屏过大，按移动稿收为 46px / 12px */
  .intro__sub { gap: 8px; margin-top: 16px; }
  .intro__sub-item { height: 46px; }
  .intro__sub-item h4 { font-size: 12px; line-height: 1.2; }
  /* 视听馆：单列视频卡，播放按钮与底部标题条收小 */
  .videos { padding-top: 24px; }
  .videos__list { grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
  .videos__play img { width: 56px; height: 56px; }   /* 100px → 56px */
  .videos__title { height: auto; font-size: 15px; line-height: 1.4; padding: 12px 16px; }

  /* 重要活动：单列宽卡，标题/副标题的绝对定位边距与字号收小 */
  .events { padding-top: 24px; }
  .events__list { grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
  .events__title { font-size: 16px; line-height: 22px; left: 20px; right: 20px; bottom: 42px; }
  .events__sub { font-size: 12px; line-height: 18px; left: 20px; right: 20px; bottom: 18px; }

  /* 文献成果：收紧上下间距、圆角与全站移动卡片统一为 8px */
  .wenxian { padding: 24px 0 32px; }
  .wenxian__img { border-radius: 8px; }

  /* ---------- 人物志列表 renwuzhi ---------- */
  /* 篇章 tab：PC 是金色大胶囊，窄屏改为移动稿 .m-chapter-tabs 的「纯文字 + 选中波浪下划线」 */
  .chapter-tabs {
    flex-wrap: nowrap; overflow-x: auto; gap: 16px; padding: 14px 0 8px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .chapter-tabs::-webkit-scrollbar { display: none; }
  .chapter-tabs a {
    position: relative; flex: 0 0 auto;
    min-width: 0; height: auto; padding: 0 0 6px;
    border-radius: 0; background: none;
    font-size: 13px; font-weight: 500; white-space: nowrap;
    color: var(--color-text-secondary);
  }
  .chapter-tabs a.is-active {
    background: none; color: #997a29; font-weight: 700;
  }
  .chapter-tabs a.is-active::after {
    content: ''; position: absolute; left: 50%; bottom: 0;
    transform: translateX(-50%); width: 17px; height: 3px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='17' height='3' viewBox='0 0 17 3' fill='none'><path d='M0 0.3 C 2.8 2 14.2 2 17 0.3' stroke='%23997a29' stroke-width='1.5' stroke-linecap='round'/></svg>") no-repeat center / contain;
  }
  /* 篇章金色横幅：PC 高 120px、标题 34px、共N位 20px 居中；窄屏按移动稿 .m-chapter-banner 收小 */
  .chapter-banner { height: auto; justify-content: flex-start; padding: 14px 16px; margin: 16px 0 12px; }
  .chapter-banner h2 { font-size: 18px; padding-right: 60px; }          /* 34 → 18，留出右上角计数位 */
  .chapter-banner__count { top: 15px; right: 16px; bottom: auto; transform: none; font-size: 13px; font-weight: 600; }

  /* 巨匠卡：PC 是 5 列竖卡（大照片在上、姓名在下），窄屏竖向占位照片会撑得很高、排版稀疏。
     参考移动稿 .m-person-card 改为「单列 + 小照片在左 + 信息在右」。
     PC 的 photo/name/meta/bio 是无 info 包裹的平级兄弟，用 grid 把它们排成两列两行实现该布局。 */
  .master-grid { grid-template-columns: 1fr; gap: 14px; padding-bottom: 0; margin-top: 8px; }
  /* 最后一个篇章列表与 footer 贴死（间距 0），补一段底部留白 */
  .chapter-section:last-of-type { padding-bottom: 28px; }
  /* 字段对齐移动设计稿 .m-person-card：照片左 + 姓名 / 生卒身份 / 简介 三行竖排在右。
     照片跨三行（顶对齐，不拉伸）；简介从 PC 的隐藏改为显示、3 行截断。 */
  .master-card {
    display: grid;
    grid-template-columns: 84px 1fr;
    column-gap: 14px;
    align-items: start;
    text-align: left;
  }
  .master-card__photo {
    grid-column: 1; grid-row: 1 / span 3; align-self: start;
    width: 84px; max-width: none; aspect-ratio: 224 / 300; margin: 0;
    background: var(--color-bg-circle);   /* 占位底色：未上传真图时也显示照片槽 */
  }
  .master-card__name {
    grid-column: 2; grid-row: 1;
    font-size: 16px; margin-bottom: 4px;
  }
  .master-card__meta {
    grid-column: 2; grid-row: 2;
    font-size: 12px; line-height: 1.4; color: var(--color-text-muted); margin-bottom: 6px;
  }
  .master-card__meta span { display: inline; }            /* 身份+生卒同行，省高度 */
  .master-card__meta span:first-child { margin: 0 6px 0 0; }
  .master-card__bio {
    grid-column: 2; grid-row: 3;
    display: -webkit-box; height: auto; margin: 0; text-align: justify;
    font-size: 13px; line-height: 1.55; color: var(--color-text-muted);
    -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }

  /* ---------- 人物详情 renwuzhi-detail ---------- */
  /* 移动端 profile：整块合并为一个白卡（含头像 + 姓名 + 标签 + 生卒 + 简介），
     视觉上是一个统一的 view 块，而不是「头像探入 bio 白卡」的分离结构 */
  .master-profile {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    /* 关键：.container-w 有 width:100% + box-sizing:border-box，如果再叠加横向 margin，
       整个元素会超出视口 30px 造成横滚。改用 width:auto 让 section 按 block 默认逻辑
       auto-fill 父容器再减去左右 margin，宽度不会溢出 */
    width: auto;
    margin: 16px var(--m-pad) 0;
    padding: 16px 14px;
    grid-template-columns: 90px 1fr;
    column-gap: 14px;
    row-gap: 0;
    align-items: start;
  }
  .master-profile__photo {
    grid-column: 1;
    grid-row: 1 / span 3;         /* 头像跨越 name/tag/date 三行 */
    width: 90px; height: 110px;
  }
  .master-profile__photo img { width: 90px; height: 110px; display: block; border-radius: 4px; }
  /* display:contents 让 info 内字段平铺进外层 grid，bio 才能跨两列 */
  .master-profile__info  { display: contents; }
  .master-profile__name  { grid-column: 2; align-self: start; font-size: 20px; margin: 0 0 4px; }
  .master-profile__tag   { grid-column: 2; align-self: start; font-size: 14px; margin: 0 0 4px; }
  .master-profile__date  { grid-column: 2; align-self: start; font-size: 12px; margin: 0; }
  .master-profile__sub   { display: none; }
  /* 简介：跨两列独占一行，融入白卡（无独立背景、无负 margin overlap 技巧）*/
  .master-profile__bio   {
    grid-column: 1 / -1;
    margin: 14px 0 0;
    padding: 0;
    font-size: 14px; line-height: 1.9;
    color: var(--color-text-primary);
    text-indent: 2em; text-align: justify;
    display: -webkit-box; -webkit-line-clamp: 9;
    -webkit-box-orient: vertical; overflow: hidden;
  }
  .master-profile__bio.is-expanded {
    display: block; -webkit-line-clamp: unset; overflow: visible;
  }
  /* 展开/收起按钮：底部虚线分隔 + 金字，融入白卡底部 */
  .master-profile__bio-expand {
    grid-column: 1 / -1;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin: 12px 0 0;
    padding: 10px 0 2px;
    border-top: 1px dashed var(--color-divider);
    background: transparent;
    font-size: 12px; color: var(--color-brand-deep);
    text-decoration: none;
  }
  .master-profile__bio-expand::after {
    content: ''; width: 7px; height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
  }
  .master-profile__bio.is-expanded + .master-profile__bio-expand::after {
    transform: translateY(2px) rotate(-135deg);
  }

  /* 区块标题：34 → 18，padding 收紧 */
  .block-title { font-size: 18px; padding: 24px 0 12px; }

  /* 图书：PC 4 列灰底卡 → 移动横滑书架（参考 .m-book-strip / 移动稿 111×183）。
     移动稿是"白封面 + 卡下裸标题"结构，需重置 PC 上加的 #f6f6f6 卡底 / 卡圆角 / 卡内 padding */
  .book-list {
    display: flex; flex-wrap: nowrap; gap: 8px;   /* 移动稿列间距 8px */
    grid-template-columns: none;                    /* 覆盖 PC 的 grid 4 列 */
    overflow-x: auto; padding-bottom: 8px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .book-list::-webkit-scrollbar { display: none; }
  .book-item {
    flex: 0 0 111px;                    /* 移动稿卡宽 111 */
    background: none;                   /* 重置 PC #f6f6f6 */
    border-radius: 0;                   /* 重置 PC 8px */
    padding-bottom: 0;                  /* 重置 PC 24px */
    overflow: visible;                  /* 允许标题不被剪 */
  }
  .book-item__cover {
    height: 132px;                      /* 移动稿封面高 */
    aspect-ratio: auto;                 /* 覆盖 PC 的 1:1 */
    background: #fff;                   /* 封面自身白底（移动稿）*/
    border-radius: 4px;                 /* 移动稿 4px */
    margin-bottom: 15px;                /* 封面底 → 标题顶 15px */
    padding: 6px;
  }
  .book-item__title {
    font-size: 12px; line-height: 18px;
    padding: 0;                         /* 重置 PC 18px */
    margin-top: 0;                      /* 重置 PC 20px */
    /* 移动端标题 2 行（设计稿 36px 高），覆盖 PC 的单行 nowrap */
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: clip;                /* 覆盖 PC 的 ellipsis（line-clamp 自己带省略号）*/
  }
  /* 移动稿不显示作者 / 出版社 */
  .book-item__author,
  .book-item__publisher { display: none; }

  /* 纪录片视频卡 */
  .video-row { grid-template-columns: 1fr; gap: 16px; padding-bottom: 8px; }
  .video-card__title { font-size: 15px; line-height: 1.4; margin-top: 12px; }
  .video-card__thumb .play { width: 56px; height: 56px; }

  /* 珍贵文献画廊：图收高、间距收紧、标题字号收小 */
  .detail-doc { gap: 12px; padding-bottom: 10px; }
  .detail-doc__item { flex-basis: auto; width: auto; }
  .detail-doc__img { height: 240px; }
  .detail-doc__caption { font-size: 12px; line-height: 1.6; margin-top: 10px; }

  /* 文摘列表 */
  .digest-list li { font-size: 13px; line-height: 1.7; }
  .digest-list li time { margin-right: 10px; }

  /* 老照片：等高铺满，间距/padding 收紧 */
  .photo-strip { gap: 8px; padding: 12px; margin-bottom: 24px; }
  .photo-strip img { height: 110px; }

  /* ---------- 视听馆 shitingguan（.stg-* 同时用于 jishi 活动区，参考 .m-stg-*）---------- */
  .stg-section { padding-top: 20px; padding-bottom: 8px; }
  .stg-title { font-size: 18px; margin-bottom: 12px; }

  /* 精选大卡：PC 的 1152 视频 + 478 米黄侧栏 → 移动单列堆叠（视频在上，介绍段在下）*/
  .stg-feature { flex-direction: column; gap: 12px; margin-bottom: 20px; }
  .stg-feature__video { flex: 0 0 auto; border-radius: 4px; }
  .stg-feature__bar { height: 60px; padding: 0 14px 12px; }
  .stg-feature__bar h3 { font-size: 14px; line-height: 1.4; }

  /* 介绍面板：去掉米黄卡背景与圆角，仅保留段落文字（贴合 .m-stg-intro） */
  .stg-feature__panel {
    flex: none; width: auto;
    background: none; border-radius: 0; padding: 0;
  }
  .stg-feature__panel p { font-size: 14px; line-height: 1.7; -webkit-line-clamp: 5; }
  /* 移动稿没有"查看详情"链接，仅保留正文段 */
  .stg-feature__more { display: none; }

  /* 视频卡网格：3 列 → 2 列，字号 / 卡间距收紧（参考 .m-stg-grid + .m-stg-card） */
  .stg-grid { grid-template-columns: 1fr 1fr; gap: 16px 8px; }
  .stg-card__thumb { border-radius: 4px; }
  .stg-card__title {
    font-size: 13px; line-height: 1.5; margin-top: 8px;
    white-space: normal;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .stg-card__sub { font-size: 11px; line-height: 1.5; height: auto; margin-top: 4px; -webkit-line-clamp: 2; }

  /* 播放按钮：大尺寸缩到适合移动端的小圆 */
  .stg-play { width: 42px; height: 42px; }
  .stg-play::after { border-width: 8px 0 8px 13px; }
  .stg-play--sm { width: 29px; height: 29px; }
  .stg-play--sm::after { border-width: 5px 0 5px 9px; }

  /* ---------- 纪事 jishi（参考 .m-act + .m-timeline）---------- */
  /* 重要活动：用 :has 精确锁定 jishi 的活动区(后面紧跟含 .timeline 的 stg-section)，
     将 .stg-grid 改为单列列表，每张 .stg-card 改为 thumb 左 128×72 + 标题/副标题 右 */
  .stg-section:has(+ section.stg-section .timeline) .stg-grid {
    display: flex; flex-direction: column;
    grid-template-columns: none; gap: 0;
  }
  .stg-section:has(+ section.stg-section .timeline) .stg-card {
    display: grid;
    grid-template-columns: 128px 1fr;
    column-gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-divider);
    align-items: center;
  }
  .stg-section:has(+ section.stg-section .timeline) .stg-card:last-child { border-bottom: 0; }
  .stg-section:has(+ section.stg-section .timeline) .stg-card__thumb {
    grid-column: 1; grid-row: 1 / span 2;
    width: 128px; height: 72px;
    aspect-ratio: auto; border-radius: 4px; margin: 0;
  }
  .stg-section:has(+ section.stg-section .timeline) .stg-card__title {
    grid-column: 2; grid-row: 1; align-self: end;
    margin: 0;
    font-size: 14px; line-height: 1.5;
    white-space: normal; -webkit-line-clamp: 2;
    display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
  }
  .stg-section:has(+ section.stg-section .timeline) .stg-card__sub {
    grid-column: 2; grid-row: 2; align-self: start;
    margin: 4px 0 0;
    font-size: 12px; line-height: 1.5; height: auto;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }

  /* 大事记 timeline: 白卡包裹 + 紧凑布局（参考 .m-timeline）*/
  .timeline { background: #fff; border-radius: 8px; padding: 6px 16px; margin: 0 0 24px; }
  /* 关闭 PC 全局轨道线，改为每个 item 自带线段（参考 .m-tl-line::before）*/
  .timeline__track::before { display: none; }
  /* 关闭 PC 全局轨道线，改为每个 item 自带线段（参考 .m-tl-line::before）*/
  .timeline__track::before { display: none; }
  /* item：grid date 46 + line/gap 20(给 body 与虚线留出 14 间距) + body，padding 12/16 模拟 m-tl-body */
  .timeline__item { grid-template-columns: 46px 1fr; column-gap: 20px; padding: 12px 0 16px; min-height: 0; }
  /* dot：对齐 .m-tl-line::after —— 起点 top:18(相对 item 上沿)/ 8×8，灰圆 */
  .timeline__item::before { left: 48px; top: 18px; width: 8px; height: 8px; background: #a0a0a0; }
  /* 线段：对齐 .m-tl-line::before —— left 52 在 date/body 列之间，跨整 item 高度，首尾在 dot 处截断 */
  .timeline__item::after {
    content: ''; position: absolute;
    left: 52px; top: 0; bottom: 0; width: 0;
    border-left: 1px dashed var(--color-divider);
  }
  .timeline__item:first-child::after { top: 14px; }            /* 首段线起点（参考 .m-tl-item:first-child）*/
  .timeline__item:last-child::after  { bottom: auto; height: 18px; }   /* 末段线终止于 dot 处（参考 .m-tl-item:last-child）*/
  /* 日期：DIN 14px / 内 padding-top:2 → 与 item padding-top:12 合计 14，匹配 m-tl-date 的 padding-top:14 */
  .timeline__date { font-size: 14px; line-height: 1.4; padding-top: 2px; padding-bottom: 0; }
  .timeline__date span { display: inline; font-size: 12px; margin-left: 2px; font-weight: 400; }
  /* 用 display:contents 拆开 body，让 h4 / thumb / p 按设计稿顺序排在 col 2 三行 */
  .timeline__body { display: contents; }
  .timeline__body h4 { grid-column: 2; grid-row: 1; font-size: 14px; line-height: 1.5; margin: 0 0 8px; }
  .timeline__thumb  { grid-column: 2; grid-row: 2; width: 128px; aspect-ratio: 128 / 72; margin: 0 0 8px; }
  .timeline__body p { grid-column: 2; grid-row: 3; font-size: 12px; line-height: 1.7; color: var(--color-text-muted); height: auto; }
  /* year 也需要在 left:52 处画虚线，保持轨道连续不断 */
  .timeline__year { position: relative; font-size: 12px; padding: 4px 0; color: var(--color-text-muted); }
  .timeline__year::after {
    content: ''; position: absolute;
    left: 52px; top: 0; bottom: 0; width: 0;
    border-left: 1px dashed var(--color-divider);
  }

  /* ---------- 典藏 diancang（参考 .m-dc-show / .m-dc-tabs / .m-book-grid / .m-doc-grid）---------- */
  /* 介绍卡：PC 是白卡含「左图 + 右文」flex；移动改为单列堆叠 + 去固定高 + 去白卡背景 */
  .diancang-intro {
    flex-direction: column; height: auto;
    background: none; border-radius: 0;
    margin: 15px 0 22px;
  }
  .diancang-intro__img {
    flex: none; width: 100%; aspect-ratio: 363 / 201;
    border-radius: 8px; overflow: hidden; background: #beb39a;
  }
  .diancang-intro__meta { flex: none; padding: 0; }
  .diancang-intro__meta h3 {
    font-family: var(--font-sans);
    font-size: 14px; font-weight: 500;
    margin: 16px 0 8px;
  }
  .diancang-intro__meta p { font-size: 12px; line-height: 1.7; color: var(--color-text-muted); }

  /* tabs：PC 34px + 36×8 实色短下划线 → 移动 16px + 17×5 弯形下划线（参考 .m-dc-tabs）*/
  .dc-tabs { gap: 24px; margin-bottom: 0; padding: 8px 0 12px; }
  .dc-tabs a { font-size: 16px; padding-bottom: 6px; color: var(--color-text-muted); }
  .dc-tabs a.is-active { color: var(--color-brand); }
  .dc-tabs a.is-active::after {
    width: 17px; height: 5px; bottom: -6px;
    border-radius: 50%; background: none;
    border-bottom: 2px solid var(--color-brand);
  }

  /* 藏书阁书卡：5 列 → 2 列，每张白卡含 1:1 封面 + 标题/meta */
  .book-grid { grid-template-columns: 1fr 1fr; gap: 8px; padding-bottom: 16px; }
  .book-card { padding: 14px; }
  .book-card__title {
    font-size: 12px; margin: 12px 0 6px; white-space: normal;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .book-card__meta {
    font-size: 11px; margin: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
  }

  /* 数字文献馆：5 列 → 2 列；封面用横长图 1694/882，标题字号缩小 */
  .archive-grid { grid-template-columns: 1fr 1fr; gap: 8px; padding-bottom: 16px; }
  .archive-card { border-radius: 2px; }
  .archive-card__cover { padding: 10px; }
  .archive-card__title { font-size: 12px; margin: 10px 12px; }

  /* ---------- 新闻 xinwen ---------- */
  /* 主推 banner：PC aspect-ratio 1600/760 在窄屏偏高（393 下 ~187px），
     按移动稿改 363/136 扁横条；圆点指示器同步缩小 */
  .news-banner { aspect-ratio: 363 / 136; border-radius: 8px; margin-bottom: 16px; }
  .news-banner__dots { bottom: 12px; gap: 6px; }
  .news-banner__dots i { width: 5px; height: 5px; }

  /* 列表卡：PC 是白底圆角卡 + 40px 内边距；窄屏撤掉白底直接铺在 body 米黄色上，
     条目纯由分割线区分（设计稿样式） */
  .news-card { background: transparent; border-radius: 0; padding: 0; }

  /* 每条 item：保持 PC HTML 顺序（文字左 / thumb 右），thumb 缩到 128×72；
     标题改 14px 2 行可换；正文段在窄屏隐藏（设计稿没有），让列表更紧凑；
     分割线 PC dashed → 移动稿 solid #EBE5D8 */
  .news-item {
    gap: 12px;
    padding: 14px 0;
    align-items: flex-start;
    border-bottom-style: solid;
    border-bottom-color: #EBE5D8;
  }
  .news-item__body { flex: 1; min-width: 0; }
  .news-item__title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .news-item__meta { margin: 6px 0 0; font-size: 12px; gap: 12px; }
  .news-item__text { display: none; }
  .news-item__thumb {
    display: block;
    flex: 0 0 128px;
    width: 128px;
    aspect-ratio: 128 / 72;
    border-radius: 4px;
    margin: 0;
    order: -1;        /* HTML 顺序是 body→thumb，移动稿要求 thumb 在左 */
  }

  /* ---------- 文章 article（单 DOM 真响应式）---------- */
  .article { max-width: none; }
  .article__title { font-size: 22px; line-height: 1.5; }
  .article__body { font-size: 16px; line-height: 1.9; }

  /* ---------- 关于 about ---------- */
  /* 各 section 内边距收紧 */
  .about-section { padding-block: 24px; }
  /* 章节标题（主创团队 / 荣誉奖章 / 鸣谢单位）：34px → 16px Songti 棕色 */
  .about-section h2 {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-brand-deep);
    margin-bottom: 16px;
  }
  /* 分组标签（总顾问 / 学术顾问 / 特邀顾问）：禁用 PC 的 44px 巨字 ::before；
     主文字 28px → 14px 棕色；两侧装饰图缩小 43×24 → 22×12；
     默认上间距 36px，紧跟 h2 时压缩到 16px（设计稿 h2→label ≈ 14px / grid→label ≈ 50px） */
  .about-label { gap: 8px; margin: 36px 0 16px; }
  .about-section h2 + .about-label { margin-top: 16px; }
  .about-label span { font-size: 14px; font-weight: 600; }
  .about-label span::before { display: none; }
  .about-label__orn { width: 22px; height: 12px; }

  /* 主创团队 3 列；移动稿单格宽 116×140 + 文字区；任意条数整行居中 */
  .about-team-grid {
    grid-template-columns: repeat(auto-fit, calc((100% - 16px) / 3));
    gap: 24px 8px;
  }
  .about-person__photo { aspect-ratio: 116 / 140; border-radius: 4px; margin-bottom: 10px; }
  .about-person__name { font-size: 12px; font-weight: 600; color: var(--color-text-primary); }
  .about-person__role { font-size: 12px; line-height: 16px; color: var(--color-text-muted); margin-top: 6px; }

  /* 代言人小屏档 2 列；flex 已在 pages.css，这里只改宽度+间距 */
  .spokes-grid { gap: 12px; margin-top: 8px; }
  .spokes-card { width: calc((100% - 12px) / 2); }

  /* 荣誉奖章 2 列；卡片 178×158（badge 178×100 + 文字区）*/
  .honor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
  .honor-card__badge { aspect-ratio: 178 / 100; border-radius: 4px; margin-bottom: 10px; }
  .honor-card__name { font-size: 13px; line-height: 20px; }

  /* 鸣谢单位 2 列 */
  .thanks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }

  /* ---------- 搜索 search ---------- */
  .search-result__person { grid-template-columns: 1fr; gap: 12px; }
  .search-result__person img { width: 160px; }
}
