/* ==========================================================================
   site.css — 奔驰电玩城 共享外壳层
   午夜电玩厅 / 赛博牌桌：近单色蓝黑分层 + 霓虹琥珀金 + 电光蓝
   ========================================================================== */

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

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

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, picture, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.14; letter-spacing: -0.01em; }

/* ---------- tokens ---------- */
:root {
  --c-void: #070A12;
  --c-panel: #0E1421;
  --c-card: #151D2E;
  --c-line: #232C40;
  --c-line-soft: rgba(35, 44, 64, 0.6);
  --c-gold: #F2B23C;
  --c-gold-hi: #FFD98A;
  --c-blue: #3FA9F5;
  --c-violet: #8A6BFF;
  --c-text: #E8ECF4;
  --c-text-soft: #C3CCDE;
  --c-muted: #9AA6BF;
  --c-ready: #4ADEC0;

  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono",
    "Courier New", ui-monospace, monospace;

  --shell-max: 1280px;
  --gutter: 32px;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-pill: 999px;

  --ease-out: cubic-bezier(0.16, 0.84, 0.44, 1);
  --dur: 0.24s;
}

@media (max-width: 600px) {
  :root { --gutter: 20px; }
}

/* ---------- base ---------- */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--c-void);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main { flex: 1 0 auto; }

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

::selection {
  background: rgba(242, 178, 60, 0.28);
  color: var(--c-text);
}

/* ---------- layout shell ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.stack > * + * { margin-top: 16px; }
.muted { color: var(--c-muted); }

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--c-gold);
  color: var(--c-void);
  font-size: 12px;
  letter-spacing: 0.16em;
  transform: translateY(-180%);
  transition: transform var(--dur) var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 13px;
  letter-spacing: 0.12em;
  line-height: 1.4;
  transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out),
    background-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.btn--chip {
  color: var(--c-gold);
  border-color: rgba(242, 178, 60, 0.42);
  background: linear-gradient(180deg, rgba(242, 178, 60, 0.13), rgba(242, 178, 60, 0.02));
}
.btn--chip:hover {
  color: var(--c-gold-hi);
  border-color: var(--c-gold);
  box-shadow: 0 0 22px rgba(242, 178, 60, 0.28);
}

.btn--gold {
  color: var(--c-void);
  background: linear-gradient(135deg, var(--c-gold-hi), var(--c-gold));
  border-color: var(--c-gold);
  font-weight: 600;
}
.btn--gold:hover { box-shadow: 0 0 26px rgba(242, 178, 60, 0.4); }

/* ==========================================================================
   头部
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(7, 10, 18, 0.88);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--c-line);
}

/* 上层：品牌说明层，滚动后收起 */
.header-top {
  position: relative;
  max-height: 44px;
  overflow: hidden;
  background: var(--c-panel);
  border-bottom: 1px solid var(--c-line);
  transition: max-height 0.38s var(--ease-out), opacity 0.26s linear, border-color 0.38s linear;
}
.header-top::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(232, 236, 244, 0.05) 0 1px,
    transparent 1px 3px
  );
  opacity: 0.55;
}
.site-header[data-collapsed] .header-top {
  max-height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

.header-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 44px;
  font-size: 11px;
  letter-spacing: 0.22em;
}

.header-top__brand { color: var(--c-gold); letter-spacing: 0.28em; }
.header-top__meta { color: var(--c-muted); }

.header-top__meta--region {
  position: relative;
  padding-left: 16px;
}
.header-top__meta--region::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--c-ready);
  box-shadow: 0 0 8px var(--c-ready);
}

/* 下层：栏目层 */
.header-main { position: relative; }

.header-main__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: var(--c-text);
}

.brand__mark {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #FFD98A, #F2B23C 46%, #7A4C12 100%);
  box-shadow: 0 0 0 1px rgba(242, 178, 60, 0.42), 0 0 18px rgba(242, 178, 60, 0.32);
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px solid rgba(7, 10, 18, 0.55);
}

.brand__text { display: flex; flex-direction: column; }
.brand__name { font-size: 16px; font-weight: 600; letter-spacing: 0.06em; line-height: 1.25; }
.brand__sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.26em;
  color: var(--c-muted);
  line-height: 1.5;
}

/* 移动开关 */
.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 13px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-pill);
  background: rgba(21, 29, 46, 0.72);
  color: var(--c-muted);
  font-size: 11px;
  letter-spacing: 0.2em;
  transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.nav-toggle:hover { color: var(--c-text); border-color: #3A465F; }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1px;
  background: currentColor;
  transition: transform var(--dur) var(--ease-out);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-4.5px) rotate(-45deg); }

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav__item { display: flex; }

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  transition: color var(--dur) var(--ease-out);
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--c-gold);
  transition: width var(--dur) var(--ease-out);
}
.site-nav__link:hover { color: var(--c-text); }
.site-nav__link:hover::after { width: 100%; }

.site-nav__link[aria-current="page"] {
  color: var(--c-gold);
}
.site-nav__link[aria-current="page"]::after {
  width: 100%;
  background: var(--c-gold);
  box-shadow: 0 0 8px rgba(242, 178, 60, 0.6);
}

