/* ============================================================
   九1主站 · 共享样式表 /assets/site.css
   深空竞技数据场：切角面板 · 斜向轨迹 · 荧光脉冲
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
}

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

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

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

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

a { color: inherit; }

table { border-collapse: collapse; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 色彩节奏 */
  --ink-navy: #050D1F;
  --deep-space: #0A1733;
  --panel-slate: #12224A;
  --hairline: #24365F;
  --pulse-green: #2BF0A0;
  --electric-cyan: #25C9FF;
  --amber-rule: #FFB22E;
  --spark-orange: #FF6A2B;
  --ice-text: #EEF4FF;
  --mist-text: #A7B4D4;
  --on-green: #04140D;

  /* 字体 */
  --font-heading: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-body: var(--font-heading);
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, "Cascadia Mono", monospace;

  /* 八级字阶 */
  --step-88: clamp(2.6rem, 7vw, 5.5rem);
  --step-64: clamp(2.1rem, 5.2vw, 4rem);
  --step-40: clamp(1.6rem, 3.4vw, 2.5rem);
  --step-28: clamp(1.3rem, 2.2vw, 1.75rem);
  --step-20: 1.25rem;
  --step-17: 1.0625rem;
  --step-15: 0.9375rem;
  --step-13: 0.8125rem;

  /* 形状 */
  --clip-panel: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
  --clip-btn: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);

  /* 骨架 */
  --shell: 1280px;
  --gutter: clamp(1.125rem, 4vw, 2.5rem);
}

/* ---------- 3. 基底与中文排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--deep-space);
  color: var(--ice-text);
  font-family: var(--font-body);
  font-size: var(--step-17);
  line-height: 1.8;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(115deg, rgba(36, 54, 95, 0.5) 0 1px, transparent 1px 190px),
    radial-gradient(58% 44% at 88% -6%, rgba(43, 240, 160, 0.10), transparent 70%),
    radial-gradient(52% 40% at -4% 24%, rgba(37, 201, 255, 0.09), transparent 72%);
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--step-64); }
h2 { font-size: var(--step-40); }
h3 { font-size: var(--step-28); }
h4 { font-size: var(--step-20); }

.display {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--step-64);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.tilt { transform: rotate(-2deg); }

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

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

.btn:focus-visible,
.nav-toggle:focus-visible,
.rail-link:focus-visible,
.tab:focus-visible,
.skip-link:focus-visible,
.site-nav a:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--ice-text);
}

/* ---------- 4. 工具与骨架 ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -70px;
  z-index: 200;
  padding: 11px 20px;
  background: var(--pulse-green);
  color: var(--on-green);
  font-family: var(--font-heading);
  font-size: var(--step-15);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  clip-path: var(--clip-btn);
  transition: top 0.18s ease;
}

.skip-link:focus,
.skip-link:focus-visible { top: 12px; }

.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow { max-width: 960px; }

.section { padding-block: clamp(44px, 7vw, 96px); }
.section--tight { padding-block: clamp(28px, 4vw, 52px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: var(--step-13);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--electric-cyan);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--pulse-green);
}

.prose {
  max-width: 68ch;
  font-size: var(--step-17);
  line-height: 1.85;
  color: var(--ice-text);
}

.prose p + p { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font-size: var(--step-28); }
.prose h3 { margin-top: 1.7em; font-size: var(--step-20); }
.prose a {
  color: var(--electric-cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(37, 201, 255, 0.45);
}
.prose a:hover { text-decoration-color: var(--electric-cyan); }

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-heading);
  font-size: var(--step-15);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  clip-path: var(--clip-btn);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn--primary {
  background: var(--pulse-green);
  color: var(--on-green);
}
.btn--primary:hover { background: #5CF7BB; }

.btn--ghost {
  background: rgba(37, 201, 255, 0.07);
  border-color: var(--hairline);
  color: var(--ice-text);
}
.btn--ghost:hover {
  border-color: var(--electric-cyan);
  background: rgba(37, 201, 255, 0.14);
}

.btn--small { padding: 9px 16px; font-size: var(--step-13); }

/* ---------- 6. 标签 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  border: 1px solid currentColor;
  clip-path: var(--clip-btn);
}

.badge--green { color: var(--pulse-green); }
.badge--cyan { color: var(--electric-cyan); }
.badge--amber { color: var(--amber-rule); }
.badge--orange { color: var(--spark-orange); }

/* ---------- 7. 切角面板 ---------- */
.panel {
  background: var(--panel-slate);
  border: 1px solid var(--hairline);
  padding: clamp(18px, 3vw, 30px);
  clip-path: var(--clip-panel);
}

