/* =========================================================
   金年汇 · 全站共享样式 /assets/site.css
   档案室 × 仪表盘：深墨蓝轨道 + 暖米白长卷 + 琥珀金编号
   ========================================================= */

:root{
  --ink:#10243B;
  --ink-deep:#0B1A2C;
  --paper:#F4EFE4;
  --card:#FBF8F1;
  --gold:#C58A2A;
  --gold-deep:#9A6412;
  --slate:#4F6F78;
  --brick:#8F3F33;
  --rock:#3F4A54;
  --moss:#5F7358;
  --clay:#B86B4B;
  --hot:#D94F70;
  --dust:#D8D1C3;

  --rail-w:256px;
  --bar-h:64px;
  --wrap:1160px;
  --pad:32px;

  --font-display:"HarmonyOS Sans SC","Source Han Sans SC","Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;
  --font-body:"Noto Sans SC","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  --font-mono:ui-monospace,"JetBrains Mono","SFMono-Regular","IBM Plex Mono",Menlo,Consolas,monospace;

  --line:1px solid rgba(63,74,84,.22);
  --shadow:8px 8px 0 rgba(16,36,59,.14);
  --shadow-sm:4px 4px 0 rgba(16,36,59,.16);
  --ease:cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;
  padding-left:var(--rail-w);
  background:var(--paper);
  color:var(--rock);
  font-family:var(--font-body);
  font-size:17px;
  line-height:1.78;
  letter-spacing:.01em;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img,svg,video{max-width:100%;display:block}
a{color:inherit}
button{font:inherit;color:inherit;background:none;border:0}
ul,ol{list-style:none;margin:0;padding:0}
h1,h2,h3,h4,h5,p,figure,dl,dd{margin:0}
h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:800;
  color:var(--ink);
  line-height:1.18;
  letter-spacing:-.015em;
}
::selection{background:var(--gold);color:var(--ink)}
:focus-visible{outline:3px solid var(--gold-deep);outline-offset:3px}
.jh-rail :focus-visible,.jh-foot :focus-visible,.jh-mobilebar :focus-visible{outline-color:var(--gold)}

/* ---------- skip link ---------- */
.jh-skip{
  position:fixed;
  top:12px;left:12px;
  z-index:200;
  padding:12px 18px;
  background:var(--gold);
  color:var(--ink);
  font-weight:700;
  font-size:14px;
  letter-spacing:.06em;
  text-decoration:none;
  border:2px solid var(--ink);
  box-shadow:4px 4px 0 rgba(16,36,59,.28);
  transform:translateY(-180%);
  transition:transform .2s var(--ease);
}
.jh-skip:focus,.jh-skip:focus-visible{transform:none}

/* ---------- 滚动进度 ---------- */
.jh-progress{
  position:fixed;
  top:0;right:0;bottom:0;
  width:5px;
  z-index:90;
  pointer-events:none;
  background:rgba(16,36,59,.08);
}
.jh-progress i{
  display:block;
  width:100%;height:100%;
  background:linear-gradient(180deg,var(--gold),var(--clay));
  transform:scaleY(0);
  transform-origin:top;
}

/* ---------- 侧边轨道 ---------- */
.jh-rail{
  position:fixed;
  inset:0 auto 0 0;
  width:var(--rail-w);
  z-index:60;
  display:flex;
  flex-direction:column;
  gap:24px;
  padding:26px 20px 22px;
  background:var(--ink);
  color:var(--paper);
  overflow-y:auto;
  overscroll-behavior:contain;
  border-right:1px solid rgba(197,138,42,.28);
}
.jh-rail::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background-image:repeating-linear-gradient(to bottom,rgba(244,239,228,.055) 0 1px,transparent 1px 46px);
}
.jh-rail::-webkit-scrollbar{width:6px}
.jh-rail::-webkit-scrollbar-thumb{background:rgba(197,138,42,.45)}
.jh-rail__brand,
.jh-rail__nav,
.jh-rail__foot{position:relative;z-index:1}
.jh-rail__brand{display:flex;flex-direction:column;gap:14px}

