:root{
  --ht-blue:#0A5CFF;
  --ht-blue-deep:#0747C0;
  --ht-blue-soft:#4C8DFF;
  --ht-blue-line:#D9E4FF;
  --ht-orange:#FF6B35;
  --ht-orange-soft:#FFA37A;
  --ht-ink:#1A1A2E;
  --ht-graphite:#6B6A72;
  --ht-cream:#F6F1E7;
  --ht-mist:#F5F7FA;
  --ht-teal:#12B39B;
  --ht-spine-w:232px;
  --ht-content-max:1080px;
  --ht-font:"Source Han Sans SC","Noto Sans SC","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,-apple-system,sans-serif;
  --ht-mono-stack:ui-monospace,"JetBrains Mono","Roboto Mono","SFMono-Regular",Menlo,Consolas,monospace;
  --ht-ease:cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after{box-sizing:border-box}

html{-webkit-text-size-adjust:100%;text-size-adjust:100%}

body{
  margin:0;
  font-family:var(--ht-font);
  font-size:16px;
  font-weight:400;
  line-height:1.8;
  color:var(--ht-ink);
  background-color:var(--ht-cream);
  background-image:radial-gradient(rgba(26,26,46,.055) 1px,transparent 1px);
  background-size:10px 10px;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3,h4,h5,p,ul,ol,li,figure,blockquote{margin:0}
ul,ol{padding:0;list-style:none}
img,svg{display:block;max-width:100%}
a{color:var(--ht-blue-deep);text-decoration:none;transition:color .18s var(--ht-ease)}
a:hover{color:var(--ht-blue)}
button{font-family:inherit}
hr{border:0}

:focus-visible{outline:3px solid var(--ht-orange);outline-offset:2px;border-radius:2px}

/* ---------- 跳至主要内容 ---------- */
.ht-skip{
  position:fixed;
  top:10px;left:10px;
  z-index:900;
  padding:10px 18px;
  font-size:13px;letter-spacing:.14em;
  color:var(--ht-cream);
  background:var(--ht-ink);
  border:1px solid var(--ht-orange);
  border-radius:2px;
  transform:translateY(-180%);
  transition:transform .18s var(--ht-ease);
}
.ht-skip:focus{transform:translateY(0);color:var(--ht-cream)}

/* ---------- 布局骨架 ---------- */
.ht-main{
  margin-inline-start:var(--ht-spine-w);
  min-width:0;
}
.ht-wrap{
  width:100%;
  max-width:var(--ht-content-max);
  margin:0 auto;
  padding-inline:clamp(20px,4vw,56px);
}

/* ---------- 左缘书脊导航 ---------- */
.ht-spine{
  position:fixed;
  top:0;left:0;bottom:0;
  width:var(--ht-spine-w);
  display:flex;
  flex-direction:column;
  padding:24px 18px 18px;
  color:rgba(246,241,231,.8);
  background:var(--ht-ink);
  border-right:1px solid rgba(76,141,255,.4);
  overflow-y:auto;
  overflow-x:hidden;
  z-index:60;
}

.ht-spine__bar{display:block}

.ht-brand{display:block;padding-bottom:16px;border-bottom:1px solid rgba(246,241,231,.14)}
.ht-brand__link{display:flex;align-items:center;gap:10px;color:var(--ht-cream)}
.ht-brand__link:hover{color:var(--ht-cream)}
.ht-brand__mark{
  flex:none;
  width:34px;height:34px;
  display:grid;place-items:center;
  font-size:15px;font-weight:700;
  color:#fff;
  background:var(--ht-blue);
  border:1px solid rgba(246,241,231,.55);
  border-radius:2px;
}
.ht-brand__text{display:block;min-width:0}
.ht-brand__name{display:block;font-size:14.5px;font-weight:700;letter-spacing:.08em;line-height:1.4}
.ht-brand__domain{display:block;font-size:10.5px;letter-spacing:.04em;color:rgba(246,241,231,.5)}

.ht-nav-toggle{
  display:none;
  align-items:center;gap:8px;
  padding:8px 12px;
  font-size:12px;letter-spacing:.18em;
  color:var(--ht-cream);
  background:transparent;
  border:1px solid rgba(246,241,231,.38);
  border-radius:2px;
  cursor:pointer;
}
.ht-nav-toggle__bars{position:relative;display:block;width:16px;height:2px;background:currentColor}
.ht-nav-toggle__bars::before,
.ht-nav-toggle__bars::after{content:"";position:absolute;left:0;width:16px;height:2px;background:currentColor;transition:transform .18s var(--ht-ease),top .18s var(--ht-ease)}
.ht-nav-toggle__bars::before{top:-5px}
.ht-nav-toggle__bars::after{top:5px}
.ht-spine[data-open] .ht-nav-toggle__bars{background:transparent}
.ht-spine[data-open] .ht-nav-toggle__bars::before{top:0;transform:rotate(45deg)}
.ht-spine[data-open] .ht-nav-toggle__bars::after{top:0;transform:rotate(-45deg)}

.ht-spine__tagline{
  margin:14px 0 20px;
  padding-bottom:16px;
  font-size:12px;line-height:1.7;letter-spacing:.06em;
  color:rgba(246,241,231,.5);
  border-bottom:1px solid rgba(246,241,231,.14);
}

.ht-nav-panel{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}

.ht-nav__title,
.ht-index__title{
  margin:0 0 8px;
  font-size:10.5px;letter-spacing:.28em;
  color:var(--ht-blue-soft);
}
.ht-nav__list{margin:0 0 22px}
.ht-nav__item{display:block}

.ht-nav__link{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  padding:9px 10px;
  font-size:13.5px;letter-spacing:.14em;
  color:rgba(246,241,231,.76);
  border-left:2px solid transparent;
  border-radius:1px;
  transition:background-color .18s var(--ht-ease),color .18s var(--ht-ease),border-color .18s var(--ht-ease);
}
.ht-nav__link:hover{color:#fff;background:rgba(76,141,255,.16);border-left-color:var(--ht-blue-soft)}
.ht-nav__link[aria-current="page"]{
  color:#fff;
  font-weight:500;
  background:rgba(10,92,255,.3);
  border-left-color:var(--ht-orange);
}
.ht-nav__num{font-family:var(--ht-mono-stack);font-size:10.5px;letter-spacing:.08em;color:rgba(246,241,231,.34)}
.ht-nav__link[aria-current="page"] .ht-nav__num{color:var(--ht-orange-soft)}

.ht-index__list{margin:0 0 18px}
.ht-index__item{display:block}
.ht-index__link{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:8px;
  padding:7px 2px;
  font-size:12.5px;letter-spacing:.1em;
  color:rgba(246,241,231,.62);
  border-bottom:1px dashed rgba(246,241,231,.18);
  transition:color .18s var(--ht-ease),border-color .18s var(--ht-ease);
}
.ht-index__link:hover{color:var(--ht-orange-soft);border-bottom-color:var(--ht-orange-soft)}
.ht-index__hint{font-family:var(--ht-mono-stack);font-size:10px;color:rgba(246,241,231,.3)}

.ht-spine__foot{
  margin-top:auto;
  padding-top:20px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.ht-top-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:9px 12px;
  font-family:inherit;
  font-size:12px;letter-spacing:.18em;
  color:rgba(246,241,231,.62);
  background:transparent;
  border:1px solid rgba(246,241,231,.24);
  border-radius:2px;
  cursor:pointer;
  transition:color .18s var(--ht-ease),border-color .18s var(--ht-ease),background-color .18s var(--ht-ease);
}
.ht-top-btn:hover,
.ht-top-btn[data-visible]{color:var(--ht-cream);border-color:var(--ht-orange);background:rgba(255,107,53,.14)}
.ht-spine__version{font-size:10.5px;letter-spacing:.16em;text-align:center;color:rgba(246,241,231,.34)}

.ht-spine__progress{
  position:fixed;
  top:0;
  left:calc(var(--ht-spine-w) - 3px);
  width:3px;
  height:100vh;
  background:rgba(76,141,255,.16);
  pointer-events:none;
  z-index:61;
}
.ht-spine__progress-bar{
  display:block;
  width:100%;
  height:var(--ht-progress,0%);
  background:linear-gradient(180deg,var(--ht-blue-soft),var(--ht-orange));
  transition:height .12s linear;
}

/* ---------- 页脚 ---------- */
.ht-footer{
  margin-inline-start:var(--ht-spine-w);
  margin-top:clamp(72px,9vw,140px);
  color:rgba(246,241,231,.78);
  background:var(--ht-ink);
  border-top:3px solid var(--ht-blue);
}
.ht-footer__inner{
  width:100%;
  max-width:var(--ht-content-max);
  margin:0 auto;
  padding:clamp(44px,6vw,72px) clamp(20px,4vw,56px) 26px;
}
.ht-footer__grid{
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(0,.8fr) minmax(0,.8fr) minmax(0,.8fr) minmax(0,1.5fr);
  gap:32px 26px;
}
.ht-footer__brand{min-width:0}
.ht-footer__name{font-size:16px;font-weight:700;letter-spacing:.1em;color:var(--ht-cream)}
.ht-footer__domain{margin-top:6px;font-size:12px;letter-spacing:.05em;color:var(--ht-blue-soft);word-break:break-all}
.ht-footer__tagline{margin-top:12px;font-size:12.5px;line-height:1.8;color:rgba(246,241,231,.5)}

.ht-footer__col-title{
  margin-bottom:12px;
  padding-bottom:8px;
  font-size:11px;letter-spacing:.26em;
  color:var(--ht-orange-soft);
  border-bottom:1px solid rgba(246,241,231,.16);
}
.ht-footer__col{min-width:0}
.ht-footer__contact{min-width:0}
.ht-footer__list{display:grid;gap:9px}
.ht-footer__list li{display:grid;gap:3px}
.ht-footer__link{font-size:13.5px;letter-spacing:.1em;color:rgba(246,241,231,.74);border-bottom:1px solid transparent;padding-bottom:2px;transition:color .18s var(--ht-ease),border-color .18s var(--ht-ease)}
.ht-footer__link:hover{color:var(--ht-orange-soft);border-bottom-color:var(--ht-orange-soft)}
.ht-footer__meta{font-size:10.5px;letter-spacing:.2em;color:rgba(246,241,231,.42)}
.ht-footer__strong{font-size:13px;line-height:1.7;color:var(--ht-cream);word-break:break-word}

.ht-footer__legal{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px 26px;
  margin-top:clamp(32px,4vw,48px);
  padding-top:18px;
  border-top:1px solid rgba(246,241,231,.16);
}
.ht-footer__legal-item{font-size:12px;letter-spacing:.12em;color:rgba(246,241,231,.46)}

/* ---------- 按钮 ---------- */
.ht-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:11px 22px;
  font-family:inherit;
  font-size:13.5px;
  font-weight:500;
  line-height:1.4;
  letter-spacing:.12em;
  color:var(--ht-ink);
  background:var(--ht-mist);
  border:1px solid var(--ht-ink);
  border-radius:2px;
  cursor:pointer;
  transition:transform .18s var(--ht-ease),box-shadow .18s var(--ht-ease),background-color .18s var(--ht-ease),color .18s var(--ht-ease);
}
.ht-btn:hover{color:var(--ht-blue-deep);background:var(--ht-blue-line);transform:translate(-2px,-2px);box-shadow:4px 4px 0 var(--ht-ink)}
.ht-btn:active{transform:translate(0,0);box-shadow:1px 1px 0 var(--ht-ink)}
.ht-btn--accent{background:var(--ht-orange);color:var(--ht-ink);box-shadow:3px 3px 0 var(--ht-blue-deep)}
.ht-btn--accent:hover{background:var(--ht-orange-soft);color:var(--ht-ink);box-shadow:6px 6px 0 var(--ht-blue-deep)}
.ht-btn--line{background:transparent}
.ht-btn--block{width:100%}

/* ---------- 章节与排版 ---------- */
.ht-section{padding-block:clamp(56px,7vw,110px)}
.ht-section--tight{padding-block:clamp(30px,4vw,56px)}
.ht-section-head{margin-bottom:clamp(24px,3vw,42px)}

.ht-eyebrow{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:14px;
  font-size:12px;
  letter-spacing:.18em;
  color:var(--ht-graphite);
}
.ht-eyebrow::after{content:"";flex:1;height:1px;background:var(--ht-blue-line)}
.ht-eyebrow__num{font-family:var(--ht-mono-stack);color:var(--ht-blue);letter-spacing:.08em}

.ht-display{
  font-size:clamp(2.8rem,6.4vw,5.6rem);
  font-weight:300;
  line-height:1.05;
  letter-spacing:-.02em;
  color:var(--ht-ink);
}
.ht-h2{
  font-size:clamp(1.5rem,2.6vw,2.1rem);
  font-weight:900;
  line-height:1.25;
  letter-spacing:-.01em;
}
.ht-h3{font-size:1.15rem;font-weight:700;line-height:1.45}
.ht-lead{
  max-width:56ch;
  font-size:clamp(1.02rem,1.5vw,1.2rem);
  line-height:1.8;
  color:#3b3b4e;
}
.ht-prose{max-width:68ch;font-size:16.5px;line-height:1.8}
.ht-prose p+p{margin-top:1.1em}
.ht-mono{font-family:var(--ht-mono-stack);font-variant-numeric:tabular-nums;letter-spacing:.02em}
.ht-data{
  font-family:var(--ht-mono-stack);
  font-size:1.15em;
  font-variant-numeric:tabular-nums;
  color:var(--ht-blue-deep);
}
.ht-rule{height:1px;background:var(--ht-blue-line);border:0;margin:0}

.ht-breadcrumb{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-bottom:22px;
  font-size:12px;
  letter-spacing:.16em;
  color:var(--ht-graphite);
}
.ht-breadcrumb a{color:var(--ht-graphite)}
.ht-breadcrumb a:hover{color:var(--ht-blue)}
.ht-breadcrumb__sep{color:var(--ht-blue-soft)}
.ht-breadcrumb [aria-current="page"]{color:var(--ht-ink)}

/* ---------- 网格 ---------- */
.ht-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:24px}
[class*="ht-span-"]{grid-column:1/-1}
@media (min-width:901px){
  .ht-span-3{grid-column:span 3}
  .ht-span-4{grid-column:span 4}
  .ht-span-5{grid-column:span 5}
  .ht-span-6{grid-column:span 6}
  .ht-span-7{grid-column:span 7}
  .ht-span-8{grid-column:span 8}
  .ht-span-9{grid-column:span 9}
  .ht-span-12{grid-column:1/-1}
}
@media (max-width:900px){
  .ht-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:20px}
}
@media (max-width:600px){
  .ht-grid{grid-template-columns:1fr;gap:18px}
}

