/* ported from newsroom 布局，按客户提供博客稿调整 — 博客页样式
   作用域 [data-wz]#news-page：带 id 的作用域可压过 components.css 里同名的全局规则 */

[data-wz]#news-page{
  --brand-strong:#1687cf;
  --paper:#f5f9fc;
  --ease:cubic-bezier(.22,.61,.36,1);
  --news-gap:32px;
}

/* 页头横幅已按客户要求移除（原 .news-hero 页头规则随之一并删除）。
   注意：.news-hero-card / .news-hero-media / .news-hero-copy 等类是精选大卡在复用，不可删。 */
[data-wz]#news-page .news-hero-copy{max-width:600px;margin:24px 0 0;color:var(--muted);font-size:14px;line-height:1.85}

/* ============================== 精选大卡 + Latest post ============================== */
[data-wz]#news-page .news-top{padding:56px 0 30px;border-bottom:1px solid var(--line)}
[data-wz]#news-page .news-top-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,1fr);gap:var(--news-gap);align-items:start}

[data-wz]#news-page .news-hero-card{position:relative;display:block;aspect-ratio:5/4;border-radius:18px;overflow:hidden;background:#0f2b3d;isolation:isolate}
[data-wz]#news-page .news-hero-media{position:absolute;inset:0}
[data-wz]#news-page .news-hero-media img{width:100%;height:100%;object-fit:cover;transition:transform .8s var(--ease)}
[data-wz]#news-page .news-hero-card:hover .news-hero-media img{transform:scale(1.035)}
[data-wz]#news-page .news-hero-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(9,30,45,0) 34%,rgba(9,30,45,.34) 58%,rgba(9,30,45,.82) 100%)}
[data-wz]#news-page .news-hero-copy{position:absolute;left:0;right:0;bottom:0;z-index:1;display:grid;gap:12px;justify-items:start;padding:26px 30px}
[data-wz]#news-page .news-hero-copy h2{margin:0;color:#fff;font-size:clamp(19px,1.75vw,26px);font-weight:560;line-height:1.32;letter-spacing:-.02em}

/* 分类胶囊（卡片上的小圆点标签） */
[data-wz]#news-page .news-tag{display:inline-flex;align-items:center;gap:8px;padding:7px 14px;border-radius:999px;background:#ffffffe8;color:#31536a;font-size:11px;font-weight:650;line-height:1}
[data-wz]#news-page .news-tag i{width:7px;height:7px;border-radius:50%;background:var(--brand)}
[data-wz]#news-page .news-hero-copy .news-tag{background:#ffffffee}

[data-wz]#news-page .news-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px;color:#7b93a3;font-size:11px;line-height:1.5}
[data-wz]#news-page .news-hero-copy .news-meta{color:#c9dcea}
[data-wz]#news-page .news-meta i{font-style:normal;opacity:.7}

[data-wz]#news-page .news-latest{display:grid;gap:6px;align-content:start}
[data-wz]#news-page .news-latest-title{margin:4px 0 12px;font-size:20px;font-weight:600;letter-spacing:-.03em}
[data-wz]#news-page .news-latest-item{display:grid;grid-template-columns:84px minmax(0,1fr);gap:16px;align-items:center;padding:12px 10px;border-radius:14px;transition:background .2s var(--ease)}
[data-wz]#news-page .news-latest-item:hover{background:#f2f9fd}
[data-wz]#news-page .news-latest-thumb{display:block;width:84px;aspect-ratio:1/1;border-radius:12px;overflow:hidden;background:linear-gradient(140deg,#eaf3f9,#dceaf4)}
[data-wz]#news-page .news-latest-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .5s var(--ease)}
[data-wz]#news-page .news-latest-item:hover .news-latest-thumb img{transform:scale(1.06)}
[data-wz]#news-page .news-latest-copy{display:grid;gap:8px}
[data-wz]#news-page .news-latest-copy h3{margin:0;font-size:13.5px;font-weight:560;line-height:1.42;letter-spacing:-.01em;color:var(--ink);transition:color .2s}
[data-wz]#news-page .news-latest-item:hover .news-latest-copy h3{color:#0f74ad}

