/* =========================================================
   完美电竞看台 · 共享样式 /assets/site.css
   01 重置  02 令牌  03 底色与中文排版  04 无障碍
   05 页头  06 页脚  07 通用组件  08 响应式  09 动效降级
   ========================================================= */

/* ---------- 01 重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

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

ul[class],
ol[class] { list-style: none; padding-left: 0; }

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

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

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

/* ---------- 02 设计令牌 ---------- */
:root {
  --void: #070B18;
  --panel: #0E1630;
  --panel-deep: #0A1024;
  --line: #1E2A4A;
  --line-soft: rgba(30, 42, 74, 0.64);

  --violet: #7B4DFF;
  --violet-wash: rgba(123, 77, 255, 0.18);
  --cyan: #2BE8E0;
  --cyan-wash: rgba(43, 232, 224, 0.14);
  --red: #FF3B5C;
  --amber: #FFB020;
  --green: #3BE08A;

  --ink: #F2F5FF;
  --muted: #9AA6C4;
  --paper: #F4F1EA;

  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-data: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;

  --shell: 1520px;
  --gutter: 72px;
  --radius: 2px;
  --dur: 260ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --skew: -6deg;
}

/* ---------- 03 底色与中文排版 ---------- */
body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--void);
  background-image:
    linear-gradient(to right, rgba(30, 42, 74, 0.34) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 42, 74, 0.26) 1px, transparent 1px),
    radial-gradient(900px 520px at 82% -8%, rgba(123, 77, 255, 0.22), transparent 62%),
    radial-gradient(700px 460px at 4% 4%, rgba(43, 232, 224, 0.1), transparent 60%);
  background-size: 88px 88px, 88px 88px, 100% 100%, 100% 100%;
  background-repeat: repeat, repeat, no-repeat, no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p, li, dd, figcaption { overflow-wrap: break-word; }

::selection {
  background: rgba(123, 77, 255, 0.5);
  color: #FFFFFF;
}

#main-content { display: block; }

/* ---------- 04 无障碍 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--cyan);
  color: var(--void);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transform: translateY(-180%);
  transition: transform 200ms var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline-color: var(--ink);
}

/* ---------- 05 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(7, 11, 24, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.site-header[data-scrolled="true"] {
  background: rgba(7, 11, 24, 0.98);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}

.header-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  z-index: 2;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  box-shadow: 0 0 12px rgba(43, 232, 224, 0.55);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 26px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 17px var(--gutter);
  min-height: 78px;
  transition: padding var(--dur) var(--ease), min-height var(--dur) var(--ease);
}

.site-header[data-scrolled="true"] .header-inner {
  padding-top: 10px;
  padding-bottom: 10px;
  min-height: 62px;
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--ink);
}

.brand-mark {
  position: relative;
  display: block;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(123, 77, 255, 0.42), rgba(43, 232, 224, 0.1));
  overflow: hidden;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 6px;
  transform: skewY(var(--skew));
}

.brand-mark::before {
  left: 8px;
  background: var(--cyan);
  opacity: 0.9;
}

.brand-mark::after {
  left: 19px;
  background: var(--violet);
}

.brand-text { display: flex; flex-direction: column; }

.brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  transition: color var(--dur) var(--ease);
}

.brand-domain {
  margin-top: 3px;
  font-family: var(--font-data);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

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

/* 刻度导轨 */
.header-rail {
  position: relative;
  flex: 1 1 auto;
  min-width: 40px;
  height: 9px;
  opacity: 0.9;
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 26px);
}

.header-rail::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line);
}

/* 移动按钮 */
.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  background: rgba(14, 22, 48, 0.7);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.nav-toggle:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease);
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-toggle-label { line-height: 1; }

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: 0 0 auto;
}

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

.nav-link {
  position: relative;
  display: block;
  padding: 8px 2px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color var(--dur) var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--dur) var(--ease);
}

.nav-link:hover { color: var(--ink); }
.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.nav-link[aria-current="page"] { color: var(--cyan); }
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--cyan);
}

.nav-cta { flex: 0 0 auto; }

