/* 交航众鑫 · Elementor 页面支持
   Elementor 搭建的页面不在 .jham 范围里，这里补上与产品页一致的基础排版，
   以及只能用代码实现的状态样式（滚动渐显、本页栏目高亮、复制按钮）。
   版式本身（颜色、间距、卡片）都在 Elementor 的全局类 / 变量里，员工可在编辑器里改。 */

body.jham-site{margin:0;background:#fff;color:var(--ink);font-family:var(--f-cn);font-size:16px;line-height:1.75;-webkit-font-smoothing:antialiased}
/* 用 :where() 把优先级降到最低，Elementor 里给链接、按钮设的颜色才能生效 */
:where(body.jham-site .elementor) a{color:inherit;text-decoration:none}
:where(body.jham-site .elementor) img{max-width:100%}
body.jham-site .elementor svg{flex:none}
body.jham-site .elementor .e-svg-base>svg{display:block}  /* 图标不受行高影响，与文字居中对齐 */
body.jham-site .elementor [id]{scroll-margin-top:var(--hdr)}
body.jham-site .elementor :focus-visible{outline:2px solid var(--red);outline-offset:3px}

/* 首屏文字逐行升起（容器加属性 data-jh-rise） */
@keyframes jh-rise{from{transform:translateY(26px);opacity:0}to{transform:none;opacity:1}}
body.jham-site [data-jh-rise]>*{animation:jh-rise .95s cubic-bezier(.2,.7,.2,1) both}
body.jham-site [data-jh-rise]>:nth-child(2){animation-delay:.08s}
body.jham-site [data-jh-rise]>:nth-child(3){animation-delay:.16s}
body.jham-site [data-jh-rise]>:nth-child(4){animation-delay:.24s}

/* 滚动渐显（元素加 data-jh-rv；网格加 data-jh-stagger 时子项依次出现） */
html.js-rv body.jham-site .rv{opacity:0;transform:translateY(32px);transition:opacity .9s cubic-bezier(.2,.7,.2,1),transform .9s cubic-bezier(.2,.7,.2,1)}
html.js-rv body.jham-site .rv.is-in{opacity:1;transform:none}

/* 本页栏目条：当前栏目（容器加 data-jh-subtabs） */
body.jham-site [data-jh-subtabs] .is-on{background:var(--red);color:#fff;border-color:var(--red)}
body.jham-site [data-jh-subtabs] .is-on em{color:rgba(255,255,255,.7)}

/* 复制按钮（按钮加 data-jh-copy="要复制的文字"） */
body.jham-site [data-jh-copy]{cursor:pointer}
body.jham-site [data-jh-copy].done{background:var(--red);color:#fff}

/* 发展历程（data-jh-tl）：脚本生成年份节点和左右按钮，一次只显示一项 */
@keyframes jh-fadein{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes jh-fade{from{opacity:0}to{opacity:1}}
body.jham-site .jh-tl-on>[data-jh-tl-item]:not(.is-on){display:none}
body.jham-site .jh-tl-on>[data-jh-tl-item].is-on img{animation:jh-fade .7s both}
body.jham-site .jh-tl-on>[data-jh-tl-item].is-on [data-jh-tl-text]>:not(.jh-tl-ctrl){animation:jh-fadein .55s both}
body.jham-site .jh-tl-nodes{position:relative;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;padding-top:6px}
body.jham-site .jh-tl-nodes::before{content:"";position:absolute;left:0;right:0;top:51px;height:1px;background:#cfd3d9}
body.jham-site .jh-tl-node{position:relative;display:flex;flex-direction:column;align-items:center;gap:14px;padding:0 4px 6px;margin:0;border:0;background:none;font:inherit;color:#8a919b;cursor:pointer;transition:color .3s}
body.jham-site .jh-tl-node b{font-family:var(--f-en);font-weight:700;font-size:24px;line-height:1;letter-spacing:.02em}
body.jham-site .jh-tl-node i{position:relative;width:12px;height:12px;border-radius:50%;background:#fff;border:2px solid #b7bdc5;transition:border-color .3s,background .3s,transform .3s}
body.jham-site .jh-tl-node small{font-size:12.5px;line-height:1.5;letter-spacing:.04em}
body.jham-site .jh-tl-node:hover{color:var(--ink)}
body.jham-site .jh-tl-node.is-on{color:var(--red)}
body.jham-site .jh-tl-node.is-on i{background:var(--red);border-color:var(--red);transform:scale(1.35);box-shadow:0 0 0 6px rgba(200,16,46,.14)}
body.jham-site .jh-tl-node.is-co{color:#a3a9b2}
body.jham-site .jh-tl-prog{position:absolute;left:0;top:51px;height:2px;margin-top:-.5px;background:var(--red);transition:width .6s cubic-bezier(.2,.7,.2,1)}
body.jham-site .jh-tl-ctrl{position:absolute;left:clamp(28px,3.4vw,52px);right:clamp(28px,3.4vw,52px);bottom:30px;display:flex;align-items:center;gap:12px}
body.jham-site .jh-tl-num{margin-right:auto;display:flex;align-items:baseline;gap:4px;font-family:var(--f-en)}
body.jham-site .jh-tl-num b{font-size:28px;font-weight:700;line-height:1}
body.jham-site .jh-tl-num span{font-size:15px;color:#a3a9b2}
body.jham-site .jh-tl-btn{width:38px;height:38px;padding:0;border-radius:50%;border:1px solid #cfd3d9;background:none;display:grid;place-items:center;color:var(--ink);cursor:pointer;transition:background .3s,border-color .3s,color .3s}
body.jham-site .jh-tl-btn:hover{background:var(--red);border-color:var(--red);color:#fff}
body.jham-site .jh-tl-btn svg{display:block;width:13px;height:13px}
@media (max-width:900px){
  body.jham-site .jh-tl-nodes{grid-auto-columns:96px;overflow-x:auto;padding-bottom:10px;scrollbar-width:none}
  body.jham-site .jh-tl-nodes::before,body.jham-site .jh-tl-prog{display:none}
}

/* 横向滑动（data-jh-hs）：隐藏滚动条，进度条滑块 */
body.jham-site [data-jh-hs-track]{scrollbar-width:none}
body.jham-site [data-jh-hs-track]::-webkit-scrollbar{display:none}
body.jham-site [data-jh-hs-bar] .jh-hs-thumb{display:block;height:100%;width:20%;background:var(--red);transition:transform .35s cubic-bezier(.2,.7,.2,1),width .35s}

/* 通用选项卡（data-jh-tabs）：脚本运行前只显示第一项；编辑器里全部显示 */
body.jham-site [data-jh-tabs].jh-on [data-jh-pane]:not(.is-on){display:none}
body.jham-site:not(.elementor-editor-active) [data-jh-tabs]:not(.jh-on) [data-jh-pane]~[data-jh-pane]{display:none}
body.jham-site [data-jh-tabs].jh-on [data-jh-pane].is-on{animation:jh-fadein .55s both}

/* 折叠问答（data-jh-acc）：答案高度动画；脚本运行前第一项展开；编辑器里全部展开 */
body.jham-site [data-jh-acc-a]{display:grid;grid-template-rows:0fr;transition:grid-template-rows .45s cubic-bezier(.2,.7,.2,1)}
body.jham-site [data-jh-acc-a]>*{overflow:hidden;min-height:0}
body.jham-site [data-jh-acc-item].is-open [data-jh-acc-a],body.jham-site [data-jh-acc]:not(.jh-on) [data-jh-acc-item]:first-child [data-jh-acc-a],body.elementor-editor-active [data-jh-acc-a]{grid-template-rows:1fr}

/* 大图（Elementor 链接选“灯箱”） */
body.jham-site .jh-lb{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;visibility:hidden;transition:visibility 0s .4s}
body.jham-site .jh-lb.is-open{visibility:visible;transition:none}
body.jham-site .jh-lb-shade{position:absolute;inset:0;background:rgba(8,14,28,.72);opacity:0;transition:opacity .4s}
body.jham-site .jh-lb.is-open .jh-lb-shade{opacity:1}
body.jham-site .jh-lb-box{position:relative;opacity:0;transform:translateY(16px) scale(.98);transition:opacity .4s,transform .45s cubic-bezier(.2,.7,.2,1)}
body.jham-site .jh-lb.is-open .jh-lb-box{opacity:1;transform:none}
body.jham-site .jh-lb-box img{display:block;width:auto;max-width:min(1100px,calc(100vw - 48px));max-height:calc(100vh - 170px);background:#fff;box-shadow:0 30px 80px rgba(0,0,0,.4)}
body.jham-site .jh-lb-cap{margin-top:16px;color:#fff;text-align:center;line-height:1.5}
body.jham-site .jh-lb-cap b{display:block;font-size:17px;letter-spacing:.04em}
body.jham-site .jh-lb-cap small{display:block;margin-top:4px;font-size:13px;color:rgba(255,255,255,.65)}
body.jham-site .jh-lb-x{position:absolute;right:-56px;top:0;width:44px;height:44px;padding:0;display:grid;place-items:center;border:1px solid rgba(255,255,255,.35);background:none;color:#fff;cursor:pointer;transition:background .3s,border-color .3s}
body.jham-site .jh-lb-x:hover{background:var(--red);border-color:var(--red)}
body.jham-site .jh-lb-x svg{display:block;width:16px;height:16px}
@media (max-width:900px){body.jham-site .jh-lb-x{right:0;top:-56px}}

/* Elementor 编辑器里不做动画，方便编辑 */
body.elementor-editor-active [data-jh-rise]>*{animation:none}
@media (prefers-reduced-motion:reduce){body.jham-site [data-jh-rise]>*{animation:none}}
