/* ==========================================================================
   365体育赛 · 共享外壳样式 /assets/site.css
   夜间赛场指挥中心：深墨绿+炭黑基底，荧光绿与电光橙作数据与入口强调
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: #071C17;
}

body {
  margin: 0;
  background: #071C17;
  color: #E8F0EC;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58vw 58vw at 92% -12%, rgba(182, 255, 59, 0.09), transparent 62%),
    radial-gradient(52vw 52vw at 2% 4%, rgba(46, 42, 90, 0.42), transparent 68%),
    radial-gradient(46vw 46vw at 60% 112%, rgba(255, 122, 26, 0.07), transparent 70%);
}

img, svg, video, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, p, figure, blockquote { margin: 0; }
table { border-collapse: collapse; width: 100%; }

:where(a, button, summary, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid #B6FF3B;
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 2. 变量 ---------- */
:root {
  /* 色彩 */
  --c-deep: #071C17;
  --c-char: #0E1110;
  --c-teal: #0F3B35;
  --c-slate: #8FA7B2;
  --c-mist: #E8F0EC;
  --c-lime: #B6FF3B;
  --c-orange: #FF7A1A;
  --c-wine: #5A1F2E;
  --c-indigo: #2E2A5A;

  --line: rgba(143, 167, 178, 0.18);
  --line-strong: rgba(143, 167, 178, 0.34);
  --fg-soft: rgba(232, 240, 236, 0.78);
  --fg-dim: rgba(232, 240, 236, 0.58);

  /* 圆角 */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;

  /* 尺寸 */
  --shell: 1320px;
  --gutter: clamp(1.125rem, 4vw, 2.5rem);
  --header-h: 68px;

  /* 字体 */
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  --font-display: "Archivo Narrow", "Arial Narrow", "Helvetica Neue", "PingFang SC", system-ui, sans-serif;
}

/* ---------- 3. 排版基元 ---------- */
.h-display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(48px, 7vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0;
}

.h-section {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
}

.h-data {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: semi-condensed;
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-slate);
  margin: 0;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--c-lime);
  flex: 0 0 auto;
}

.lead {
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  line-height: 1.78;
  color: var(--fg-soft);
  max-width: 62ch;
}

.muted { color: var(--c-slate); }
.mono { font-family: var(--font-mono); }

/* ---------- 4. 布局容器 ---------- */
.shell {
  width: min(calc(100% - var(--gutter) * 2), var(--shell));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.section { padding-block: clamp(2.5rem, 6vw, 5.5rem); }
.page-head { padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(1.75rem, 4vw, 3rem); }

.grid12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}

.col-3 { grid-column: span 3; }
.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; }

.stack { display: grid; gap: var(--stack, 1rem); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem; }

/* ---------- 5. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  padding-block: 0.75rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-slate);
}

.crumbs li { display: inline-flex; align-items: center; gap: 0.55rem; }
.crumbs li + li::before { content: "/"; color: rgba(143, 167, 178, 0.45); }
.crumbs a { color: var(--c-slate); text-decoration: none; transition: color 0.16s ease; }
.crumbs a:hover { color: var(--c-lime); }
.crumbs [aria-current="page"] { color: var(--c-mist); }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--lime {
  background: var(--c-lime);
  color: #07150E;
  box-shadow: 0 14px 32px -18px rgba(182, 255, 59, 0.85);
}
.btn--lime:hover { background: #C8FF66; }

.btn--orange {
  background: var(--c-orange);
  color: #170A02;
  box-shadow: 0 14px 32px -18px rgba(255, 122, 26, 0.9);
}
.btn--orange:hover { background: #FF8F3D; }

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

.btn--sm { padding: 0.5rem 0.95rem; font-size: 0.75rem; }
.btn--block { width: 100%; }

/* ---------- 7. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-slate);
  background: rgba(14, 17, 16, 0.6);
  white-space: nowrap;
}

.tag--lime { background: var(--c-lime); color: #07150E; border-color: transparent; }
.tag--orange { background: var(--c-orange); color: #170A02; border-color: transparent; }
.tag--wine { background: rgba(90, 31, 46, 0.7); color: #F3D9E0; border-color: rgba(255, 122, 26, 0.32); }
.tag--indigo { background: rgba(46, 42, 90, 0.72); color: #D9D6F5; border-color: rgba(143, 167, 178, 0.32); }

/* ---------- 8. 面板 / 磁贴 / 数据横条 ---------- */
.panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 2.4vw, 2rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--c-char);
}

