/* ============================================================
   金年会看台 · 共享站点样式 /assets/site.css
   夜场看台式数据氛围：深墨绿场域 + 荧光高亮 + 胶囊浮岛
   ============================================================ */

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

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

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}

ul, ol { padding: 0; }

img, svg, video { display: block; max-width: 100%; }

a { color: inherit; }

button { font: inherit; }

/* ---------- 设计变量 ---------- */
:root {
  --jh-deep: #0B1F1A;
  --jh-night: #0D1B2A;
  --jh-lime: #B6FF3B;
  --jh-gold: #D8B45A;
  --jh-orange: #FF6A2B;
  --jh-rock: #2A3633;
  --jh-moss: #3E5C4A;
  --jh-terra: #A9553A;
  --jh-cream: #F2F0E6;
  --jh-mist: #5E7A8A;
  --jh-ink: #061410;

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

  --jh-radius-lg: 32px;
  --jh-radius-md: 20px;
  --jh-radius-sm: 12px;
  --jh-pill: 999px;

  --jh-gutter: clamp(16px, 4vw, 44px);
  --jh-maxw: 1240px;
  --jh-ease: cubic-bezier(.22, .8, .28, 1);
}

/* ---------- 基础排版 ---------- */
body {
  min-height: 100vh;
  color: var(--jh-cream);
  font-family: var(--jh-font-body);
  font-size: clamp(15px, 0.55vw + 10px, 17px);
  line-height: 1.7;
  letter-spacing: .01em;
  background-color: var(--jh-deep);
  background-image:
    linear-gradient(115deg, rgba(182, 255, 59, .045) 0 1px, transparent 1px 100%),
    linear-gradient(65deg, rgba(94, 122, 138, .08) 0 1px, transparent 1px 100%),
    radial-gradient(ellipse 85% 55% at 84% -6%, rgba(13, 27, 42, .95), transparent 66%),
    radial-gradient(ellipse 65% 45% at -5% 96%, rgba(62, 92, 74, .42), transparent 72%),
    linear-gradient(168deg, #0B1F1A 0%, #091813 46%, #0D1B2A 100%);
  background-size: 124px 124px, 124px 124px, 100% 100%, 100% 100%, 100% 100%;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--jh-font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: .002em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h4 { font-size: clamp(1rem, 1.5vw, 1.15rem); }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; color: var(--jh-cream); }

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

:focus-visible {
  outline: 2px solid var(--jh-lime);
  outline-offset: 3px;
}

#main-content { scroll-margin-top: 104px; }

/* ---------- 通用容器与画布 ---------- */
.jh-container {
  width: 100%;
  max-width: var(--jh-maxw);
  margin-inline: auto;
  padding-inline: var(--jh-gutter);
}

.jh-section {
  padding-block: clamp(38px, 6vw, 84px);
}

.jh-grid {
  display: grid;
  gap: clamp(16px, 2.5vw, 28px);
}
.jh-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jh-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 通用按钮 ---------- */
.jh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--jh-pill);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .22s var(--jh-ease),
              background-color .22s var(--jh-ease),
              color .22s var(--jh-ease),
              border-color .22s var(--jh-ease);
}
.jh-btn--primary { background: var(--jh-lime); color: var(--jh-ink); }
.jh-btn--primary:hover { background: #c9ff6d; transform: translateY(-2px); }
.jh-btn--ghost { background: transparent; color: var(--jh-cream); border-color: rgba(242, 240, 230, .28); }
.jh-btn--ghost:hover { color: var(--jh-lime); border-color: var(--jh-lime); }
.jh-btn--gold { background: var(--jh-gold); color: #17120A; }
.jh-btn--gold:hover { background: #e7c877; transform: translateY(-2px); }

/* ---------- 标签与数字 ---------- */
.jh-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid rgba(242, 240, 230, .18);
  border-radius: var(--jh-pill);
  font-family: var(--jh-font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(242, 240, 230, .82);
}
.jh-tag--lime { background: var(--jh-lime); color: var(--jh-ink); border-color: transparent; }
.jh-tag--gold { background: var(--jh-gold); color: #17120A; border-color: transparent; }
.jh-tag--orange { background: var(--jh-orange); color: #1B0A03; border-color: transparent; }
.jh-tag--night { background: rgba(13, 27, 42, .92); color: var(--jh-lime); border-color: rgba(182, 255, 59, .4); }

.jh-num {
  font-family: var(--jh-font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

/* ---------- 图片容器基础规则 ---------- */
.jh-figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(242, 240, 230, .08);
  border-radius: var(--jh-radius-lg);
  background:
    radial-gradient(circle at 78% 12%, rgba(182, 255, 59, .14), transparent 58%),
    linear-gradient(150deg, var(--jh-rock), var(--jh-night));
}
.jh-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.jh-figure--wide { aspect-ratio: 16 / 9; }
.jh-figure--tall { aspect-ratio: 3 / 4; }
.jh-figure--square { aspect-ratio: 1 / 1; }
.jh-figure__caption {
  padding: 12px 18px 14px;
  font-family: var(--jh-font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: rgba(242, 240, 230, .62);
}

/* ---------- 面包屑 ---------- */
.jh-breadcrumb { padding-block: 20px 0; }
.jh-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  font-family: var(--jh-font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(242, 240, 230, .52);
}
.jh-breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.jh-breadcrumb__item + .jh-breadcrumb__item::before {
  content: "/";
  color: rgba(182, 255, 59, .55);
}
.jh-breadcrumb__link {
  color: rgba(242, 240, 230, .7);
  text-decoration: none;
  transition: color .2s var(--jh-ease);
}
.jh-breadcrumb__link:hover { color: var(--jh-lime); }
.jh-breadcrumb__current { color: var(--jh-cream); }

/* ---------- 顶部滚动进度 ---------- */
.jh-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 120;
  pointer-events: none;
  background: rgba(6, 20, 16, .45);
}
.jh-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, var(--jh-lime), var(--jh-gold) 62%, var(--jh-orange));
  transition: width .12s linear;
}

/* ---------- 跳转链接 ---------- */
.jh-skip {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 200;
  padding: 10px 20px;
  border-radius: var(--jh-pill);
  background: var(--jh-lime);
  color: var(--jh-ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translate(-50%, -180%);
  transition: transform .22s var(--jh-ease);
}
.jh-skip:focus {
  transform: translate(-50%, 0);
  outline: 2px solid var(--jh-cream);
  outline-offset: 3px;
}

/* ---------- 悬浮胶囊页头 ---------- */
.jh-header {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 12px var(--jh-gutter) 0;
}

.jh-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: var(--jh-maxw);
  margin-inline: auto;
  padding: 8px 8px 8px 16px;
  border: 1px solid rgba(242, 240, 230, .14);
  border-radius: var(--jh-pill);
  background: linear-gradient(180deg, rgba(13, 27, 42, .93), rgba(11, 31, 26, .88));
  box-shadow: 0 22px 48px -30px #000, inset 0 1px 0 rgba(242, 240, 230, .08);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

/* 品牌 */
.jh-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--jh-cream);
  text-decoration: none;
  border-radius: var(--jh-radius-sm);
}
.jh-brand__mark {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: var(--jh-radius-sm);
  background: linear-gradient(145deg, var(--jh-lime) 0%, #7fe01c 58%, var(--jh-moss) 100%);
  box-shadow: 0 0 0 1px rgba(6, 20, 16, .5), 0 8px 20px -12px rgba(182, 255, 59, .95);
}
.jh-brand__mark::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px solid rgba(6, 20, 16, .72);
  border-radius: 6px;
}
.jh-brand__mark::after {
  content: "";
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 50%;
  width: 2px;
  background: rgba(6, 20, 16, .72);
  transform: translateX(-50%);
}
.jh-brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}
.jh-brand__name {
  font-family: var(--jh-font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .04em;
}
.jh-brand__tag {
  font-family: var(--jh-font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: rgba(242, 240, 230, .5);
}

/* 移动展开按钮 */
.jh-navtoggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 15px;
  border: 1px solid rgba(242, 240, 230, .2);
  border-radius: var(--jh-pill);
  background: rgba(242, 240, 230, .07);
  color: var(--jh-cream);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background-color .2s var(--jh-ease), border-color .2s var(--jh-ease);
}
.jh-navtoggle:hover { background: rgba(182, 255, 59, .14); border-color: rgba(182, 255, 59, .5); }
.jh-navtoggle__bars {
  display: grid;
  gap: 3px;
  width: 16px;
}
.jh-navtoggle__bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .22s var(--jh-ease), opacity .22s var(--jh-ease);
}
.jh-navtoggle[aria-expanded="true"] .jh-navtoggle__bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.jh-navtoggle[aria-expanded="true"] .jh-navtoggle__bars i:nth-child(2) { opacity: 0; }
.jh-navtoggle[aria-expanded="true"] .jh-navtoggle__bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.jh-navtoggle__label { white-space: nowrap; }

/* 导航 */
.jh-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.jh-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.jh-nav__item { display: block; }
.jh-nav__link {
  display: block;
  padding: 8px 13px;
  border-radius: var(--jh-pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  color: rgba(242, 240, 230, .74);
  transition: color .2s var(--jh-ease), background-color .2s var(--jh-ease);
}
.jh-nav__link:hover {
  color: var(--jh-cream);
  background: rgba(242, 240, 230, .08);
}
.jh-nav__link[aria-current="page"] {
  color: var(--jh-ink);
  background: var(--jh-lime);
  font-weight: 700;
  box-shadow: 0 8px 22px -16px rgba(182, 255, 59, .95);
}
.jh-nav__link:focus-visible { outline: 2px solid var(--jh-lime); outline-offset: 2px; }

/* 胶囊 CTA */
.jh-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--jh-pill);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: transform .2s var(--jh-ease),
              background-color .2s var(--jh-ease),
              color .2s var(--jh-ease);
}
.jh-cta--nav {
  background: var(--jh-cream);
  color: var(--jh-ink);
}
.jh-cta--nav::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--jh-orange);
  box-shadow: 0 0 0 3px rgba(255, 106, 43, .22);
}
.jh-cta--nav:hover {
  background: var(--jh-lime);
  transform: translateY(-1px);
}

