/* ============================================================
   BEPLAY体育 · 共享站点点位系统 (site.css)
   战术板 × 数据仪表盘 × 展览画册
   ============================================================ */

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

:root {
  /* 色彩 */
  --ink: #0B0F0E;
  --deep: #0F2A22;
  --board: #143D31;
  --fog: #E8F0EA;
  --graphite: #A9B8B0;
  --lime: #C7FF3D;
  --amber: #FF9F1C;
  --warn: #FFD23F;
  --blue: #36C5F0;
  --violet: #8B7CFF;
  --glass: rgba(232, 240, 234, 0.08);
  --line: rgba(232, 240, 234, 0.14);
  --line-strong: rgba(232, 240, 234, 0.28);

  /* 字体 */
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-condensed: "Noto Sans SC Condensed", "Source Han Sans Condensed", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  /* 尺寸 */
  --gutter: clamp(16px, 4vw, 64px);
  --header-h: 68px;
  --radius: 4px;
  --maxw: 1360px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(232, 240, 234, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 240, 234, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  background-attachment: fixed;
  color: var(--fog);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-family: var(--font-condensed);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--fog);
  text-wrap: balance;
}

h1 { font-size: clamp(34px, 7vw, 104px); line-height: 0.98; }
h2 { font-size: clamp(26px, 4.2vw, 56px); }
h3 { font-size: clamp(19px, 2.2vw, 28px); letter-spacing: 0; }
h4 { font-size: clamp(16px, 1.6vw, 20px); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--lime); }

img, svg, video, canvas { max-width: 100%; }
img { height: auto; }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.35em; }

strong, b { font-weight: 700; color: var(--fog); }
small { font-size: 12px; }

code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

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

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

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

::selection {
  background: var(--lime);
  color: #0B1400;
}

#main-content {
  display: block;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

/* ---------------- 跳转链接 ---------------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: 12px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--lime);
  color: #0B1400;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 2px;
  transition: top 0.18s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  color: #0B1400;
}

/* ---------------- 头部 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(11, 15, 14, 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  backdrop-filter: blur(16px) saturate(1.25);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(199, 255, 61, 0.14);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
  max-width: var(--maxw);
  margin-inline: auto;
  min-height: var(--header-h);
  padding: 10px var(--gutter);
}

/* 品牌锁 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--fog);
}
.brand:hover { color: var(--fog); }

.brand__mark {
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
  border: 2px solid var(--lime);
  display: block;
}
.brand__mark::before {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--amber);
}
.brand__mark::after {
  content: "";
  position: absolute;
  top: -6px;
  bottom: -6px;
  left: 50%;
  width: 1px;
  background: rgba(199, 255, 61, 0.45);
}

.brand__name {
  font-family: var(--font-condensed);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand__locale {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--graphite);
  border: 1px solid var(--line);
  padding: 1px 5px;
  border-radius: 2px;
  line-height: 1.5;
}

/* 赛季轮次轴 */
.season-rail {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  text-decoration: none;
  color: var(--graphite);
  transition: border-color 0.18s ease, color 0.18s ease;
}
.season-rail:hover {
  border-color: var(--line-strong);
  color: var(--fog);
}

.season-rail__tick {
  display: block;
  width: 3px;
  height: 13px;
  background: rgba(232, 240, 234, 0.22);
}
.season-rail__tick--on { background: var(--lime); height: 18px; }

.season-rail__label {
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* 移动菜单按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 9px 12px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--fog);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.nav-toggle:hover { border-color: var(--lime); color: var(--lime); }

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 16px;
}
.nav-toggle__bar {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child {
  transform: translateY(3px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-child {
  transform: translateY(-3px) rotate(-45deg);
}
.nav-toggle__text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* 主导航 */
.site-nav {
  display: none;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__item { margin: 0; }

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  color: var(--graphite);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.18s ease;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--lime), var(--amber));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}
.site-nav__link:hover { color: var(--fog); }
.site-nav__link:hover::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"] { color: var(--lime); }
.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--lime);
}

.site-nav__cta {
  flex: none;
  white-space: nowrap;
}

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(232, 240, 234, 0.08);
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--blue), var(--amber));
  transition: width 0.12s linear;
}

/* ---------------- 移动导航面板 ---------------- */
@media (max-width: 899.98px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    padding: 8px var(--gutter) 22px;
    overflow-y: auto;
    background: rgba(11, 15, 14, 0.985);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px -30px rgba(0, 0, 0, 0.95);
  }
  .site-nav[data-open] { display: flex; }

  .site-nav__list {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .site-nav__link {
    display: block;
    padding: 15px 0;
    font-size: 15px;
    border-bottom: 1px solid rgba(232, 240, 234, 0.08);
  }
  .site-nav__link::after { display: none; }
  .site-nav__link[aria-current="page"] {
    color: var(--lime);
    border-bottom-color: rgba(199, 255, 61, 0.4);
  }

  .site-nav__cta {
    margin-top: 20px;
    width: 100%;
    justify-content: center;
  }
}