/* ============================== 栏目区（标题 + 箭头 + 卡片轨道） ============================== */
[data-wz]#news-page .news-section{padding:54px 0 0}
[data-wz]#news-page .news-section-head{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:26px}
[data-wz]#news-page .news-section-head h2{margin:0;font-size:30px;font-weight:560;line-height:1.15;letter-spacing:-.04em}
[data-wz]#news-page .news-track-nav{display:flex;gap:10px}
[data-wz]#news-page .news-track-arrow{
  display:inline-grid;place-items:center;width:42px;height:42px;border:1px solid #c9dbe7;border-radius:50%;
  background:#fff;color:#31536a;cursor:pointer;transition:border-color .2s,background .2s,color .2s,opacity .2s;
}
[data-wz]#news-page .news-track-arrow svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
[data-wz]#news-page .news-track-arrow:hover{border-color:#9dcce8;background:#edf8ff;color:#0878b7}
[data-wz]#news-page .news-track-arrow:disabled{opacity:.38;cursor:default;pointer-events:none}

[data-wz]#news-page .news-track{
  display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 48px) / 3);gap:24px;
  overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;
  padding:2px 2px 8px;scrollbar-width:none;
}
[data-wz]#news-page .news-track::-webkit-scrollbar{display:none}
[data-wz]#news-page .news-track .news-card{scroll-snap-align:start}

/* 栏目卡片：浅底卡 + 内嵌圆角图 + 分类胶囊 + 标题 + 摘要 + 时间 */
[data-wz]#news-page .news-card{
  position:relative;display:flex;flex-direction:column;gap:12px;min-width:0;
  padding:14px 14px 18px;border-radius:16px;background:#f7fafc;
  transition:background .25s var(--ease),box-shadow .25s var(--ease);
}
[data-wz]#news-page .news-card:hover{background:#fff;box-shadow:0 16px 40px rgba(15,35,52,.09)}
[data-wz]#news-page .news-thumb{display:block;aspect-ratio:16/10;border-radius:12px;overflow:hidden;background:linear-gradient(140deg,#eaf3f9,#dceaf4)}
[data-wz]#news-page .news-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease)}
[data-wz]#news-page .news-card:hover .news-thumb img{transform:scale(1.045)}
[data-wz]#news-page .news-thumb.is-placeholder:after{content:"NEWSROOM";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);color:#a9c2d3;font-size:10px;font-weight:600;letter-spacing:.32em}
[data-wz]#news-page .news-card h3{margin:2px 0 0;font-size:16.5px;font-weight:600;line-height:1.4;letter-spacing:-.02em}
[data-wz]#news-page .news-card h3 a{color:inherit;text-decoration:none}
[data-wz]#news-page .news-card:hover h3 a{color:#0f74ad}
[data-wz]#news-page .news-card p{
  margin:0;color:var(--muted);font-size:12.5px;line-height:1.7;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}
[data-wz]#news-page .news-card .news-meta{margin-top:auto}

/* 整张卡片可点击：标题链接拉伸铺满卡片（避开胶囊/时间） */
[data-wz]#news-page .news-card h3 a:after{content:"";position:absolute;inset:0;z-index:1}
[data-wz]#news-page .news-card .news-tag,
[data-wz]#news-page .news-card .news-meta{position:relative;z-index:2}

/* ============================== 工具条（分类胶囊 + 搜索） ============================== */
[data-wz]#news-page .news-toolbar{display:flex;align-items:center;justify-content:space-between;gap:28px;flex-wrap:wrap;padding-bottom:22px}
[data-wz]#news-page .news-pills{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0;padding:0;list-style:none}
[data-wz]#news-page .news-pill{display:inline-flex;align-items:center;height:38px;padding:0 18px;border:1px solid #dbe6ee;border-radius:999px;background:#fff;color:#41627a;font-size:12px;font-weight:600;line-height:1;white-space:nowrap;transition:background .2s var(--ease),border-color .2s var(--ease),color .2s var(--ease)}
[data-wz]#news-page .news-pill:hover{border-color:#b4dcf5;background:#f2f9ff;color:#0d6ba6}
[data-wz]#news-page .news-pill.is-active{border-color:var(--brand);background:var(--brand);color:#08344f}
[data-wz]#news-page .news-pill.is-active:hover{background:#5cbcff;border-color:#5cbcff;color:#08344f}

[data-wz]#news-page .news-search{position:relative;display:flex;align-items:center;gap:10px;min-width:270px;border-bottom:1px solid #c8d9e4;transition:border-color .2s}
[data-wz]#news-page .news-search:focus-within{border-color:var(--brand)}
[data-wz]#news-page .news-search input{flex:1;min-width:0;height:42px;padding:0;border:0;background:transparent;color:var(--ink);font-size:12px}
[data-wz]#news-page .news-search input::placeholder{color:#93a8b6}
[data-wz]#news-page .news-search input:focus{outline:none}
[data-wz]#news-page .news-search button{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border:0;border-radius:50%;background:transparent;color:#5b7c93;transition:background .2s,color .2s}
[data-wz]#news-page .news-search button:hover{background:#eaf6ff;color:#0d6ba6}
[data-wz]#news-page .news-search svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

