/* ==========================================================================
   亚星游戏主站 · 共享样式 /assets/site.css
   夜场追光 · 技术蓝图网格 · 框架式页头页脚
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

html:focus-within {
  scroll-behavior: smooth;
}

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

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

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

/* ---------- 2. 设计变量 ---------- */
:root {
  /* 色彩 */
  --c-night: #121829;
  --c-indigo: #1D2742;
  --c-amber: #F2A33A;
  --c-warm: #F6F1E7;
  --c-cyan: #3AD6C6;
  --c-blue: #5B8DEF;
  --c-mist: #8E96B3;
  --c-ink: #090D16;
  --c-alert: #E8664A;

  /* 线框 */
  --hair: rgba(142, 150, 179, 0.18);
  --hair-mid: rgba(142, 150, 179, 0.34);
  --hair-strong: rgba(142, 150, 179, 0.52);

  /* 字体 */
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;

  /* 尺寸 */
  --wrap: min(1280px, 100% - 48px);
  --gutter: clamp(16px, 2vw, 28px);
  --radius: 3px;

  /* 层级 */
  --z-grid: 0;
  --z-content: 1;
  --z-header: 60;
  --z-rail: 80;
  --z-skip: 120;
}

/* ---------- 3. 基础排版 ---------- */
body {
  margin: 0;
  min-height: 100%;
  background-color: var(--c-night);
  color: var(--c-warm);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* 蓝图网格底纹：固定在整个视口之下 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grid);
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(142, 150, 179, 0.065) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(142, 150, 179, 0.065) 1px, transparent 1px),
    linear-gradient(to right, rgba(91, 141, 239, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(91, 141, 239, 0.05) 1px, transparent 1px);
  background-size: 88px 88px, 88px 88px, 22px 22px, 22px 22px;
}

#main-content {
  position: relative;
  z-index: var(--z-content);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-sans);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--c-warm);
  text-wrap: balance;
}

h1 {
  font-size: clamp(34px, 5.6vw, 68px);
}

h2 {
  font-size: clamp(26px, 3.6vw, 42px);
}

h3 {
  font-size: clamp(20px, 2.2vw, 27px);
}

h4 {
  font-size: clamp(17px, 1.6vw, 20px);
  letter-spacing: 0.01em;
}

p {
  max-width: 68ch;
}

strong {
  color: var(--c-warm);
  font-weight: 800;
}

::selection {
  background: rgba(242, 163, 58, 0.32);
  color: var(--c-warm);
}

/* ---------- 4. 可访问性 ---------- */
:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 16px;
  z-index: var(--z-skip);
  display: inline-block;
  padding: 12px 22px;
  background: var(--c-amber);
  color: #0a0e18;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border-radius: 0 0 var(--radius) var(--radius);
  transform: translateY(-140%);
  transition: transform 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: -4px;
}

/* ---------- 5. 布局工具 ---------- */
.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(48px, 7vw, 96px);
}

.grid {
  display: grid;
  gap: var(--gutter);
}

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

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

.grid--split {
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  align-items: start;
}

/* ---------- 6. 展览标签 / 索引小注 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-mist);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--c-amber);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-cyan);
  background: rgba(58, 214, 198, 0.08);
  border: 1px solid rgba(58, 214, 198, 0.36);
  border-radius: 1px;
}

.tag--amber {
  color: var(--c-amber);
  background: rgba(242, 163, 58, 0.1);
  border-color: rgba(242, 163, 58, 0.42);
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--c-warm);
  background: transparent;
  border: 1px solid var(--hair-mid);
  border-radius: var(--radius);
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn--amber {
  color: #0a0e18;
  background: var(--c-amber);
  border-color: var(--c-amber);
  box-shadow: 0 10px 26px -16px rgba(242, 163, 58, 0.95);
}

.btn--amber:hover {
  background: #ffb955;
  border-color: #ffb955;
}

.btn--ghost {
  color: var(--c-warm);
  background: rgba(29, 39, 66, 0.55);
  border-color: var(--hair-strong);
}

.btn--ghost:hover {
  color: var(--c-cyan);
  border-color: var(--c-cyan);
}

.btn--sm {
  padding: 9px 15px;
  font-size: 13px;
}

/* ---------- 8. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-mist);
}

.breadcrumb a {
  color: var(--c-mist);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--c-cyan);
  border-bottom-color: currentColor;
}

.breadcrumb__sep {
  color: rgba(142, 150, 179, 0.45);
}

.breadcrumb [aria-current="page"] {
  color: var(--c-amber);
}

/* ---------- 9. 图片容器基础规则 ---------- */
.media {
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(120% 90% at 18% 0%, rgba(91, 141, 239, 0.28), transparent 62%),
    linear-gradient(160deg, #1c2745 0%, #101728 58%, #0a0f1c 100%);
  border: 1px solid var(--hair-mid);
  border-radius: var(--radius);
}

.media--wide {
  aspect-ratio: 21 / 9;
}

.media--tall {
  aspect-ratio: 4 / 5;
}

.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 42%, rgba(242, 163, 58, 0.14) 47%, transparent 53%),
    radial-gradient(80% 60% at 90% 110%, rgba(58, 214, 198, 0.16), transparent 70%);
  mix-blend-mode: screen;
}

