/* 杏和文章页通用排版 base v4 */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{font-family:"Songti SC","Noto Serif SC",Georgia,system-ui,"Microsoft YaHei",serif;
  line-height:1.9;color:#2f2a24;background:#fff;margin:0;
  padding:14px 18px 110px;max-width:820px;margin-left:auto;margin-right:auto;
  font-size:19px;word-break:break-word;overflow-wrap:break-word}
img,video,iframe,svg{max-width:100%;height:auto;border-radius:6px}
figure{margin:1em 0}
table{width:100%;border-collapse:collapse;font-size:.95em}
td,th{border:1px solid #e3d9c6;padding:6px 8px}
.xh-tw{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:1em 0}
h1{font-size:1.5em;line-height:1.4;letter-spacing:.02em}
h2{font-size:1.3em;line-height:1.45}
h3{font-size:1.16em;line-height:1.5}
h4{font-size:1.05em}
p{margin:0 0 .85em}
blockquote{margin:1em 0;padding:.4em 0 .4em 14px;border-left:3px solid #a8763e;color:#5a5147}
hr{border:0;border-top:1px solid #e3d9c6;margin:1.6em 0}
a{color:#8B4513}
/* 顶部品牌条 */
.xh-top-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  padding:10px 14px;margin:-14px -18px 14px;border-bottom:2px solid #8B4513;
  background:#fffdf8;font:15px/1.4 system-ui,-apple-system,"Microsoft YaHei",sans-serif;
  position:relative;z-index:1}
.xh-top-bar .xh-brand{font-weight:700;color:#8B4513;font-size:17px;letter-spacing:.04em}
.xh-top-bar a{color:#8B4513;text-decoration:none;padding:2px 6px;border:1px solid #e3d9c6;border-radius:4px;background:#fff}
.xh-top-bar a:active{background:#f3ede2}
/* 手机端：满宽 + 收紧留白 + 页面自带吸顶标题不再压正文 */
@media (max-width:820px){
  body{max-width:none!important;width:auto!important;padding:12px 15px 110px!important;font-size:19px}
  body>div,body>section,body>article{max-width:none!important;width:auto!important}
  section,div,article,p,ul,ol,dl,figure,blockquote,table,img,video,iframe{max-width:100%!important}
  .xh-tw{max-width:100%!important;overflow-x:auto!important}
  .xh-top-bar{margin:-12px -15px 12px;padding:9px 12px}
  table{font-size:14px}
  /* 关键：页头不再吸顶，随页面滚走，绝不盖住正文 */
  body>.header,body>header,body>.xh-header,body>.顶,body>.top-bar,body>.page-header,body>nav,body>.nav{
    position:static!important;top:auto!important;bottom:auto!important;z-index:auto!important}
  /* 卡顿治理：去掉毛玻璃/重模糊，固定层不再触发重绘 */
  body>nav,body>.顶,body>.header,body>header,body>.xh-header,body>.top-bar{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
  img{decoding:async}
  :target{scroll-margin-top:8px}
}
/* 翻页模式隐藏页顶栏 */
html.xh-page .xh-top-bar{display:none!important}
