/* ==========================================================================
   酷体育电竞赛 · 共享站点样式 /assets/site.css
   深空蓝黑画布 + 左侧框架导航 + 冰面网格与展览说明牌
   ========================================================================== */

:root {
  --ink-900: #050A14;
  --ink-800: #0A1220;
  --panel: #1B2430;
  --panel-2: #0E1826;
  --deep-ice: #123A5A;
  --silver: #F2F6FA;
  --ice: #5AC8FA;
  --cyan: #48F5D2;
  --goal: #FF8A3D;
  --miss: #9B8CFF;
  --moss: #6F8F7A;
  --chalk: #E8E3D8;

  --line: rgba(90, 200, 250, 0.2);
  --line-soft: rgba(90, 200, 250, 0.1);

  --rail-w: 252px;
  --bar-h: 68px;

  --font-display: "Barlow Condensed", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body,
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd {
  margin: 0;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a { color: inherit; text-decoration: none; }

::selection {
  background: rgba(90, 200, 250, 0.32);
  color: var(--silver);
}

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

/* ---------- 中文排版基座 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(1100px 520px at 88% -8%, rgba(18, 58, 90, 0.6), transparent 68%),
    radial-gradient(760px 460px at -6% 104%, rgba(72, 245, 210, 0.07), transparent 70%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--silver);
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-underline-offset: 0.22em;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: 0.02em;
  color: var(--silver);
}

h1 { font-size: clamp(34px, 5vw, 64px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: clamp(20px, 2.2vw, 25px); }
h4 { font-size: clamp(17px, 1.6vw, 19px); }

p { max-width: 68ch; }

strong, b { font-weight: 700; color: var(--silver); }

small { font-size: 13px; }

#main-content { scroll-margin-block-start: 24px; }

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-240%);
  padding: 10px 18px;
  background: var(--cyan);
  color: #04121c;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 2px;
  transition: transform 0.18s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- 滚动进度 ---------- */
.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 90;
  background: linear-gradient(90deg, var(--ice), var(--cyan));
  box-shadow: 0 0 14px rgba(72, 245, 210, 0.55);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
  transition: transform 0.1s linear;
}

/* ---------- 站点头部 · 框架导航 ---------- */
.site-header {
  position: fixed;
  z-index: 60;
  background: linear-gradient(180deg, #08111d 0%, #050a14 58%, #070f1a 100%);
  border-inline-end: 1px solid var(--line);
  box-shadow: 22px 0 60px rgba(0, 0, 0, 0.55);
}

.frame-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 4px 16px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.brand__mark {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  color: #04121c;
  background: linear-gradient(140deg, var(--cyan), var(--ice));
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}

.brand__text { min-width: 0; }

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--silver);
}

.brand__sub {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(242, 246, 250, 0.46);
  white-space: nowrap;
}

/* 移动开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(90, 200, 250, 0.06);
  color: var(--silver);
  font-size: 13px;
  letter-spacing: 0.1em;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--cyan);
  background: rgba(90, 200, 250, 0.16);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: var(--cyan);
  transition: background-color 0.18s var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--cyan);
  transition: transform 0.18s var(--ease);
}

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

.site-header[data-open] .nav-toggle__bars { background-color: transparent; }
.site-header[data-open] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

/* 导航本体 */
.site-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.site-nav__list a {
  position: relative;
  display: block;
  padding: 9px 12px 9px 20px;
  border-radius: 2px;
  font-size: 14.5px;
  letter-spacing: 0.06em;
  color: rgba(242, 246, 250, 0.66);
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.site-nav__list a::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 1px;
  background: rgba(90, 200, 250, 0.4);
  transition: width 0.18s var(--ease), background-color 0.18s var(--ease);
}

.site-nav__list a:hover {
  color: var(--silver);
  background: rgba(90, 200, 250, 0.08);
}

.site-nav__list a:hover::before {
  width: 12px;
  background: var(--ice);
}

.site-nav__list a[aria-current="page"] {
  color: #04121c;
  font-weight: 700;
  background: linear-gradient(90deg, var(--cyan), rgba(90, 200, 250, 0.35));
}

.site-nav__list a[aria-current="page"]::before {
  width: 12px;
  background: #04121c;
}

.site-nav__cta { width: 100%; }

.site-nav__note {
  padding-inline-start: 2px;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: rgba(242, 246, 250, 0.42);
}

