/* ============================================================
   云开赛事通 · 共享样式表 /assets/site.css
   夜航深墨蓝为底 · 荧光青表状态 · 信号橙表行动
   ============================================================ */

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

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

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

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

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

button, input, select, textarea { font: inherit; color: inherit; }

button { background: none; border: 0; padding: 0; cursor: pointer; }

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

table { border-collapse: collapse; border-spacing: 0; }

:target { scroll-margin-top: 140px; }

/* ---------- 2. 设计变量 ---------- */
:root {
  --ink: #0A1826;
  --panel: #102A40;
  --mist: #EAF2F8;
  --haze: #9FB3C8;
  --cyan: #22E3C0;
  --orange: #FF7A2F;
  --red: #E23A3A;
  --yellow: #F2C230;
  --line: #1E3A4F;
  --cyan-soft: #7FF3DC;

  --bg-page: var(--ink);
  --bg-panel: var(--panel);
  --fg-strong: var(--mist);
  --fg-muted: var(--haze);
  --fg-action: var(--orange);
  --fg-state: var(--cyan);
  --stroke: var(--line);

  --font-display: "Barlow Condensed", "Oswald", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --maxw: 1440px;
  --gutter: 28px;
  --gap: 24px;
  --rail: 88px;
  --radius-l: 18px;
  --radius-m: 12px;
  --radius-s: 8px;

  --ease: cubic-bezier(.2, .7, .3, 1);
}

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

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-page);
  background-image:
    radial-gradient(1100px 520px at 84% -10%, rgba(34, 227, 192, .06), transparent 62%),
    radial-gradient(780px 420px at 2% 6%, rgba(255, 122, 47, .045), transparent 60%);
  background-repeat: no-repeat;
  color: var(--fg-strong);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main { flex: 1 0 auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--fg-strong);
}

h1 { font-size: clamp(2.4rem, 6vw, 5.2rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: 0; line-height: 1.3; }

p { max-width: 68ch; }

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

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

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--radius-m);
  background: var(--cyan);
  color: var(--ink);
  font-weight: 700;
  font-size: .9375rem;
  transform: translateY(-200%);
  transition: transform .18s var(--ease);
}

.skip-link:focus-visible { transform: translateY(0); }

/* ---------- 5. 站点头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 24, 38, .94);
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 10px var(--gutter);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand rail nav";
  align-items: center;
  column-gap: 28px;
  row-gap: 8px;
}

/* 品牌 */
.brand {
  grid-area: brand;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-height: 44px;
  padding: 4px 0;
}

.brand-name {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .02em;
  color: var(--mist);
}

.brand-name::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--cyan) 0 50%, var(--orange) 50% 100%);
}

.brand-domain {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .1em;
  color: var(--haze);
  padding-left: 18px;
}

/* 赛季刻度轨 */
.season-rail {
  grid-area: rail;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.season-rail-label {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .18em;
  color: var(--haze);
  text-transform: uppercase;
}

.season-rail-list {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 12px;
}

.season-rail-list::-webkit-scrollbar { display: none; }

.season-chip {
  flex: 0 0 auto;
  scroll-snap-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
  color: var(--haze);
  transition: color .24s var(--ease), border-color .24s var(--ease), background-color .24s var(--ease);
}

.season-chip:hover {
  color: var(--mist);
  border-color: var(--cyan-soft);
}

.season-chip[aria-pressed="true"] {
  color: var(--ink);
  background: var(--cyan);
  border-color: var(--cyan);
  font-weight: 700;
}

/* 一级栏目 */
.primary-nav { grid-area: nav; }

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: .9375rem;
  color: var(--haze);
  white-space: nowrap;
  transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}

.nav-link:hover {
  color: var(--mist);
  background: rgba(34, 227, 192, .08);
}

.nav-link[aria-current="page"] {
  color: var(--cyan);
  border-color: rgba(34, 227, 192, .38);
  background: rgba(34, 227, 192, .09);
}

/* 移动栏目按钮 */
.nav-toggle {
  grid-area: toggle;
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .1em;
  color: var(--mist);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

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

.nav-toggle-icon {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: background-color .2s var(--ease);
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform .22s var(--ease);
}

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

.site-header[data-open="true"] .nav-toggle-icon { background: transparent; }
.site-header[data-open="true"] .nav-toggle-icon::before { transform: translateY(6px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle-icon::after { transform: translateY(-6px) rotate(-45deg); }

/* 阅读进度条 */
.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .1s linear;
  pointer-events: none;
}

/* ---------- 6. 站点页脚 ---------- */
.site-footer {
  margin-top: auto;
  background: var(--panel);
  border-top: 1px solid var(--stroke);
  color: var(--mist);
}

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

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(0, 1fr));
  gap: 48px 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--stroke);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .02em;
  color: var(--mist);
}

.footer-brand-note {
  margin-top: 12px;
  max-width: 30ch;
  font-size: .9375rem;
  color: var(--haze);
}

.footer-block-title {
  position: relative;
  margin-bottom: 14px;
  padding-left: 20px;
  font-family: var(--font-mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.4;
  color: var(--cyan);
}

.footer-block-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 13px;
  height: 3px;
  border-radius: 2px;
  background: var(--orange);
}

.footer-list { display: flex; flex-direction: column; }

.footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: .9375rem;
  color: var(--haze);
  transition: color .2s var(--ease);
}

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

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-contact-label {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .12em;
  color: var(--haze);
}