/* ---------- 页脚 ---------- */
.jh-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 120px);
  padding: clamp(44px, 6vw, 80px) var(--jh-gutter) 26px;
  overflow: hidden;
  border-top: 1px solid rgba(242, 240, 230, .1);
  background: linear-gradient(180deg, rgba(13, 27, 42, .55) 0%, #061310 44%, #050F0C 100%);
}
.jh-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(182, 255, 59, .7), rgba(216, 180, 90, .7), transparent);
}
.jh-footer::after {
  content: "";
  position: absolute;
  top: -42%;
  right: -12%;
  width: 52vw;
  height: 52vw;
  max-width: 620px;
  max-height: 620px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(182, 255, 59, .12), transparent 62%);
}

.jh-footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.55fr);
  gap: clamp(28px, 5vw, 72px);
  max-width: var(--jh-maxw);
  margin-inline: auto;
}

.jh-footer__mast {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.jh-footer__wordmark {
  font-family: var(--jh-font-display);
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .02em;
}
.jh-footer__tag {
  font-family: var(--jh-font-mono);
  font-size: 12px;
  letter-spacing: .28em;
  color: var(--jh-lime);
}
.jh-footer__note {
  max-width: 34ch;
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(242, 240, 230, .62);
}

.jh-footer__navs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.jh-footer__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.jh-footer__head {
  font-family: var(--jh-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(242, 240, 230, .45);
}
.jh-footer__links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  counter-reset: jhf;
}
.jh-footer__links li { counter-increment: jhf; }
.jh-footer__link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-left: -10px;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 15px;
  color: rgba(242, 240, 230, .82);
  text-decoration: none;
  transition: color .2s var(--jh-ease), background-color .2s var(--jh-ease);
}
.jh-footer__link::before {
  content: counter(jhf, decimal-leading-zero);
  font-family: var(--jh-font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(182, 255, 59, .6);
}
.jh-footer__link:hover {
  color: var(--jh-lime);
  background: rgba(182, 255, 59, .07);
}

.jh-footer__meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  max-width: var(--jh-maxw);
  margin: clamp(28px, 5vw, 56px) auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(242, 240, 230, .1);
}
.jh-footer__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  list-style: none;
}
.jh-footer__fact {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  color: rgba(242, 240, 230, .72);
}
.jh-footer__label {
  font-family: var(--jh-font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--jh-mist);
}
.jh-footer__value {
  font-family: var(--jh-font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  color: rgba(242, 240, 230, .88);
}
.jh-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-family: var(--jh-font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: rgba(242, 240, 230, .5);
}
.jh-footer__copy { margin: 0; }

/* ---------- 滚动显现（页面阶段用 data-reveal 启用） ---------- */
html.jh-js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .62s var(--jh-ease), transform .62s var(--jh-ease);
  transition-delay: var(--jh-delay, 0ms);
  will-change: opacity, transform;
}
html.jh-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* ---------- 平板 / 桌面收缩 ---------- */
@media (max-width: 1080px) {
  .jh-nav__link { padding: 8px 10px; font-size: 13px; }
  .jh-brand__tag { display: none; }
}

