/* =========================================================
   合乐赛场 · 共享站点样式 /assets/site.css
   深墨绿夜场底 + 夜灯琥珀强调 + 荧光青绿仪表灯
   ========================================================= */

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

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

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

ul, ol { padding: 0; list-style: none; }

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

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }

a { color: inherit; text-decoration: none; }

table { border-collapse: collapse; }

hr { border: 0; }

/* ---------- tokens ---------- */
:root {
  --hl-ink: #07160F;
  --hl-ink-2: #0C231A;
  --hl-panel: #133026;
  --hl-amber: #F0A44A;
  --hl-amber-soft: #FFD08A;
  --hl-teal: #45E0AE;
  --hl-paper: #F2EEE3;
  --hl-body: #C7C2B4;
  --hl-muted: #8D948C;
  --hl-line: #2A4A3C;

  --hl-cut: 12px;
  --hl-gutter: 24px;
  --hl-max: 1240px;

  --hl-font-display: "Barlow Condensed", "Roboto Condensed", "Source Han Sans SC",
    "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --hl-font-body: "Inter", "Source Han Sans SC", "Noto Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --hl-font-mono: "SFMono-Regular", ui-monospace, "Cascadia Mono", "Roboto Mono",
    "Menlo", "Consolas", monospace;
}

/* ---------- base ---------- */
body {
  min-height: 100vh;
  background-color: var(--hl-ink);
  background-image:
    radial-gradient(900px 620px at 82% -8%, rgba(240, 164, 74, 0.12), transparent 70%),
    radial-gradient(760px 560px at 2% 104%, rgba(69, 224, 174, 0.09), transparent 70%),
    repeating-linear-gradient(115deg, rgba(42, 74, 60, 0.26) 0 1px, transparent 1px 96px);
  background-attachment: fixed;
  color: var(--hl-body);
  font-family: var(--hl-font-body);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (max-width: 767px) {
  body { font-size: 16px; background-attachment: scroll; }
}

h1, h2, h3, h4 { color: var(--hl-paper); font-weight: 700; line-height: 1.2; }

strong, b { color: var(--hl-paper); font-weight: 700; }

::selection { background: var(--hl-amber); color: var(--hl-ink); }

/* ---------- focus ---------- */
:focus-visible {
  outline: 2px solid var(--hl-teal);
  outline-offset: 2px;
}

.hl-btn:focus-visible,
.hl-navtoggle:focus-visible,
.hl-nav__link:focus-visible,
.hl-skip:focus-visible {
  outline-offset: -3px;
}

/* ---------- layout ---------- */
.hl-container {
  width: min(100% - 32px, var(--hl-max));
  margin-inline: auto;
}

@media (min-width: 768px) {
  .hl-container { width: min(100% - 56px, var(--hl-max)); }
}

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

@media (max-width: 767px) {
  .hl-grid { gap: 16px; }
}

.hl-rule {
  height: 1px;
  width: 100%;
  background: var(--hl-line);
}

/* ---------- typography helpers ---------- */
.hl-display {
  font-family: var(--hl-font-display);
  font-weight: 800;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--hl-paper);
  text-wrap: balance;
}

.hl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--hl-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hl-muted);
}

.hl-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--hl-amber);
  flex: 0 0 auto;
}

.hl-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--hl-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--hl-teal);
  box-shadow: inset 0 0 0 1px rgba(69, 224, 174, 0.42);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}

.hl-note {
  display: inline-block;
  font-family: var(--hl-font-mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--hl-muted);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* ---------- skip link ---------- */
.hl-skip {
  position: absolute;
  left: 12px;
  top: -72px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--hl-teal);
  color: var(--hl-ink);
  font-weight: 700;
  font-size: 14px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: top 0.2s ease;
}

.hl-skip:focus {
  top: 12px;
}

/* ---------- buttons ---------- */
.hl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: var(--hl-font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--hl-paper);
  background: var(--hl-panel);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
  cursor: pointer;
}

.hl-btn:hover { transform: translateX(-2px); }

.hl-btn--amber {
  background: var(--hl-amber);
  color: var(--hl-ink);
}

.hl-btn--amber:hover { background: var(--hl-amber-soft); }

.hl-btn--ghost {
  background: transparent;
  color: var(--hl-paper);
  box-shadow: inset 0 0 0 1px var(--hl-line);
}

.hl-btn--ghost:hover {
  background: rgba(69, 224, 174, 0.1);
  color: var(--hl-teal);
}

.hl-btn--sm {
  padding: 8px 14px;
  font-size: 13px;
}