/* ---------- 站点页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 96px);
  background: linear-gradient(180deg, #070e18, #0b1624);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(360px, 58%);
  height: 2px;
  background: linear-gradient(90deg, var(--goal), var(--cyan) 46%, var(--miss));
  opacity: 0.9;
}

.footer__inner {
  max-width: 1320px;
  margin-inline: auto;
  padding: clamp(40px, 6vw, 64px) 24px 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px 32px;
}

.footer__col { min-width: 0; }

.footer__logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--silver);
  margin-bottom: 10px;
}

.footer__tag {
  max-width: 34ch;
  margin-bottom: 18px;
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(242, 246, 250, 0.62);
}

.footer__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(242, 246, 250, 0.5);
}

.footer__title::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--ice);
}

.footer__col--legal .footer__title::before { background: var(--miss); }
.footer__col--contact .footer__title::before { background: var(--moss); }

.footer__list {
  display: grid;
  gap: 9px;
  font-size: 14.5px;
  line-height: 1.7;
}

.footer__list a {
  display: inline-block;
  padding-bottom: 2px;
  color: rgba(242, 246, 250, 0.72);
  background-image: linear-gradient(var(--cyan), var(--cyan));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: color 0.18s var(--ease), background-size 0.18s var(--ease);
}

.footer__list a:hover,
.footer__list a:focus-visible {
  color: var(--silver);
  background-size: 100% 1px;
}

.footer__list--plain {
  color: rgba(242, 246, 250, 0.62);
  font-size: 14px;
  letter-spacing: 0.01em;
}

.footer__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: rgba(242, 246, 250, 0.52);
}

.footer__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.footer__legend-item::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--ice);
}

.footer__legend-item--goal::before { background: var(--goal); }
.footer__legend-item--miss::before { background: var(--miss); }
.footer__legend-item--live::before { background: var(--cyan); }

.footer__bar {
  max-width: 1320px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 16px 24px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(90, 200, 250, 0.14);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(242, 246, 250, 0.44);
}

.footer__meta { margin: 0; max-width: none; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.btn--accent {
  background: linear-gradient(100deg, var(--cyan), #3fb9ec);
  color: #04121c;
  font-weight: 700;
}

.btn--accent:hover {
  box-shadow: 0 0 0 1px rgba(72, 245, 210, 0.6), 0 12px 28px rgba(72, 245, 210, 0.2);
}

.btn--line {
  border-color: rgba(90, 200, 250, 0.38);
  color: var(--ice);
  background: transparent;
}

.btn--line:hover {
  border-color: var(--cyan);
  color: var(--silver);
  background: rgba(72, 245, 210, 0.09);
}

.btn--ghost {
  border-color: var(--line-soft);
  color: rgba(242, 246, 250, 0.74);
  background: rgba(27, 36, 48, 0.5);
}

.btn--ghost:hover {
  border-color: var(--ice);
  color: var(--silver);
}

/* ---------- 容器与网格 ---------- */
.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  padding-block: 18px 6px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(242, 246, 250, 0.5);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
}

.breadcrumb__list > li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(90, 200, 250, 0.46);
}

.breadcrumb__list a {
  color: rgba(242, 246, 250, 0.72);
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.breadcrumb__list a:hover,
.breadcrumb__list a:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* ---------- 展览标签 ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid rgba(72, 245, 210, 0.36);
  border-radius: 2px;
  background: rgba(72, 245, 210, 0.1);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.5;
  white-space: nowrap;
}

.label--ice {
  color: var(--ice);
  background: rgba(90, 200, 250, 0.1);
  border-color: rgba(90, 200, 250, 0.4);
}

.label--goal {
  color: var(--goal);
  background: rgba(255, 138, 61, 0.12);
  border-color: rgba(255, 138, 61, 0.44);
}

.label--miss {
  color: var(--miss);
  background: rgba(155, 140, 255, 0.12);
  border-color: rgba(155, 140, 255, 0.44);
}

.label--chalk {
  color: #16202c;
  background: var(--chalk);
  border-color: transparent;
}

/* ---------- 说明牌面板 ---------- */
.plate {
  position: relative;
  padding: 18px 20px 18px 24px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: linear-gradient(160deg, rgba(27, 36, 48, 0.92), rgba(12, 20, 32, 0.94));
  box-shadow: inset 0 1px 0 rgba(242, 246, 250, 0.04), 0 18px 40px -30px rgba(0, 0, 0, 0.95);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.plate::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--ice), var(--cyan));
}