[data-wz]#news-page .news-filter-note{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 22px;color:#60798a;font-size:11px}
[data-wz]#news-page .news-filter-note strong{color:var(--ink);font-weight:600}
[data-wz]#news-page .news-filter-note a{display:inline-flex;align-items:center;gap:6px;color:#0f74ad;font-weight:600}
[data-wz]#news-page .news-filter-note a:hover{text-decoration:underline}

/* ============================== 结果区（分类胶囊 / 分页 / 搜索只刷新这一块，页面不跳转） ============================== */
[data-wz]#news-page .news-results{transition:opacity .18s var(--ease)}
[data-wz]#news-page .news-results.is-loading{opacity:.45;pointer-events:none}
[data-wz]#news-page .news-results mark{background:rgba(35,166,242,.22);color:inherit;padding:0 2px;border-radius:3px}

/* ============================== 分页 ============================== */
[data-wz]#news-page .news-pagination{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;padding:54px 0 0}
[data-wz]#news-page .news-pagination a,
[data-wz]#news-page .news-pagination strong,
[data-wz]#news-page .news-pagination span{
  display:inline-grid;place-items:center;min-width:40px;height:40px;padding:0 12px;
  border:1px solid #d5e2ea;border-radius:10px;background:#fff;
  color:#31536a;font-size:12.5px;font-weight:600;line-height:1;text-decoration:none;
  transition:border-color .2s,background .2s,color .2s;
}
[data-wz]#news-page .news-pagination a:hover{border-color:#8fc9ec;background:#f2f9ff;color:#0d6ba6}
[data-wz]#news-page .news-pagination strong{border-color:var(--brand);background:var(--brand);color:#fff}

/* ============================== 空状态 ============================== */
[data-wz]#news-page .news-empty{padding:60px 0 16px;text-align:center}
[data-wz]#news-page .news-empty h3{margin:0 0 12px;font-size:23px;font-weight:540;letter-spacing:-.03em}
[data-wz]#news-page .news-empty p{margin:0;color:var(--muted);font-size:13px}

/* ============================== 其他入口 ============================== */
[data-wz]#news-page .news-else{padding:96px 0 0}
[data-wz]#news-page .news-else-head{max-width:640px;margin-bottom:44px}
[data-wz]#news-page .news-else-head h2{margin:0;font-size:38px;font-weight:530;line-height:1.15;letter-spacing:-.04em}
[data-wz]#news-page .news-else-head p{margin:18px 0 0;color:var(--muted);font-size:13px;line-height:1.8}
[data-wz]#news-page .news-else-rail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid #cbdde8;border-bottom:1px solid #cbdde8}
[data-wz]#news-page .news-else-item{position:relative;display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:104px;padding:26px 30px;border-right:1px solid #dbe6ed;color:var(--ink);transition:background .22s,color .22s}
[data-wz]#news-page .news-else-item:last-child{border-right:0}
[data-wz]#news-page .news-else-item:before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:var(--brand);transform:scaleX(0);transform-origin:left;transition:transform .22s var(--ease)}
[data-wz]#news-page .news-else-item:hover{background:#eef8ff;color:#0d5e90}
[data-wz]#news-page .news-else-item:hover:before{transform:scaleX(1)}
[data-wz]#news-page .news-else-item span{font-size:17px;font-weight:540;letter-spacing:-.02em}
[data-wz]#news-page .news-else-item svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;transition:transform .22s var(--ease)}
[data-wz]#news-page .news-else-item:hover svg{transform:translateX(4px)}

/* ============================== 询价带 ============================== */
[data-wz]#news-page .news-cta{padding:96px 0}
[data-wz]#news-page .news-cta-card{position:relative;display:grid;grid-template-columns:1fr auto;gap:45px;align-items:center;padding:57px 64px;border:1px solid #d9eaf5;border-radius:20px;background:#eef8ff;overflow:hidden}
[data-wz]#news-page .news-cta-card:after{content:"";position:absolute;width:310px;height:310px;right:-145px;top:-165px;border-radius:50%;background:#a8dcff55}
[data-wz]#news-page .news-cta-card h2{position:relative;margin:0;font-size:44px;font-weight:520;line-height:1.12;letter-spacing:-.05em}
[data-wz]#news-page .news-cta-card p{position:relative;margin:14px 0 0;color:var(--muted);font-size:13px}
[data-wz]#news-page .news-cta-card .btn{position:relative;z-index:1;min-width:180px}

