/* ============================================================
   艾弗森娱乐主站 · 共享外壳样式 site.css
   墨场黑 × 艾弗森金 / 霓虹青 × 电光紫 · 印刷票据语言
   ============================================================ */

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body, h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; }
img, svg, video { display: block; max-width: 100%; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }

/* ---------- 1. Tokens ---------- */
:root {
  --ink: #0A0B0D;
  --char: #14161A;
  --line: #2A2E35;
  --paper: #F2F0EA;
  --mist: #9BA1A9;
  --gold: #E8B23A;
  --amber: #FF9E2C;
  --molten: #F26B21;
  --cyan: #2BE7D0;
  --violet: #8B5CF6;
  --jade: #1FBF9C;
  --alert: #E4573D;

  --rail-w: 76px;
  --shell: 1280px;
  --dur: 280ms;
  --ease: cubic-bezier(.2, .8, .2, 1);

  --font-display: "Archivo Black", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-num: "SFMono-Regular", "JetBrains Mono", "Roboto Mono", Menlo, Consolas, "Courier New", monospace;
}

/* ---------- 2. Base ---------- */
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  padding-left: var(--rail-w);
  min-height: 100vh;
  overflow-x: hidden;
  transition: padding-left var(--dur) var(--ease);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body[data-rail-open="true"] { --rail-w: 248px; }

#main-content { display: block; }

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

/* ---------- 3. Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 5.4vw, 78px);
  line-height: .94;
  letter-spacing: -.02em;
  transform: skewX(-4deg);
}
.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.06;
  letter-spacing: -.015em;
  transform: skewX(-2deg);
}
.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.2;
  letter-spacing: -.01em;
  transform: skewX(-1.5deg);
}
.lead {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.7;
  color: var(--mist);
  max-width: 62ch;
}
.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.2em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--gold); font-weight: 700; }
.prose a { border-bottom: 1px solid var(--line); }
.prose a:hover { border-color: var(--gold); color: var(--gold); }

.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-weight: 600;
  letter-spacing: .01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mist);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 5px 10px;
}
.eyebrow--gold { color: var(--gold); border-color: rgba(232, 178, 58, .42); }

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

/* ---------- 4. Layout ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 clamp(18px, 3vw, 48px);
}
.band { padding: clamp(48px, 7vw, 104px) 0; }
.band--tight { padding: clamp(28px, 4vw, 56px) 0; }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }

@media (max-width: 900px) {
  .grid-12 > .col-4,
  .grid-12 > .col-5,
  .grid-12 > .col-6,
  .grid-12 > .col-7,
  .grid-12 > .col-8,
  .grid-12 > .col-9 { grid-column: span 12; }
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-align: center;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
              border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--amber); border-color: var(--amber); transform: translateY(-2px); }
.btn--ghost { color: var(--mist); }
.btn--ghost:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-2px); }

/* ---------- 6. Header / Rail ---------- */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 60;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0C0E11 0%, var(--char) 58%, #0C0E11 100%);
  border-right: 1px solid var(--line);
  padding: 18px 0 22px;
  overflow: hidden;
  transition: width var(--dur) var(--ease);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: calc(var(--rail-w) + 14px);
  z-index: 200;
  background: var(--gold);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  opacity: 0;
  visibility: hidden;
  transition: opacity 160ms var(--ease), visibility 160ms;
}
.skip-link:focus { opacity: 1; visibility: visible; }

.rail__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 10px 16px;
  border-bottom: 1px solid var(--line);
}
.rail[data-open="true"] .rail__head { align-items: stretch; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .01em;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(232, 178, 58, .3), 0 10px 22px rgba(232, 178, 58, .14);
}
.brand__mark--lg { width: 52px; height: 52px; font-size: 13px; }
.brand__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow: hidden; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.brand__sub {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mist);
  white-space: nowrap;
}

.rail__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--mist);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.rail__toggle:hover { color: var(--gold); border-color: var(--gold); }
.rail__toggle-label { white-space: nowrap; }

.rail__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 14px;
}
.rail__bars i {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.rail[data-open="true"] .rail__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.rail[data-open="true"] .rail__bars i:nth-child(2) { opacity: 0; }
.rail[data-open="true"] .rail__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.rail__nav {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 14px 8px 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.nav-list { display: flex; flex-direction: column; gap: 2px; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 2px;
  color: var(--mist);
  font-size: 14px;
  letter-spacing: .03em;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.nav-link:hover { color: var(--paper); background: rgba(242, 240, 234, .05); border-color: var(--line); }
.nav-link__idx {
  flex: 0 0 auto;
  width: 24px;
  text-align: center;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 600;
  color: var(--violet);
}
.nav-link__label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.nav-link[aria-current="page"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  font-weight: 700;
}
.nav-link[aria-current="page"] .nav-link__idx { color: rgba(10, 11, 13, .75); }

.rail__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0 4px;
  border-top: 1px solid var(--line);
}
.rail__note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 2px 4px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mist);
  white-space: nowrap;
}
.rail__dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 8px var(--jade);
}

.rail__scrim { display: none; }

/* 折叠态：桌面端只留编号与品牌印记 */
@media (min-width: 1024px) {
  .rail:not([data-open="true"]) .brand__body,
  .rail:not([data-open="true"]) .rail__foot,
  .rail:not([data-open="true"]) .rail__toggle-label {
    opacity: 0;
    visibility: hidden;
  }
  .rail:not([data-open="true"]) .nav-link { justify-content: center; gap: 0; }
  .rail:not([data-open="true"]) .nav-link__label {
    opacity: 0;
    visibility: hidden;
    max-width: 0;
    overflow: hidden;
  }
}