/* ---------------- 桌面导航 ---------------- */
@media (min-width: 900px) {
  .nav-toggle { display: none; }

  .site-nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 30px);
  }
  .site-nav__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(10px, 1.6vw, 24px);
  }
}

@media (min-width: 1100px) {
  .season-rail { display: inline-flex; }
}

/* ---------------- 页脚 ---------------- */
.site-footer {
  position: relative;
  margin-top: clamp(40px, 8vw, 96px);
  background: var(--ink);
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: clamp(90px, 18vw, 240px);
  height: 2px;
  background: linear-gradient(90deg, var(--lime), var(--amber), transparent);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 56px);
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(28px, 4vw, 48px);
}

.footer-brand__name {
  margin: 0 0 10px;
  font-family: var(--font-condensed);
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--fog);
}

.footer-brand__desc {
  margin: 0 0 18px;
  max-width: 46ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--graphite);
}

.footer-contact {
  margin: 0 0 10px;
  padding-left: 12px;
  border-left: 2px solid var(--blue);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.8;
  color: var(--fog);
  word-break: break-word;
}

.footer-contact__note {
  margin: 0;
  max-width: 44ch;
  font-size: 12px;
  line-height: 1.75;
  color: var(--graphite);
}

.footer-col__title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer-list__item { margin: 0; }

.footer-list__link {
  display: inline-block;
  font-size: 14px;
  color: var(--graphite);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.footer-list__link:hover,
.footer-list__link:focus-visible {
  color: var(--fog);
  border-bottom-color: var(--amber);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 18px var(--gutter) clamp(24px, 4vw, 36px);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--graphite);
}
.footer-meta__icp { color: var(--graphite); }
.footer-meta__copy { color: var(--graphite); }

@media (min-width: 760px) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* ---------------- 通用容器与区块 ---------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(40px, 6vw, 88px);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(20px, 3vw, 40px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
}

.prose {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.78;
  color: var(--fog);
}
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose a { color: var(--blue); }
.prose a:hover { color: var(--lime); }

/* ---------------- 面包屑 ---------------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 clamp(16px, 2vw, 28px);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--graphite);
}
.crumbs a {
  color: var(--graphite);
  text-decoration: none;
  transition: color 0.18s ease;
}
.crumbs a:hover { color: var(--lime); }
.crumbs__sep { color: var(--board); opacity: 0.9; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, transform 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--amber {
  background: var(--amber);
  border-color: var(--amber);
  color: #170D00;
}
.btn--amber:hover { background: #FFB84D; border-color: #FFB84D; color: #170D00; }

.btn--lime {
  background: var(--lime);
  border-color: var(--lime);
  color: #0B1400;
}
.btn--lime:hover { background: #D6FF72; border-color: #D6FF72; color: #0B1400; }

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

/* ---------------- 网格 ---------------- */
.grid {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid--rail { grid-template-columns: minmax(0, 1fr); }

@media (min-width: 900px) {
  .grid--rail {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: clamp(20px, 3vw, 40px);
  }
}

/* ---------------- 图片容器（页面阶段放 img / svg） ---------------- */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.media-frame img,
.media-frame svg,
.media-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.06) brightness(0.94);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(54, 197, 240, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54, 197, 240, 0.16) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
  mix-blend-mode: screen;
}
.media-frame--wide { aspect-ratio: 16 / 7; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame__caption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 3;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  text-shadow: 0 1px 6px rgba(11, 15, 14, 0.9);
}

/* ---------------- 状态标签 ---------------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag--lime { color: var(--lime); }
.tag--amber { color: var(--amber); }
.tag--warn { color: var(--warn); }
.tag--blue { color: var(--blue); }
.tag--violet { color: var(--violet); }

/* ---------------- 横向主题带 ---------------- */
.theme-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin: 0;
  padding: 14px 18px;
  background: var(--board);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 13px;
  color: var(--fog);
}
.theme-band > * { margin: 0; }

/* ---------------- 显现动效 ---------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------------- 响应式微调 ---------------- */
@media (max-width: 599.98px) {
  .brand__locale { display: none; }
  .brand__name { font-size: 15px; }
  .footer-meta { justify-content: flex-start; }
  .theme-band { padding: 12px 14px; gap: 10px 18px; }
}

/* ---------------- 无障碍：减少动效 ---------------- */
@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;
  }

  .btn:hover { transform: none; }
  .scroll-progress__bar { transition: none; }
}
