/* ==========================================================================
   艾弗森娱乐馆 · 共享站点样式 /assets/site.css
   设计语言：堆叠画板 + 档案索引 + 赛事数据屏
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: #0B0D0C;
}

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

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

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

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

/* ---------- 2. 设计令牌 ---------- */
:root {
  /* 色彩 */
  --ink: #0B0D0C;
  --panel: #141817;
  --orange: #FF5A1F;
  --orange-soft: #FF7440;
  --cyan: #2DE2E6;
  --lime: #D7FF3F;
  --paper: #F4F7F5;
  --mist: #8B9691;
  --teal: #0F3B3A;
  --indigo: #3B2E6E;
  --wine: #6E1F32;

  /* 线条与阴影 */
  --line: rgba(244, 247, 245, 0.09);
  --line-strong: rgba(244, 247, 245, 0.2);
  --shadow-lg: 0 28px 60px rgba(0, 0, 0, 0.55);

  /* 字体 */
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC",
    "Source Han Sans SC", "Microsoft YaHei", system-ui, -apple-system,
    "Segoe UI", sans-serif;
  --font-display: "PingFang SC", "Noto Sans SC", "Source Han Sans SC",
    "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono",
    "Roboto Mono", Menlo, Consolas, "Courier New", monospace;

  /* 尺度 */
  --maxw: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --radius-sm: 10px;
  --header-h: 76px;

  /* 动效 */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(60% 45% at 10% -6%, rgba(255, 90, 31, 0.16), transparent 70%),
    radial-gradient(52% 42% at 94% 2%, rgba(45, 226, 230, 0.11), transparent 72%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 7vw, 6rem); line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.75rem); font-weight: 700; }
h4 { font-size: 1.0625rem; font-weight: 700; }

strong, b { font-weight: 700; }

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

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

/* ---------- 4. 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(48px, 8vw, 104px);
}

.section__head {
  max-width: 62ch;
  margin-bottom: clamp(24px, 4vw, 48px);
}

.lede {
  max-width: 60ch;
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
  line-height: 1.8;
  color: rgba(244, 247, 245, 0.78);
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

.divider {
  height: 1px;
  border: 0;
  margin-block: clamp(24px, 4vw, 48px);
  background: var(--line);
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.02em;
  transform: skewX(-2deg);
  transform-origin: left bottom;
}

/* ---------- 5. 跳过链接 ---------- */
.skip-link {
  position: absolute;
  top: -120px;
  left: 16px;
  z-index: 300;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  background: var(--lime);
  border-radius: 10px;
  transition: top 0.2s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
}

/* ---------- 6. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(11, 13, 12, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header[data-scrolled="true"] {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    transparent 52%,
    rgba(255, 90, 31, 0.1) 52%,
    rgba(255, 90, 31, 0.1) 59%,
    transparent 59%
  );
}

.site-header__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: var(--maxw);
  min-height: var(--header-h);
  margin-inline: auto;
  padding: 12px var(--gutter);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  color: var(--paper);
}

.brand__mark {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  color: var(--ink);
  background: var(--orange);
  clip-path: polygon(9% 0%, 100% 0%, 91% 100%, 0% 100%);
  transition: background-color 0.2s var(--ease);
}

.brand:hover .brand__mark {
  background: var(--lime);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.brand__name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.brand__tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.2;
  color: var(--mist);
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--paper);
  background: rgba(244, 247, 245, 0.06);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-toggle:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.nav-toggle__bars {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 24px);
}

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

.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  color: rgba(244, 247, 245, 0.86);
  border-radius: 999px;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.site-nav__link:hover {
  color: var(--cyan);
  background: rgba(45, 226, 230, 0.08);
}

.site-nav__link[aria-current="page"] {
  color: var(--ink);
  background: var(--lime);
}

.site-nav__link[aria-current="page"]:hover {
  color: var(--ink);
  background: var(--lime);
}

.site-nav__cta {
  flex: none;
}

/* 滚动进度线 */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--orange), var(--lime) 55%, var(--cyan));
  transition: transform 0.12s linear;
  pointer-events: none;
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.2s var(--ease),
    color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn--primary {
  color: var(--ink);
  background: var(--orange);
}

.btn--primary:hover {
  background: var(--orange-soft);
  transform: translateY(-2px);
}

