/* ============================================================
   E星电竞 · 共享 Site Kit  /assets/site.css
   深空黑 + 星云紫底，电光青 / 信号橙双强调
   ============================================================ */

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

html,
body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, dl, dt, dd,
figure, figcaption, blockquote,
table, th, td, fieldset { margin: 0; padding: 0; }

ul, ol { list-style: none; }

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

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

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

:root {
  --bg-base: #06070E;
  --bg-nebula: #1B1035;
  --surface-violet: #2A1A52;
  --accent: #35E6FF;
  --accent-2: #FF6A2B;
  --text-2: #8FD3FF;
  --chart-pink: #FF4FA3;
  --interactive: #7B5CFF;
  --text: #F2F5FF;
  --grid: #6E7891;
  --positive: #2BE38B;

  --font-display: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --notch: 18px;
  --ease: cubic-bezier(.2, .7, .3, 1);
  --shell: min(1180px, calc(100% - 48px));
  --scroll-progress: 0;
  --header-h: 78px;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  position: relative;
  min-height: 100vh;
  background-color: var(--bg-base);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 星图点阵 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 14% 6%, rgba(123, 92, 255, .20), transparent 46%),
    radial-gradient(circle at 86% 2%, rgba(53, 230, 255, .12), transparent 42%),
    radial-gradient(rgba(143, 211, 255, .22) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 44px 44px;
  opacity: .55;
}

/* 扫描线 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(180deg, rgba(143, 211, 255, .05) 0 1px, transparent 1px 5px);
  opacity: .5;
  animation: ex-scan 8s linear infinite;
}

@keyframes ex-scan {
  from { background-position: 0 0; }
  to { background-position: 0 5px; }
}

body > * {
  position: relative;
  z-index: 1;
}

/* ---------- 中文排版 ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.08;
  color: var(--text);
}

p { max-width: 34em; }

::selection {
  background: rgba(53, 230, 255, .3);
  color: #FFFFFF;
}

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

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

/* ---------- 版心与章节 ---------- */

.ex-container {
  width: var(--shell);
  margin-inline: auto;
}

.ex-section {
  padding-block: clamp(56px, 9vw, 112px);
}

.ex-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}

.ex-kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent);
  transform: skewX(-24deg);
}

.ex-h1 {
  font-size: clamp(40px, 7.4vw, 88px);
  letter-spacing: -.03em;
  line-height: 1.02;
  transform: skewX(-3deg);
  transform-origin: left bottom;
}

.ex-h2 {
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.05;
}

.ex-lead {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.85;
  color: var(--text-2);
  max-width: 32em;
}

.ex-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(143, 211, 255, .3);
  background: rgba(42, 26, 82, .6);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--text-2);
}

.ex-slash {
  display: block;
  width: 100%;
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(143, 211, 255, .45), transparent);
  transform: skewX(-24deg);
}

/* ---------- 按钮 ---------- */

.ex-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.4;
  cursor: pointer;
  transition: transform .12s var(--ease), background-color .12s var(--ease),
              color .12s var(--ease), box-shadow .12s var(--ease), border-color .12s var(--ease);
}

.ex-btn--primary {
  background: var(--accent-2);
  color: var(--bg-base);
  box-shadow: 0 0 0 rgba(255, 106, 43, 0);
}

.ex-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -10px rgba(255, 106, 43, .9);
}

.ex-btn--ghost {
  background: rgba(53, 230, 255, .06);
  border-color: rgba(53, 230, 255, .45);
  color: var(--accent);
}

.ex-btn--ghost:hover {
  transform: translateY(-2px);
  background: rgba(53, 230, 255, .16);
  border-color: var(--accent);
}

.ex-btn--sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* ---------- 切角面板 ---------- */

.ex-panel {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  background: linear-gradient(160deg, rgba(42, 26, 82, .92), rgba(27, 16, 53, .62));
  border: 1px solid rgba(143, 211, 255, .16);
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch)));
}

/* ---------- 图片容器基础 ---------- */

.ex-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-nebula);
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch)));
}

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

.ex-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(6, 7, 14, 0) 40%, rgba(6, 7, 14, .72) 100%),
    repeating-linear-gradient(180deg, rgba(143, 211, 255, .06) 0 1px, transparent 1px 4px);
}

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

/* ---------- 面包屑 ---------- */

.ex-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--grid);
}