/* ---------- 品牌标记 ---------- */
.jh-brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:inherit;
  min-width:0;
}
.jh-brand__glyph{
  flex:0 0 auto;
  width:44px;height:44px;
  display:grid;place-items:center;
  background:var(--gold);
  color:var(--ink);
  font-family:var(--font-display);
  font-weight:900;
  font-size:23px;
  line-height:1;
  border:2px solid var(--paper);
  box-shadow:3px 3px 0 rgba(0,0,0,.4);
}
.jh-brand__text{display:flex;flex-direction:column;gap:2px;min-width:0}
.jh-brand__name{
  font-family:var(--font-display);
  font-weight:800;
  font-size:19px;
  letter-spacing:.1em;
  color:var(--paper);
  line-height:1.2;
}
.jh-brand__sub{
  font-family:var(--font-mono);
  font-size:10px;
  letter-spacing:.12em;
  color:rgba(244,239,228,.58);
  white-space:nowrap;
}

/* ---------- 当前章节标签 ---------- */
.jh-rail__tag{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:7px 10px;
  border:1px solid rgba(216,209,195,.24);
  background:rgba(244,239,228,.05);
  font-family:var(--font-mono);
  font-size:10.5px;
  letter-spacing:.14em;
  color:rgba(244,239,228,.66);
}
.jh-rail__tag-num{color:var(--gold);font-weight:700;letter-spacing:.1em}

/* ---------- 导航 ---------- */
.jh-rail__nav{
  display:flex;
  flex-direction:column;
  gap:10px;
  border-top:1px solid rgba(216,209,195,.2);
  padding-top:18px;
  flex:1 1 auto;
}
.jh-nav__head{
  font-family:var(--font-mono);
  font-size:10px;
  letter-spacing:.22em;
  color:rgba(197,138,42,.9);
  text-transform:uppercase;
}
.jh-nav{display:flex;flex-direction:column;gap:2px}
.jh-nav__item{display:block}
.jh-nav__link{
  display:flex;
  align-items:baseline;
  gap:10px;
  padding:9px 10px 9px 12px;
  border-left:2px solid transparent;
  color:rgba(244,239,228,.7);
  text-decoration:none;
  transition:background .18s var(--ease),color .18s var(--ease),border-color .18s var(--ease);
}
.jh-nav__link:hover,
.jh-nav__link:focus-visible{
  color:var(--paper);
  background:rgba(244,239,228,.07);
}
.jh-nav__link[aria-current="page"]{
  background:rgba(197,138,42,.16);
  border-left-color:var(--gold);
  color:#fff;
}
.jh-nav__link[aria-current="page"] .jh-nav__label{font-weight:800}
.jh-nav__num{
  flex:0 0 auto;
  font-family:var(--font-mono);
  font-size:10.5px;
  letter-spacing:.1em;
  color:rgba(197,138,42,.85);
}
.jh-nav__link[aria-current="page"] .jh-nav__num{color:var(--gold)}
.jh-nav__label{font-size:14.5px;font-weight:600;letter-spacing:.05em}

/* ---------- 轨道底部 ---------- */
.jh-rail__foot{
  display:flex;
  flex-direction:column;
  gap:12px;
  border-top:1px solid rgba(216,209,195,.2);
  padding-top:16px;
}
.jh-rail__note{
  font-size:11.5px;
  line-height:1.65;
  letter-spacing:.02em;
  color:rgba(244,239,228,.5);
}

/* ---------- 按钮 ---------- */
.jh-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:11px 18px;
  border:2px solid var(--ink);
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font-body);
  font-weight:700;
  font-size:14px;
  letter-spacing:.06em;
  text-decoration:none;
  cursor:pointer;
  box-shadow:var(--shadow-sm);
  transition:transform .16s var(--ease),box-shadow .16s var(--ease),background .16s var(--ease),color .16s var(--ease);
}
.jh-btn:hover{transform:translate(-2px,-2px);box-shadow:6px 6px 0 rgba(16,36,59,.24)}
.jh-btn:active{transform:none;box-shadow:2px 2px 0 rgba(16,36,59,.2)}
.jh-btn--gold{background:var(--gold);color:var(--ink);border-color:var(--ink)}
.jh-btn--ink{background:var(--ink);color:var(--paper);border-color:var(--gold)}
.jh-btn--block{width:100%;display:flex}