@media (max-width: 980px) {
  .jh-footer__inner { grid-template-columns: minmax(0, 1fr); }
  .jh-footer__note { max-width: 46ch; }
}

/* ---------- 移动导航 ---------- */
@media (max-width: 900px) {
  .jh-header { padding: 10px 12px 0; }

  .jh-header__inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 22px;
  }

  .jh-navtoggle { display: inline-flex; }

  .jh-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    z-index: 95;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-left: 0;
    padding: 14px;
    border: 1px solid rgba(242, 240, 230, .16);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(13, 27, 42, .98), rgba(11, 31, 26, .98));
    box-shadow: 0 34px 64px -32px #000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(.98);
    transform-origin: top right;
    transition: opacity .22s var(--jh-ease),
                transform .22s var(--jh-ease),
                visibility .22s var(--jh-ease);
  }

  .jh-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .jh-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .jh-nav__link {
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 15px;
  }

  .jh-cta--nav {
    justify-content: center;
    padding: 12px 18px;
  }
}

@media (max-width: 820px) {
  .jh-grid--2,
  .jh-grid--3 { grid-template-columns: minmax(0, 1fr); }
  #main-content { scroll-margin-top: 88px; }
}

@media (max-width: 720px) {
  body { background-attachment: scroll; }
}

@media (max-width: 560px) {
  .jh-footer { padding-bottom: 22px; }
  .jh-footer__navs { grid-template-columns: minmax(0, 1fr); }
  .jh-footer__meta { flex-direction: column; align-items: flex-start; }
  .jh-footer__fact { flex-direction: column; gap: 2px; }
  .jh-figure { border-radius: 22px; }
}

/* ---------- 减少动效 ---------- */
@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;
  }

  html.jh-js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .jh-btn:hover,
  .jh-cta--nav:hover { transform: none; }
}