/* ---------- 7. Footer / Ticket ---------- */
.ticket {
  margin-top: clamp(56px, 8vw, 104px);
  background: linear-gradient(180deg, #0C0E11 0%, var(--char) 46%, #0C0E11 100%);
  border-top: 1px solid var(--line);
}
.ticket__edge {
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--molten) 42%, var(--cyan) 78%, var(--violet) 100%);
}
.ticket__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 60px) clamp(18px, 3vw, 48px) 32px;
}
.ticket__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.7fr;
  gap: 36px 28px;
}
.ticket__col { min-width: 0; }
.ticket__col--brand { display: flex; flex-direction: column; gap: 12px; }
.ticket__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.01em;
}
.ticket__meta { font-size: 12.5px; line-height: 1.7; color: var(--mist); max-width: 30ch; }
.ticket__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--paper);
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.ticket__list { display: flex; flex-direction: column; gap: 2px; }
.ticket__list--plain { gap: 10px; }
.ticket__link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  color: var(--mist);
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.ticket__link:hover { color: var(--gold); transform: translateX(3px); }
.ticket__line { display: flex; gap: 10px; font-size: 13px; line-height: 1.7; }
.ticket__key {
  flex: 0 0 auto;
  padding-top: 2px;
  font-family: var(--font-num);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.ticket__val { flex: 1 1 auto; min-width: 0; color: var(--mist); }
.ticket__line--note .ticket__val { color: var(--line); }
.ticket__legal {
  margin-top: clamp(28px, 4vw, 46px);
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
}
.ticket__legal-note { font-size: 12px; letter-spacing: .04em; color: var(--mist); }

/* ---------- 8. Component basics ---------- */
.card {
  position: relative;
  background: var(--char);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: clamp(16px, 2vw, 24px);
}
.card--accent { border-left: 2px solid var(--gold); }
.card--jade { border-left: 2px solid var(--jade); }

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__value {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.1;
  color: var(--cyan);
}
.stat__label {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mist);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(20, 22, 26, .6);
  color: var(--mist);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.tag--gold { color: var(--gold); border-color: rgba(232, 178, 58, .45); }
.tag--cyan { color: var(--cyan); border-color: rgba(43, 231, 208, .45); }
.tag--violet { color: var(--violet); border-color: rgba(139, 92, 246, .5); }
.tag--jade { color: var(--jade); border-color: rgba(31, 191, 156, .45); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--mist);
}
.crumbs li { display: flex; align-items: center; gap: 10px; }
.crumbs li + li::before { content: "/"; color: var(--line); }
.crumbs a:hover { color: var(--gold); }
.crumbs [aria-current="page"] { color: var(--paper); }

/* 图片容器：页面阶段放图用，统一深底 + 霓虹描边 */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--char);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.media--wide { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 4 / 5; }
.media > img,
.media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) contrast(1.06) brightness(.92);
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(43, 231, 208, .22),
              inset 0 -50px 70px -34px rgba(10, 11, 13, .92);
}
.media__cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(10, 11, 13, .74);
  color: var(--paper);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--mist);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
.filter-btn:hover { color: var(--paper); border-color: var(--mist); }
.filter-btn.is-active,
.filter-btn[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

/* ---------- 9. Scroll progress & back to top ---------- */
.progress {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  height: 2px;
  z-index: 90;
  background: rgba(42, 46, 53, .55);
  pointer-events: none;
}
.progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--molten) 0%, var(--gold) 48%, var(--cyan) 100%);
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(20, 22, 26, .92);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: .06em;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur),
              border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.to-top.is-on { opacity: 1; visibility: visible; }
.to-top:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- 10. Reveal ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translate(-6px, 8px);
  transition: opacity 260ms var(--ease), transform 260ms var(--ease);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 11. Mobile (rail → drawer) ---------- */
@media (max-width: 1023px) {
  body { padding-left: 0; padding-top: 64px; }

  .rail {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 64px;
    flex-direction: row;
    align-items: center;
    padding: 0 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: visible;
    transition: none;
  }

  .rail__head {
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 0;
    border-bottom: 0;
  }

  .rail__toggle { min-height: 36px; padding: 0 10px; flex: 0 0 auto; }

  .rail__nav {
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    width: min(84vw, 320px);
    z-index: 70;
    padding: 18px 14px 24px;
    background: var(--char);
    border-right: 1px solid var(--line);
    transform: translateX(-104%);
    transition: transform var(--dur) var(--ease);
  }
  .rail[data-open="true"] .rail__nav { transform: none; }

  .rail__foot { padding: 18px 0 0; }

  .nav-link { min-height: 46px; font-size: 15px; }

  .rail__scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(10, 11, 13, .74);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), visibility var(--dur);
  }
  .rail[data-open="true"] .rail__scrim { opacity: 1; visibility: visible; }

  .skip-link { left: 14px; }

  .progress { left: 0; top: 64px; }

  .ticket__grid { grid-template-columns: 1fr 1fr; }
  .ticket__col--brand { grid-column: span 2; }
}

@media (max-width: 640px) {
  .ticket__grid { grid-template-columns: 1fr; }
  .ticket__col--brand { grid-column: span 1; }
  .to-top { right: 14px; bottom: 14px; }
}

/* ---------- 12. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