/* ---------- 06 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 96px;
  border-top: 1px solid var(--line);
  background-color: #080D1E;
  background-image:
    linear-gradient(to right, rgba(30, 42, 74, 0.5) 1px, transparent 1px),
    radial-gradient(640px 320px at 92% 0%, rgba(123, 77, 255, 0.16), transparent 70%);
  background-size: 88px 100%, 100% 100%;
  background-repeat: repeat, no-repeat;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--cyan) 58%, transparent);
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 64px var(--gutter) 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(118px, 0.8fr));
  gap: 44px 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.footer-mark {
  display: block;
  width: 26px;
  height: 22px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  transform: skewY(var(--skew));
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.footer-line {
  margin-top: 16px;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.footer-domain {
  margin-top: 12px;
  font-family: var(--font-data);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: rgba(43, 232, 224, 0.72);
}

.footer-col-title {
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted);
}

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

.footer-link {
  display: inline-block;
  padding-bottom: 2px;
  font-size: 15px;
  color: var(--ink);
  background-image: linear-gradient(var(--cyan), var(--cyan));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size var(--dur) var(--ease), color var(--dur) var(--ease);
}

.footer-link:hover {
  color: var(--cyan);
  background-size: 100% 1px;
}

.footer-contact {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 8px 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.footer-contact-label {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--amber);
}

.footer-contact-body {
  display: grid;
  gap: 6px;
}

.footer-contact-line {
  font-size: 14px;
  color: var(--muted);
}

.footer-note {
  margin-top: 6px;
  padding-left: 10px;
  border-left: 1px solid var(--amber);
  font-size: 12px;
  line-height: 1.7;
  color: rgba(154, 166, 196, 0.88);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 22px;
}

.footer-icp {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.footer-copy {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- 07 通用组件 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(56px, 8vw, 104px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.title-1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.title-2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.title-3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.lead {
  max-width: 38ch;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.7;
  color: var(--muted);
}

.prose { max-width: 36em; }
.prose p + p { margin-top: 1em; }
.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(43, 232, 224, 0.45);
}
.prose a:hover { border-bottom-color: var(--cyan); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--line); }
.crumbs a { color: var(--muted); transition: color var(--dur) var(--ease); }
.crumbs a:hover { color: var(--cyan); }
.crumbs [aria-current="page"] { color: var(--ink); }

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

.panel {
  position: relative;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.panel:hover {
  transform: translateY(-2px);
  border-color: rgba(43, 232, 224, 0.55);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  background: rgba(14, 22, 48, 0.72);
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.tag--live { color: var(--red); border-color: rgba(255, 59, 92, 0.5); }
.tag--live::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--red);
}

.tag--soon { color: var(--amber); border-color: rgba(255, 176, 32, 0.5); }
.tag--done { color: var(--muted); }
.tag--ok { color: var(--green); border-color: rgba(59, 224, 138, 0.5); }
.tag--ok::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--green);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}

.btn:hover { color: var(--cyan); border-color: var(--cyan); }

.btn--primary {
  background: var(--violet);
  border-color: var(--violet);
  color: #FFFFFF;
}

.btn--primary:hover {
  background: #8B62FF;
  border-color: var(--cyan);
  color: #FFFFFF;
}

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

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

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--line);
}

/* 图片容器基座（页面阶段放置 img / picture） */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  background: var(--panel);
}

.media > img,
.media > video,
.media > picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.media > img,
.media > picture > img,
.media > video {
  object-fit: cover;
  object-position: center;
}

.media::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 16px;
  height: 16px;
  border-top: 1px solid var(--cyan);
  border-left: 1px solid var(--cyan);
  opacity: 0.65;
  pointer-events: none;
}

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

.media-caption {
  margin-top: 10px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ---------- 08 响应式 ---------- */
@media (max-width: 1240px) {
  :root { --gutter: 44px; }
  .footer-top {
    grid-template-columns: minmax(230px, 1.4fr) repeat(3, minmax(110px, 0.8fr));
    gap: 36px 32px;
  }
}

@media (max-width: 980px) {
  :root { --gutter: 24px; }

  body {
    background-size: 56px 56px, 56px 56px, 100% 100%, 100% 100%;
  }

  .header-inner { padding-block: 13px; gap: 14px; min-height: 66px; }
  .site-header[data-scrolled="true"] .header-inner { padding-block: 10px; min-height: 58px; }
  .header-rail { display: none; }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px var(--gutter) 22px;
    background: var(--panel-deep);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55);
  }

  .site-header[data-open="true"] .site-nav { display: flex; }
  .site-header[data-open="true"] { background: rgba(7, 11, 24, 0.99); }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .nav-list > li { border-bottom: 1px solid rgba(30, 42, 74, 0.7); }

  .nav-link { padding: 15px 0; font-size: 16px; }
  .nav-link::after { display: none; }

  .nav-link[aria-current="page"]::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 9px;
    background: var(--cyan);
    transform: skewY(var(--skew));
  }

  .nav-cta { margin-top: 20px; padding-block: 14px; }

  .site-footer { margin-top: 72px; }
  .footer-inner { padding-top: 48px; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .footer-brand-name { font-size: 21px; }

  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .title-1 { font-size: clamp(34px, 8vw, 56px); }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }

  .brand-mark { width: 30px; height: 30px; flex-basis: 30px; }
  .brand-name { font-size: 15.5px; }
  .brand-domain { font-size: 8.5px; letter-spacing: 0.12em; }

  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .footer-inner { padding-bottom: 24px; }

  .grid--12,
  .grid--2,
  .grid--3 { grid-template-columns: minmax(0, 1fr); }

  .panel { padding: 18px; }
  .footer-contact-line { font-size: 13px; }
}

/* ---------- 09 动效降级 ---------- */
@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;
    scroll-behavior: auto !important;
  }

  .panel:hover { transform: none; }
}
