/* ==========================================================================
   壹趣体育 · 共享站点层 /assets/site.css
   赛场数据指挥中心：深墨绿基底 + 荧光青交互 + 暖橙关键数据
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

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

::selection {
  background: var(--cyan);
  color: var(--ink-deep);
}

/* 2. 设计变量
   ========================================================================== */
:root {
  /* 色彩节奏 */
  --ink-deep: #061A14;
  --ink: #0B3D2E;
  --ink-mid: #0F4C3A;
  --ink-line: #155D49;
  --grid-line: #2A6B57;
  --cyan: #00E5C3;
  --cyan-soft: #7CF5E4;
  --orange: #FF6B35;
  --orange-soft: #FFA07A;
  --paper: #F2F7F4;
  --text: #E9F7F1;
  --text-dim: #A7C9BC;
  --danger: #FF4D4D;

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

  /* 尺寸与节奏 */
  --shell: 1440px;
  --pad: 32px;
  --header-h: 66px;
  --radius: 2px;
  --shadow-hard: 6px 6px 0 rgba(0, 0, 0, 0.35);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* 3. 基础排版
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.14;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); letter-spacing: 0.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.5rem); letter-spacing: 0.06em; }
h4 { font-size: 1.05rem; letter-spacing: 0.08em; }

p { color: inherit; }

strong { font-weight: 700; }

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

#main-content {
  display: block;
  scroll-margin-top: calc(var(--header-h) + 40px);
}

/* 4. 布局工具
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

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

.section {
  position: relative;
  padding-block: clamp(48px, 7vw, 96px);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink-line);
  margin-bottom: clamp(24px, 3vw, 40px);
}

.section__num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--cyan);
  padding: 2px 8px;
  border: 1px solid var(--ink-line);
}

.section__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.section__lead {
  max-width: 62ch;
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.8;
}

.section--paper {
  background: var(--paper);
  color: var(--ink);
}

.section--paper .section__head { border-bottom-color: #C9DED6; }
.section--paper .section__title { color: var(--ink-deep); }
.section--paper .section__lead { color: #33564A; }
.section--paper .section__num { color: var(--ink); border-color: #C9DED6; }

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

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

/* 5. 跳过链接
   ========================================================================== */
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 300;
  display: inline-block;
  padding: 10px 20px;
  background: var(--cyan);
  color: var(--ink-deep);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

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

/* 6. 页头
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.site-header[data-scrolled="true"] {
  background: var(--ink);
  box-shadow: 0 1px 0 var(--cyan), 0 20px 36px -28px #000000;
}

/* 6.1 顶部情报带 */
.util-bar {
  background: rgba(6, 26, 20, 0.92);
  border-bottom: 1px solid rgba(21, 93, 73, 0.9);
  transition: background 0.28s var(--ease);
}

.site-header[data-scrolled="true"] .util-bar {
  background: var(--ink-deep);
}

.util-bar__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.util-bar__note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
}

.util-bar__dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.18);
  animation: pulseDot 2.6s ease-in-out infinite;
}

.util-bar__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cyan);
  white-space: nowrap;
  transition: color 0.2s;
}

.util-bar__link:hover {
  color: var(--cyan-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.75); }
}

/* 6.2 主行 */
.site-header__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--text);
  text-decoration: none;
}

.brand__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--cyan);
  color: var(--ink-deep);
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
  transition: transform 0.24s var(--ease), background 0.24s var(--ease);
}

.brand:hover .brand__mark {
  background: var(--orange);
  transform: translateY(-2px);
}

.brand__text {
  display: grid;
  line-height: 1.15;
}

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

.brand__domain {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--grid-line);
}

.brand--footer .brand__name { font-size: 18px; }
.brand--footer .brand__domain { color: var(--text-dim); }

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

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

.nav__item {
  list-style: none;
}

.nav__link {
  position: relative;
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s var(--ease);
}

.nav__link:hover {
  color: var(--text);
  background: rgba(0, 229, 195, 0.06);
}

.nav__link:hover::after {
  transform: scaleX(1);
}

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

.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

/* 6.4 页头行动按钮 */
.header-cta {
  flex: 0 0 auto;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--orange);
  color: #1A0A03;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 1px solid var(--orange);
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.header-cta:hover {
  background: var(--orange-soft);
  border-color: var(--orange-soft);
  box-shadow: 4px 4px 0 rgba(0, 229, 195, 0.55);
  transform: translate(-1px, -1px);
}

/* 6.5 移动端菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 9px 12px;
  background: transparent;
  border: 1px solid var(--ink-line);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

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

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  transition: transform 0.24s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle__text {
  line-height: 1;
}

.site-header[data-open="true"] .nav-toggle {
  color: var(--cyan);
  border-color: var(--cyan);
}

.site-header[data-open="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(6px) 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(-6px) rotate(-45deg);
}

/* 6.6 阅读进度 */
.progress {
  height: 2px;
  background: rgba(233, 247, 241, 0.08);
  overflow: hidden;
}

.progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-soft));
  transition: width 0.12s linear;
}