/* ---------- 移动端顶栏与抽屉 ---------- */
.jh-mobilebar{display:none}
.jh-burger{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:9px 12px;
  border:1px solid rgba(244,239,228,.35);
  background:rgba(244,239,228,.06);
  color:var(--paper);
  cursor:pointer;
}
.jh-burger__icon{display:flex;flex-direction:column;justify-content:center;gap:4px;width:16px}
.jh-burger__bar{
  display:block;
  width:16px;height:2px;
  background:var(--gold);
  transition:transform .22s var(--ease),opacity .18s var(--ease);
}
.jh-burger[aria-expanded="true"] .jh-burger__bar:nth-child(1){transform:translateY(6px) rotate(45deg)}
.jh-burger[aria-expanded="true"] .jh-burger__bar:nth-child(2){opacity:0}
.jh-burger[aria-expanded="true"] .jh-burger__bar:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
.jh-burger__txt{
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.18em;
  color:rgba(244,239,228,.85);
}

/* ---------- 页脚 ---------- */
.jh-foot{
  position:relative;
  overflow:hidden;
  background:var(--ink);
  color:rgba(244,239,228,.74);
}
.jh-foot::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background-image:repeating-linear-gradient(to right,rgba(244,239,228,.05) 0 1px,transparent 1px 72px);
}
.jh-foot__strip{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
  padding:14px var(--pad);
  background:var(--gold);
  color:var(--ink);
  text-decoration:none;
  border-bottom:3px solid var(--ink-deep);
  transition:background .18s var(--ease);
}
.jh-foot__strip:hover{background:#D6A03F}
.jh-foot__strip-num{
  font-family:var(--font-mono);
  font-size:11px;
  font-weight:700;
  letter-spacing:.14em;
  padding:3px 7px;
  border:1.5px solid var(--ink);
}
.jh-foot__strip-text{
  font-family:var(--font-display);
  font-weight:800;
  font-size:15px;
  letter-spacing:.1em;
}
.jh-foot__strip-hint{
  margin-left:auto;
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.1em;
  opacity:.82;
}
.jh-foot__inner{
  position:relative;
  z-index:1;
  max-width:var(--wrap);
  margin:0 auto;
  padding:54px var(--pad) 38px;
  display:grid;
  grid-template-columns:1.45fr .85fr 1.25fr .9fr;
  gap:36px 40px;
  align-items:start;
}
.jh-foot__col{min-width:0}
.jh-foot__word{
  font-family:var(--font-display);
  font-weight:900;
  font-size:26px;
  letter-spacing:.14em;
  color:var(--paper);
  margin-bottom:10px;
}
.jh-foot__pitch{
  font-size:13.5px;
  line-height:1.85;
  color:rgba(244,239,228,.64);
  max-width:26em;
}
.jh-foot__title{
  margin-bottom:14px;
  font-family:var(--font-mono);
  font-size:10.5px;
  font-weight:700;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--gold);
}
.jh-foot__links{display:flex;flex-direction:column;gap:8px}
.jh-foot__link{
  display:inline-flex;
  align-items:baseline;
  gap:8px;
  color:rgba(244,239,228,.76);
  text-decoration:none;
  font-size:14px;
  transition:color .16s var(--ease);
}
.jh-foot__link:hover{color:var(--gold)}
.jh-foot__link-num{
  font-family:var(--font-mono);
  font-size:10px;
  color:rgba(197,138,42,.8);
}
.jh-foot__meta{display:flex;flex-direction:column;gap:12px}
.jh-foot__meta-row{display:flex;flex-direction:column;gap:2px}
.jh-foot__meta dt{
  font-family:var(--font-mono);
  font-size:10px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:rgba(244,239,228,.45);
}
.jh-foot__meta dd{
  font-size:13.5px;
  line-height:1.7;
  color:rgba(244,239,228,.84);
  word-break:break-word;
}
.jh-foot__mark{
  position:relative;
  z-index:1;
  padding:0 var(--pad) 20px;
  font-family:var(--font-display);
  font-weight:900;
  font-size:clamp(2.6rem,9vw,6.5rem);
  line-height:.92;
  letter-spacing:.08em;
  color:transparent;
  -webkit-text-stroke:1px rgba(197,138,42,.34);
  user-select:none;
  overflow:hidden;
  white-space:nowrap;
}
.jh-foot__base{
  position:relative;
  z-index:1;
  max-width:var(--wrap);
  margin:0 auto;
  padding:18px var(--pad) 30px;
  border-top:1px solid rgba(216,209,195,.18);
  display:flex;
  flex-wrap:wrap;
  gap:8px 24px;
  justify-content:space-between;
  align-items:baseline;
}
.jh-foot__legal{
  font-family:var(--font-mono);
  font-size:11.5px;
  letter-spacing:.06em;
  color:rgba(244,239,228,.5);
}