.media__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  max-width: 100%;
  padding: 6px 11px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-warm);
  background: rgba(9, 13, 22, 0.82);
  border-top: 1px solid var(--hair-mid);
  border-right: 1px solid var(--hair-mid);
}

/* ---------- 10. 滚动显现协议 ---------- */
[data-reveal-ready] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.42s ease, transform 0.42s cubic-bezier(0.2, 0.65, 0.3, 1);
  will-change: opacity, transform;
}

[data-reveal-ready].is-revealed {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* ---------- 11. 顶部滚动追光条（由 JS 注入） ---------- */
.scroll-rail {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-rail);
  height: 2px;
  width: var(--scroll-progress, 0%);
  pointer-events: none;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-blue) 55%, var(--c-amber));
  box-shadow: 0 0 12px -2px rgba(58, 214, 198, 0.7);
}

/* ==========================================================================
   12. 页头：框架式导航
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: linear-gradient(180deg, rgba(9, 13, 22, 0.985), rgba(18, 24, 41, 0.94));
  border-bottom: 1px solid var(--hair-mid);
  box-shadow: 0 22px 48px -34px rgba(0, 0, 0, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(242, 163, 58, 0.65) 16%,
    rgba(58, 214, 198, 0.55) 52%,
    transparent 92%
  );
}

/* 坐标刻度尺 */
.header-rule,
.footer-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  width: var(--wrap);
  margin-inline: auto;
  padding: 9px 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(142, 150, 179, 0.85);
}

.header-rule {
  border-bottom: 1px dashed var(--hair);
}

.footer-rule {
  border-bottom: 1px dashed rgba(142, 150, 179, 0.14);
  color: rgba(142, 150, 179, 0.72);
}

.rule-mark {
  flex: 0 0 auto;
  white-space: nowrap;
}

.rule-mark--amber {
  color: var(--c-amber);
}

.rule-mark--cyan {
  color: var(--c-cyan);
}

.rule-line {
  flex: 1 1 auto;
  height: 1px;
  min-width: 24px;
  background: repeating-linear-gradient(
    90deg,
    rgba(142, 150, 179, 0.45) 0 6px,
    transparent 6px 13px
  );
}

/* 主导航行 */
.header-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  width: var(--wrap);
  margin-inline: auto;
  padding: 12px 0 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--c-warm);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #0a0e18;
  background: var(--c-amber);
  transform: skewX(-9deg);
  box-shadow: 0 0 0 1px rgba(242, 163, 58, 0.55),
    0 10px 26px -14px rgba(242, 163, 58, 0.95);
}

.brand__name {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1;
}

.brand__sub {
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--c-mist);
  text-transform: uppercase;
}

.site-nav {
  margin-left: auto;
  visibility: visible;
  opacity: 1;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  counter-reset: nav;
}

.site-nav__list > li {
  counter-increment: nav;
}

.site-nav__list a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(246, 241, 231, 0.72);
  border: 1px solid transparent;
  border-radius: 2px;
  transition: color 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease;
}

