@charset "UTF-8";

/* ===== 文章详情+打赏 ===== */
/* 当前页导航高亮：由 channel currentstyle 自动处理（工具文档=全部工具，分享文章=个人分享） */



/* ===== Main ===== */

.main{

  padding-top:34px;

  display:flex;gap:48px;align-items:flex-start;

  /* 单页顶部可能有页面模块（面包屑等），需要换行放到正文上方；
     没有模块时这一行不起作用，不影响「正文 + 侧栏」的左右排布 */
  flex-wrap:wrap;

}

/* 单页的模块区独占一整行：main 是 flex 行，不声明宽度会被标题挤成一条窄柱 */
.page-blocks{flex:0 0 100%;min-width:0}

.article{flex:1;min-width:0;display:flex;flex-direction:column;gap:20px}

.breadcrumb{display:flex;align-items:center;gap:8px;font-size:13px;flex-wrap:wrap}

.breadcrumb span{color:var(--muted)}

.breadcrumb .sep{color:var(--muted-4)}

.breadcrumb a{color:var(--muted)}

.breadcrumb a:last-child{color:var(--blue);font-weight:500}

.breadcrumb .cur{color:var(--blue);font-weight:500}

.title{font-size:30px;line-height:42px;font-weight:700;color:var(--ink)}

.meta{display:flex;align-items:center;gap:12px}

.avatar{

  width:36px;height:36px;border-radius:50%;background:var(--tile);color:var(--blue);

  display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:600;flex-shrink:0;

}

.meta-text{display:flex;flex-direction:column;gap:3px}

.meta-text .author{font-size:13px;color:var(--ink);font-weight:500}

.meta-text .date{font-size:12px;color:var(--muted)}