.panel--soft { background: rgba(18, 34, 74, 0.55); }

/* ---------- 8. 面包屑 ---------- */
.breadcrumb { margin-block: 18px 0; }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--step-13);
  color: var(--mist-text);
}

.breadcrumb li { display: inline-flex; align-items: center; }

.breadcrumb li::after {
  content: "/";
  margin-left: 8px;
  color: var(--hairline);
}

.breadcrumb li:last-child::after { display: none; }

.breadcrumb a {
  color: var(--mist-text);
  text-decoration: none;
  transition: color 0.18s ease;
}
.breadcrumb a:hover { color: var(--pulse-green); }

/* ---------- 9. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.28s ease, border-color 0.28s ease;
}

.site-header.is-scrolled {
  background: rgba(5, 13, 31, 0.94);
  border-bottom-color: var(--hairline);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--pulse-green), var(--electric-cyan));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

.header-inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 13px var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-family: var(--font-heading);
  font-size: var(--step-15);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--on-green);
  background: linear-gradient(135deg, var(--pulse-green), var(--electric-cyan));
  clip-path: var(--clip-btn);
}

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

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.1875rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--ice-text);
}

.brand-sub {
  margin-top: 3px;
  font-size: 0.75rem;
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: var(--mist-text);
}

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

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.7vw, 26px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 2px;
  font-family: var(--font-heading);
  font-size: var(--step-15);
  font-weight: 700;
  line-height: 1.2;
  color: var(--mist-text);
  text-decoration: none;
  transition: color 0.18s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--pulse-green);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.2s ease;
}

.nav-link:hover { color: var(--ice-text); }
.nav-link:hover::after { transform: scaleX(1); }

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

.nav-foot { display: none; }

/* 页头操作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

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

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--ice-text);
  background: rgba(18, 34, 74, 0.7);
  border: 1px solid var(--hairline);
  cursor: pointer;
  clip-path: var(--clip-btn);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.nav-toggle:hover {
  border-color: var(--electric-cyan);
  background: rgba(37, 201, 255, 0.12);
}

.nav-toggle-bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* 联赛标签轨道 */
.league-rail {
  border-top: 1px solid rgba(36, 54, 95, 0.65);
  background: rgba(10, 23, 51, 0.32);
  transition: background-color 0.28s ease;
}

.site-header.is-scrolled .league-rail { background: transparent; }

.rail-track {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 8px var(--gutter);
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.rail-track::-webkit-scrollbar { display: none; }

.rail-link {
  flex: 0 0 auto;
  padding: 5px 13px;
  font-family: var(--font-heading);
  font-size: var(--step-13);
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  color: var(--mist-text);
  text-decoration: none;
  background: rgba(18, 34, 74, 0.5);
  border: 1px solid var(--hairline);
  clip-path: var(--clip-btn);
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.rail-link:hover,
.rail-link[aria-current="page"] {
  color: var(--ice-text);
  border-color: var(--electric-cyan);
  background: rgba(37, 201, 255, 0.14);
}

/* ---------- 10. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 110px);
  padding-block: clamp(40px, 6vw, 72px) 28px;
  background: var(--ink-navy);
  border-top: 1px solid var(--hairline);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(58%, 760px);
  height: 2px;
  background: linear-gradient(90deg, var(--pulse-green), var(--electric-cyan) 55%, transparent);
}

.footer-inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(230px, 1.1fr) 2.2fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.footer-note {
  margin-top: 16px;
  max-width: 34ch;
  font-size: var(--step-15);
  line-height: 1.75;
  color: var(--mist-text);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 36px);
}

.footer-col-title {
  margin-bottom: 14px;
  font-family: var(--font-heading);
  font-size: var(--step-13);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--electric-cyan);
}

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

.footer-list a {
  font-size: var(--step-15);
  color: var(--mist-text);
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-list a:hover { color: var(--pulse-green); }

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: clamp(28px, 4vw, 46px);
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  font-size: var(--step-15);
  color: var(--mist-text);
}

.footer-contact-item { display: inline-flex; align-items: baseline; gap: 6px; }
.footer-contact-item .num { color: var(--ice-text); font-size: var(--step-15); }

.footer-address {
  margin-top: 10px;
  font-size: var(--step-13);
  line-height: 1.7;
  color: var(--mist-text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(36, 54, 95, 0.7);
  font-size: var(--step-13);
  color: var(--mist-text);
}

/* ---------- 11. 分段切换（标签页） ---------- */
.tabs { margin-block: 24px; }

.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--hairline);
}