.ex-breadcrumb a {
  color: var(--text-2);
  transition: color .12s var(--ease);
}

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

.ex-breadcrumb__sep { color: rgba(110, 120, 145, .7); }

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

/* ---------- 章节轨道 ---------- */

.ex-rail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 88px;
}

.ex-rail__link {
  display: block;
  padding: 10px 12px;
  border-left: 2px solid rgba(110, 120, 145, .3);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .04em;
  color: var(--grid);
  transition: color .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease);
}

.ex-rail__link:hover {
  color: var(--text-2);
  border-left-color: rgba(53, 230, 255, .6);
}

.ex-rail__link[aria-current="true"] {
  color: var(--accent);
  border-left-color: var(--accent);
  background: linear-gradient(90deg, rgba(53, 230, 255, .12), transparent);
}

/* ---------- 表格 ---------- */

.ex-table-wrap {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid rgba(143, 211, 255, .14);
  background: rgba(27, 16, 53, .5);
}

.ex-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.ex-table caption {
  padding: 14px 16px;
  text-align: left;
  font-size: 13px;
  color: var(--grid);
}

.ex-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 13px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--text-2);
  background: var(--surface-violet);
  border-bottom: 1px solid rgba(53, 230, 255, .28);
  white-space: nowrap;
}

.ex-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(110, 120, 145, .22);
  color: var(--text);
  vertical-align: middle;
}

.ex-table tbody tr { transition: background-color .12s var(--ease); }

.ex-table tbody tr:hover { background: rgba(53, 230, 255, .08); }

.ex-table td:first-child {
  color: var(--text-2);
  font-weight: 600;
}

/* ---------- 网格 ---------- */

.ex-grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

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

/* ============================================================
   头部
   ============================================================ */

.ex-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0 14px;
  transition: padding .24s var(--ease);
}

.ex-header[data-condensed] { padding: 8px 0; }

.ex-skip {
  position: absolute;
  left: 50%;
  top: 6px;
  z-index: 300;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg-base);
  font-size: 14px;
  font-weight: 700;
  transform: translate(-50%, -180%);
  transition: transform .18s var(--ease);
}

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

.ex-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 220;
  pointer-events: none;
  transform: scaleX(var(--scroll-progress));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), var(--interactive) 58%, var(--accent-2));
  box-shadow: 0 0 12px rgba(53, 230, 255, .55);
}

.ex-header__inner {
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 9px 10px 9px 16px;
  border-radius: 999px;
  background: rgba(42, 26, 82, .68);
  border: 1px solid rgba(143, 211, 255, .16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background-color .24s var(--ease), box-shadow .24s var(--ease),
              border-radius .24s var(--ease), transform .24s var(--ease);
}

.ex-header[data-condensed] .ex-header__inner {
  background: rgba(42, 26, 82, .94);
  border-color: rgba(53, 230, 255, .24);
  box-shadow: 0 20px 46px -26px rgba(6, 7, 14, .98), 0 0 0 1px rgba(53, 230, 255, .08);
}

/* 品牌 */
.ex-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.ex-brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--accent);
  color: var(--bg-base);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  transform: skewX(-12deg);
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
  box-shadow: 0 0 18px rgba(53, 230, 255, .45);
}

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

.ex-brand__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--text);
}

.ex-brand__sub {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .22em;
  color: var(--grid);
}

/* 导航 */
.ex-nav { flex: 1 1 auto; }

.ex-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.ex-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  color: rgba(242, 245, 255, .78);
  white-space: nowrap;
  transition: color .12s var(--ease), background-color .12s var(--ease);
}

.ex-nav__link:hover {
  color: var(--text);
  background: rgba(123, 92, 255, .24);
}

.ex-nav__link[aria-current="page"] {
  color: var(--accent);
  background: rgba(53, 230, 255, .12);
  font-weight: 700;
}

/* 右侧动作区 */
.ex-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.ex-season {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(6, 7, 14, .6);
  border: 1px solid rgba(143, 211, 255, .16);
}

.ex-season__btn {
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--grid);
  cursor: pointer;
  transition: color .12s var(--ease), background-color .12s var(--ease);
}

.ex-season__btn:hover { color: var(--text-2); }

.ex-season__btn.is-active {
  background: rgba(53, 230, 255, .18);
  color: var(--accent);
}