/* ---------- 布局通用件 ---------- */
.jh-main{display:block}
.jh-wrap{
  width:100%;
  max-width:var(--wrap);
  margin:0 auto;
  padding:0 var(--pad);
}
.jh-section{
  padding:64px 0;
  border-top:1px solid rgba(63,74,84,.16);
}
.jh-section:first-of-type{border-top:0}
.jh-rule{
  height:3px;
  border:0;
  margin:26px 0 0;
  background:linear-gradient(90deg,var(--gold) 0 64px,rgba(63,74,84,.2) 64px 100%);
}
.jh-grid{display:grid;gap:22px}
.jh-grid--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.jh-grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}

/* ---------- 排版 ---------- */
.jh-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--gold-deep);
}
.jh-eyebrow__num{
  padding:2px 7px;
  background:var(--ink);
  color:var(--paper);
  font-weight:700;
}
.jh-title{font-size:clamp(2rem,4.2vw,3.4rem);margin-bottom:16px}
.jh-title--xl{
  font-size:clamp(3rem,8vw,7rem);
  line-height:.96;
  letter-spacing:-.035em;
}
.jh-lede{
  font-size:17px;
  line-height:1.85;
  color:var(--rock);
  max-width:62ch;
}

/* ---------- 面包屑 ---------- */
.jh-crumb{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-bottom:20px;
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.12em;
  color:rgba(63,74,84,.78);
}
.jh-crumb a{
  color:var(--gold-deep);
  text-decoration:none;
  border-bottom:1px solid rgba(154,100,18,.4);
}
.jh-crumb a:hover{color:var(--ink)}
.jh-crumb__sep{color:var(--dust)}

/* ---------- 档案卡 ---------- */
.jh-card{
  position:relative;
  padding:22px 22px 20px;
  background:var(--card);
  border:1.5px solid rgba(63,74,84,.28);
  box-shadow:var(--shadow-sm);
}
.jh-card__num{
  display:block;
  margin-bottom:10px;
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.16em;
  color:var(--gold-deep);
}
.jh-card__title{
  font-family:var(--font-display);
  font-size:18px;
  font-weight:800;
  color:var(--ink);
  margin-bottom:8px;
}
.jh-card__text{
  font-size:14.5px;
  line-height:1.78;
  color:var(--rock);
}

/* ---------- 展签标签 ---------- */
.jh-tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 9px;
  border:1.5px solid currentColor;
  background:transparent;
  color:var(--rock);
  font-family:var(--font-mono);
  font-size:10.5px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  white-space:nowrap;
}
.jh-tag--gold{color:var(--gold-deep);background:rgba(197,138,42,.14)}
.jh-tag--classic{color:var(--slate);background:rgba(79,111,120,.14)}
.jh-tag--current{color:var(--brick);background:rgba(143,63,51,.14)}
.jh-tag--moss{color:var(--moss);background:rgba(95,115,88,.16)}
.jh-tag--clay{color:var(--clay);background:rgba(184,107,75,.16)}
.jh-tag--hot{color:#fff;background:var(--hot);border-color:var(--hot)}
.jh-tag--ink{color:var(--paper);background:var(--ink);border-color:var(--ink)}

/* ---------- 图片容器（页面阶段放 <img> 或占位） ---------- */
.jh-figure{display:flex;flex-direction:column;gap:10px}
.jh-figure__frame{
  position:relative;
  aspect-ratio:16/10;
  overflow:hidden;
  background:
    linear-gradient(135deg,rgba(79,111,120,.18),rgba(244,239,228,.56)),
    var(--dust);
  border:1.5px solid rgba(63,74,84,.3);
  box-shadow:var(--shadow-sm);
}
.jh-figure__frame > img{
  width:100%;height:100%;
  object-fit:cover;
  display:block;
}
.jh-figure__frame--wide{aspect-ratio:21/9}
.jh-figure__frame--tall{aspect-ratio:4/5}
.jh-figure__frame--square{aspect-ratio:1/1}
.jh-figure__cap{
  font-family:var(--font-mono);
  font-size:12.5px;
  line-height:1.7;
  letter-spacing:.04em;
  color:rgba(63,74,84,.8);
}

/* ---------- 键值对照 ---------- */
.jh-kv{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:8px 18px;
  font-size:14px;
}
.jh-kv dt{
  padding-top:3px;
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--gold-deep);
}
.jh-kv dd{color:var(--rock)}

