/* 交航众鑫 · 新闻中心 / 新闻详情
   模板（Elementor 主题模板）的版式在全局类里；这里是：
   - 短代码输出的分类标签、示例角标
   - 文章正文（区块编辑器输出）和插件在正文前后加的提示、来源、上一篇 / 下一篇、返回按钮
   - 脚本控制的状态：头条轮播、页码 */

/* ---------- 分类标签 / 示例角标（[jham_news_tags]） ---------- */
body.jham-site .ntag{display:inline-flex;align-items:center;gap:8px;font-size:13px;line-height:1.5;letter-spacing:.08em;color:var(--red);font-weight:500}
body.jham-site .ntag::before{content:"";width:16px;height:2px;background:var(--red)}
body.jham-site .nsample{display:inline-block;font-size:11.5px;letter-spacing:.04em;line-height:1;color:#8a6a10;background:#FFF4D6;border:1px solid #F2DC9A;padding:4px 7px;margin-left:10px;vertical-align:2px}

/* ---------- 头条轮播（data-jh-feat） ---------- */
body.jham-site [data-jh-feat] .jh-feat-item{visibility:hidden;opacity:0;transition:opacity .7s,visibility 0s .7s}
body.jham-site [data-jh-feat] .jh-feat-item.is-on,
body.jham-site [data-jh-feat]:not(.jh-on) .jh-feat-item:first-child,
body.elementor-editor-active [data-jh-feat] .jh-feat-item:first-child{visibility:visible;opacity:1;transition:opacity .7s}
body.jham-site [data-jh-feat] .jh-feat-item [data-jh="fimg"]{transform:scale(1.04);transition:transform 6s ease-out}
body.jham-site [data-jh-feat] .jh-feat-item.is-on [data-jh="fimg"]{transform:none}
body.jham-site [data-jh-feat] .jh-feat-item.is-on [data-jh="fpanel"]>*{animation:jh-fadein .6s both}
body.jham-site [data-jh-feat-bar] i{display:block;height:100%;width:0;background:var(--red)}

/* ---------- 页码（脚本补在“上一页 / 下一页”之间） ---------- */
body.jham-site .jh-pg-num{min-width:44px;height:44px;padding:0 12px;display:grid;place-items:center;background:#fff;border:1px solid var(--line);font-family:var(--f-mono);font-size:14px;color:#4b525c;transition:background .3s,color .3s,border-color .3s}
body.jham-site .jh-pg-num:hover{border-color:var(--red);color:var(--red)}
body.jham-site .jh-pg-num.is-on{background:var(--red);border-color:var(--red);color:#fff}
body.jham-site [data-jh-pager] .is-off,body.jham-site [data-jh-pager] .e--disabled{opacity:.4;pointer-events:none}

/* ---------- 详情：示例提示 ---------- */
body.jham-site .jh-art-note{margin-top:30px;display:flex;gap:12px;align-items:flex-start;font-size:14px;line-height:1.8;color:#7a5c0a;background:#FFF8E5;border:1px solid #F2DC9A;padding:14px 18px}
body.jham-site .jh-art-note b{flex:none;font-weight:700}

/* ---------- 详情：正文 ---------- */
body.jham-site .jh-prose{counter-reset:jh-fig;margin-top:8px;font-size:16.5px;line-height:2;color:#30363f;letter-spacing:.01em}
body.jham-site .jh-prose>*{margin:1.25em 0 0}
body.jham-site .jh-prose p{margin-bottom:0}
body.jham-site .jh-prose h2{position:relative;margin-top:2em;padding-left:16px;font-size:22px;font-weight:700;line-height:1.45;letter-spacing:.03em;color:var(--ink)}
body.jham-site .jh-prose h2::before{content:"";position:absolute;left:0;top:.2em;bottom:.2em;width:4px;background:var(--red)}
body.jham-site .jh-prose h3{margin-top:1.8em;font-size:18px;font-weight:700;line-height:1.5;color:var(--ink)}
body.jham-site .jh-prose a{color:var(--red)}
body.jham-site .jh-prose a:hover{text-decoration:underline}
body.jham-site .jh-prose strong{color:var(--ink)}
body.jham-site .jh-prose ul,body.jham-site .jh-prose ol{display:flex;flex-direction:column;gap:10px;padding:22px 26px;background:var(--mist);list-style:none}
body.jham-site .jh-prose li{position:relative;padding-left:20px;line-height:1.85}
body.jham-site .jh-prose ul>li::before{content:"";position:absolute;left:0;top:.75em;width:7px;height:7px;background:var(--red)}
body.jham-site .jh-prose ol{counter-reset:jh-li}
body.jham-site .jh-prose ol>li{counter-increment:jh-li;padding-left:28px}
body.jham-site .jh-prose ol>li::before{content:counter(jh-li,decimal-leading-zero);position:absolute;left:0;top:.1em;font-family:var(--f-mono);font-size:13px;color:var(--red)}
body.jham-site .jh-prose blockquote{margin-left:0;margin-right:0;padding:22px 28px;background:var(--mist);border:0;border-left:3px solid var(--red);font-size:16.5px;font-style:normal;color:#4b525c}
body.jham-site .jh-prose blockquote p{margin:0}
body.jham-site .jh-prose blockquote cite{display:block;margin-top:8px;font-style:normal;font-size:13.5px;color:#8a919b}
body.jham-site .jh-prose blockquote cite::before{content:"—— "}
body.jham-site .jh-prose figure{margin-left:0;margin-right:0}
body.jham-site .jh-prose .wp-block-image{margin-top:2em}
body.jham-site .jh-prose .wp-block-image img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;background:#06142f}
body.jham-site .jh-prose .wp-block-image figcaption{counter-increment:jh-fig;margin:12px 0 0;text-align:center;font-size:13px;line-height:1.7;color:#8a919b;letter-spacing:.04em}
body.jham-site .jh-prose .wp-block-image figcaption::before{content:"图 " counter(jh-fig,decimal-leading-zero);font-family:var(--f-mono);color:var(--red);margin-right:8px}
body.jham-site .jh-prose>.jh-art-cover:first-child{margin-top:34px}
body.jham-site .jh-prose .wp-block-table{overflow-x:auto}
body.jham-site .jh-prose table{width:100%;border-collapse:collapse;font-size:14.5px;line-height:1.7}
body.jham-site .jh-prose th{background:var(--ink);color:#fff;font-weight:500;text-align:left;padding:12px 16px;letter-spacing:.06em;border:0}
body.jham-site .jh-prose td{padding:12px 16px;border:0;border-bottom:1px solid var(--line);vertical-align:top}
body.jham-site .jh-prose tr:nth-child(even) td{background:#fafbfc}
body.jham-site .jh-prose td:first-child{color:var(--ink);font-weight:500;width:36%}
body.jham-site .jh-prose .wp-block-table thead{border:0}

/* ---------- 详情：来源 / 上一篇下一篇 / 返回 ---------- */
body.jham-site .jh-art-src{margin-top:40px;padding:20px 24px;background:var(--mist);border-top:2px solid var(--red);font-size:14px;color:#4b525c;line-height:1.9}
body.jham-site .jh-art-src b{color:var(--ink);font-weight:700;margin-right:6px}
body.jham-site .jh-art-src a{color:var(--red);word-break:break-all}
body.jham-site .jh-art-src a:hover{text-decoration:underline}
body.jham-site .jh-art-src small{display:block;margin-top:4px;font-size:12.5px;color:#8a919b}
body.jham-site .jh-art-nav{margin-top:44px;display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line)}
body.jham-site .jh-art-nav a,body.jham-site .jh-art-nav span.empty{display:flex;flex-direction:column;gap:8px;padding:22px 26px;min-width:0;transition:background .3s}
body.jham-site .jh-art-nav>*+*{border-left:1px solid var(--line)}
body.jham-site .jh-art-nav .nx{text-align:right;align-items:flex-end}
body.jham-site .jh-art-nav em{font-style:normal;font-family:var(--f-en);font-weight:600;font-size:13px;letter-spacing:.2em;color:var(--red);display:inline-flex;align-items:center;gap:8px}
body.jham-site .jh-art-nav em svg{width:12px;height:12px}
body.jham-site .jh-art-nav b{font-weight:500;font-size:15px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;transition:color .3s}
body.jham-site .jh-art-nav a:hover{background:var(--mist)}
body.jham-site .jh-art-nav a:hover b{color:var(--red)}
body.jham-site .jh-art-nav span.empty{color:#a3a9b2;font-size:14px;justify-content:center}
body.jham-site .jh-art-back{margin-top:28px;display:flex;justify-content:center}
body.jham-site .jh-art-back a{display:inline-flex;align-items:center;gap:12px;height:48px;padding:0 28px;font-size:15px;line-height:1;letter-spacing:.08em;white-space:nowrap;color:#fff;background:var(--red);transition:background .3s}
body.jham-site .jh-art-back a:hover{background:var(--red-deep)}
body.jham-site .jh-art-back svg{width:18px;height:10px;transition:transform .3s}
body.jham-site .jh-art-back a:hover svg{transform:translateX(4px)}

@media (max-width:767px){
  body.jham-site .jh-prose{font-size:16px}
  body.jham-site .jh-art-nav{grid-template-columns:1fr}
  body.jham-site .jh-art-nav>*+*{border-left:0;border-top:1px solid var(--line)}
  body.jham-site .jh-art-nav .nx{text-align:left;align-items:flex-start}
}