.hl-btn__meta {
  font-family: var(--hl-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.7;
}

/* ---------- breadcrumbs ---------- */
.hl-crumbs {
  font-family: var(--hl-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--hl-muted);
}

.hl-crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hl-crumbs__link { color: var(--hl-muted); transition: color 0.18s ease; }
.hl-crumbs__link:hover { color: var(--hl-teal); }

.hl-crumbs__sep { color: var(--hl-line); }

.hl-crumbs [aria-current="page"] { color: var(--hl-body); }

/* ---------- image plates ---------- */
.hl-plate {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 180px;
  background-color: var(--hl-panel);
  background-image:
    radial-gradient(120% 90% at 72% 0%, rgba(240, 164, 74, 0.18), transparent 62%),
    repeating-linear-gradient(45deg, rgba(69, 224, 174, 0.08) 0 1px, transparent 1px 14px),
    linear-gradient(160deg, var(--hl-panel), var(--hl-ink-2));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.hl-plate__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hl-plate__cap {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 2;
  font-family: var(--hl-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: rgba(242, 238, 227, 0.72);
}

.hl-plate--wide { aspect-ratio: 16 / 7; }
.hl-plate--tall { aspect-ratio: 3 / 4; }
.hl-plate--square { aspect-ratio: 4 / 3; }

@media (max-width: 767px) {
  .hl-plate--wide { aspect-ratio: 16 / 10; }
  .hl-plate--tall { aspect-ratio: 4 / 5; }
}

/* ---------- reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- section rail ---------- */
.hl-rail {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: none;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 1120px) {
  .hl-rail { display: flex; }
}

.hl-rail__dot {
  display: block;
  width: 8px;
  height: 8px;
  background: var(--hl-line);
  transition: background-color 0.2s ease, height 0.2s ease;
  cursor: pointer;
}

.hl-rail__dot[aria-current="true"] {
  background: var(--hl-amber);
  height: 22px;
}

/* =========================================================
   头部命令栏
   ========================================================= */
.hl-cmdbar {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(19, 48, 38, 0.97), rgba(12, 35, 26, 0.94));
  border-bottom: 1px solid var(--hl-line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--hl-paper);
  transition: box-shadow 0.24s ease;
}

.hl-cmdbar[data-scrolled] {
  box-shadow: 0 18px 34px -26px #000;
}

.hl-cmdbar[data-open] {
  box-shadow: 0 22px 40px -24px #000;
}

.hl-cmdbar__inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
  min-height: 66px;
  padding-block: 10px;
  transition: min-height 0.24s ease, padding 0.24s ease;
}

.hl-cmdbar[data-scrolled] .hl-cmdbar__inner {
  min-height: 54px;
  padding-block: 6px;
}

/* brand */
.hl-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.hl-brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  background: var(--hl-amber);
  color: var(--hl-ink);
  font-family: var(--hl-font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  transition: background-color 0.18s ease;
}

.hl-brand:hover .hl-brand__mark { background: var(--hl-amber-soft); }

.hl-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.hl-brand__name {
  font-family: var(--hl-font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.06em;
  color: var(--hl-paper);
}

.hl-brand__tag {
  font-family: var(--hl-font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--hl-muted);
  white-space: nowrap;
}

/* nav */
.hl-nav {
  margin-inline: auto;
}

.hl-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.hl-nav__item { display: block; }

.hl-nav__link {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 11px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--hl-body);
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.hl-nav__link::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: transparent;
  align-self: center;
  transition: background-color 0.18s ease;
}

.hl-nav__idx {
  font-family: var(--hl-font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--hl-muted);
  transition: color 0.18s ease;
}

.hl-nav__link:hover {
  color: var(--hl-paper);
  background: rgba(69, 224, 174, 0.1);
}

.hl-nav__link:hover .hl-nav__idx { color: var(--hl-teal); }

.hl-nav__link[aria-current="page"] {
  background: var(--hl-amber);
  color: var(--hl-ink);
  font-weight: 600;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
}

.hl-nav__link[aria-current="page"] .hl-nav__idx { color: rgba(7, 22, 15, 0.6); }

.hl-nav__link[aria-current="page"]::after { background: var(--hl-ink); }

/* tools */
.hl-cmdbar__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* nav toggle */
.hl-navtoggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  background: var(--hl-panel);
  color: var(--hl-paper);
  font-family: var(--hl-font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

.hl-navtoggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: background-color 0.2s ease;
}

.hl-navtoggle__bars::before,
.hl-navtoggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform 0.22s ease;
}

.hl-navtoggle__bars::before { top: -5px; }
.hl-navtoggle__bars::after { top: 5px; }

