/* ============================================================
   site.css — 华体会官网 · 夜场资料库
   reset / tokens / 中文排版 / 头部 / 页脚 / 通用组件
   ============================================================ */

:root {
  --ink-900: #050f0c;
  --ink-800: #0a1f1a;
  --ink-700: #0f2e27;
  --ink-600: #143d34;
  --line: #1e5a4c;
  --cyan: #7bf5d6;
  --orange: #f2a65a;
  --violet: #9b7bff;
  --paper: #e8f3ee;
  --muted: #a7c4b8;

  --shell: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --gap: 24px;

  --radius-lg: 24px;
  --radius: 16px;
  --radius-sm: 10px;

  --font-display: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Microsoft YaHei", sans-serif;
  --font-body: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "Source Han Serif SC", Georgia, serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ink-800);
  background-image:
    linear-gradient(rgba(30, 90, 76, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 90, 76, 0.14) 1px, transparent 1px);
  background-size: 72px 72px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
main { display: block; }

::selection { background: var(--cyan); color: #04140f; }

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

#main-content:focus-visible { outline-offset: -4px; }

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

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--line);
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 999;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--cyan);
  color: #04140f;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.22s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  color: var(--paper);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.site-header[data-state="solid"] {
  background: rgba(10, 31, 26, 0.97);
  border-bottom-color: var(--line);
  box-shadow: 0 18px 44px rgba(5, 15, 12, 0.5);
}

.head-strip {
  background: var(--ink-900);
  border-bottom: 1px solid rgba(30, 90, 76, 0.75);
  transition: background 0.35s ease;
}
.head-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 8px;
  transition: padding 0.3s ease;
}
.head-strip__text {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.head-strip__dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 3px rgba(155, 123, 255, 0.18);
}
.head-strip__toggle {
  flex: none;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.24s ease, color 0.24s ease, border-color 0.24s ease;
}
.head-strip__toggle:hover { border-color: var(--violet); color: var(--violet); }
.head-strip__toggle[aria-pressed="true"] {
  background: var(--violet);
  border-color: var(--violet);
  color: #100a26;
}
.site-header[data-state="solid"] .head-strip { background: var(--ink-700); }
.site-header[data-state="solid"] .head-strip__inner { padding-block: 4px; }

.head-bar {
  position: relative;
  background: transparent;
  transition: background 0.35s ease;
}

.head-bar__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 32px);
  min-height: 72px;
  transition: min-height 0.35s ease;
}
.site-header[data-state="solid"] .head-bar__inner { min-height: 60px; }

/* 品牌 */
.brand {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 11px;
  align-items: center;
  text-decoration: none;
  color: var(--paper);
}
.brand__mark {
  grid-row: 1 / span 2;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background-color: var(--ink-600);
  background-image: repeating-linear-gradient(115deg, var(--cyan) 0 3px, transparent 3px 9px);
  box-shadow: inset 0 0 14px rgba(123, 245, 214, 0.28);
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.brand__line {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  line-height: 1.3;
  color: var(--muted);
  text-transform: uppercase;
}

/* 移动目录按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(20, 61, 52, 0.6);
  cursor: pointer;
  transition: border-color 0.24s ease, background 0.24s ease;
}
.nav-toggle:hover { border-color: var(--cyan); }
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cyan);
  transition: background 0.24s ease;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--cyan);
  transition: transform 0.24s ease;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-nav__item { display: flex; }
.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 10px 11px;
  border-radius: var(--radius-sm);
  color: var(--paper);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: color 0.24s ease;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 3px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s ease;
}
.site-nav__link:hover { color: var(--cyan); }
.site-nav__link:hover::after { transform: scaleX(1); }
.site-nav__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--line);
  transition: color 0.24s ease;
}
.site-nav__label { white-space: nowrap; }
.site-nav__link:hover .site-nav__idx { color: var(--orange); }
.site-nav__link[aria-current="page"] { color: var(--cyan); }
.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--orange);
}
.site-nav__link[aria-current="page"] .site-nav__idx { color: var(--orange); }
.site-nav__cta { flex: none; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.24s ease, color 0.24s ease, border-color 0.24s ease, transform 0.24s ease;
}
.btn:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-1px); }
.btn--primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04140f;
}
.btn--primary:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #1a0e02;
}
.btn--ghost {
  border-style: dashed;
  border-color: var(--line);
  color: var(--muted);
}
.btn--ghost:hover { border-color: var(--violet); color: var(--violet); }
.btn--sm {
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.6;
}
.tag--cyan { background: var(--cyan); border-color: var(--cyan); color: #04140f; }
.tag--orange { background: var(--orange); border-color: var(--orange); color: #1a0e02; }
.tag--violet { background: var(--violet); border-color: var(--violet); color: #100a26; }

/* ---------- 文字层级 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 6.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--paper);
  text-wrap: balance;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(20px, 4vw, 36px);
}
.section-head__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.section-head__note {
  max-width: 46ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

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

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  padding: clamp(16px, 2.4vw, 26px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--ink-600);
  transition: border-color 0.28s ease, background 0.28s ease, transform 0.28s ease;
}
.card:hover {
  border-color: rgba(123, 245, 214, 0.55);
  background: var(--ink-700);
  transform: translateY(-2px);
}
.card[data-active="true"] {
  border-color: var(--cyan);
  box-shadow: inset 0 0 0 1px var(--cyan);
}

/* ---------- 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumbs__link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumbs__link:hover { color: var(--cyan); }
.breadcrumbs__sep { color: var(--line); }
.breadcrumbs__current { color: var(--orange); }

/* ---------- 正文容器 ---------- */
.prose {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--paper);
}
.prose > * + * { margin-top: 1em; }
.prose p { color: var(--muted); }
.prose strong { color: var(--paper); font-weight: 700; }
.prose a { color: var(--cyan); text-underline-offset: 3px; }
.prose ul,
.prose ol { padding-left: 1.3em; color: var(--muted); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose h2,
.prose h3 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--paper);
}
.prose h2 { font-size: clamp(22px, 2.6vw, 28px); }
.prose h3 { font-size: 20px; }