/* ============================== 入场动画 ============================== */
[data-wz]#news-page .reveal{opacity:1;transform:none}
[data-wz]#news-page .reveal.will-reveal{opacity:0;transform:translateY(24px);transition:opacity .7s var(--ease),transform .7s var(--ease)}
[data-wz]#news-page .reveal.will-reveal.visible{opacity:1;transform:none}

/* ============================== 响应式 ============================== */
@media(max-width:1100px){
  [data-wz]#news-page .news-top-grid{grid-template-columns:1fr;gap:36px}
  [data-wz]#news-page .news-hero-card{aspect-ratio:16/9}
  [data-wz]#news-page .news-track{grid-auto-columns:calc((100% - 24px) / 2)}
  [data-wz]#news-page .news-latest{border-top:1px solid var(--line);padding-top:22px}
}
@media(max-width:1000px){
  [data-wz]#news-page .news-cta-card{padding:48px 44px}
  [data-wz]#news-page .news-cta-card h2{font-size:38px}
}
@media(max-width:820px){
  [data-wz]#news-page .news-track{grid-auto-columns:calc((100% - 20px) / 1.6)}
  [data-wz]#news-page .news-else-rail{grid-template-columns:1fr;border-bottom:0}
  [data-wz]#news-page .news-else-item{border-right:0;border-bottom:1px solid #dbe6ed;min-height:88px;padding:22px 0}
  [data-wz]#news-page .news-cta-card{grid-template-columns:1fr;gap:30px;padding:40px 30px}
  [data-wz]#news-page .news-cta-card .btn{justify-self:start}
}
@media(max-width:680px){
  [data-wz]#news-page .news-hero-copy{font-size:13px}
  [data-wz]#news-page .news-top{padding-top:44px}
  [data-wz]#news-page .news-hero-card{aspect-ratio:4/3;border-radius:14px}
  [data-wz]#news-page .news-hero-copy{padding:18px 18px 20px;gap:9px}
  [data-wz]#news-page .news-latest-title{font-size:18px}
  [data-wz]#news-page .news-section{padding-top:44px}
  [data-wz]#news-page .news-section-head{margin-bottom:20px}
  [data-wz]#news-page .news-section-head h2{font-size:26px}
  [data-wz]#news-page .news-toolbar{gap:18px;padding-bottom:18px}
  [data-wz]#news-page .news-pills{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:4px;width:100%}
  [data-wz]#news-page .news-pills::-webkit-scrollbar{display:none}
  [data-wz]#news-page .news-search{width:100%;min-width:0}
  [data-wz]#news-page .news-track{grid-auto-columns:86%}
  [data-wz]#news-page .news-card h3{font-size:15.5px}
  [data-wz]#news-page .news-pagination{padding-top:42px}
  [data-wz]#news-page .news-empty{padding:46px 0 8px}
  [data-wz]#news-page .news-else{padding-top:70px}
  [data-wz]#news-page .news-else-head h2{font-size:30px}
  [data-wz]#news-page .news-else-item span{font-size:16px}
  [data-wz]#news-page .news-cta{padding:70px 0}
  [data-wz]#news-page .news-cta-card{padding:32px 24px;border-radius:16px}
  [data-wz]#news-page .news-cta-card h2{font-size:30px}
  [data-wz]#news-page .news-cta-card .btn{width:100%}
}

/* 无配图占位 + 「阅读全文」入口（后台未设置特色图时不再出现空白块） */
[data-wz]#news-page .news-hero-media.is-placeholder{background:linear-gradient(135deg,#1b3a51,#2d5f7e)}
[data-wz]#news-page .news-latest-thumb.is-placeholder,
[data-wz]#news-page .news-thumb.is-placeholder{background:linear-gradient(135deg,#eef4f9,#dbe7f1)}
[data-wz]#news-page .news-placeholder-mark{width:100%;height:100%;display:grid;place-items:center;color:#ffffff5c}
[data-wz]#news-page .news-placeholder-mark svg{width:54px;height:54px;fill:currentColor}
[data-wz]#news-page .news-latest-thumb .news-placeholder-mark{color:#a9bfd0}
[data-wz]#news-page .news-latest-thumb .news-placeholder-mark svg{width:22px;height:22px}
[data-wz]#news-page .news-thumb .news-placeholder-mark{color:#a9bfd0}
[data-wz]#news-page .news-thumb .news-placeholder-mark svg{width:38px;height:38px}
[data-wz]#news-page .news-read-more{display:inline-flex;align-items:center;gap:6px;margin-top:14px;color:#0f6ea3;font-size:12px;font-weight:650;letter-spacing:.02em}
[data-wz]#news-page .news-read-more>span{transition:transform var(--motion-fast) var(--ease-ui)}
[data-wz]#news-page .news-hero-copy .news-read-more{color:#fff}
[data-wz]#news-page .news-hero-card:hover .news-read-more>span,
[data-wz]#news-page .news-card:hover .news-read-more>span{transform:translateX(4px)}