.tab {
  position: relative;
  padding: 12px 18px;
  font-family: var(--font-heading);
  font-size: var(--step-15);
  font-weight: 800;
  line-height: 1.2;
  color: var(--mist-text);
  cursor: pointer;
  transition: color 0.18s ease;
}

.tab::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  background: var(--pulse-green);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.tab:hover { color: var(--ice-text); }

.tab[aria-selected="true"] { color: var(--ice-text); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }

.tabpanel {
  padding-top: 24px;
  animation: tab-fade 0.18s ease both;
}

.tabpanel[hidden] { display: none; }

@keyframes tab-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- 12. 数据表 ---------- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--hairline);
  clip-path: var(--clip-panel);
}

.data-table {
  width: 100%;
  min-width: 560px;
  background: rgba(18, 34, 74, 0.42);
  font-size: var(--step-15);
}

.data-table caption {
  caption-side: top;
  padding: 14px 18px 0;
  text-align: left;
  font-family: var(--font-heading);
  font-size: var(--step-13);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--electric-cyan);
}

.data-table th,
.data-table td {
  padding: 13px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--hairline);
}

.data-table thead th {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--mist-text);
  white-space: nowrap;
}

.data-table tbody tr { transition: background-color 0.16s ease; }
.data-table tbody tr:hover { background: rgba(43, 240, 160, 0.07); }
.data-table tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--pulse-green); }
.data-table td.num,
.data-table th.num { text-align: right; }
.data-table tbody tr:last-child td { border-bottom: 0; }

/* ---------- 13. 图片容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--panel-slate);
  background-image:
    radial-gradient(90% 80% at 12% 8%, rgba(37, 201, 255, 0.18), transparent 62%),
    linear-gradient(150deg, rgba(43, 240, 160, 0.10), transparent 55%);
  border: 1px solid var(--hairline);
  clip-path: var(--clip-panel);
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: -20% -20% -60% 42%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(43, 240, 160, 0.09), transparent);
  transform: rotate(-18deg);
  pointer-events: none;
}

.media-frame[data-placeholder]::before {
  content: attr(data-placeholder);
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 14px 18px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: var(--mist-text);
  background: linear-gradient(transparent, rgba(5, 13, 31, 0.88));
}

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

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1100px) {
  .header-cta { padding: 10px 16px; font-size: var(--step-13); }
  .brand-sub { font-size: 0.6875rem; }
  .nav-list { gap: 12px; }
  .nav-link { font-size: var(--step-13); }
}

@media (max-width: 960px) {
  .header-inner { padding-block: 10px; gap: 12px; }

  .site-nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 120;
    width: min(84vw, 360px);
    padding: 84px var(--gutter) 32px;
    display: flex;
    flex-direction: column;
    background: var(--ink-navy);
    border-left: 1px solid var(--hairline);
    box-shadow: -24px 0 60px rgba(5, 13, 31, 0.7);
    overflow-y: auto;
    transform: translateX(105%);
    transition: transform 0.26s ease;
  }

  .site-nav[data-open] { transform: translateX(0); }

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

  .nav-link {
    display: block;
    padding: 15px 0;
    font-size: var(--step-20);
    border-bottom: 1px solid rgba(36, 54, 95, 0.6);
  }

  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] { color: var(--pulse-green); }

  .nav-foot {
    display: block;
    margin-top: 24px;
    font-size: 0.75rem;
    line-height: 1.8;
    color: var(--mist-text);
  }

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

  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .header-cta { padding: 9px 13px; }
  .footer-cols { grid-template-columns: 1fr; gap: 22px; }
  .footer-bottom { justify-content: flex-start; }
  .brand-sub { display: none; }
  .tab { padding: 10px 12px; }
}

/* ---------- 15. 动效降级 ---------- */
@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;
  }

  .header-progress { transition: none; }
}