/* ---------- 图片容器 ---------- */
.figure {
  display: grid;
  gap: 12px;
  margin: 0;
}
.figure__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--ink-700);
  aspect-ratio: var(--figure-ratio, 16 / 10);
}
.figure__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(30, 90, 76, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 90, 76, 0.4) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.45;
}
.figure__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.08) brightness(0.92);
}
.figure__cap {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 滚动显现协议 ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.62s ease,
    transform 0.62s cubic-bezier(0.2, 0.7, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.has-js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 128px);
  background: var(--ink-900);
  border-top: 1px solid var(--line);
  color: var(--paper);
}
.foot-band {
  height: 8px;
  background:
    linear-gradient(
      90deg,
      var(--cyan) 0 26%,
      var(--orange) 26% 48%,
      var(--violet) 48% 62%,
      var(--line) 62% 100%
    );
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(200px, 1.8fr) repeat(3, minmax(100px, 1fr)) minmax(190px, 1.5fr);
  gap: clamp(20px, 3vw, 40px);
  padding-block: clamp(36px, 6vw, 68px) clamp(28px, 4vw, 48px);
}

.foot-brand { min-width: 0; }
.foot-tagline {
  margin: 16px 0 18px;
  max-width: 30ch;
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}
.foot-leagues {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.foot-col { min-width: 0; }
.foot-col__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}
.foot-list {
  display: grid;
  gap: 10px;
}
.foot-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  color: var(--paper);
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.foot-link::before {
  content: "";
  flex: none;
  width: 10px;
  height: 1px;
  background: var(--line);
  transition: width 0.22s ease, background 0.22s ease;
}
.foot-link:hover { color: var(--cyan); border-bottom-color: var(--line); }
.foot-link:hover::before { width: 16px; background: var(--cyan); }

.foot-contact {
  min-width: 0;
  padding-left: clamp(16px, 2vw, 28px);
  border-left: 1px solid var(--line);
}
.foot-contact__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet);
}
.foot-contact__list {
  display: grid;
  gap: 10px;
}
.foot-contact__item {
  display: grid;
  gap: 2px;
}
.foot-contact__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--line);
}
.foot-contact__value {
  font-size: 14px;
  line-height: 1.6;
  color: var(--paper);
  word-break: break-word;
}
.foot-contact__note {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-block: 18px 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.foot-base__legal { letter-spacing: 0.06em; }
.foot-base__copy { letter-spacing: 0.04em; }

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 17px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--ink-700);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(5, 15, 12, 0.6);
  transition: border-color 0.24s ease, background 0.24s ease, color 0.24s ease;
}
.to-top:hover {
  border-color: var(--cyan);
  background: var(--ink-600);
}
.to-top[hidden] { display: none; }

/* ---------- 平板 ---------- */
@media (max-width: 1079px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand,
  .foot-contact { grid-column: 1 / -1; }
  .foot-contact {
    padding-left: 0;
    padding-top: 20px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .site-nav__link { font-size: 14px; padding: 10px 9px; }
  .site-nav__link::after { left: 9px; right: 9px; }
}

@media (max-width: 959px) {
  .head-bar__inner { min-height: 60px; }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    margin: 0;
    padding: 0;
    background: var(--ink-700);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 44px rgba(5, 15, 12, 0.62);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.34s ease, opacity 0.28s ease, visibility 0.34s ease;
  }
  .site-nav[data-open="true"] {
    max-height: min(78vh, 560px);
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
  }
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px var(--gutter);
  }
  .site-nav__item { display: block; }
  .site-nav__item + .site-nav__item { border-top: 1px solid var(--line); }
  .site-nav__link {
    width: 100%;
    padding: 15px 2px;
    border-radius: 0;
    font-size: 16px;
  }
  .site-nav__link::after {
    left: 2px;
    right: auto;
    width: 32px;
    bottom: 8px;
  }
  .site-nav__idx { width: 30px; font-size: 11px; }
  .site-nav__cta {
    margin: 12px var(--gutter) 20px;
    width: calc(100% - var(--gutter) * 2);
  }
}

/* ---------- 手机 ---------- */
@media (max-width: 639px) {
  :root { --gap: 16px; }
  html { scroll-padding-top: 108px; }

  .brand__name { font-size: 15px; }
  .brand__line { font-size: 9px; letter-spacing: 0.16em; }
  .brand__mark { width: 32px; height: 32px; }

  .head-strip__text { font-size: 11px; }
  .head-strip__toggle { padding: 4px 10px; font-size: 10px; }

  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-base { justify-content: flex-start; }
  .to-top { padding: 9px 14px; font-size: 10px; }
}

/* ---------- 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .has-js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .card:hover,
  .btn:hover { transform: none; }
}
