/* ==========================================================================
   华体汇看台 — /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 页头 / 页脚 / 按钮 / 面包屑 / 网格 / 基础组件
   ========================================================================== */

:root{
  --ht-ink:#060A11;
  --ht-ink-2:#0D1626;
  --ht-panel:#16202F;
  --ht-lime:#C6F53C;
  --ht-orange:#FF5A34;
  --ht-cyan:#3FE0D0;
  --ht-violet:#7B61FF;
  --ht-white:#F2F6FC;
  --ht-muted:#8A99B0;
  --ht-line:#24344B;

  --ht-max:1280px;
  --ht-gutter:clamp(16px,4vw,40px);
  --ht-radius:2px;

  --ht-notch:polygon(18px 0, 100% 0, 100% 100%, 0 100%, 0 18px);
  --ht-notch-sm:polygon(9px 0, 100% 0, 100% 100%, 0 100%, 0 9px);

  --ht-font:"Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
            "Source Han Sans SC", "Noto Sans CJK SC", Arial, sans-serif;
  --ht-mono:ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
            "Courier New", monospace;

  --ht-ease:180ms cubic-bezier(.32,.72,.28,1);
}

/* ---------- reset ---------- */
*,
*::before,
*::after{box-sizing:border-box;}

html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
  scroll-padding-top:132px;
}

body{
  margin:0;
  background:var(--ht-ink);
  color:var(--ht-white);
  font-family:var(--ht-font);
  font-size:16px;
  line-height:1.75;
  letter-spacing:.01em;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}

h1,h2,h3,h4,p,figure,blockquote,dl,dd{margin:0;}
ul,ol{margin:0;padding:0;list-style:none;}
img,svg,video{max-width:100%;}
img{height:auto;}
button,input,select,textarea{font:inherit;color:inherit;}
button{background:none;border:0;cursor:pointer;}
a{color:var(--ht-cyan);text-decoration:none;}
a:hover{color:var(--ht-white);}
strong,b{font-weight:800;color:var(--ht-white);}
hr{border:0;border-top:1px solid var(--ht-line);margin:0;}
table{border-collapse:collapse;width:100%;}
[hidden]{display:none !important;}

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

::selection{background:var(--ht-lime);color:var(--ht-ink);}

/* ---------- 中文排版 ---------- */
.ht-h1{
  font-size:clamp(30px,5vw,44px);
  font-weight:800;
  letter-spacing:-.01em;
  line-height:1.15;
}
.ht-h2{
  font-size:clamp(24px,3.4vw,30px);
  font-weight:800;
  letter-spacing:-.01em;
  line-height:1.22;
}
.ht-h3{
  font-size:20px;
  font-weight:800;
  line-height:1.35;
}
.ht-lede{
  font-size:16px;
  line-height:1.8;
  color:var(--ht-muted);
  max-width:64ch;
}
.ht-prose{font-size:16px;line-height:1.75;}
.ht-prose p{margin-bottom:1.1em;max-width:68ch;}
.ht-prose p:last-child{margin-bottom:0;}
.ht-prose ul,
.ht-prose ol{margin:0 0 1.1em;padding-left:1.3em;max-width:68ch;}
.ht-prose ul{list-style:square;}
.ht-prose ol{list-style:decimal;}
.ht-prose li{margin-bottom:.5em;}
.ht-prose li::marker{color:var(--ht-lime);}

.ht-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--ht-mono);
  font-size:12px;
  font-weight:700;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--ht-lime);
}
.ht-meta{
  font-size:13px;
  color:var(--ht-muted);
  line-height:1.6;
}

/* ---------- 布局 ---------- */
.ht-wrap{
  width:min(var(--ht-max), calc(100% - (2 * var(--ht-gutter))));
  margin-inline:auto;
}

.ht-main{display:block;}

.ht-grid{
  display:grid;
  grid-template-columns:repeat(12, minmax(0,1fr));
  gap:clamp(14px,2vw,24px);
}
.ht-col-3{grid-column:span 3;}
.ht-col-4{grid-column:span 4;}
.ht-col-6{grid-column:span 6;}
.ht-col-8{grid-column:span 8;}
.ht-col-9{grid-column:span 9;}
.ht-col-12{grid-column:span 12;}

.ht-section{
  position:relative;
  padding-block:clamp(40px,6vw,72px);
  border-top:1px solid var(--ht-line);
}
.ht-section:first-child{border-top:0;}
.ht-divider{
  height:1px;
  border:0;
  background:linear-gradient(90deg, var(--ht-line) 0%, transparent 100%);
}