/* 7. 通用按钮
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn--primary {
  background: var(--orange);
  color: #1A0A03;
  border-color: var(--orange);
}

.btn--primary:hover {
  background: var(--orange-soft);
  border-color: var(--orange-soft);
  box-shadow: 5px 5px 0 rgba(0, 229, 195, 0.55);
  transform: translate(-2px, -2px);
}

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

.btn--ghost:hover {
  background: rgba(0, 229, 195, 0.14);
  box-shadow: 5px 5px 0 rgba(0, 229, 195, 0.22);
  transform: translate(-2px, -2px);
}

/* 8. 面包屑
   ========================================================================== */
.breadcrumb {
  padding-block: 16px;
  border-bottom: 1px solid var(--ink-line);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.breadcrumb__list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb__list li + li::before {
  content: "/";
  color: var(--grid-line);
}

.breadcrumb__link {
  color: var(--text-dim);
  transition: color 0.2s;
}

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

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

/* 9. 卡片 / 标签 / 指标
   ========================================================================== */
.card {
  position: relative;
  padding: clamp(18px, 2vw, 26px);
  background: var(--ink-mid);
  border: 1px solid var(--ink-line);
  border-top: 3px solid var(--cyan);
  box-shadow: var(--shadow-hard);
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
}

.card__kicker {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.card__title {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.35;
  color: var(--text);
}

.card__body {
  margin-top: 10px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-dim);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 229, 195, 0.08);
  border: 1px solid currentColor;
}

.tag--orange {
  color: var(--orange);
  background: rgba(255, 107, 53, 0.1);
}

.tag--solid {
  color: var(--ink-deep);
  background: var(--cyan);
  border-color: var(--cyan);
}

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

.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--orange);
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* 10. 图片容器基础规则（页面阶段放占位图）
   ========================================================================== */
.media {
  position: relative;
  overflow: hidden;
  background: var(--ink-deep);
  border: 1px solid var(--ink-line);
}

.media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}

.media__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 100%;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  background: var(--ink-deep);
  border-top: 1px solid var(--ink-line);
}

.media--slant {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 36px), calc(100% - 36px) 100%, 0 100%);
}

.media--frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
}

.media--16x9 {
  aspect-ratio: 16 / 9;
}

.media--4x3 {
  aspect-ratio: 4 / 3;
}

/* 11. 长文区
   ========================================================================== */
.prose {
  max-width: 74ch;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text-dim);
}

.prose p { margin-bottom: 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.25em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.5em; }

.prose h2, .prose h3 {
  margin-top: 1.9em;
  margin-bottom: 0.6em;
  color: var(--text);
}

.prose--paper {
  padding: clamp(22px, 3vw, 44px);
  background: var(--paper);
  color: var(--ink);
  border-left: 4px solid var(--orange);
}

.prose--paper h2,
.prose--paper h3 {
  color: var(--ink-deep);
}

.prose--paper a {
  color: var(--ink-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 12. 粘性窄栏（版本切换 / 球队追踪 / 章节索引）
   ========================================================================== */
.rail {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 12px;
  align-content: start;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

.rail__list {
  display: grid;
  gap: 10px;
}

.rail a {
  color: var(--text-dim);
  transition: color 0.2s;
}

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

/* 13. 入场动效
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease);
}

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

/* 14. 页脚
   ========================================================================== */
.site-footer {
  margin-top: clamp(48px, 8vw, 120px);
  background: var(--ink-deep);
  color: var(--text-dim);
  border-top: 1px solid var(--cyan);
}

.site-footer__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(36px, 5vw, 64px) var(--pad) 0;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
}

.footer__brand {
  display: grid;
  gap: 14px;
  align-content: start;
}

.footer__tagline {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-dim);
}

.footer__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--grid-line);
}

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

.footer__col {
  min-width: 0;
}

.footer__heading {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink-line);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer__list {
  display: grid;
  gap: 9px;
}

.footer__link {
  display: inline-block;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-dim);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

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

.footer__contact {
  max-width: var(--shell);
  margin: clamp(28px, 4vw, 48px) auto 0;
  padding: 20px var(--pad);
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--ink-line);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.footer__note {
  color: var(--grid-line);
}

.footer__bottom {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 16px var(--pad) 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  border-top: 1px solid var(--ink-line);
  font-size: 12px;
  color: var(--grid-line);
}

.footer__legal a {
  color: var(--text-dim);
  transition: color 0.2s;
}

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

.footer__copy {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

/* 15. 响应式
   ========================================================================== */
@media (max-width: 1100px) {
  .nav__link {
    padding: 10px 9px;
    font-size: 13.5px;
  }
  .nav__link::after {
    left: 9px;
    right: 9px;
  }
}

@media (max-width: 1024px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 10px var(--pad) 22px;
    background: var(--ink);
    border-top: 1px solid var(--ink-line);
    border-bottom: 2px solid var(--cyan);
    box-shadow: 0 28px 44px -30px #000000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
                visibility 0.22s var(--ease);
  }

  .site-header[data-open="true"] .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

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

  .nav__link {
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--ink-line);
  }

  .nav__link::after {
    left: 4px;
    right: 4px;
    bottom: 0;
  }

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

@media (max-width: 600px) {
  .grid--12 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  :root {
    --pad: 18px;
  }

  .brand__domain {
    display: none;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .header-cta {
    display: none;
  }

  .util-bar__inner {
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .util-bar__note {
    gap: 6px;
  }

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

  .footer__bottom {
    justify-content: flex-start;
  }
}

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

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