.site-nav__cta { flex: 0 0 auto; }

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: 96px;
  padding-bottom: 34px;
  background: var(--c-panel);
  border-top: 1px solid var(--c-line);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-gold), var(--c-blue), var(--c-violet), transparent);
  opacity: 0.6;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.6fr;
  gap: 40px;
  padding: 72px 0 52px;
}

.footer-brand { min-width: 0; }
.footer-brand__line {
  margin-top: 20px;
  max-width: 24em;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--c-muted);
}

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

.footer-col__title {
  margin-bottom: 18px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.24em;
  color: var(--c-muted);
}

.footer-list li + li { margin-top: 10px; }

.footer-list a {
  font-size: 14px;
  color: var(--c-text-soft);
  transition: color var(--dur) var(--ease-out), text-shadow var(--dur) var(--ease-out);
}
.footer-list a:hover {
  color: var(--c-gold);
  text-shadow: 0 0 14px rgba(242, 178, 60, 0.35);
}

.footer-contact li {
  font-size: 13.5px;
  line-height: 1.8;
  color: #B9C3D8;
  word-break: break-word;
}
.footer-contact li + li { margin-top: 12px; }

.footer-contact__value {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--c-blue);
  letter-spacing: 0.02em;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
}

.footer-legal__note {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--c-muted);
}

/* ==========================================================================
   通用页面组件
   ========================================================================== */
.section {
  position: relative;
  padding: clamp(64px, 9vw, 112px) 0;
}
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--panel {
  background: var(--c-panel);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.section--card {
  background: var(--c-card);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}

.section__index {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--c-gold);
}

.section__title {
  margin-top: 12px;
  font-size: clamp(30px, 4.4vw, 54px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.16;
}

.lede {
  margin-top: 18px;
  max-width: 34em;
  font-size: 17px;
  line-height: 1.9;
  color: var(--c-text-soft);
}

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

.panel {
  padding: 28px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  min-width: 0;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-pill);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--c-muted);
  line-height: 1.5;
}
.tag--gold { color: var(--c-gold); border-color: rgba(242, 178, 60, 0.42); }
.tag--ready { color: var(--c-ready); border-color: rgba(74, 222, 192, 0.36); }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 8px 17px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-pill);
  background: var(--c-card);
  color: var(--c-muted);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  line-height: 1.5;
  transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out),
    background-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.chip:hover { color: var(--c-text); border-color: #3A465F; }
.chip[aria-pressed="true"],
.chip.is-active {
  color: var(--c-void);
  background: var(--c-gold);
  border-color: var(--c-gold);
  box-shadow: 0 0 20px rgba(242, 178, 60, 0.32);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--c-muted);
}
.crumbs a { color: var(--c-muted); transition: color var(--dur) var(--ease-out); }
.crumbs a:hover { color: var(--c-gold); }
.crumbs__sep { color: #3A465F; }

.stat { min-width: 0; }
.stat__value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-gold);
  transform: skewX(-3deg);
}
.stat__label {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--c-muted);
}

.link {
  color: var(--c-blue);
  border-bottom: 1px solid rgba(63, 169, 245, 0.36);
  transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.link:hover { color: #7CC4FF; border-bottom-color: currentColor; }

/* ---------- 图片容器（页面阶段直接放 <img>） ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  background: var(--c-card);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(232, 236, 244, 0.05) 0 1px,
    transparent 1px 3px
  );
  opacity: 0.6;
}
.media--hero { aspect-ratio: 21 / 9; }
.media--wide { aspect-ratio: 16 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }

.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 16px 18px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--c-muted);
  background: linear-gradient(180deg, rgba(7, 10, 18, 0), rgba(7, 10, 18, 0.92));
}

/* ---------- 入场动效 ---------- */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col:last-child { grid-column: 1 / -1; }
}

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 6px var(--gutter) 26px;
    background: var(--c-panel);
    border-top: 1px solid var(--c-line);
    border-bottom: 1px solid var(--c-line);
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.65);
  }
  .site-nav[data-open] { display: flex; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .site-nav__item { border-bottom: 1px solid var(--c-line); }
  .site-nav__link {
    display: block;
    width: 100%;
    padding: 15px 0;
    font-size: 15px;
    letter-spacing: 0.12em;
  }
  .site-nav__link::after { display: none; }
  .site-nav__link[aria-current="page"] { box-shadow: inset 2px 0 0 var(--c-gold); padding-left: 12px; }

  .site-nav__cta {
    margin-top: 20px;
    align-self: flex-start;
  }

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

@media (max-width: 760px) {
  .header-top__meta:not(.header-top__meta--region) { display: none; }
  .header-main__inner { height: 60px; gap: 16px; }
  .brand__name { font-size: 15px; }
  .site-footer { margin-top: 64px; }
  .footer-grid { padding: 56px 0 40px; gap: 32px; }
}

@media (max-width: 640px) {
  .grid--2,
  .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-col:last-child { grid-column: auto; }
  .panel { padding: 22px; }
  .footer-legal { justify-content: flex-start; }
}

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

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