.site-nav__list a::before {
  content: counter(nav, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(142, 150, 179, 0.7);
  transition: color 0.2s ease;
}

.site-nav__list a:hover {
  color: var(--c-warm);
  background: rgba(91, 141, 239, 0.12);
}

.site-nav__list a:hover::before {
  color: var(--c-cyan);
}

.site-nav__list a[aria-current="page"] {
  color: var(--c-amber);
  background: rgba(242, 163, 58, 0.1);
  border-color: rgba(242, 163, 58, 0.58);
}

.site-nav__list a[aria-current="page"]::before {
  color: var(--c-amber);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: 8px;
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--c-warm);
  background: rgba(29, 39, 66, 0.72);
  border: 1px solid var(--hair-mid);
  border-radius: 2px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nav-toggle:hover {
  border-color: var(--c-amber);
  background: rgba(242, 163, 58, 0.12);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after,
.nav-toggle__bars > span {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-toggle__bars::before {
  top: 0;
}

.nav-toggle__bars > span {
  top: 5px;
}

.nav-toggle__bars::after {
  bottom: 0;
}

.site-header[data-open="true"] .nav-toggle__bars::before {
  transform: translateY(5px) rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle__bars::after {
  transform: translateY(-5px) rotate(-45deg);
}

.site-header[data-open="true"] .nav-toggle__bars > span {
  opacity: 0;
}

/* ==========================================================================
   13. 页脚
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: var(--z-content);
  margin-top: clamp(48px, 8vw, 120px);
  color: var(--c-warm);
  background: linear-gradient(180deg, #0c1120 0%, var(--c-ink) 100%);
  border-top: 1px solid var(--hair-mid);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(38%, 420px);
  height: 1px;
  background: linear-gradient(90deg, var(--c-amber), rgba(242, 163, 58, 0));
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 56px);
  width: var(--wrap);
  margin-inline: auto;
  padding: clamp(34px, 5vw, 62px) 0 clamp(26px, 4vw, 46px);
}

.footer-brand {
  min-width: 0;
}

.footer-tag {
  margin-top: 14px;
  max-width: 34ch;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-mist);
}

.footer-heading {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-cyan);
}

.footer-nav ul {
  display: grid;
  gap: 10px;
}

.footer-nav a {
  display: inline-block;
  padding-bottom: 1px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(246, 241, 231, 0.78);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--c-amber);
  border-bottom-color: currentColor;
}

.footer-contact ul {
  display: grid;
  gap: 12px;
}

.footer-contact li {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.footer-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(142, 150, 179, 0.9);
}

.footer-value {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--c-warm);
  overflow-wrap: anywhere;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  width: var(--wrap);
  margin-inline: auto;
  padding: 16px 0 30px;
  border-top: 1px dashed rgba(142, 150, 179, 0.2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(142, 150, 179, 0.9);
}

.footer-base p {
  max-width: none;
}

/* ==========================================================================
   14. 响应式
   ========================================================================== */
@media (max-width: 1080px) {
  .grid--split {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  .brand__sub {
    display: none;
  }

  .header-bar {
    gap: 12px;
    padding: 10px 0 12px;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    padding: 4px 0 18px;
    max-height: calc(100vh - 92px);
    overflow-y: auto;
    background: linear-gradient(180deg, #0c1120 0%, #0a0f1b 100%);
    border-top: 1px solid var(--hair);
    border-bottom: 1px solid var(--hair-mid);
    box-shadow: 0 34px 60px -30px rgba(0, 0, 0, 0.95);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }

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

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: var(--wrap);
    margin-inline: auto;
  }

  .site-nav__list a {
    display: flex;
    justify-content: space-between;
    padding: 14px 8px;
    font-size: 15px;
    border: 0;
    border-bottom: 1px dashed var(--hair);
    border-radius: 0;
  }

  .site-nav__list a::before {
    order: 2;
    font-size: 10px;
  }

  .site-nav__list a:hover {
    background: rgba(91, 141, 239, 0.12);
  }

  .site-nav__list a[aria-current="page"] {
    border-bottom: 1px solid rgba(242, 163, 58, 0.58);
    border-left: 2px solid var(--c-amber);
    padding-left: 12px;
  }

  .header-actions {
    margin-left: auto;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
    line-height: 1.8;
  }

  :root {
    --wrap: min(1280px, 100% - 32px);
  }

  html {
    scroll-padding-top: 96px;
  }

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

  .header-rule {
    gap: 10px;
    font-size: 9.5px;
    letter-spacing: 0.14em;
  }

  .rule-line {
    min-width: 12px;
  }

  .btn--sm {
    padding: 8px 12px;
    font-size: 12px;
  }

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

  .footer-base {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .brand__name {
    font-size: 17px;
  }

  .header-rule .rule-mark--cyan {
    display: none;
  }
}

/* ---------- 15. 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

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

  .btn:hover {
    transform: none;
  }

  .scroll-rail {
    transition: none;
  }

  .skip-link {
    transition: none;
  }
}
