/* ==========================================================================
   亿电竞主站 · /assets/site.css
   战术屏视觉体系：深空黑底 + 蓝图坐标网格 + 霓虹青 / 品红 / 琥珀数据点
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  --ink: #070B10;
  --panel: #0E141B;
  --panel-2: #121A23;
  --rock: #28323C;
  --fog: #9AA6B2;
  --cream: #F4F1E8;
  --cyan: #37E6D4;
  --magenta: #FF4D9D;
  --amber: #FFC857;
  --moss: #7A9A6A;
  --clay: #C07A58;

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

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --cut: 16px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --line: rgba(40, 50, 60, .92);
  --line-soft: rgba(40, 50, 60, .55);
  --cyan-dim: rgba(55, 230, 212, .12);
  --cyan-edge: rgba(55, 230, 212, .42);
  --magenta-edge: rgba(255, 77, 157, .4);
}

/* ---------- 2. 重置与基础 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    linear-gradient(to right, rgba(40, 50, 60, .30) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(40, 50, 60, .30) 1px, transparent 1px),
    radial-gradient(120% 70% at 50% 0%, rgba(55, 230, 212, .06), transparent 62%);
  background-size: 88px 88px, 88px 88px, 100% 100%;
  background-attachment: fixed, fixed, fixed;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

main { display: block; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--cream);
}

h1, .h1 { font-size: clamp(2.5rem, 6.2vw, 5rem); }
h2, .h2 { font-size: clamp(1.7rem, 3.6vw, 2.75rem); }
h3, .h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

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

a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--cream); }

ul, ol { padding-left: 1.2em; }

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

button { font: inherit; }

::selection { background: var(--cyan); color: #04120F; }

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

#main-content { scroll-margin-top: 104px; }

/* ---------- 3. 工具类 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: 920px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--cyan);
  color: #04120F;
  font-weight: 700;
  font-size: .86rem;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform .2s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

/* ---------- 4. 头部：悬浮胶囊导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 12px var(--gutter);
  pointer-events: none;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 120;
  pointer-events: none;
}

.scroll-progress > span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--magenta) 58%, var(--amber));
  box-shadow: 0 0 14px rgba(55, 230, 212, .55);
}

.header-inner {
  max-width: var(--wrap);
  margin-inline: auto;
}

.header-bar {
  position: relative;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 9px 10px 9px 18px;
  background: rgba(14, 20, 27, .9);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  box-shadow:
    0 22px 48px -32px rgba(0, 0, 0, .95),
    inset 0 1px 0 rgba(244, 241, 232, .05);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: var(--cream);
  text-decoration: none;
}

.brand:hover { color: var(--cream); }

.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--cyan);
  border-radius: 6px;
  transform: rotate(45deg) scale(.82);
  box-shadow: inset 0 0 12px rgba(55, 230, 212, .35);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 2px;
  background: var(--magenta);
  opacity: .92;
}

.brand-text { display: block; line-height: 1.2; }

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: .1em;
  color: var(--cream);
}

.brand-sub {
  display: block;
  margin-top: 2px;
  font-size: .66rem;
  letter-spacing: .12em;
  color: var(--fog);
  white-space: nowrap;
}

/* 赛季芯片 */
.season-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  color: var(--fog);
  white-space: nowrap;
}

.season-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 200, 87, .16);
  animation: season-pulse 2.6s var(--ease) infinite;
}

@keyframes season-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 200, 87, .16); }
  50% { box-shadow: 0 0 0 6px rgba(255, 200, 87, .04); }
}

/* 导航 */
.site-nav { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: block;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--fog);
  font-size: .86rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .16s var(--ease), background .16s var(--ease);
}

.nav-list a:hover {
  color: var(--cream);
  background: rgba(40, 50, 60, .62);
}

.nav-list a[aria-current="page"] {
  color: var(--cyan);
  background: var(--cyan-dim);
  box-shadow: inset 0 0 0 1px var(--cyan-edge);
}