/* ---------- 卡片 / 面板 ---------- */
.ht-card{
  position:relative;
  padding:22px 22px 24px;
  background:var(--ht-mist);
  border:1px solid var(--ht-ink);
  border-radius:2px;
  box-shadow:2px 2px 0 rgba(26,26,46,.85);
  transition:transform .18s var(--ht-ease),box-shadow .18s var(--ht-ease),border-color .18s var(--ht-ease);
}
.ht-card:hover{transform:translate(-4px,-4px);box-shadow:6px 6px 0 rgba(26,26,46,.85);border-color:var(--ht-blue-deep)}
.ht-card>:first-child{margin-top:0}
.ht-card>:last-child{margin-bottom:0}

.ht-panel{
  padding:clamp(20px,3vw,34px);
  background:var(--ht-mist);
  border:1px solid var(--ht-ink);
  border-radius:2px;
}
.ht-panel--flush{padding:0;overflow:hidden}
.ht-panel--ink{background:var(--ht-ink);color:rgba(246,241,231,.82);border-color:var(--ht-ink)}
.ht-panel--ink .ht-h2,.ht-panel--ink .ht-h3{color:var(--ht-cream)}
.ht-panel--ink .ht-eyebrow{color:rgba(246,241,231,.6)}
.ht-panel--ink .ht-eyebrow::after{background:rgba(76,141,255,.5)}
.ht-panel--ink .ht-mono{color:var(--ht-orange-soft)}