.hl-cmdbar[data-open] .hl-navtoggle__bars { background: transparent; }
.hl-cmdbar[data-open] .hl-navtoggle__bars::before { transform: translateY(5px) rotate(45deg); }
.hl-cmdbar[data-open] .hl-navtoggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

/* progress */
.hl-progress {
  height: 2px;
  width: 100%;
  background: rgba(42, 74, 60, 0.55);
}

.hl-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--hl-amber), var(--hl-teal));
  transition: width 0.1s linear;
}

/* ---------- header responsive ---------- */
@media (max-width: 980px) {
  .hl-navtoggle { display: inline-flex; margin-left: auto; }

  .hl-cmdbar__tools { margin-left: auto; }
  .hl-navtoggle + .hl-nav + .hl-cmdbar__tools { margin-left: 0; }

  .hl-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    background: var(--hl-ink-2);
    border-bottom: 1px solid var(--hl-line);
    border-top: 1px solid var(--hl-line);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s ease, opacity 0.24s ease, visibility 0.24s ease;
  }

  .hl-cmdbar[data-open] .hl-nav {
    max-height: min(72vh, 480px);
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
  }

  .hl-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 18px;
  }

  .hl-nav__item {
    border-bottom: 1px solid var(--hl-line);
  }

  .hl-nav__item:last-child { border-bottom: 0; }

  .hl-nav__link {
    padding: 14px 6px;
    font-size: 16px;
    justify-content: flex-start;
  }

  .hl-nav__link::after { margin-left: auto; }

  .hl-nav__link[aria-current="page"] {
    padding-inline: 12px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  }

  body.hl-lock { overflow: hidden; }
}

@media (max-width: 700px) {
  .hl-brand__tag { display: none; }
  .hl-brand__name { font-size: 17px; }
  .hl-navtoggle__label { display: none; }
  .hl-cmdbar__tools .hl-btn__meta { display: none; }
  .hl-cmdbar__tools .hl-btn { padding: 8px 11px; font-size: 12px; }
  .hl-brand__mark { width: 30px; height: 30px; font-size: 12px; }
}

/* =========================================================
   页脚
   ========================================================= */
.hl-foot {
  position: relative;
  margin-top: clamp(48px, 9vw, 104px);
  background: var(--hl-ink-2);
  border-top: 1px solid var(--hl-line);
  color: var(--hl-body);
  padding-block: clamp(36px, 6vw, 64px) 22px;
}

.hl-foot::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--hl-amber) 0 18%,
    var(--hl-teal) 18% 24%,
    transparent 24%
  );
}

.hl-foot__inner {
  display: block;
}

.hl-foot__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}

@media (min-width: 900px) {
  .hl-foot__top {
    grid-template-columns: minmax(200px, 0.9fr) 2.4fr;
    gap: clamp(32px, 6vw, 88px);
  }
}

.hl-foot__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.hl-foot__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--hl-amber);
  box-shadow: inset 0 0 0 1px var(--hl-line);
  font-family: var(--hl-font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.hl-foot__name {
  font-family: var(--hl-font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--hl-paper);
}

.hl-foot__tag {
  font-family: var(--hl-font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--hl-muted);
  max-width: 22ch;
  line-height: 1.7;
}

.hl-foot__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

@media (min-width: 720px) {
  .hl-foot__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
}

.hl-foot__col {
  min-width: 0;
}

.hl-foot__coltitle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--hl-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--hl-muted);
}

.hl-foot__coltitle::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--hl-line);
}

.hl-foot__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hl-foot__item { display: block; }

.hl-foot__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 5px;
  font-size: 15px;
  color: var(--hl-body);
  transition: color 0.18s ease;
}

.hl-foot__link::before {
  content: "";
  width: 10px;
  height: 1px;
  background: var(--hl-amber);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}

.hl-foot__link:hover { color: var(--hl-amber-soft); }
.hl-foot__link:hover::before { transform: scaleX(1); }

.hl-foot__contact {
  display: grid;
  gap: 10px;
}

.hl-foot__row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.hl-foot__row dt {
  font-family: var(--hl-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--hl-muted);
}

.hl-foot__row dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--hl-paper);
  overflow-wrap: anywhere;
}

.hl-foot__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(28px, 4vw, 46px);
  padding-top: 16px;
  border-top: 1px solid var(--hl-line);
  font-family: var(--hl-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--hl-muted);
}

.hl-foot__legal { color: var(--hl-muted); }
.hl-foot__icp { color: var(--hl-muted); }

/* =========================================================
   reduced motion
   ========================================================= */
@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;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hl-btn:hover,
  .hl-brand:hover .hl-brand__mark {
    transform: none;
  }

  .hl-progress__bar { transition: none; }
}