.panel--teal { background: linear-gradient(165deg, #0F3B35, #07211D 78%); border-color: rgba(143, 167, 178, 0.22); }
.panel--wine { background: linear-gradient(165deg, #5A1F2E, #2A0E16 82%); border-color: rgba(255, 122, 26, 0.22); }
.panel--indigo { background: linear-gradient(165deg, #2E2A5A, #171436 82%); border-color: rgba(143, 167, 178, 0.24); }

.tile {
  position: relative;
  display: block;
  padding: clamp(1rem, 2vw, 1.5rem);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(14, 17, 16, 0.86);
  text-decoration: none;
  box-shadow: 0 24px 50px -34px rgba(0, 0, 0, 0.95);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.tile:hover {
  transform: translateY(-3px);
  border-color: rgba(182, 255, 59, 0.45);
  box-shadow: 0 30px 60px -34px rgba(182, 255, 59, 0.4);
}

.data-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.75rem);
  padding: clamp(1rem, 2vw, 1.4rem) clamp(1.15rem, 3vw, 2rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(100deg, rgba(15, 59, 53, 0.9), rgba(14, 17, 16, 0.94) 68%);
}

/* ---------- 9. 图片容器基础 ---------- */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, #0B2B25, #0E1110 66%);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(135deg, rgba(182, 255, 59, 0.09) 0 2px, transparent 2px 14px);
}

.media-frame > img,
.media-frame > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.media-frame--cut {
  clip-path: polygon(0 0, 100% 0, 100% 86%, 92% 100%, 0 100%);
  border-radius: var(--r-md);
}

/* ---------- 10. 站点头部 ---------- */
.skip-link {
  position: absolute;
  left: 50%;
  top: 0.5rem;
  z-index: 220;
  padding: 0.6rem 1.15rem;
  border-radius: var(--r-pill);
  background: var(--c-lime);
  color: #07150E;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transform: translate(-50%, -160%);
  transition: transform 0.18s ease;
}

.skip-link:focus { transform: translate(-50%, 0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(7, 28, 23, 0.88);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-header[data-stuck] {
  border-bottom-color: rgba(143, 167, 178, 0.3);
  box-shadow: 0 22px 44px -34px rgba(0, 0, 0, 0.98);
}

.command-bar {
  position: relative;
  width: min(calc(100% - var(--gutter) * 2), var(--shell));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand__mark {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  flex: 0 0 auto;
  background: conic-gradient(from 210deg, #B6FF3B, #3FD69A 42%, #0F3B35 76%, #B6FF3B);
  box-shadow: 0 0 0 1px rgba(182, 255, 59, 0.45), 0 12px 28px -16px rgba(182, 255, 59, 0.9);
}

.brand__mark::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 2px;
  border-radius: 2px;
  background: rgba(7, 28, 23, 0.82);
  transform: translateY(-50%) rotate(-24deg);
}

.brand__text { display: flex; flex-direction: column; line-height: 1.15; }

.brand__name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--c-mist);
}

.brand__tag {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(143, 167, 178, 0.9);
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  color: var(--c-mist);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-toggle__bars { display: grid; gap: 4px; width: 16px; }

.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--c-lime);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.site-header[data-open] .nav-toggle__bars span:first-child { transform: translateY(3px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* 主导航 */
.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.4vw, 1.25rem);
  margin-left: auto;
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  counter-reset: navidx;
}

.primary-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.5rem 0.68rem;
  border-radius: var(--r-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(232, 240, 236, 0.72);
  text-decoration: none;
  transition: color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.primary-nav__link::before {
  counter-increment: navidx;
  content: counter(navidx, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0;
  color: rgba(143, 167, 178, 0.52);
  transition: color 0.16s ease;
}

.primary-nav__link::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-lime);
  box-shadow: 0 0 9px rgba(182, 255, 59, 0.95);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.primary-nav__link:hover {
  color: var(--c-mist);
  background: rgba(143, 167, 178, 0.1);
}

.primary-nav__link:hover::before { color: var(--c-lime); }

.primary-nav__link[aria-current="page"] {
  color: var(--c-lime);
  background: rgba(182, 255, 59, 0.09);
  box-shadow: inset 0 0 0 1px rgba(182, 255, 59, 0.3);
}

.primary-nav__link[aria-current="page"]::before { color: var(--c-lime); }
.primary-nav__link[aria-current="page"]::after { opacity: 1; transform: none; }

.nav-cta { margin-left: 0.35rem; }

/* 滚动进度光带 */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, #B6FF3B, #FF7A1A);
  box-shadow: 0 0 12px rgba(182, 255, 59, 0.55);
  pointer-events: none;
}

/* ---------- 11. 站点页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 8vw, 7rem);
  padding-block: clamp(2.5rem, 5vw, 4.5rem) 1.75rem;
  background: linear-gradient(180deg, #0B1512, var(--c-char) 48%);
  border-top: 1px solid var(--line);
  color: rgba(232, 240, 236, 0.86);
}

.site-footer__beam {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #B6FF3B 18%, #FF7A1A 56%, transparent 92%);
  opacity: 0.85;
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.site-footer__brand .brand__name { font-size: 1.0625rem; }

.site-footer__summary {
  margin-top: 1.25rem;
  max-width: 36ch;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgba(232, 240, 236, 0.72);
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.footer-nav__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-slate);
  margin-bottom: 0.75rem;
}

.footer-nav__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(1rem, 3vw, 2.5rem);
  counter-reset: footidx;
}

.footer-nav__link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0;
  border-bottom: 1px dashed rgba(143, 167, 178, 0.16);
  font-size: 0.9375rem;
  text-decoration: none;
  color: rgba(232, 240, 236, 0.78);
  transition: color 0.16s ease;
}

.footer-nav__link::before {
  counter-increment: footidx;
  content: counter(footidx, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(143, 167, 178, 0.6);
  transition: color 0.16s ease;
}

.footer-nav__link:hover { color: var(--c-lime); }
.footer-nav__link:hover::before { color: var(--c-orange); }

.footer-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1rem clamp(1rem, 3vw, 2rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
}

.footer-contact__item { display: grid; gap: 0.35rem; }

.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-slate);
}

.footer-contact__value {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--c-mist);
  word-break: break-word;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(143, 167, 178, 0.82);
}

.site-footer__copy,
.site-footer__icp,
.site-footer__note { margin: 0; }

.site-footer__icp { color: var(--c-lime); }
.site-footer__note { flex: 1 1 320px; text-align: right; letter-spacing: 0.04em; }

/* ---------- 12. 滚动显现协议 ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 0.68, 0.32, 1),
    transform 0.55s cubic-bezier(0.22, 0.68, 0.32, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1100px) {
  .primary-nav { gap: 0.35rem; }
  .primary-nav__link { padding: 0.45rem 0.55rem; font-size: 0.78rem; }
}

@media (max-width: 960px) {
  :root { --header-h: 62px; }

  .nav-toggle { display: inline-flex; }

  .primary-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 1rem var(--gutter) 1.75rem;
    background: rgba(10, 20, 18, 0.98);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 34px 64px -34px rgba(0, 0, 0, 0.95);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }

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

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.125rem;
  }

  .primary-nav__link {
    padding: 0.85rem 1rem;
    font-size: 0.9375rem;
    border-radius: var(--r-md);
  }

  .nav-cta {
    margin-top: 0.85rem;
    margin-left: 0;
    width: 100%;
  }

  .site-footer__top { grid-template-columns: 1fr; }
  .site-footer__note { text-align: left; }

  .grid12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-12 { grid-column: span 12; }
}

@media (max-width: 640px) {
  .brand__tag { display: none; }
  .footer-nav__list { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- 14. 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

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

  .btn:hover,
  .tile:hover { transform: none; }
}
