/* ==========================================================================
   竞博赛场 — 共享样式表 /assets/site.css
   赛场深蓝底 + 竞博亮橙强调 + 电光紫与荧光绿数据高亮
   ========================================================================== */

:root {
  --navy: #0A1B3D;
  --navy-2: #12285A;
  --navy-3: #1A356E;
  --orange: #FF6A13;
  --orange-soft: #FFA85C;
  --violet: #7B5CFF;
  --green: #35E08A;
  --paper: #F6F8FC;
  --ink: #E8EDF5;
  --muted: #9AA7BD;
  --alert: #FF4D5E;

  --line: rgba(154, 167, 189, 0.26);
  --line-strong: rgba(154, 167, 189, 0.48);

  --shell: 1240px;
  --gutter: clamp(18px, 4vw, 48px);

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Courier New", monospace;

  --step-12: 12px;
  --step-14: 14px;
  --step-16: 16px;
  --step-20: 20px;
  --step-28: 28px;
  --step-40: 40px;
  --step-64: 64px;
  --step-96: 96px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset ---------- */

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--step-16);
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(154, 167, 189, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 167, 189, 0.055) 1px, transparent 1px);
  background-size: 88px 88px;
  background-position: -1px -1px;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, dt { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

::selection {
  background: var(--orange);
  color: var(--navy);
}

[id] { scroll-margin-top: 128px; }

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

/* ---------- 布局容器 ---------- */

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

.section { padding-block: clamp(56px, 8vw, 112px); }
.section--tight { padding-block: clamp(32px, 5vw, 64px); }

.section--paper {
  background: var(--paper);
  color: #12285A;
}

.section--paper .section-title { color: #0A1B3D; }
.section--paper .prose { color: #1B2E55; }
.section--paper .stat__label,
.section--paper .section-kicker { color: #55618A; }

.section--paper .section-num {
  color: rgba(10, 27, 61, 0.10);
  -webkit-text-stroke-color: rgba(10, 27, 61, 0.26);
}

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

/* ---------- 中文排版与正文容器 ---------- */

.prose {
  max-width: 40em;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
  word-break: break-word;
}

.prose p + p { margin-top: 1.05em; }
.prose strong { color: var(--paper); font-weight: 500; }
.prose a {
  color: var(--orange-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--orange); }
.prose ul, .prose ol { margin-top: 1em; display: grid; gap: 0.5em; }
.prose li { position: relative; padding-left: 1.4em; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 1px;
  background: var(--orange);
}

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

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

/* ---------- 章节标题体系 ---------- */

.section-head {
  display: grid;
  gap: 14px;
  max-width: 52em;
}

.section-num {
  font-family: var(--font-mono);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.86;
  letter-spacing: -0.03em;
  color: rgba(154, 167, 189, 0.16);
  -webkit-text-stroke: 1px var(--line-strong);
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: var(--step-12);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.section-lede {
  font-size: 17px;
  color: var(--muted);
  max-width: 40em;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 26px;
  font-size: var(--step-14);
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn--primary {
  background: var(--orange);
  color: var(--navy);
  font-weight: 700;
  clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}

.btn--primary:hover { background: var(--orange-soft); }

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--orange);
  color: var(--orange-soft);
  transform: translateY(-2px);
}

.link-quiet {
  font-size: var(--step-14);
  color: var(--muted);
  transition: color 0.18s var(--ease);
}

.link-quiet:hover { color: var(--paper); }

/* ---------- 跳至主要内容 ---------- */

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--orange);
  color: var(--navy);
  font-size: var(--step-14);
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: top 0.18s var(--ease);
}

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

/* ==========================================================================
   页头
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--navy);
  border-bottom: 1px solid var(--line);
}

.header-strip {
  background: var(--navy-2);
  border-bottom: 1px solid var(--line);
}

.header-strip__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  font-family: var(--font-mono);
  font-size: var(--step-12);
  letter-spacing: 0.08em;
  color: var(--muted);
}

.strip-mark {
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(53, 224, 138, 0.16);
}

.strip-text { white-space: nowrap; }

.strip-text--end {
  margin-left: auto;
  color: var(--orange-soft);
}

.header-main {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 32px);
  padding-block: 15px;
}

/* 品牌 */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  background: linear-gradient(140deg, var(--orange), var(--orange-soft));
  color: var(--navy);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
}

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

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.06em;
  color: var(--paper);
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand--footer .brand__mark { width: 38px; height: 38px; font-size: 11px; }
.brand--footer .brand__name { font-size: 19px; }

/* 主导航 */

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 26px);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 0;
  font-size: 15px;
  color: var(--ink);
  transition: color 0.18s var(--ease);
}

.nav-link__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.18s var(--ease);
}

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

.nav-link:hover { color: var(--orange-soft); }
.nav-link:hover .nav-link__idx { color: var(--orange); }
.nav-link:hover::after { transform: scaleX(1); }

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

.nav-utilities {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: clamp(14px, 2vw, 28px);
  border-left: 1px solid var(--line);
}

/* 移动端按钮 */

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--step-12);
  letter-spacing: 0.14em;
}

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

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: var(--orange);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--orange);
  transition: transform 0.2s var(--ease), top 0.2s var(--ease), opacity 0.2s 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); }