/* ---------- 跳转链接 ---------- */
.ht-skip{
  position:absolute;
  left:16px;
  top:-72px;
  z-index:140;
  display:inline-block;
  padding:10px 18px;
  background:var(--ht-lime);
  color:var(--ht-ink);
  font-size:14px;
  font-weight:800;
  letter-spacing:.06em;
  transition:top var(--ht-ease);
}
.ht-skip:focus{
  top:12px;
  color:var(--ht-ink);
}

/* ---------- 页头 ---------- */
.ht-header{
  position:sticky;
  top:0;
  z-index:90;
  background:rgba(6,10,17,.94);
  border-bottom:1px solid var(--ht-line);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
}
.ht-header__inner{padding-block:0;}

.ht-header__masthead{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:clamp(12px,2vw,24px);
  padding-block:20px 12px;
}

.ht-header__side{
  font-family:var(--ht-mono);
  font-size:12px;
  letter-spacing:.16em;
  color:var(--ht-muted);
  white-space:nowrap;
}

.ht-brand{
  grid-column:2;
  justify-self:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  padding-inline:10px;
  text-decoration:none;
  color:var(--ht-white);
}
.ht-brand:hover{color:var(--ht-white);}
.ht-brand__name{
  font-size:clamp(24px,4vw,38px);
  font-weight:800;
  line-height:1;
  letter-spacing:.12em;
  text-indent:.12em;
}
.ht-brand__tag{
  font-size:11px;
  line-height:1;
  letter-spacing:.26em;
  text-indent:.26em;
  color:var(--ht-muted);
}

.ht-header__tools{
  grid-column:3;
  justify-self:end;
  display:flex;
  align-items:center;
  gap:8px;
}
.ht-tool{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  background:var(--ht-ink-2);
  border:1px solid var(--ht-line);
  color:var(--ht-muted);
  font-size:13px;
  font-weight:600;
  letter-spacing:.06em;
  white-space:nowrap;
  transition:color var(--ht-ease), border-color var(--ht-ease), background-color var(--ht-ease);
}
.ht-tool:hover{
  color:var(--ht-white);
  border-color:var(--ht-lime);
  background:var(--ht-panel);
}
.ht-tool__dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--ht-cyan);
  box-shadow:0 0 0 3px rgba(63,224,208,.14);
  flex:0 0 auto;
}
.ht-tool--alert .ht-tool__dot{
  background:var(--ht-orange);
  box-shadow:0 0 0 3px rgba(255,90,52,.14);
}

.ht-navtoggle{
  display:none;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  background:var(--ht-ink-2);
  border:1px solid var(--ht-line);
  color:var(--ht-white);
  font-size:13px;
  font-weight:700;
  letter-spacing:.1em;
  transition:border-color var(--ht-ease), color var(--ht-ease);
}
.ht-navtoggle:hover{border-color:var(--ht-lime);color:var(--ht-lime);}
.ht-navtoggle__bars{
  position:relative;
  display:inline-block;
  width:16px;
  height:2px;
  background:var(--ht-muted);
  transition:background-color var(--ht-ease);
}
.ht-navtoggle__bars::before,
.ht-navtoggle__bars::after{
  content:"";
  position:absolute;
  left:0;
  width:16px;
  height:2px;
  background:var(--ht-muted);
  transition:transform var(--ht-ease), background-color var(--ht-ease);
}
.ht-navtoggle__bars::before{top:-5px;}
.ht-navtoggle__bars::after{top:5px;}
.ht-navtoggle[aria-expanded="true"]{border-color:var(--ht-lime);}
.ht-navtoggle[aria-expanded="true"] .ht-navtoggle__bars{background:transparent;}
.ht-navtoggle[aria-expanded="true"] .ht-navtoggle__bars::before{
  transform:translateY(5px) rotate(45deg);
  background:var(--ht-lime);
}
.ht-navtoggle[aria-expanded="true"] .ht-navtoggle__bars::after{
  transform:translateY(-5px) rotate(-45deg);
  background:var(--ht-lime);
}