.nav-list-cta { display: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.header-cta { padding: 10px 17px; font-size: .8rem; }

/* 移动开关 */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(40, 50, 60, .4);
  color: var(--cream);
  cursor: pointer;
  transition: border-color .16s var(--ease), color .16s var(--ease), background .16s var(--ease);
}

.nav-toggle:hover {
  color: var(--cyan);
  border-color: var(--cyan-edge);
  background: rgba(55, 230, 212, .08);
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 17px;
  height: 11px;
}

.nav-toggle-bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .16s var(--ease);
}

.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 4.75px; }
.nav-toggle-bars span:nth-child(3) { top: 9.5px; }

.site-header[data-open="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(4.75px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.site-header[data-open="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-4.75px) rotate(-45deg); }

/* ---------- 5. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(60px, 9vw, 120px);
  background: var(--panel);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent 42%, transparent 58%, var(--magenta));
  opacity: .85;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 240px;
  pointer-events: none;
  background: radial-gradient(120% 100% at 50% 100%, rgba(55, 230, 212, .07), transparent 70%);
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(36px, 5vw, 64px) var(--gutter) 0;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, .8fr));
  gap: clamp(24px, 4vw, 56px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.brand--footer .brand-name { font-size: 1.15rem; }

.footer-note {
  max-width: 34ch;
  margin: 0;
  color: var(--fog);
  font-size: .9rem;
  line-height: 1.85;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-col-title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fog);
}

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

.footer-links a {
  display: inline-block;
  padding: 5px 0;
  color: var(--fog);
  font-size: .9rem;
  text-decoration: none;
  transition: color .16s var(--ease), transform .16s var(--ease);
}

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

.footer-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px 28px;
  margin-top: clamp(28px, 4vw, 46px);
  padding: clamp(20px, 3vw, 28px) 0;
  border-top: 1px dashed var(--line-soft);
  border-bottom: 1px dashed var(--line-soft);
}

.contact-item { display: grid; gap: 5px; }

.contact-label {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clay);
}

.contact-value {
  color: var(--cream);
  font-size: .88rem;
  line-height: 1.7;
  word-break: break-word;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 20px 0 28px;
  color: var(--fog);
  font-size: .78rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
}

.footer-sep { color: var(--rock); }

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(40, 50, 60, .35);
  color: var(--fog);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  cursor: pointer;
  visibility: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity .2s var(--ease),
    transform .2s var(--ease),
    visibility .2s linear,
    color .16s var(--ease),
    border-color .16s var(--ease);
}

.to-top.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.to-top:hover {
  color: var(--cyan);
  border-color: var(--cyan-edge);
}

.to-top span { color: var(--cyan); }

/* ---------- 6. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .86rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform .16s var(--ease),
    box-shadow .16s var(--ease),
    background .16s var(--ease),
    color .16s var(--ease),
    border-color .16s var(--ease);
}

.btn--primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04120F;
  box-shadow: 0 10px 26px -16px rgba(55, 230, 212, .95);
}

.btn--primary:hover {
  color: #04120F;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -14px rgba(55, 230, 212, .9);
}

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

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

.btn--amber {
  background: var(--amber);
  border-color: var(--amber);
  color: #1A1203;
}

.btn--amber:hover {
  color: #1A1203;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -16px rgba(255, 200, 87, .95);
}

.btn--sm { padding: 9px 16px; font-size: .8rem; }

/* ---------- 7. 面包屑 ---------- */
.crumbs {
  padding: 18px 0;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--fog);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crumbs a {
  color: var(--fog);
  text-decoration: none;
}

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

.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--rock);
}

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