/* 滚动进度 */

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--violet), var(--orange));
  pointer-events: none;
}

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

.site-footer {
  position: relative;
  background: var(--navy-2);
  border-top: 1px solid var(--line);
}

.footer-edge {
  height: 8px;
  background: linear-gradient(
    90deg,
    var(--orange) 0 20%,
    var(--violet) 20% 34%,
    var(--green) 34% 40%,
    rgba(154, 167, 189, 0.25) 40% 100%
  );
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 42%);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.6fr);
  gap: clamp(28px, 5vw, 72px);
  padding-block: clamp(40px, 6vw, 72px);
}

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

.footer-contact {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.contact-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.6;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding-top: 2px;
}

.contact-value {
  color: var(--ink);
  word-break: break-word;
}

.contact-value--mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  color: var(--orange-soft);
}

.footer-note {
  margin-top: 16px;
  max-width: 32em;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  align-content: start;
}

.footer-col__title {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--step-12);
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--orange);
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-link {
  display: inline-block;
  font-size: var(--step-14);
  color: var(--ink);
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}

.footer-link:hover {
  color: var(--orange-soft);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--step-12);
  letter-spacing: 0.06em;
  color: var(--muted);
}

.footer-copy { margin-left: auto; }

/* ==========================================================================
   基础组件
   ========================================================================== */

/* 面包屑 */

.breadcrumb { padding-top: 20px; }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-family: var(--font-mono);
  font-size: var(--step-12);
  letter-spacing: 0.06em;
  color: var(--muted);
}

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

.breadcrumb__item:not(:last-child)::after {
  content: "/";
  margin-inline: 10px;
  color: var(--line-strong);
}

.breadcrumb__link { color: var(--muted); transition: color 0.18s var(--ease); }
.breadcrumb__link:hover { color: var(--orange); }
.breadcrumb__item [aria-current="page"] { color: var(--ink); }

/* 资料卡 */

.card {
  position: relative;
  padding: clamp(20px, 2.6vw, 32px);
  background: var(--navy-2);
  border: 1px solid var(--line);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease),
              background-color 0.2s var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
  background: var(--navy-3);
}

.section--paper .card {
  background: #FFFFFF;
  border-color: rgba(10, 27, 61, 0.14);
}

.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-20);
  line-height: 1.4;
  color: var(--paper);
}

.section--paper .card__title { color: #0A1B3D; }

.card__text {
  margin-top: 10px;
  font-size: var(--step-14);
  line-height: 1.75;
  color: var(--muted);
}

.card__meta {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* 标签 */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  white-space: nowrap;
}

.tag--orange { border-color: rgba(255, 106, 19, 0.55); color: var(--orange); }
.tag--violet { border-color: rgba(123, 92, 255, 0.6); color: var(--violet); }
.tag--green { border-color: rgba(53, 224, 138, 0.5); color: var(--green); }
.tag--alert { border-color: rgba(255, 77, 94, 0.55); color: var(--alert); }

/* 比分板数字组 */

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

.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--orange);
}

.stat__label {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* 图像容器（供页面阶段放置占位） */

.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--navy-2);
  border: 1px solid var(--line);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(115deg, rgba(123, 92, 255, 0.20), transparent 58%),
    linear-gradient(295deg, rgba(255, 106, 19, 0.18), transparent 62%),
    repeating-linear-gradient(90deg, rgba(154, 167, 189, 0.12) 0 1px, transparent 1px 56px);
  pointer-events: none;
}

.media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: var(--step-12);
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* 标签页 / 筛选 */

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

.tab {
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: var(--step-12);
  letter-spacing: 0.08em;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
              background-color 0.18s var(--ease);
}

.tab:hover { border-color: var(--orange); color: var(--orange-soft); }

.tab[aria-selected="true"],
.tab.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--navy);
}

.panel[hidden] { display: none; }

/* 滚动显现 */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

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

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

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: calc(var(--gutter) * -1);
    top: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--navy-2);
    border-bottom: 1px solid var(--line);
    border-left: 1px solid var(--line);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

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

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

  .nav-link {
    padding: 14px 0;
    font-size: var(--step-16);
    border-bottom: 1px solid var(--line);
  }

  .nav-link::after { display: none; }
  .nav-list li:last-child .nav-link { border-bottom: 0; }

  .nav-utilities {
    flex-wrap: wrap;
    gap: 14px;
    padding: 20px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .nav-utilities .btn { margin-left: auto; }

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

@media (max-width: 860px) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-copy { margin-left: 0; flex-basis: 100%; }
}

@media (max-width: 720px) {
  .header-strip__inner { font-size: 11px; letter-spacing: 0.05em; }
  .strip-text--end { display: none; }
  .brand__mark { width: 38px; height: 38px; font-size: 11px; }
  .brand__name { font-size: 18px; }
  .brand__sub { display: none; }
  .nav-toggle__label { display: none; }
  .contact-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

@media (max-width: 560px) {
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .grid-12 { gap: 14px; }
}

/* ==========================================================================
   动效降级
   ========================================================================== */

@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;
  }

  html.js [data-reveal] { opacity: 1; transform: none; }
  .card:hover { transform: none; }
  .btn--ghost:hover { transform: none; }
  .footer-link:hover { transform: none; }
}