/* ---------- 票根标签 ---------- */
.ht-ticket{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:4px 13px;
  font-size:12px;
  line-height:1.7;
  letter-spacing:.14em;
  color:var(--ht-blue-deep);
  background:rgba(217,228,255,.5);
  border:1px dashed var(--ht-blue-soft);
  border-radius:999px 2px 2px 999px;
  transition:background-color .18s var(--ht-ease),color .18s var(--ht-ease),border-color .18s var(--ht-ease);
}
.ht-ticket::before{
  content:"";
  flex:none;
  width:7px;height:7px;
  border-radius:50%;
  background:var(--ht-cream);
  border:1px solid var(--ht-blue-soft);
}
.ht-ticket:hover{background:rgba(255,163,122,.35);border-color:var(--ht-orange);color:var(--ht-ink)}
.ht-ticket--state{border-style:solid;border-color:var(--ht-teal);background:rgba(18,179,155,.12);color:#0b6b5d}
.ht-ticket--state::before{background:var(--ht-teal);border-color:var(--ht-teal)}
.ht-ticket--accent{border-color:var(--ht-orange);background:rgba(255,163,122,.28);color:var(--ht-ink)}
.ht-ticket--accent::before{background:var(--ht-orange);border-color:var(--ht-orange)}

/* ---------- 图片容器 ---------- */
.ht-figure{margin:0}
.ht-figure__frame{
  position:relative;
  overflow:hidden;
  aspect-ratio:16/10;
  background:var(--ht-mist);
  border:1px solid var(--ht-ink);
  border-radius:2px;
  box-shadow:4px 4px 0 rgba(26,26,46,.85);
}
.ht-figure__img{width:100%;height:100%;object-fit:cover}
.ht-figure__ph{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  padding:16px;
  font-size:12px;
  letter-spacing:.2em;
  color:var(--ht-graphite);
  text-align:center;
  background:linear-gradient(135deg,rgba(10,92,255,.16),rgba(76,141,255,.05) 46%,rgba(255,107,53,.14));
}
.ht-figure__cap{
  margin-top:10px;
  font-size:12px;
  letter-spacing:.16em;
  color:var(--ht-graphite);
}
.ht-figure--wide .ht-figure__frame{aspect-ratio:21/9}
.ht-figure--tall .ht-figure__frame{aspect-ratio:3/4}
.ht-figure--square .ht-figure__frame{aspect-ratio:1/1}

/* ---------- 滚动进入 ---------- */
.ht-js [data-reveal]{opacity:0;transform:translateY(12px)}
.ht-js [data-reveal].is-visible{
  opacity:1;
  transform:translateY(0);
  transition:opacity .5s var(--ht-ease),transform .5s var(--ht-ease);
}

/* ---------- 平板与手机：书脊转为顶部横向书脊条 ---------- */
@media (max-width:1023px){
  .ht-spine{
    position:sticky;
    top:0;left:auto;right:auto;bottom:auto;
    width:auto;
    padding:0;
    border-right:0;
    border-bottom:1px solid rgba(76,141,255,.4);
    overflow:visible;
  }
  .ht-spine__bar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:10px 16px;
  }
  .ht-brand{padding-bottom:0;border-bottom:0}
  .ht-brand__name{font-size:13.5px}
  .ht-nav-toggle{display:inline-flex}
  .ht-spine__tagline{display:none}

  .ht-nav-panel{
    position:absolute;
    top:100%;left:0;right:0;
    display:block;
    max-height:0;
    padding:0 16px;
    overflow:hidden;
    background:var(--ht-ink);
    border-bottom:1px solid rgba(76,141,255,.4);
    transition:max-height .22s var(--ht-ease);
  }
  .ht-spine[data-open] .ht-nav-panel{
    max-height:min(74vh,620px);
    overflow-y:auto;
    padding-bottom:22px;
  }
  .ht-nav__title,.ht-index__title{margin-top:18px}
  .ht-spine__foot{margin-top:16px}

  .ht-main,.ht-footer{margin-inline-start:0}

  .ht-spine__progress{
    position:absolute;
    top:auto;left:0;right:0;bottom:0;
    width:auto;
    height:3px;
    background:rgba(246,241,231,.14);
  }
  .ht-spine__progress-bar{
    width:var(--ht-progress,0%);
    height:100%;
    background:linear-gradient(90deg,var(--ht-blue-soft),var(--ht-orange));
    transition:width .12s linear;
  }

  .ht-footer__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 22px}
}

@media (max-width:640px){
  .ht-footer__grid{grid-template-columns:1fr;gap:26px}
  .ht-footer__legal{flex-direction:column;align-items:flex-start;gap:6px}
  .ht-card{padding:18px 18px 20px}
  .ht-display{font-size:clamp(2.1rem,9vw,3rem)}
}

/* ---------- 减弱动态 ---------- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    scroll-behavior:auto !important;
  }
  .ht-js [data-reveal]{opacity:1;transform:none}
  .ht-card:hover,.ht-btn:hover{transform:none}
}