/* 汉堡按钮 */
.ex-nav__toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(143, 211, 255, .24);
  background: rgba(27, 16, 53, .7);
  cursor: pointer;
  transition: border-color .12s var(--ease), background-color .12s var(--ease);
}

.ex-nav__toggle:hover { border-color: var(--accent); }

.ex-nav__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: background-color .2s var(--ease);
}

.ex-nav__bars::before,
.ex-nav__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}

.ex-nav__bars::before { top: -6px; }
.ex-nav__bars::after { top: 6px; }

.ex-header[data-open] .ex-nav__bars { background: transparent; }

.ex-header[data-open] .ex-nav__bars::before {
  background: var(--accent-2);
  transform: translateY(6px) rotate(45deg);
}

.ex-header[data-open] .ex-nav__bars::after {
  background: var(--accent-2);
  transform: translateY(-6px) rotate(-45deg);
}

/* ============================================================
   页脚
   ============================================================ */

.ex-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 112px);
  padding-top: 24px;
  background: linear-gradient(180deg, rgba(27, 16, 53, .92) 0%, rgba(6, 7, 14, 1) 72%);
  border-top: 1px solid rgba(143, 211, 255, .12);
}

.ex-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-2), rgba(255, 106, 43, .18) 62%, transparent);
}

.ex-footer__inner {
  padding-block: clamp(36px, 5vw, 64px) 24px;
}

.ex-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: clamp(24px, 3.4vw, 48px);
  align-items: start;
}

.ex-footer__col { min-width: 0; }

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

.ex-brand--footer .ex-brand__name { font-size: 18px; }

.ex-footer__tagline {
  max-width: 22em;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(242, 245, 255, .6);
}

.ex-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(53, 230, 255, .32);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--accent);
  transition: background-color .12s var(--ease), transform .12s var(--ease);
}

.ex-to-top:hover {
  background: rgba(53, 230, 255, .14);
  transform: translateY(-2px);
}

.ex-footer__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-2);
}

.ex-footer__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.ex-footer__link {
  display: inline-block;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(242, 245, 255, .7);
  transition: color .12s var(--ease), transform .12s var(--ease);
}

.ex-footer__link:hover {
  color: var(--accent);
  transform: translateX(3px);
}

.ex-footer__contact { gap: 12px; }

.ex-footer__contact-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ex-footer__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--grid);
}

.ex-footer__value {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(242, 245, 255, .82);
  word-break: break-word;
}

.ex-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: space-between;
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 20px;
  border-top: 1px solid rgba(110, 120, 145, .22);
}

.ex-footer__meta {
  max-width: none;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--grid);
}

/* ============================================================
   显现动效（JS 增强，无 JS 时内容完整可见）
   ============================================================ */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .24s var(--ease), transform .24s var(--ease);
}

/* ============================================================
   响应式
   ============================================================ */

@media (max-width: 1120px) {
  .ex-season { display: none; }
  .ex-nav__link { padding: 9px 11px; font-size: 13.5px; }
}

@media (max-width: 980px) {
  .ex-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
  .ex-footer__col--brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --shell: calc(100% - 36px); }

  .ex-header__inner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 11px 12px 11px 14px;
    border-radius: 22px;
  }

  .ex-brand { flex: 1 1 auto; }

  .ex-header__actions { margin-left: auto; }

  .ex-nav {
    order: 5;
    flex: 1 0 100%;
    display: none;
    padding-top: 10px;
    border-top: 1px solid rgba(143, 211, 255, .16);
  }

  .ex-header[data-open] .ex-nav { display: block; }

  .ex-nav__list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
  }

  .ex-nav__link {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 15px;
  }

  .ex-nav__link[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 18px;
    border-radius: 2px;
    background: var(--accent);
    transform: translateY(-50%);
  }

  .ex-nav__toggle { display: grid; }

  .ex-table th { position: static; }
}

@media (max-width: 720px) {
  .ex-header__cta { display: none; }
}

@media (max-width: 640px) {
  :root { --shell: calc(100% - 32px); }

  body { font-size: 16px; line-height: 1.8; }

  .ex-brand__sub { display: none; }

  .ex-footer__grid { grid-template-columns: 1fr; }

  .ex-footer__bottom { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  body::after { animation: none; opacity: .28; }

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

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

  .ex-btn:hover,
  .ex-to-top:hover,
  .ex-footer__link:hover { transform: none; }
}