/* ---------- 显现动画 ---------- */
[data-reveal]{transition:opacity .55s var(--ease),transform .55s var(--ease)}
[data-reveal].jh-armed{opacity:0;transform:translateY(14px)}
[data-reveal].jh-armed.is-in{opacity:1;transform:none}

/* ---------- 响应式 ---------- */
@media (max-width:1100px){
  :root{--rail-w:218px;--pad:26px}
  .jh-brand__sub{font-size:9px;letter-spacing:.08em}
  .jh-foot__inner{grid-template-columns:1.3fr 1fr 1.2fr;gap:30px}
  .jh-foot__col:last-child{grid-column:1 / -1}
  .jh-foot__links{flex-direction:row;flex-wrap:wrap;gap:8px 20px}
}

@media (max-width:900px){
  body{padding-left:0;padding-top:var(--bar-h)}
  .jh-mobilebar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    position:fixed;
    inset:0 0 auto 0;
    height:var(--bar-h);
    z-index:80;
    padding:0 16px;
    background:var(--ink);
    color:var(--paper);
    border-bottom:1px solid rgba(197,138,42,.42);
  }
  .jh-mobilebar .jh-brand__glyph{width:34px;height:34px;font-size:17px;border-width:1.5px;box-shadow:2px 2px 0 rgba(0,0,0,.4)}
  .jh-mobilebar .jh-brand__name{font-size:16px;letter-spacing:.08em}
  .jh-mobilebar .jh-brand__sub{font-size:9px;letter-spacing:.08em}
  .jh-burger{display:inline-flex}

  .jh-rail{
    inset:var(--bar-h) 0 0 0;
    width:100%;
    border-right:0;
    border-bottom:2px solid var(--gold);
    transform:translateY(-10px);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .22s var(--ease),transform .22s var(--ease),visibility .22s linear;
  }
  .jh-rail[data-open]{
    transform:none;
    opacity:1;
    visibility:visible;
    pointer-events:auto;
  }
  .jh-nav__label{font-size:16px}
  .jh-nav__link{padding-top:12px;padding-bottom:12px}
  .jh-rail__nav{flex:0 0 auto}

  .jh-section{padding:48px 0}
  .jh-foot__inner{grid-template-columns:1fr 1fr;padding:40px var(--pad) 30px;gap:28px}
  .jh-foot__col:last-child{grid-column:auto}
  .jh-foot__links{flex-direction:column}
  .jh-foot__strip-hint{flex:1 1 100%;margin-left:0;font-size:10px}
  .jh-foot__mark{font-size:clamp(2.4rem,13vw,4.6rem)}
}

@media (max-width:760px){
  :root{--pad:20px}
  body{font-size:16px}
  .jh-grid--2,.jh-grid--3{grid-template-columns:1fr}
  .jh-crumb{font-size:10px}
  .jh-foot__inner{grid-template-columns:1fr;gap:26px}
  .jh-foot__base{flex-direction:column;align-items:flex-start;gap:6px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
  .jh-skip{transition:none}
  [data-reveal],
  [data-reveal].jh-armed{
    opacity:1;
    transform:none;
  }
  .jh-btn:hover{transform:none}
  .jh-progress i{transition:none}
}