/* ---------- 导航 ---------- */
.ht-nav{
  position:relative;
  border-top:1px solid var(--ht-line);
}
.ht-nav__list{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:clamp(4px,1.4vw,20px);
}
.ht-nav__item{display:block;}
.ht-nav__link{
  position:relative;
  display:inline-flex;
  align-items:center;
  padding:13px 6px;
  font-size:14px;
  font-weight:600;
  letter-spacing:.08em;
  color:var(--ht-muted);
  transition:color var(--ht-ease);
}
.ht-nav__link::after{
  content:"";
  position:absolute;
  left:6px;
  right:6px;
  bottom:7px;
  height:2px;
  background:var(--ht-lime);
  transform:scaleX(0);
  transform-origin:left center;
  transition:transform var(--ht-ease);
}
.ht-nav__link:hover,
.ht-nav__link:focus-visible{color:var(--ht-white);}
.ht-nav__link:hover::after{transform:scaleX(1);}
.ht-nav__link[aria-current="page"]{color:var(--ht-white);}
.ht-nav__link[aria-current="page"]::after{transform:scaleX(1);}

/* ---------- 阅读进度 ---------- */
.ht-scrollbar{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:2px;
  background:var(--ht-lime);
  transform:scaleX(0);
  transform-origin:left center;
  z-index:130;
  pointer-events:none;
}

/* ---------- 页脚 ---------- */
.ht-footer{
  position:relative;
  margin-top:clamp(56px,9vw,120px);
  background:var(--ht-ink-2);
  border-top:1px solid var(--ht-line);
}
.ht-footer::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:-1px;
  height:1px;
  background:linear-gradient(90deg, transparent 0%, var(--ht-lime) 45%, transparent 100%);
  opacity:.55;
}
.ht-footer__inner{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,2.1fr);
  gap:clamp(28px,5vw,64px);
  padding-block:clamp(36px,6vw,72px) clamp(24px,4vw,44px);
}
.ht-footer__brand{display:flex;flex-direction:column;gap:12px;}
.ht-footer__logo{
  font-size:22px;
  font-weight:800;
  letter-spacing:.12em;
  color:var(--ht-white);
  text-decoration:none;
  transition:color var(--ht-ease);
}
.ht-footer__logo:hover{color:var(--ht-lime);}
.ht-footer__tag{
  font-size:13px;
  line-height:1.7;
  color:var(--ht-muted);
  max-width:24ch;
}
.ht-footer__cols{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:clamp(18px,2.4vw,32px);
}
.ht-footer__col{min-width:0;}
.ht-footer__coltitle{
  position:relative;
  padding-bottom:10px;
  margin-bottom:16px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.18em;
  color:var(--ht-white);
}
.ht-footer__coltitle::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:22px;
  height:2px;
  background:var(--ht-lime);
}
.ht-footer__list{display:flex;flex-direction:column;gap:11px;}
.ht-footer__item{display:block;}
.ht-footer__link{
  position:relative;
  display:inline-block;
  font-size:14px;
  color:var(--ht-muted);
  text-decoration:none;
  transition:color var(--ht-ease), transform var(--ht-ease);
}
.ht-footer__link::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-2px;
  height:1px;
  background:var(--ht-cyan);
  transform:scaleX(0);
  transform-origin:left center;
  transition:transform var(--ht-ease);
}
.ht-footer__link:hover,
.ht-footer__link:focus-visible{
  color:var(--ht-white);
  transform:translateX(2px);
}
.ht-footer__link:hover::after{transform:scaleX(1);}

.ht-footer__legal{
  background:var(--ht-ink);
  border-top:1px solid var(--ht-line);
}
.ht-footer__legalrow{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 28px;
  padding-block:20px;
  font-size:13px;
  color:var(--ht-muted);
}
.ht-footer__contact{min-width:0;overflow-wrap:anywhere;}
.ht-footer__icp{
  font-family:var(--ht-mono);
  font-size:12px;
  letter-spacing:.02em;
}
.ht-footer__copy{
  margin-left:auto;
  font-family:var(--ht-mono);
  font-size:12px;
  letter-spacing:.02em;
}