.plate:hover {
  border-color: rgba(72, 245, 210, 0.46);
  box-shadow: inset 0 1px 0 rgba(242, 246, 250, 0.06), 0 24px 48px -28px rgba(0, 0, 0, 1);
}

.plate--chalk {
  background: linear-gradient(160deg, #f5f2ea, #e8e3d8);
  border-color: rgba(22, 32, 44, 0.12);
  color: #16202c;
  box-shadow: 0 18px 40px -32px rgba(0, 0, 0, 0.9);
}

.plate--chalk::before { background: linear-gradient(180deg, var(--moss), var(--deep-ice)); }
.plate--chalk h2,
.plate--chalk h3,
.plate--chalk h4,
.plate--chalk strong { color: #16202c; }

/* ---------- 图片容器基础 ---------- */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(18, 58, 90, 0.6), rgba(5, 10, 20, 0.92));
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(90, 200, 250, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 200, 250, 0.1) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
  mix-blend-mode: screen;
}

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

/* ---------- 区块抬头 / 数字 / 分隔 ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 18px;
  padding-bottom: 14px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(90, 200, 250, 0.16);
}

.section-head__eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--ice);
}

.num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.rule {
  height: 1px;
  border: 0;
  margin-block: 32px;
  background: linear-gradient(90deg, rgba(90, 200, 250, 0.36), rgba(90, 200, 250, 0));
}

/* ---------- 视口显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   桌面端：左侧固定框架
   ========================================================================== */
@media (min-width: 1024px) {
  body { padding-inline-start: var(--rail-w); }

  .scroll-meter { left: var(--rail-w); }

  .site-header {
    inset-block: 0;
    inset-inline-start: 0;
    width: var(--rail-w);
    display: flex;
    padding: 26px 20px 22px;
  }

  .site-header::after {
    content: "";
    position: absolute;
    inset-block: 24px;
    inset-inline-end: -1px;
    width: 1px;
    background: repeating-linear-gradient(
      to bottom,
      var(--ice) 0 10px,
      transparent 10px 42px
    );
    opacity: 0.34;
    pointer-events: none;
  }

  .frame-header {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    height: 100%;
    min-height: 0;
  }

  .brand { padding: 2px 4px 18px; }

  .site-nav {
    flex: 1 1 auto;
    min-height: 0;
    gap: 12px;
    overflow-y: auto;
    padding-right: 2px;
  }

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

  .site-nav__note { margin-top: 0; }

  .footer__inner { grid-template-columns: 1.5fr 0.9fr 0.8fr 1.2fr; }
}

@media (min-width: 640px) and (max-width: 1023.98px) {
  .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__col--brand { grid-column: 1 / -1; }
}

/* ==========================================================================
   窄屏：底部悬浮控制条
   ========================================================================== */
@media (max-width: 1023.98px) {
  body { padding-bottom: calc(var(--bar-h) + 28px + env(safe-area-inset-bottom)); }

  .site-header {
    inset-inline: 0;
    inset-block-end: 0;
    inset-block-start: auto;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-inline-end: 0;
    border-top: 1px solid var(--line);
    background: linear-gradient(0deg, #050a14 0%, #0a1420 100%);
    box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .frame-header {
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
  }

  .brand {
    flex: 1 1 auto;
    padding: 0;
    border-bottom: 0;
  }

  .brand__mark { width: 34px; height: 34px; font-size: 17px; }
  .brand__name { font-size: 17px; }
  .brand__sub { display: none; }

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

  .site-nav {
    order: 3;
    flex: 1 1 100%;
    display: none;
    gap: 12px;
    margin-top: 4px;
    padding: 14px 14px 16px;
    max-height: min(62vh, 520px);
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(11, 21, 35, 0.98);
    box-shadow: 0 -20px 46px rgba(0, 0, 0, 0.55);
  }

  .site-header[data-open] .site-nav { display: flex; }

  .site-nav__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .site-nav__list a {
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 14px;
    text-align: center;
  }

  .site-nav__list a::before { display: none; }

  .site-nav__list a[aria-current="page"] {
    border-color: transparent;
    color: #04121c;
  }

  .site-nav__cta {
    margin-top: 0;
    align-self: flex-start;
    width: auto;
  }

  .site-nav__note { display: none; }

  .footer__bar {
    justify-content: flex-start;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 459.98px) {
  .site-nav__list { grid-template-columns: minmax(0, 1fr); }
}

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

  .scroll-meter { transition: none; }
}