.footer-contact-value {
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--mist);
  overflow-wrap: anywhere;
}

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

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}

.footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: .875rem;
  color: var(--haze);
  transition: color .2s var(--ease);
}

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

.footer-icp,
.footer-copy {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .06em;
  color: var(--haze);
  max-width: none;
}

.footer-mini-rail {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--stroke);
  height: 42px;
}

.footer-mini-rail span {
  flex: 1 1 0;
  height: 6px;
  border-radius: 2px;
  background: var(--stroke);
}

.footer-mini-rail span:nth-child(2n) { height: 9px; }
.footer-mini-rail span:nth-child(3n) { height: 13px; }
.footer-mini-rail span:nth-child(5n) { height: 17px; }
.footer-mini-rail span:last-child { height: 22px; background: var(--cyan); }

/* ---------- 7. 布局容器与网格 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

@media (min-width: 1100px) {
  .wrap--rail { padding-left: calc(var(--gutter) + var(--rail)); }
}

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

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  color: var(--haze);
}

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

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

.breadcrumb a { color: var(--haze); transition: color .2s var(--ease); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--mist); }

/* ---------- 9. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-m);
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

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

.btn-primary:hover { background: #FF9557; }

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

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

/* ---------- 10. 章节叙事单元 ---------- */
.chapter {
  position: relative;
  padding: 96px 0;
}

.chapter-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}

.chapter-num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .16em;
  color: var(--cyan);
}

.chapter-band {
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: var(--cyan);
}

.chapter--alt .chapter-num { color: var(--orange); }
.chapter--alt .chapter-band { background: var(--orange); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 4px;
  border-radius: 2px;
  background: currentColor;
}

.eyebrow--alt { color: var(--orange); }

/* ---------- 11. 卡片 ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-l);
  padding: 28px;
}

.card-o {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-l) var(--radius-l) 4px var(--radius-l);
  padding: 28px;
}

/* ---------- 12. 统计 ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 40px 0;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
}

.stat-value--action { color: var(--orange); }
.stat-value--plain { color: var(--mist); }

.stat-note {
  max-width: 34ch;
  font-size: .9375rem;
  color: var(--haze);
}

/* ---------- 13. 对照表 ---------- */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(16, 42, 64, .5);
}

.data-table {
  width: 100%;
  min-width: 640px;
  font-size: .9375rem;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 14px 18px;
  background: rgba(30, 58, 79, .92);
  border-bottom: 1px solid var(--stroke);
  font-family: var(--font-mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--haze);
  text-align: left;
  white-space: nowrap;
}

.data-table td {
  height: 44px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(30, 58, 79, .6);
  vertical-align: middle;
  color: var(--mist);
}

.data-table tbody tr:nth-child(even) { background: rgba(30, 58, 79, .32); }

.data-table tbody tr:last-child td { border-bottom: 0; }

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

/* ---------- 14. 语义角标 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4em;
  height: 1.4em;
  padding: 0 .35em;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

.badge--red { background: var(--red); color: #fff; }
.badge--yellow { background: var(--yellow); color: #20170A; }

.badge--cyan {
  background: rgba(34, 227, 192, .16);
  color: var(--cyan);
  border: 1px solid rgba(34, 227, 192, .4);
}

/* ---------- 15. 折叠内容组 ---------- */
.disclosure {
  border-bottom: 1px solid var(--stroke);
}

.disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 8px 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--mist);
  list-style: none;
  transition: color .2s var(--ease);
}

.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary:hover { color: var(--cyan); }

.disclosure > summary::after {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg);
  transition: transform .2s var(--ease);
}

.disclosure[open] > summary::after { transform: rotate(-135deg); }

.disclosure-body {
  padding: 4px 0 24px;
  color: var(--haze);
}

/* ---------- 16. 图片容器 ---------- */
.img-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-l);
  background: linear-gradient(165deg, var(--panel) 0%, #0C1F30 72%);
}

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

.img-frame--wide { aspect-ratio: 16 / 9; }
.img-frame--portrait { aspect-ratio: 3 / 4; }
.img-frame--tall { aspect-ratio: 2 / 3; }

/* ---------- 17. 滚动显现 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
}

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

/* ---------- 18. 响应式 ---------- */
@media (max-width: 1080px) {
  .brand-domain { display: none; }
  .header-inner { column-gap: 18px; }
}

@media (max-width: 960px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand toggle"
      "rail  rail"
      "nav   nav";
    column-gap: 16px;
    row-gap: 4px;
    padding-block: 10px 12px;
  }

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

  .brand-domain { display: block; }

  .season-rail { padding-bottom: 2px; }

  .primary-nav { display: none; }

  .site-header[data-open="true"] .primary-nav {
    display: block;
    padding-bottom: 10px;
  }

  .site-header[data-open="true"] .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    border-top: 1px solid var(--stroke);
    padding-top: 10px;
  }

  .nav-link {
    min-height: 48px;
    border-radius: var(--radius-m);
    font-size: 1rem;
  }

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

@media (max-width: 620px) {
  .brand-name { font-size: 1.3rem; }

  .chapter { padding: 64px 0; }

  .footer-inner { padding: 56px var(--gutter) 32px; }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-bottom: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .card, .card-o { padding: 22px; }

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

/* ---------- 19. 减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

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