/* ---------- 按钮 ---------- */
.ht-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 22px;
  font-size:14px;
  font-weight:800;
  letter-spacing:.06em;
  text-decoration:none;
  border:1px solid transparent;
  border-radius:var(--ht-radius);
  transition:background-color var(--ht-ease), color var(--ht-ease),
             border-color var(--ht-ease), transform var(--ht-ease);
}
.ht-btn:active{transform:translateY(1px);}
.ht-btn--primary{
  background:var(--ht-lime);
  color:var(--ht-ink);
  clip-path:var(--ht-notch-sm);
  border-radius:0;
}
.ht-btn--primary:hover{background:#D9FF66;color:var(--ht-ink);}
.ht-btn--ghost{
  background:transparent;
  border-color:var(--ht-line);
  color:var(--ht-white);
}
.ht-btn--ghost:hover{border-color:var(--ht-lime);color:var(--ht-lime);}
.ht-btn--quiet{
  padding:8px 0;
  border:0;
  background:none;
  color:var(--ht-cyan);
}
.ht-btn--quiet:hover{color:var(--ht-lime);}

/* ---------- 面包屑 ---------- */
.ht-crumbs{padding-block:18px 0;}
.ht-crumbs__list{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  font-size:12px;
  letter-spacing:.06em;
  color:var(--ht-muted);
}
.ht-crumbs__item{display:inline-flex;align-items:center;gap:8px;}
.ht-crumbs__item + .ht-crumbs__item::before{
  content:"/";
  color:var(--ht-line);
}
.ht-crumbs__link{
  color:var(--ht-muted);
  text-decoration:none;
  transition:color var(--ht-ease);
}
.ht-crumbs__link:hover{color:var(--ht-cyan);}
.ht-crumbs__current{color:var(--ht-white);}

/* ---------- 面板 ---------- */
.ht-panel{
  position:relative;
  background:var(--ht-panel);
  border:1px solid var(--ht-line);
  padding:clamp(16px,2.2vw,24px);
  transition:border-color var(--ht-ease), background-color var(--ht-ease);
}
.ht-panel--notch{
  clip-path:var(--ht-notch);
  padding-top:clamp(22px,2.8vw,32px);
}
.ht-panel:hover{border-color:#33486A;}
.ht-panel:focus-within{border-color:var(--ht-lime);}
.ht-panel__head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
  padding-bottom:12px;
  border-bottom:1px solid var(--ht-line);
}
.ht-panel__title{font-size:20px;font-weight:800;line-height:1.3;}
.ht-panel__kicker{
  font-family:var(--ht-mono);
  font-size:12px;
  letter-spacing:.16em;
  color:var(--ht-muted);
  white-space:nowrap;
}

/* ---------- 图片容器 ---------- */
.ht-figure{
  position:relative;
  margin:0;
  background:var(--ht-ink-2);
  border:1px solid var(--ht-line);
  overflow:hidden;
}
.ht-figure--notch{clip-path:var(--ht-notch);}
.ht-figure__media{
  position:relative;
  display:block;
  width:100%;
  aspect-ratio:16 / 9;
  overflow:hidden;
  background:
    radial-gradient(120% 120% at 72% 8%, rgba(63,224,208,.16), transparent 55%),
    linear-gradient(160deg, #0D1626 0%, #060A11 72%);
}
.ht-figure__media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  filter:saturate(.94) contrast(1.06);
}
.ht-figure__media--wide{aspect-ratio:21 / 9;}
.ht-figure__media--tall{aspect-ratio:3 / 4;}
.ht-figure__media--square{aspect-ratio:1 / 1;}
.ht-figure__caption{
  display:block;
  padding:12px 16px;
  border-top:1px solid var(--ht-line);
  background:var(--ht-panel);
  font-size:13px;
  line-height:1.65;
  color:var(--ht-muted);
}

/* ---------- 状态标签 ---------- */
.ht-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:3px 10px;
  border:1px solid var(--ht-line);
  border-radius:999px;
  background:var(--ht-ink-2);
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  color:var(--ht-muted);
  white-space:nowrap;
}
.ht-badge--live{
  color:var(--ht-orange);
  border-color:rgba(255,90,52,.45);
  background:rgba(255,90,52,.08);
}
.ht-badge--next{
  color:var(--ht-lime);
  border-color:rgba(198,245,60,.4);
  background:rgba(198,245,60,.08);
}
.ht-badge--data{
  color:var(--ht-cyan);
  border-color:rgba(63,224,208,.4);
  background:rgba(63,224,208,.08);
}
.ht-badge--archive{
  color:var(--ht-violet);
  border-color:rgba(123,97,255,.45);
  background:rgba(123,97,255,.1);
}

/* ---------- 等宽数字 ---------- */
.ht-num{
  font-family:var(--ht-mono);
  font-weight:700;
  font-variant-numeric:tabular-nums;
  font-feature-settings:"tnum" 1;
  letter-spacing:-.01em;
  white-space:nowrap;
}
.ht-num--xl{
  font-size:clamp(32px,5vw,48px);
  line-height:1;
}
.ht-num--up{color:var(--ht-lime);}
.ht-num--down{color:var(--ht-orange);}