/* ---------- 8. 标签 / 眉标 / 数据读数 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fog);
}

.tag--cyan { color: var(--cyan); border-color: var(--cyan-edge); background: var(--cyan-dim); }
.tag--magenta { color: var(--magenta); border-color: var(--magenta-edge); background: rgba(255, 77, 157, .1); }
.tag--amber { color: var(--amber); border-color: rgba(255, 200, 87, .4); background: rgba(255, 200, 87, .09); }
.tag--moss { color: var(--moss); border-color: rgba(122, 154, 106, .45); background: rgba(122, 154, 106, .12); }
.tag--clay { color: var(--clay); border-color: rgba(192, 122, 88, .45); background: rgba(192, 122, 88, .12); }

.stat { display: grid; gap: 3px; }

.stat-label {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fog);
}

.stat-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--cream);
}

.stat-value--amber { color: var(--amber); }
.stat-value--cyan { color: var(--cyan); }

/* ---------- 9. 面板与网格 ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.panel--cut {
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

.grid {
  display: grid;
  gap: clamp(14px, 2.2vw, 24px);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(186px, 1fr)); }

.divider-slant {
  height: 6px;
  border: 0;
  margin: 0;
  background-image: repeating-linear-gradient(115deg, var(--rock) 0 1px, transparent 1px 10px);
  opacity: .65;
}

/* ---------- 10. 响应式图片容器（页面阶段放置占位） ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, var(--panel-2), var(--panel));
  isolation: isolate;
}

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

.media-frame--cut {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}

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

.media-frame--placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(55, 230, 212, .08) 0 2px, transparent 2px 14px);
}

.media-frame--placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(40, 50, 60, .55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(40, 50, 60, .55) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: .5;
}

/* ---------- 11. 正文与章节 ---------- */
.section { padding-block: clamp(36px, 6vw, 76px); }

.prose {
  max-width: 68ch;
  color: rgba(244, 241, 232, .86);
  font-size: clamp(.95rem, 1.05vw, 1.05rem);
  line-height: 1.85;
}

.prose h2 { margin-top: 1.8em; margin-bottom: .6em; }
.prose h3 { margin-top: 1.5em; margin-bottom: .5em; }
.prose ul,
.prose ol { margin-bottom: 1em; }
.prose li { margin-bottom: .35em; }

/* ---------- 12. 断点 ---------- */
@media (max-width: 1080px) {
  .season-chip { display: none; }
}

@media (max-width: 940px) {
  .site-header { padding: 10px var(--gutter); }

  .header-bar {
    gap: 10px;
    padding: 8px 8px 8px 14px;
    border-radius: 20px;
  }

  .brand-sub { display: none; }

  .header-cta { display: none; }

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

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    margin-left: 0;
    padding: 10px;
    max-height: min(72vh, 540px);
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(10, 15, 21, .97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 30px 56px -34px rgba(0, 0, 0, .95);
  }

  .site-header[data-open="true"] .site-nav {
    display: block;
    animation: nav-drop .22s var(--ease) both;
  }

  @keyframes nav-drop {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    counter-reset: nav-i;
  }

  .nav-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: .95rem;
  }

  .nav-list a::after {
    counter-increment: nav-i;
    content: "0" counter(nav-i);
    font-family: var(--font-mono);
    font-size: .66rem;
    letter-spacing: .14em;
    color: var(--rock);
  }

  .nav-list a[aria-current="page"]::after { color: var(--cyan); }

  .nav-list-cta {
    display: block;
    margin-top: 8px;
  }

  .nav-list-cta a {
    justify-content: center;
    background: var(--cyan);
    color: #04120F;
    font-weight: 700;
  }

  .nav-list-cta a::after { content: none; }

  .nav-list-cta a:hover {
    background: var(--cyan);
    color: #04120F;
    opacity: .92;
  }

  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .footer-main { grid-template-columns: 1fr; }
  .footer-contact { grid-template-columns: 1fr; }
  #main-content { scroll-margin-top: 88px; }
  .footer-base { justify-content: flex-start; }
}

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

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

  .season-dot { animation: none; }

  .footer-links a:hover,
  .btn:hover,
  .to-top:hover { transform: none; }
}