/* ============================== 文章详情页（Newsroom 版式 · 非资料/下载页） ============================== */
.article-detail{padding:46px 0 8px}
/* 正文阅读宽度：单栏、约 60–70 字一行 */
.article-detail .container,
.article-comments .container{margin:0 auto;width:min(860px,calc(100% - 40px));max-width:none}
.article-related .container{margin:0 auto;width:min(1200px,calc(100% - 40px));max-width:none}
/* 窄栏（标题/正文）与宽栏（封面）分开，封面比正文更宽 */
.article-narrow{margin:0 auto;width:min(860px,calc(100% - 40px))}
/* .article-detail .container 的特异性更高，封面需要显式覆盖才能比正文更宽 */
.article-detail .container.article-wide,
.article-wide{margin:0 auto;width:min(1200px,calc(100% - 40px))}

.article-title{margin:0;font-size:clamp(26px,3.1vw,42px);line-height:1.16;font-weight:560;letter-spacing:-.035em;text-align:center;color:var(--ink,#0f2333)}
.article-meta-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:18px;margin:22px 0 0;padding-bottom:26px;border-bottom:1px solid #e6eef4}
.article-meta-row .article-cat{justify-self:start}
.article-meta-row .article-meta{justify-self:center;justify-content:center}
.article-meta-row .article-share{justify-self:end}
.article-cat{display:inline-flex;align-items:center;height:30px;padding:0 14px;border-radius:999px;background:#eaf6ff;color:#0d6ba6;font-size:11.5px;font-weight:650}
.article-cat:hover{background:#dcefff;color:#0b5c8f}
.article-cat.is-empty{visibility:hidden}
.article-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;color:#6b8395;font-size:12px}
.article-meta i{font-style:normal;color:#b9ccd9}
.article-share{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 14px;border:1px solid #dbe6ee;border-radius:999px;background:#fff;color:#41627a;font-size:12px;font-weight:600;cursor:pointer;transition:border-color .2s,background .2s,color .2s}
.article-share:hover{border-color:#b4dcf5;background:#f2f9ff;color:#0d6ba6}
.article-share svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.article-lede{margin:18px auto 0;max-width:720px;text-align:center;color:#4a6577;font-size:15px;line-height:1.75}
.article-cover{margin:0 0 34px;border-radius:18px;overflow:hidden;background:#eef4f8}
.article-cover img{display:block;width:100%;height:auto;max-height:560px;object-fit:cover}

/* 正文 = 后台 TinyMCE 富文本：编辑器可能输出任意常见标签，这里把版式兜住 */
.article-body{font-size:15.5px;line-height:1.85;color:#31485a;overflow-wrap:break-word}
.article-body>:first-child{margin-top:0}
.article-body>:last-child{margin-bottom:0}
.article-body p{margin:0 0 18px}
.article-body h1,.article-body h2,.article-body h3,.article-body h4,.article-body h5,.article-body h6{margin:34px 0 14px;font-weight:600;letter-spacing:-.02em;line-height:1.35;color:var(--ink,#0f2333)}
.article-body h1{font-size:27px}
.article-body h2{font-size:24px}
.article-body h3{font-size:19px}
.article-body h4{font-size:16px}
.article-body h5,.article-body h6{font-size:15px}
.article-body strong,.article-body b{font-weight:640;color:var(--ink,#0f2333)}
.article-body ul,.article-body ol{margin:0 0 18px;padding-left:22px}
.article-body ul{list-style:disc}
.article-body ol{list-style:decimal}
.article-body li{margin:6px 0}
.article-body li>ul,.article-body li>ol{margin:6px 0 0}
.article-body img{max-width:100%;height:auto;border-radius:12px}
.article-body figure{margin:26px 0}
.article-body figure img{display:block;margin:0 auto}
.article-body figcaption{margin:10px 0 0;text-align:center;color:#7e93a2;font-size:12.5px}
.article-body iframe,.article-body video{display:block;max-width:100%;height:auto;margin:26px auto;border:0;border-radius:12px;background:#0b2236}
.article-body hr{margin:30px 0;border:0;border-top:1px solid #e2ecf3}
.article-body a{color:#0f74ad;text-decoration:underline;text-underline-offset:3px}
.article-body a:hover{color:#0b5c8f}
.article-body blockquote{margin:22px 0;padding:16px 20px;border-left:3px solid var(--brand,#23a6f2);background:#f4fafe;border-radius:0 12px 12px 0;color:#41627a}
.article-body code{background:#f1f6fa;padding:2px 6px;border-radius:6px;font-size:13.5px}
.article-body pre{margin:0 0 18px;padding:16px 18px;border-radius:12px;background:#f4f8fb;overflow:auto;font-size:13.5px;line-height:1.7}
.article-body pre code{padding:0;background:none}
.article-body table{width:100%;border-collapse:collapse;margin:0 0 20px;font-size:14px}
.article-body th,.article-body td{border:1px solid #e2ecf3;padding:10px 12px;text-align:left;vertical-align:top}
.article-body th{background:#f4f9fc;font-weight:600;color:var(--ink,#0f2333)}

.article-tags{margin:26px 0 0;display:flex;flex-wrap:wrap;gap:8px}
.article-tags a{display:inline-flex;align-items:center;height:30px;padding:0 12px;border:1px solid #dbe6ee;border-radius:999px;background:#fff;color:#41627a;font-size:11.5px;font-weight:600}
.article-tags a:hover{border-color:#b4dcf5;background:#f2f9ff;color:#0d6ba6}

.article-gallery{margin:30px 0 0;display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px}
.article-gallery .thumbnail{border:2px solid #e2ecf3;border-radius:12px;overflow:hidden;background:#f5f9fc;cursor:pointer}
.article-gallery .thumbnail.active{border-color:var(--brand,#23a6f2)}
.article-gallery .thumbnail img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover}

.article-back-row{margin:38px 0 0;padding-top:24px;border-top:1px solid #e6eef4}
.article-back{display:inline-flex;align-items:center;gap:8px;color:#0f74ad;font-size:12.5px;font-weight:650}
.article-back:hover{color:#0d6ba6}

/* ============================== 评论区（wz 版式，不依赖 Tailwind） ============================== */
.article-comments{padding:58px 0 0}
.article-comments-head{display:flex;align-items:baseline;gap:10px;margin:0 0 26px}
.article-comments-head h2{margin:0;font-size:26px;font-weight:560;letter-spacing:-.03em;color:var(--ink,#0f2333)}
.article-comments-head span{color:#7e93a2;font-size:13px}

.comment-list{display:grid;gap:14px}
.comment-item{position:relative;padding:22px 24px;border:1px solid #e3edf4;border-radius:16px;background:#fff;transition:border-color .2s,box-shadow .2s}
.comment-item:hover{border-color:#cde3f1;box-shadow:0 12px 32px rgba(15,35,52,.06)}
.comment-head{display:flex;align-items:flex-start;gap:14px}
.comment-avatar{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:linear-gradient(135deg,#374151,#1f2937);color:#fff;font-size:15px;font-weight:700}
.comment-who{display:grid;gap:3px;min-width:0}
.comment-name{margin:0;font-size:14px;font-weight:640;color:var(--ink,#0f2333)}
.comment-role{margin:0;color:#7e93a2;font-size:11.5px}
.comment-content{margin:14px 0 0;color:#3b5567;font-size:13.5px;line-height:1.8;white-space:pre-line;word-break:break-word}
.comment-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}
.comment-time{color:#8ba0ae;font-size:11.5px}
.comment-btn{display:inline-flex;align-items:center;gap:6px;padding:0;border:0;background:none;color:#0f74ad;font-size:12px;font-weight:640;cursor:pointer;transition:color .2s}
.comment-btn:hover{color:#0b5c8f}
.comment-btn svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.comment-replies{margin:16px 0 0 22px;padding-left:18px;border-left:2px solid #e6eef4;display:grid;gap:12px}
.comment-replies .comment-item{padding:16px 18px;border-radius:12px;background:#f8fbfd}
.comment-empty{padding:34px 0;text-align:center;color:#8ba0ae;font-size:13px}
.comment-pager{margin-top:26px}
.comment-actions{margin-top:30px;text-align:center}
.comment-add,.comment-submit{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:0 26px;border:0;border-radius:999px;background:var(--ink,#0f2333);color:#fff;font-size:13px;font-weight:640;cursor:pointer;transition:background .2s}
.comment-add:hover,.comment-submit:hover{background:#16455f}
.comment-add svg,.comment-submit svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.comment-cancel{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 22px;border:1px solid #dbe6ee;border-radius:999px;background:#fff;color:#41627a;font-size:13px;font-weight:600;cursor:pointer;transition:border-color .2s,background .2s}
.comment-cancel:hover{border-color:#b4dcf5;background:#f2f9ff}
/* 回复项（JS 动态生成的嵌套回复） */
.comment-main{min-width:0;flex:1;display:grid;gap:6px}
.comment-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.comment-head .comment-btn{margin-left:auto;flex:none}
.comment-more-wrap{margin-top:12px}

/* 评论弹层 */
.comment-modal{position:fixed;inset:0;z-index:120;overflow-y:auto;padding:24px;background:#0b223666}
.comment-modal-panel{position:relative;max-width:620px;margin:min(8vh,80px) auto 40px;background:#fff;border-radius:16px;box-shadow:0 30px 80px #0b223659;overflow:hidden}
.comment-modal-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 26px;border-bottom:1px solid #e6eef4}
.comment-modal-head h3{margin:0;font-size:18px;font-weight:640;color:var(--ink,#0f2333)}
.comment-modal-close{display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:50%;background:none;color:#7e93a2;cursor:pointer}
.comment-modal-close:hover{background:#f2f7fb;color:var(--ink,#0f2333)}
.comment-modal-close svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.comment-replying{margin:14px 26px 0;padding:11px 14px;border-radius:10px;background:#eaf6ff;color:#0b5c8f;font-size:12.5px}
.comment-replying strong{font-weight:640}
.comment-replying button{margin-left:8px;border:0;background:none;color:#0f74ad;font-size:12.5px;font-weight:640;text-decoration:underline;cursor:pointer}
.comment-modal-body{padding:22px 26px 26px}
.comment-field{margin-bottom:18px}
.comment-label{display:block;margin-bottom:8px;font-size:12.5px;font-weight:640;color:var(--ink,#0f2333)}
.comment-label .req{color:#e35d6a}
.comment-label .optional{color:#9fb2bf;font-size:11.5px;font-weight:500}
.comment-input,.comment-textarea{width:100%;padding:12px 14px;border:1px solid #dbe6ee;border-radius:10px;background:#fff;color:var(--ink,#0f2333);font-size:13.5px;font-family:inherit;transition:border-color .2s,box-shadow .2s}
.comment-textarea{min-height:140px;resize:vertical}
.comment-input:focus,.comment-textarea:focus{outline:none;border-color:var(--brand,#23a6f2);box-shadow:0 0 0 3px #35acfe26}
.comment-alert{margin:0 0 16px;padding:12px 14px;border-radius:10px;font-size:12.5px;line-height:1.6}
.comment-alert.is-success{border:1px solid #bfe7cd;background:#f1fbf4;color:#1c6b3c}
.comment-alert.is-error{border:1px solid #f3cdd2;background:#fdf3f4;color:#a32a38}
.comment-modal-foot{display:flex;justify-content:flex-end;gap:12px;padding:18px 26px;border-top:1px solid #e6eef4;background:#f8fbfd}
/* 底栏在 form 内，负边距抵消 form 的 padding，使其贴边 */
.comment-modal-body>.comment-modal-foot{margin:22px -26px -26px}
.comment-modal:not(.hidden) .comment-modal-panel{animation:comment-modal-in .28s cubic-bezier(.22,.61,.36,1)}
@keyframes comment-modal-in{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
.comment-submit .loading-icon{display:inline-block;animation:comment-spin .9s linear infinite}
@keyframes comment-spin{to{transform:rotate(360deg)}}
.comment-alert svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;vertical-align:-3px}

/* 图集灯箱 */
.lightbox{display:none;position:fixed;inset:0;z-index:200;background:rgba(0,0,0,.95)}
.lightbox.active{display:block}
.lightbox-inner{position:relative;display:grid;place-items:center;width:100%;height:100%;padding:32px}
.lightbox-stage{position:relative;display:grid;place-items:center;width:100%;height:100%}
.lightbox-stage img{max-width:100%;max-height:100%;object-fit:contain}
.lightbox-close{position:absolute;top:22px;right:24px;z-index:2;display:grid;place-items:center;width:42px;height:42px;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;cursor:pointer;transition:background .2s}
.lightbox-close:hover{background:rgba(255,255,255,.22)}
.lightbox-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:2;display:grid;place-items:center;width:48px;height:48px;border:0;border-radius:50%;background:rgba(0,0,0,.5);color:#fff;cursor:pointer;transition:background .2s}
.lightbox-nav:hover{background:rgba(0,0,0,.72)}
.lightbox-nav.prev{left:22px}
.lightbox-nav.next{right:22px}
.lightbox-close svg,.lightbox-nav svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.lightbox-counter{position:absolute;bottom:104px;left:50%;transform:translateX(-50%);padding:7px 16px;border-radius:999px;background:rgba(0,0,0,.7);color:#fff;font-size:12px}
.lightbox-strip{position:absolute;bottom:24px;left:50%;transform:translateX(-50%);display:flex;gap:8px;max-width:min(920px,calc(100% - 48px));padding:10px;border-radius:14px;background:rgba(0,0,0,.5);overflow-x:auto}
.lightbox-thumb{flex:none;width:64px;height:64px;border:2px solid transparent;border-radius:8px;overflow:hidden;cursor:pointer;opacity:.5;transition:opacity .2s,border-color .2s}
.lightbox-thumb img{width:100%;height:100%;object-fit:cover}
.lightbox-thumb:hover{opacity:.85}
.lightbox-thumb.is-active{opacity:1;border-color:#fff}

/* 评论区/弹层用 .hidden 切换显隐（本页已不加载 Tailwind 运行时） */
.hidden{display:none!important}

/* 相关文章 */
.article-related{padding:64px 0 0;margin-top:64px;border-top:1px solid #e6eef4}
.article-related-head{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin:0 0 24px}
.article-related-head h2{margin:0;font-size:26px;font-weight:560;letter-spacing:-.03em;color:var(--ink,#0f2333)}
.article-view-more{display:inline-flex;align-items:center;gap:6px;color:#0f74ad;font-size:12.5px;font-weight:650;white-space:nowrap}
.article-view-more:hover{color:#0d6ba6;text-decoration:underline;text-underline-offset:3px}
.article-related-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.article-card{display:flex;flex-direction:column;gap:12px;padding:14px 14px 18px;border-radius:16px;background:#f7fafc;text-decoration:none;transition:background .25s var(--ease),box-shadow .25s var(--ease)}
.article-card:hover{background:#fff;box-shadow:0 16px 40px rgba(15,35,52,.09)}
.article-card-thumb{display:block;aspect-ratio:16/10;border-radius:12px;overflow:hidden;background:linear-gradient(140deg,#eaf3f9,#dceaf4)}
.article-card-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease)}
.article-card:hover .article-card-thumb img{transform:scale(1.045)}
.article-card-placeholder{display:grid;place-items:center;width:100%;height:100%;color:#a9bfd0}
.article-card-placeholder svg{width:38px;height:38px;fill:currentColor}
.article-card-body{display:grid;gap:10px}
.article-card-body h3{margin:0;font-size:15px;font-weight:600;line-height:1.45;letter-spacing:-.01em;color:var(--ink,#0f2333)}
.article-card:hover h3{color:#0f74ad}
.article-card-meta{color:#7e93a2;font-size:11.5px}

@media (max-width:1024px){
  .article-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:760px){
  .article-meta-row{grid-template-columns:1fr;justify-items:center;gap:14px;text-align:center}
  .article-meta-row .article-cat,
  .article-meta-row .article-meta,
  .article-meta-row .article-share{justify-self:center}
  .article-meta-row .article-meta{justify-content:center}
}
@media (max-width:640px){
  .article-detail{padding-top:32px}
  .article-title{font-size:26px}
  .article-body{font-size:15px}
  .article-comments{padding-top:44px}
  .article-related{padding-top:48px;margin-top:48px}
  .article-related-grid{grid-template-columns:1fr}
  .comment-item{padding:18px 16px}
  .comment-replies{margin-left:8px;padding-left:12px}
  .comment-modal{padding:14px}
  .comment-modal-panel{margin:14px 0 30px}
  .comment-modal-head,.comment-modal-body,.comment-modal-foot{padding-left:18px;padding-right:18px}
  .comment-modal-body>.comment-modal-foot{margin:22px -18px -18px}
  .comment-replying{margin-left:18px;margin-right:18px}
  .lightbox-nav{width:40px;height:40px}
  .lightbox-nav.prev{left:10px}
  .lightbox-nav.next{right:10px}
  .lightbox-strip{bottom:14px;max-width:calc(100% - 20px)}
  .lightbox-counter{bottom:92px}
}