/* ---------- 折叠面板 ---------- */
.ht-fold{
  background:var(--ht-panel);
  border:1px solid var(--ht-line);
  clip-path:var(--ht-notch);
  transition:border-color var(--ht-ease);
}
.ht-fold + .ht-fold{margin-top:10px;}
.ht-fold:hover{border-color:#33486A;}
.ht-fold__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:16px 18px;
  font-size:16px;
  font-weight:700;
  color:var(--ht-white);
  cursor:pointer;
  list-style:none;
}
.ht-fold__head::-webkit-details-marker{display:none;}
.ht-fold__head::after{
  content:"+";
  flex:0 0 auto;
  font-family:var(--ht-mono);
  font-size:18px;
  line-height:1;
  color:var(--ht-lime);
  transition:transform var(--ht-ease);
}
.ht-fold[open] > .ht-fold__head::after{content:"−";}
.ht-fold[open] > .ht-fold__head{color:var(--ht-lime);}
.ht-fold__body{
  padding:0 18px 18px;
  max-width:70ch;
  font-size:15px;
  line-height:1.75;
  color:var(--ht-muted);
}

/* ---------- 表格 ---------- */
.ht-table{width:100%;font-size:14px;}
.ht-table th{
  padding:10px 12px;
  border-bottom:1px solid var(--ht-line);
  font-size:12px;
  font-weight:800;
  letter-spacing:.14em;
  text-align:left;
  color:var(--ht-muted);
  white-space:nowrap;
}
.ht-table td{
  padding:12px;
  border-bottom:1px solid rgba(36,52,75,.6);
  vertical-align:middle;
}
.ht-table tbody tr{transition:background-color var(--ht-ease);}
.ht-table tbody tr:hover{background:rgba(198,245,60,.06);}

/* ---------- 章节锚点 ---------- */
.ht-anchor{
  color:inherit;
  text-decoration:none;
  transition:color var(--ht-ease);
}
.ht-anchor:hover{color:var(--ht-cyan);}
.ht-anchor.is-current{color:var(--ht-lime);}

/* ---------- 响应式 ---------- */
@media (max-width:1080px){
  .ht-col-3,
  .ht-col-4{grid-column:span 6;}
  .ht-col-6,
  .ht-col-8,
  .ht-col-9{grid-column:span 12;}
}

@media (max-width:900px){
  html{scroll-padding-top:96px;}

  .ht-header__masthead{
    grid-template-columns:1fr auto;
    gap:10px;
    padding-block:14px 10px;
  }
  .ht-header__side{display:none;}
  .ht-brand{
    grid-column:1;
    justify-self:start;
    align-items:flex-start;
    padding-inline:0;
  }
  .ht-brand__name{letter-spacing:.1em;text-indent:.1em;}
  .ht-brand__tag{letter-spacing:.2em;text-indent:.2em;}
  .ht-header__tools{grid-column:2;}
  .ht-tool{display:none;}
  .ht-navtoggle{display:inline-flex;}

  .ht-nav{
    position:absolute;
    left:0;
    right:0;
    top:100%;
    display:none;
    padding:6px var(--ht-gutter) 18px;
    background:var(--ht-ink-2);
    border-top:1px solid var(--ht-line);
    border-bottom:1px solid var(--ht-line);
    box-shadow:0 24px 48px rgba(0,0,0,.55);
  }
  .ht-nav[data-open]{display:block;}
  .ht-nav__list{
    flex-direction:column;
    align-items:stretch;
    gap:0;
  }
  .ht-nav__item{width:100%;}
  .ht-nav__link{
    width:100%;
    padding:15px 2px;
    border-bottom:1px solid var(--ht-line);
    font-size:16px;
  }
  .ht-nav__link::after{display:none;}
  .ht-nav__link:hover{color:var(--ht-white);}
  .ht-nav__link[aria-current="page"]{color:var(--ht-lime);}

  .ht-footer__inner{grid-template-columns:1fr;}
  .ht-footer__cols{grid-template-columns:repeat(2, minmax(0,1fr));}
  .ht-footer__tag{max-width:36ch;}
  .ht-footer__copy{margin-left:0;}
}

@media (max-width:600px){
  .ht-col-3,
  .ht-col-4{grid-column:span 12;}
  .ht-footer__cols{grid-template-columns:1fr;gap:26px;}
  .ht-nav__link{font-size:15px;}
}

/* ---------- 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *,
  *::before,
  *::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    transition-delay:0ms !important;
  }
  .ht-nav__link::after,
  .ht-footer__link::after{transition:none;}
  .ht-scrollbar{display:none;}
}