.cover{

  width:100%;aspect-ratio:16/9;height:auto;max-height:420px;

  border-radius:var(--radius-card);overflow:hidden;flex-shrink:0;

  background:linear-gradient(135deg,var(--tile),#F2F7FC);

  display:flex;align-items:center;justify-content:center;

}

.cover span{color:var(--muted);font-size:14px}

.article-body{display:flex;flex-direction:column;gap:18px}

.article-body p{font-size:15px;line-height:28px;color:var(--ink-2)}

.article-body p:first-child{font-size:16px;line-height:30px}

.article-body h2{font-size:21px;font-weight:700;color:var(--ink);margin-top:6px}

.article-body h3{font-size:17px;font-weight:600;color:var(--ink)}

.article-body blockquote{

  background:var(--tile);border-radius:var(--radius-card);padding:20px;

  font-size:15px;line-height:26px;color:#2B4A78;font-weight:500;

}

.article-body ul,.article-body ol{padding-left:22px;font-size:15px;line-height:28px;color:var(--ink-2)}

.article-body a{color:var(--blue)}

/* 正文内视频：自适应宽度，保持 16:9 */
.article-body .video-embed{
  margin:6px 0 18px;border-radius:14px;overflow:hidden;background:#0F172A;
  box-shadow:0 8px 24px -14px rgba(15,23,42,.35);
}
.article-body .video-embed video{
  width:100%;display:block;aspect-ratio:16/9;object-fit:contain;background:#0F172A;
}
.article-body video{max-width:100%;border-radius:14px}

.tags{display:flex;gap:10px;flex-wrap:wrap}

.video-tip{

  font-size:13px;line-height:22px;color:#8A5A12;

  background:#FFF8EC;border:1px solid #F5E2C0;border-radius:10px;

  padding:10px 14px;

}

.tag{

  font-size:13px;color:var(--ink-2);background:var(--chip);

  border:1px solid var(--line);border-radius:var(--radius-chip);

  padding:7px 16px;cursor:pointer;transition:.15s;

}

.tag:hover{border-color:var(--blue);color:var(--blue)}



/* Share bar */

.share-bar{

  display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;

  background:var(--tile);border:1px solid var(--line-soft);

  border-radius:var(--radius-card);padding:15px 20px;

}

.share-hint{display:flex;align-items:center;gap:9px;font-size:14px;color:var(--ink-2);font-weight:500}

.share-hint svg{width:19px;height:19px;color:var(--blue)}

.share-actions{display:flex;gap:10px}

.share-btn{

  width:38px;height:38px;border-radius:50%;

  display:flex;align-items:center;justify-content:center;

  background:#fff;border:1px solid var(--line);color:var(--ink-2);

  text-decoration:none;cursor:pointer;transition:.18s;

}

.share-btn svg{width:20px;height:20px}

.share-btn:hover{transform:translateY(-2px);color:#fff;border-color:transparent}

.share-btn[data-share="wechat"]:hover{background:#07c160}

.share-btn[data-share="weibo"]:hover{background:#e6162d}

.share-btn[data-share="qq"]:hover{background:#12b7f5}

.share-btn[data-share="copy"]:hover{background:var(--blue)}

/* Share modal */

.share-modal{position:fixed;inset:0;z-index:1000;display:none;align-items:center;justify-content:center}

.share-modal.show{display:flex}

.share-modal-mask{position:absolute;inset:0;background:rgba(17,24,39,.55);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}

.share-modal-box{

  position:relative;background:#fff;border-radius:18px;padding:28px 30px 24px;

  width:320px;max-width:calc(100vw - 40px);text-align:center;

  box-shadow:0 24px 60px rgba(0,0,0,.25);

  animation:sharePop .22s ease;

}

@keyframes sharePop{from{opacity:0;transform:translateY(12px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}

.share-modal-close{

  position:absolute;top:12px;right:14px;width:28px;height:28px;border-radius:50%;

  display:flex;align-items:center;justify-content:center;

  font-size:20px;color:var(--muted);cursor:pointer;line-height:1;

}

.share-modal-close:hover{background:#f3f4f6;color:var(--ink)}

.share-modal-title{font-size:16px;font-weight:600;color:var(--ink);margin-bottom:14px}

.share-modal-qr{

  width:210px;height:210px;margin:0 auto;border-radius:12px;overflow:hidden;

  border:1px solid var(--line-soft);background:#fff;

}

.share-modal-qr img{width:100%;height:100%;object-fit:contain;display:block}

.share-modal-tip{margin-top:14px;font-size:13px;color:var(--muted);line-height:18px}

/* Toast */

.share-toast{

  position:fixed;left:50%;bottom:54px;transform:translateX(-50%) translateY(16px);

  background:rgba(17,24,39,.92);color:#fff;font-size:13px;

  padding:11px 22px;border-radius:24px;z-index:1100;

  opacity:0;pointer-events:none;transition:.25s;white-space:nowrap;

}

.share-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

@media (max-width:640px){

  .share-bar{flex-direction:column;align-items:flex-start;gap:13px}

  .share-actions{width:100%;justify-content:space-between}

}



/* Sidebar */

.sidebar{width:320px;flex-shrink:0;display:flex;flex-direction:column;gap:16px}

/* ===== PC 端侧栏悬浮：滚动长文时始终留在视口里 =====
   桌面端（>900px，与 .main 左右排布的断点一致）把侧栏钉在视口上，用户滚到文章
   中段、末尾都能看到并点击侧栏模块；手机/平板（<=900px）完全不变。
   这里用 sticky 而不是 fixed：仍占着原来的位置，因此不会盖住正文、不用 JS 同步
   宽度，侧栏底边也会被 .main 的下边界自然收住，不会压到页脚。
   --yx-hd 是顶部固定导航（含阅读进度条）实际压住的高度，由 common.js 写入。 */
@media (min-width:901px){
  .read-page .sidebar{
    position:sticky;
    top:calc(var(--yx-hd,0px) + 16px);
    /* 可用高度要同时让开顶部固定层和页脚：sticky 只能在 .main 里活动，
       滚到文档末尾时 .main 的下边界会被页脚顶上来，不预留就会被截掉一截。
       --yx-foot 由 common.js 量出「.main 之后还剩多高」（页脚等）。 */
    max-height:calc(100vh - var(--yx-hd,0px) - var(--yx-foot,0px) - 24px);
    /* 侧栏内容比视口高时在自身内部滚动，页面照常往下走 */
    overflow-y:auto;
    overflow-x:hidden;
    /* 上下留出卡片的发光/阴影空间（配合负 margin 不改变排版位置），
       右侧 8px 让滚动条落在留白里，基本不会压到卡片圆角 */
    padding:10px 8px 2px 2px;
    margin:-8px 0 0 -2px;
    scrollbar-width:thin;
    scrollbar-color:rgba(148,163,184,.45) transparent;
  }
  .read-page .sidebar::-webkit-scrollbar{width:6px}
  .read-page .sidebar::-webkit-scrollbar-thumb{
    background:rgba(148,163,184,.4);border-radius:3px;
  }
  .read-page .sidebar::-webkit-scrollbar-track{background:transparent}
  /* 侧栏高度被 max-height 收住后，flex 子项默认会被压扁，这里让它们保持原高 */
  .read-page .sidebar > *{flex:0 0 auto}
  /* 整个侧栏已经固定在视口里，里面的目录不必再单独吸顶：
     否则它会以侧栏滚动区为参照，滑上去叠在打赏卡上 */
  .read-page .sidebar .blk-toc.is-sticky{position:static;top:auto}
}

.card{border-radius:var(--radius-card);padding:20px}

/* 打赏卡片 */

.reward-card{

  background:linear-gradient(135deg,#fff7ed 0%,#ffffff 62%);

  border:1px solid var(--line-soft);

  display:flex;flex-direction:column;align-items:center;gap:9px;text-align:center;

}

.reward-heart{

  width:46px;height:46px;border-radius:50%;

  background:linear-gradient(135deg,#f59e0b,#ef4444);

  display:flex;align-items:center;justify-content:center;color:#fff;

  box-shadow:0 4px 14px rgba(245,158,11,.32);

}

.reward-heart svg{width:25px;height:25px}

.reward-title{font-size:14px;font-weight:600;color:var(--ink)}

.reward-desc{font-size:12px;line-height:17px;color:var(--muted);padding:0 2px}

.reward-btn{

  margin-top:2px;display:inline-flex;align-items:center;gap:6px;

  padding:8px 28px;border-radius:999px;border:none;cursor:pointer;

  background:linear-gradient(135deg,#f59e0b,#ef4444);color:#fff;

  font-size:13px;font-weight:600;

  box-shadow:0 4px 12px rgba(239,68,68,.28);

  transition:transform .15s ease, box-shadow .15s ease;

}

.reward-btn:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(239,68,68,.38)}

.reward-btn:active{transform:translateY(0)}

.reward-btn svg{width:15px;height:15px}

/* 打赏弹窗 */

.reward-modal{position:fixed;inset:0;z-index:1000;display:none;align-items:center;justify-content:center}

.reward-modal.show{display:flex}

.reward-modal-mask{position:absolute;inset:0;background:rgba(17,24,39,.55);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}

.reward-modal-box{

  position:relative;width:360px;max-width:calc(100vw - 40px);

  background:#fff;border-radius:18px;padding:24px 24px 22px;

  display:flex;flex-direction:column;align-items:center;

  box-shadow:0 24px 60px rgba(0,0,0,.25);

  animation:rewardPop .22s ease;

}

@keyframes rewardPop{from{opacity:0;transform:translateY(12px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}

.reward-modal-close{

  position:absolute;top:12px;right:14px;width:28px;height:28px;border-radius:50%;

  display:flex;align-items:center;justify-content:center;

  color:var(--muted);cursor:pointer;font-size:18px;line-height:1;

}

.reward-modal-close:hover{background:#f3f4f6;color:var(--ink)}

.reward-modal-title{font-size:16px;font-weight:600;color:var(--ink);margin-bottom:4px}

.reward-modal-sub{font-size:12px;color:var(--muted);margin-bottom:16px}

.reward-tabs{display:flex;gap:8px;margin-bottom:18px}

.reward-tab{

  display:inline-flex;align-items:center;gap:6px;

  padding:7px 18px;border-radius:999px;cursor:pointer;

  font-size:13px;font-weight:500;color:var(--muted);background:#f3f4f6;

  transition:background .15s ease,color .15s ease;

}

.reward-tab svg{width:16px;height:16px}

.reward-tab.active-wechat{background:#07c160;color:#fff}

.reward-tab.active-alipay{background:#1677ff;color:#fff}

.reward-qr{

  width:220px;height:220px;border-radius:14px;padding:12px;

  border:1px solid var(--line-soft);background:#fff;

  display:flex;align-items:center;justify-content:center;

}

.reward-qr img{width:100%;height:100%;object-fit:contain;display:none}

.reward-qr img.show{display:block}

.reward-modal-tip{margin-top:14px;font-size:13px;color:var(--muted);text-align:center}

.reward-modal-tip b{color:var(--ink);font-weight:600}

.rel-card{background:var(--panel);display:flex;flex-direction:column;gap:12px}

.rel-head{display:flex;align-items:center;justify-content:space-between}

.rel-title{font-size:14px;font-weight:600;color:var(--ink)}

.rel-all{font-size:12px;color:var(--blue);cursor:pointer}

.rel-item{display:flex;align-items:flex-start;gap:10px;cursor:pointer;padding:4px 0}

.rel-item:hover .rel-name{color:var(--blue)}

.rel-icon{

  width:34px;height:34px;border-radius:10px;background:#fff;flex-shrink:0;

  display:flex;align-items:center;justify-content:center;color:var(--blue);

}

.rel-icon svg{width:20px;height:20px}

.rel-text{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}

.rel-name{

  font-size:13px;line-height:19px;color:var(--ink);font-weight:500;

  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;

}

.rel-desc{font-size:11px;color:var(--muted-2);display:flex;align-items:center;gap:5px}

.rel-desc .r-cat{color:var(--blue);font-weight:500}

.rel-desc .r-dot{color:var(--muted-4)}



/* 相关推荐 · 视频列表样式：左边 16:9 缩略图带播放角标，右边标题 + 栏目/观看量 */

.rel-card.is-video{gap:11px}

.rel-vitem{display:flex;align-items:flex-start;gap:10px;padding:2px 0;cursor:pointer;min-width:0}

.rel-vthumb{

  position:relative;flex:0 0 116px;width:116px;aspect-ratio:16/9;border-radius:8px;overflow:hidden;

  background:linear-gradient(135deg,#EAF1FC,#D6E4F9);box-shadow:inset 0 0 0 1px rgba(15,23,42,.05);

}

.rel-vthumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .45s cubic-bezier(.2,.8,.25,1)}

.rel-vitem:hover .rel-vthumb img{transform:scale(1.06)}

.rel-vplay{

  position:absolute;left:50%;top:50%;width:26px;height:26px;margin:-13px 0 0 -13px;

  display:flex;align-items:center;justify-content:center;border-radius:50%;

  background:rgba(9,17,31,.52);transition:background .2s ease,transform .2s ease;

}

.rel-vplay svg{width:11px;height:11px;fill:#fff;margin-left:1.5px}

.rel-vitem:hover .rel-vplay{background:var(--blue);transform:scale(1.08)}

.rel-vtext{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}

.rel-vname{

  font-size:13px;line-height:19px;color:var(--ink);font-weight:500;

  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;

  transition:color .16s ease;

}

.rel-vitem:hover .rel-vname{color:var(--blue)}

.rel-vmeta{font-size:11px;color:var(--muted-2);display:flex;align-items:center;gap:5px;line-height:15px}

.rel-vmeta .r-cat{color:var(--blue);font-weight:500}

.rel-vmeta .r-dot{color:var(--muted-4)}

@media (max-width:479px){

  .rel-vthumb{flex-basis:104px;width:104px}

}

@media (prefers-reduced-motion:reduce){

  .rel-vthumb img,.rel-vplay,.rel-vname{transition:none}

}



/* 上一篇/下一篇 上下文导航 */

.prenext{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:28px}

.pn-link{

  display:flex;flex-direction:column;gap:6px;padding:13px 16px;min-width:0;

  border:1px solid var(--line-soft);border-radius:12px;background:#fff;

  transition:border-color .15s ease, box-shadow .15s ease;

}

a.pn-link:hover{border-color:var(--blue);box-shadow:0 4px 12px rgba(37,99,235,.1)}

.pn-label{font-size:11px;color:var(--muted);line-height:1}

.pn-title{

  font-size:13px;font-weight:500;color:var(--ink);line-height:19px;

  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word;

}

a.pn-link:hover .pn-title{color:var(--blue)}

.pn-empty{opacity:.6}

.prenext .pn-next{align-items:flex-end;text-align:right}

.prenext .pn-next .pn-title{text-align:right}

@media (max-width:640px){.prenext{grid-template-columns:1fr}}



/* ===== 页面响应式 ===== */

@media (max-width:1080px){

  .main{gap:32px}

  .sidebar{width:280px}

}

@media (max-width:900px){

  /* 变纵向之后子项会按内容宽度收缩：单页的模块区 .page-blocks 只有 flex-basis:100%
     （纵向时作用于高度），宽度于是被内层的 .blk-col{width:100%} 循环解析成 0，
     整页模块被挤成一条竖线。这里统一撑满。 */
  .main{flex-direction:column;gap:24px;align-items:stretch}

  .page-blocks{width:100%;min-width:0}

  .sidebar{width:100%}

  .cover{height:220px}

}

@media (max-width:640px){

  .title{font-size:24px;line-height:34px}

  .cover{height:180px}

}

/* ===== 留言 / 投稿表单 ===== */

.msg-form{

  margin-top:26px;padding:26px;border-radius:16px;background:#fff;

  border:1px solid var(--line);box-shadow:0 12px 32px -24px rgba(15,23,42,.3);

}

.mf-title{font-size:18px;font-weight:700;color:var(--ink)}

.mf-sub{font-size:13px;color:var(--muted);margin-top:7px;line-height:1.75}

.mf-field{margin-top:16px}

.mf-field label{display:block;font-size:13px;color:var(--ink-2);margin-bottom:7px;font-weight:500}

.mf-field input,.mf-field select,.mf-field textarea{

  width:100%;box-sizing:border-box;display:block;

  border:1px solid var(--line);border-radius:10px;height:44px;

  padding:0 14px;font-size:14px;font-family:var(--font);

  background:#fff;color:var(--ink);outline:none;transition:border-color .15s;

}

.mf-field textarea{height:auto;padding:11px 14px;line-height:1.75;resize:vertical}

.mf-field select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--muted-3) 50%),linear-gradient(135deg,var(--muted-3) 50%,transparent 50%);background-position:calc(100% - 18px) 19px,calc(100% - 13px) 19px;background-size:5px 5px,5px 5px;background-repeat:no-repeat;padding-right:34px}

.mf-field input:focus,.mf-field select:focus,.mf-field textarea:focus{border-color:var(--blue)}

.mf-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}

.mf-actions{display:flex;align-items:center;gap:14px;margin-top:22px;flex-wrap:wrap}

.mf-btn{

  height:44px;padding:0 28px;border:0;border-radius:11px;

  background:var(--blue);color:#fff;font-size:14px;font-weight:600;

  font-family:var(--font);cursor:pointer;transition:.15s;

}

.mf-btn:hover{background:#1D4ED8}

.mf-hint{font-size:12px;color:var(--muted-3)}

.mf-alert{margin-top:14px;padding:11px 14px;border-radius:10px;font-size:13px;line-height:1.65}

.mf-ok{background:#ECFDF5;border:1px solid #BBF0D6;color:#047857}

.mf-err{background:#FEF2F2;border:1px solid #FBD5D5;color:#B91C1C}

@media (max-width:640px){

  .msg-form{padding:18px;margin-top:20px}

  .mf-row{grid-template-columns:1fr;gap:0}

}



/* ===== 弹层按钮重置（改用 button 后的默认样式） ===== */

.reward-modal-close,.share-modal-close{border:0;background:transparent;padding:0;font-family:var(--font)}

.reward-tab{border:0;font-family:var(--font)}

/* ===== 分享二维码容器 ===== */

.share-modal-qr{display:flex;align-items:center;justify-content:center}

.share-modal-qr canvas,.share-modal-qr img{width:100% !important;height:100% !important;object-fit:contain;display:block}

@media (max-width:640px){

  .share-actions{gap:8px}

  .reward-modal-box{padding:22px 18px 18px}

  .reward-qr{width:190px;height:190px}

}

/* ===== 草稿提示条 ===== */

.pg-draft-bar{
  margin-bottom:20px;padding:12px 16px;border-radius:11px;
  background:#FFFBEB;border:1px solid #FDE68A;color:#92400E;
  font-size:13px;line-height:1.7;
}
.pg-draft-bar b{color:#B45309}

/* ============ 正文卡片：文字 / 线框 / 图文 / 多图轮播 ============ */
.article-body .ac-card{
  --ac:#2563EB;--ac-soft:#EFF4FE;--ac-line:#C7DBFB;--ac-ink:#1B3E84;
  position:relative;
  /* 卡片之间已经有自然间隙，别再叠外边距，否则一组卡片会被拉得很散 */
  margin:0;
}
/* 分节标题（核心功能 / 常见问题）与上面那组卡片拉开 */
.article-body .ac-card + h2{margin-top:26px}
.article-body h2 + .ac-card{margin-top:2px}
.article-body .ac-card[data-tone="green"]{--ac:#059669;--ac-soft:#E7F7F0;--ac-line:#B8E7D4;--ac-ink:#0B6B4B}
.article-body .ac-card[data-tone="orange"]{--ac:#EA7A16;--ac-soft:#FFF3E6;--ac-line:#FBD7AE;--ac-ink:#8A4A0B}
.article-body .ac-card[data-tone="purple"]{--ac:#7C4DFF;--ac-soft:#F1ECFF;--ac-line:#D8CBFB;--ac-ink:#4A2C9E}
.article-body .ac-card[data-tone="gray"]{--ac:#64748B;--ac-soft:#F1F5F9;--ac-line:#D8E1EA;--ac-ink:#334155}

.article-body .ac-card[data-radius="0"]{border-radius:0}
.article-body .ac-card[data-radius="8"]{border-radius:8px}
.article-body .ac-card[data-radius="14"]{border-radius:14px}
.article-body .ac-card[data-radius="20"]{border-radius:20px}
.article-body .ac-card[data-radius="24"]{border-radius:24px}

.article-body .ac-card .ac-eyebrow{
  display:inline-block;font-size:12px;font-weight:600;letter-spacing:.04em;
  color:var(--ac);background:#fff;border-radius:999px;padding:3px 11px;margin-bottom:9px;
}
.article-body .ac-card .ac-title{font-size:16.5px;font-weight:700;color:var(--ac-ink);line-height:1.55}
.article-body .ac-card p,
.article-body .ac-card p:first-child{font-size:15px;line-height:27px;color:#3B4A5F;margin:8px 0 0}
.article-body .ac-card img{margin:0;border-radius:0;max-width:100%}

/* 卡片内的数据网格（实测数据卡）：两列排布，窄屏自动一条一行，
   避免「92% 引用提升率」被折成两行 */
.article-body .ac-card .ac-stats{
  display:grid;grid-template-columns:1fr 1fr;gap:4px 20px;margin-top:10px;
}
.article-body .ac-card .ac-stats span{
  font-size:15px;line-height:1.85;color:#3B4A5F;
}
.article-body .ac-card .ac-stats b{
  font-size:16.5px;font-weight:700;color:var(--ac);margin-right:7px;
}
.article-body .ac-text[data-variant="solid"] .ac-stats span{color:rgba(255,255,255,.94)}
.article-body .ac-text[data-variant="solid"] .ac-stats b{color:#fff}
@media (max-width:560px){
  .article-body .ac-card .ac-stats{grid-template-columns:1fr;gap:2px}
}

/* 文字卡片 */
.article-body .ac-text{background:var(--ac-soft);border:1px solid var(--ac-line);padding:18px 20px}
.article-body .ac-text[data-variant="solid"]{background:var(--ac);border-color:var(--ac);box-shadow:0 12px 26px -18px var(--ac)}
.article-body .ac-text[data-variant="solid"] .ac-title,
.article-body .ac-text[data-variant="solid"] p,
.article-body .ac-text[data-variant="solid"] p:first-child{color:#fff}
.article-body .ac-text[data-variant="solid"] .ac-eyebrow{background:rgba(255,255,255,.22);color:#fff}
.article-body .ac-text[data-variant="plain"]{background:#fff;border:1px solid var(--ac-line)}

/* 线框卡片 */
.article-body .ac-line{background:#fff;border:1px solid var(--ac-line);padding:18px 20px}
.article-body .ac-line[data-dash="1"]{border-style:dashed}
.article-body .ac-line .ac-title{color:var(--ac)}

/* 图文卡片 */
.article-body .ac-media{
  display:flex;gap:18px;align-items:stretch;padding:14px;
  background:#fff;border:1px solid var(--line-soft);
}
.article-body .ac-media .ac-pic{flex:0 0 38%;border-radius:10px;overflow:hidden;background:var(--tile);min-height:104px}
.article-body .ac-media .ac-pic img{width:100%;height:100%;object-fit:cover;display:block}
.article-body .ac-media .ac-bd{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center}
.article-body .ac-media .ac-bd .ac-title{font-size:16px}
.article-body .ac-media[data-layout="right"]{flex-direction:row-reverse}
.article-body .ac-media[data-layout="top"]{display:block}
.article-body .ac-media[data-layout="top"] .ac-pic{width:100%;aspect-ratio:16/9;min-height:0;margin-bottom:14px}
.article-body .ac-media[data-layout="top"] .ac-bd{padding:0 4px 4px}

/* 多图轮播 */
.article-body .ac-gal{padding:0;background:transparent;overflow:hidden}
.article-body .ac-gal-track{
  display:flex;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;
  scrollbar-width:none;background:var(--ac-soft);
}
.article-body .ac-gal-track::-webkit-scrollbar{display:none}
.article-body .ac-gal-item{flex:0 0 100%;scroll-snap-align:start;margin:0}
.article-body .ac-gal[data-ratio="16:9"] .ac-gal-item img{aspect-ratio:16/9}
.article-body .ac-gal[data-ratio="4:3"] .ac-gal-item img{aspect-ratio:4/3}
.article-body .ac-gal[data-ratio="1:1"] .ac-gal-item img{aspect-ratio:1/1}
.article-body .ac-gal-item img{width:100%;height:auto;object-fit:cover;display:block}

/* 轮播圆点与箭头（由 cards.js 生成） */
.article-body .ac-gal-dots{
  position:absolute;left:0;right:0;bottom:10px;display:flex;gap:6px;justify-content:center;pointer-events:none;
}
.article-body .ac-gal-dot{
  width:7px;height:7px;border-radius:50%;border:0;padding:0;cursor:pointer;pointer-events:auto;
  background:rgba(255,255,255,.55);box-shadow:0 1px 3px rgba(15,23,42,.3);transition:.18s;
}
.article-body .ac-gal-dot.on{background:#fff;width:18px;border-radius:4px}
.article-body .ac-gal-btn{
  position:absolute;top:50%;transform:translateY(-50%);width:34px;height:34px;border-radius:50%;
  border:0;cursor:pointer;display:flex;align-items:center;justify-content:center;
  background:rgba(15,23,42,.42);color:#fff;font-size:17px;line-height:1;
  opacity:0;transition:.2s;
}
.article-body .ac-gal:hover .ac-gal-btn{opacity:1}
.article-body .ac-gal-btn[data-dir="prev"]{left:10px}
.article-body .ac-gal-btn[data-dir="next"]{right:10px}
.article-body .ac-gal-btn:hover{background:rgba(15,23,42,.62)}

/* 移动端 */
@media (max-width:720px){
  .article-body .ac-text,
  .article-body .ac-line{padding:15px 16px}
  .article-body .ac-card .ac-title{font-size:16px}
  .article-body .ac-card p,
  .article-body .ac-card p:first-child{font-size:15px;line-height:26px}
  .article-body .ac-media{display:block;padding:11px}
  .article-body .ac-media .ac-pic{width:100%;aspect-ratio:16/9;min-height:0;margin-bottom:12px}
  .article-body .ac-media[data-layout="right"] .ac-pic{margin:12px 0 0}
  .article-body .ac-gal-btn{display:none}
}

/* 详情页页面设计模块区（标题与正文之间） */
.article-blocks{margin:4px 0 2px}
.article-blocks .blk{margin-bottom:22px}
.article-blocks .blk:last-child{margin-bottom:0}

/* 正文之后的模块区：和正文拉开一点距离 */
.article-blocks-end,.page-blocks-end{margin:26px 0 6px}

/* ===== 宽屏阅读优化 =====
   卡片页（首页/列表）跟着大屏一起变宽是好事，长文页不是：
   一行字一多，眼睛回行就会串行。所以长文页给自己设一个比首页更低的上限
   （首页放到 1560px，这里 1320/1400），再把侧栏同步加宽把空间用掉，
   避免「正文很窄、旁边挂一条大空白」。正文同时微调字号，让行宽/字号比保持稳定。
   注意上限必须低于首页容器：否则长文页会比首页还宽，翻页时左右边线会跳。 */
.article-body img{max-width:100%;height:auto}

@media (min-width:1360px){
  .container.read-page{max-width:1320px}
  .read-page .sidebar{width:340px}
  .read-page .article{max-width:none}
  .read-page .article-body p{font-size:16px;line-height:30px}
  .read-page .article-body p:first-child{font-size:16.5px;line-height:32px}
  .read-page .article-body ul,
  .read-page .article-body ol{font-size:16px;line-height:30px}
  .read-page .article-body h2{font-size:22px}
  .read-page .article-body h3{font-size:17.5px}
}

@media (min-width:1920px){
  .container.read-page{max-width:1400px}
  .read-page .sidebar{width:360px}
  .read-page .article-body p{font-size:16px;line-height:31px}
  .read-page .article-body p:first-child{font-size:17px;line-height:33px}
  .read-page .article-body ul,
  .read-page .article-body ol{font-size:16px;line-height:31px}
  .read-page .article-body h2{font-size:23px}
  .read-page .article-body h3{font-size:18.5px}
  .read-page .article-body blockquote{font-size:16px;line-height:31px}
}