.btn--ghost {
  color: var(--paper);
  background: transparent;
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

/* ---------- 8. 堆叠画板 / 卡片 ---------- */
.panel {
  position: relative;
  padding: clamp(20px, 3vw, 36px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel--glass {
  background: rgba(244, 247, 245, 0.055);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-color: rgba(244, 247, 245, 0.16);
}

.panel--teal {
  background: var(--teal);
  border-color: rgba(45, 226, 230, 0.22);
}

.panel--wine {
  background: var(--wine);
  border-color: rgba(255, 90, 31, 0.26);
}

.panel--indigo {
  background: var(--indigo);
  border-color: rgba(45, 226, 230, 0.2);
}

.panel--lime {
  color: var(--ink);
  background: var(--lime);
  border-color: transparent;
}

.panel--lime .eyebrow,
.panel--lime .lede {
  color: rgba(11, 13, 12, 0.72);
}

/* ---------- 9. 索引元素 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange);
}

.index-number {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--orange);
  transform: skewX(-6deg);
}

/* ---------- 10. 状态标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: var(--mist);
  background: rgba(244, 247, 245, 0.05);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.tag--live {
  color: var(--ink);
  background: var(--lime);
  border-color: transparent;
}

.tag--cyan {
  color: var(--ink);
  background: var(--cyan);
  border-color: transparent;
}

.tag--orange {
  color: var(--ink);
  background: var(--orange);
  border-color: transparent;
}

/* ---------- 11. 面包屑 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "/";
  color: rgba(244, 247, 245, 0.28);
}

.breadcrumb a {
  text-decoration: none;
  color: var(--mist);
  transition: color 0.18s var(--ease);
}

.breadcrumb a:hover {
  color: var(--cyan);
}

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

/* ---------- 12. 网格系统 ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

.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, 5fr) minmax(0, 7fr); }
.grid--split-alt { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }

/* ---------- 13. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--panel);
  background-image:
    linear-gradient(135deg, rgba(45, 226, 230, 0.14), rgba(255, 90, 31, 0.14)),
    linear-gradient(180deg, rgba(11, 13, 12, 0.2), rgba(11, 13, 12, 0.6));
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 247, 245, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 247, 245, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
}

.media-frame > img,
.media-frame > picture > img,
.media-frame > svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }

/* ---------- 14. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 11vw, 136px);
  padding-block: clamp(48px, 7vw, 88px) 32px;
  background: var(--panel);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--lime) 42%, var(--cyan));
}

.site-footer::after {
  content: "";
  position: absolute;
  top: -140px;
  right: -120px;
  width: 460px;
  height: 300px;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(45, 226, 230, 0.14), transparent 68%);
  transform: rotate(-14deg);
}

.site-footer__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 0.8fr)) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 56px);
}

.site-footer__brand .brand__name {
  font-size: 18px;
}

.site-footer__brand .brand__mark {
  padding: 10px 16px;
  font-size: 14px;
}

.site-footer__summary {
  margin-top: 20px;
  max-width: 40ch;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(244, 247, 245, 0.62);
}

.site-footer__hours {
  display: inline-block;
  margin-top: 18px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--ink);
  background: var(--lime);
  clip-path: polygon(7px 0%, 100% 0%, calc(100% - 7px) 100%, 0% 100%);
}

.site-footer__title {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  color: var(--mist);
}

.site-footer__list {
  display: grid;
  gap: 11px;
  font-size: 15px;
  line-height: 1.7;
}

.site-footer__list a {
  text-decoration: none;
  color: rgba(244, 247, 245, 0.88);
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
  display: inline-block;
}

.site-footer__list a:hover {
  color: var(--cyan);
  transform: translateX(2px);
}

.site-footer__contact .site-footer__list {
  color: rgba(244, 247, 245, 0.72);
}

.site-footer__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.6;
  color: var(--mist);
}

.site-footer__cta {
  margin-top: 22px;
  font-size: 14px;
  padding-inline: 20px;
}

.site-footer__legal {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 28px;
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.75;
  color: var(--mist);
}

.site-footer__legal p {
  margin: 0;
  max-width: 72ch;
}

.site-footer__copy {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ---------- 15. 滚动显现 ---------- */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}

.js-reveal [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.55s var(--ease) var(--reveal-delay, 0ms),
    transform 0.55s var(--ease) var(--reveal-delay, 0ms);
}

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 18px var(--gutter) 28px;
    background: rgba(20, 24, 23, 0.985);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
  }

  .site-nav__link {
    width: 100%;
    justify-content: flex-start;
    padding: 13px 14px;
    font-size: 16px;
    border-radius: var(--radius-sm);
  }

  .site-nav__cta {
    width: 100%;
    margin-top: 12px;
  }

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

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .grid--split,
  .grid--split-alt,
  .grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 68px;
  }

  body {
    font-size: 15px;
  }

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

  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .site-footer__legal {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .brand__tagline { display: none; }

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

  .nav-toggle__label { display: none; }

  .site-footer__copy { white-space: normal; }
}

/* ---------- 17. 动效降级 ---------- */
@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;
    scroll-behavior: auto !important;
  }

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

  .scroll-progress {
    transition: none !important;
  }

  .btn:hover,
  .site-footer__list a:hover {
    transform: none;
  }
}
