/* ===========================================================
   赛场榜前十 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 头部 / 页脚 / 基础组件
   =========================================================== */

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

:root {
  --ink:          #0A1220;
  --ink-2:        #121C30;
  --ink-3:        #16213a;
  --green:        #12B76A;
  --orange:       #FF7A29;
  --cyan:         #46E3D0;
  --cream:        #F4EFE4;
  --brown:        #1B1512;
  --frost:        #8C9AB3;
  --gold:         #FFC53D;
  --alert:        #E5484D;

  --line:         rgba(140, 154, 179, .22);
  --line-strong:  rgba(140, 154, 179, .42);
  --paper-line:   rgba(27, 21, 18, .38);

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

  --cut:      polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
  --cut-lg:   polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);

  --header-h: 66px;
  --wrap:     1200px;
  --gutter:   clamp(16px, 4vw, 40px);
  --radius:   2px;
}

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

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 620px at 82% -12%, rgba(18, 183, 106, .10), transparent 62%),
    radial-gradient(900px 520px at 2% 6%, rgba(70, 227, 208, .065), transparent 58%),
    var(--ink);
  color: #E3EAF6;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.is-hidden { display: none !important; }

/* ---------- 排版基础 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(40px, 6vw, 76px); }
.stack { display: grid; gap: 12px; }

.prose { max-width: 680px; }
.prose > p { margin-bottom: 1.15em; color: #C7D2E3; }
.prose h2 { margin: 1.6em 0 .55em; font-size: clamp(20px, 2.4vw, 24px); font-weight: 700; color: #fff; letter-spacing: -.01em; }
.prose h3 { margin: 1.4em 0 .45em; font-size: 18px; font-weight: 700; color: #fff; }
.prose ul { margin: 0 0 1.3em; }
.prose li { position: relative; padding-left: 20px; margin-bottom: .55em; color: #C7D2E3; }
.prose li::before {
  content: ""; position: absolute; left: 0; top: .78em;
  width: 9px; height: 1px; background: var(--green);
}
.prose strong { color: #fff; }
.prose a { color: var(--cyan); border-bottom: 1px solid rgba(70, 227, 208, .4); }
.prose a:hover { border-bottom-color: var(--cyan); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .18em;
  color: var(--cyan); text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--cyan); }

.section-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700; line-height: 1.28;
  letter-spacing: -.012em; color: #fff;
}
.lede {
  max-width: 640px;
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--frost);
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.num-xl {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 88px);
  line-height: .95;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.tag {
  display: inline-block;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .08em;
  color: var(--cyan);
  border: 1px solid rgba(70, 227, 208, .42);
  white-space: nowrap;
}
.tag--orange { color: var(--orange); border-color: rgba(255, 122, 41, .48); }
.tag--gold   { color: var(--gold);   border-color: rgba(255, 197, 61, .48); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px;
  font-size: 14px; font-weight: 700; letter-spacing: .01em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease, filter .2s ease;
}
.btn--primary { background: var(--orange); color: #1B1512; }
.btn--primary:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn--solid { background: var(--green); color: #06140C; }
.btn--solid:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn--ghost { border-color: var(--line-strong); color: #DCE4F0; }
.btn--ghost:hover { border-color: var(--green); color: var(--green); }
.btn--sm { padding: 7px 14px; font-size: 12.5px; }

/* ---------- 栅格 ---------- */
.grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- 卡片 / 数据图形 ---------- */
.card {
  position: relative;
  padding: 20px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  clip-path: var(--cut);
}
.card--cut-lg { clip-path: var(--cut-lg); }

.rank-bar {
  position: relative;
  height: 6px;
  background: rgba(140, 154, 179, .16);
  overflow: hidden;
}
.rank-bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  transform-origin: left center;
}

/* ---------- 可复用图片容器 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(135deg, rgba(70, 227, 208, .055) 0 8px, transparent 8px 18px),
    var(--ink-2);
  border: 1px solid var(--line);
  clip-path: var(--cut);
}
.media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(10, 18, 32, .72));
  pointer-events: none;
}
.media > img,
.media > svg,
.media > video {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
}
.media--21x9 { aspect-ratio: 21 / 9; }
.media--4x3  { aspect-ratio: 4 / 3; }
.media--1x1  { aspect-ratio: 1 / 1; }

.media__tag {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  padding: 3px 9px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  color: #06140C; background: var(--cyan);
}
.media__cap {
  position: absolute; right: 14px; bottom: 10px; z-index: 2;
  font-family: var(--font-mono); font-size: 11px;
  color: rgba(244, 239, 228, .82);
}

/* ---------- 面包屑 ---------- */
.crumbs {
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: .05em;
  color: var(--frost);
}
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: rgba(140, 154, 179, .55); }
.crumbs a:hover { color: var(--cyan); }
.crumbs [aria-current="page"] { color: #DCE4F0; }

/* ===========================================================
   头部
   =========================================================== */
.skip-link {
  position: absolute;
  left: 12px; top: -70px;
  z-index: 200;
  padding: 10px 16px;
  font-size: 14px; font-weight: 700;
  color: var(--brown);
  background: var(--orange);
  border-radius: var(--radius);
  transition: top .2s ease;
}
.skip-link:focus { top: 10px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(10, 18, 32, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease, background-color .25s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 14px 34px -22px rgba(0, 0, 0, .95);
  background: rgba(8, 15, 27, .97);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 9px var(--gutter);
  min-height: var(--header-h);
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  min-width: 0;
}
.brand-mark {
  display: grid; place-items: center;
  flex: 0 0 auto;
  width: 40px; height: 40px;
  font-family: var(--font-display);
  font-weight: 800; font-size: 22px; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  color: var(--brown);
  background: linear-gradient(150deg, var(--green), var(--cyan));
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: .01em; color: #fff; }
.brand-tagline {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .04em;
  color: var(--frost);
  white-space: nowrap;
}

/* 移动端按钮 */
.nav-toggle {
  display: none;
  align-items: center; gap: 9px;
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em;
  color: var(--frost);
  transition: border-color .2s ease, color .2s ease;
}
.nav-toggle:hover { border-color: var(--green); color: #fff; }
.nav-toggle-bars { display: grid; gap: 3px; width: 16px; }
.nav-toggle-bars i { display: block; height: 2px; background: var(--green); transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] { border-color: var(--green); color: #fff; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 导航 */
.site-nav { display: flex; align-items: center; gap: 6px; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-item { display: block; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 11px;
  font-size: 14px;
  color: #C8D3E4;
  border-radius: var(--radius);
  transition: color .2s ease, background-color .2s ease;
}
.nav-link:hover { color: #fff; background: rgba(140, 154, 179, .1); }
.nav-num {
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: .06em;
  color: var(--frost);
  transition: color .2s ease;
}
.nav-label { white-space: nowrap; }
.nav-link[aria-current="page"] { color: #fff; }
.nav-link[aria-current="page"] .nav-num { color: var(--orange); }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 11px; right: 11px; bottom: 4px;
  height: 2px;
  background: var(--green);
}

.nav-cta {
  margin-left: 10px;
  padding: 10px 17px;
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
  white-space: nowrap;
  color: var(--brown);
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 100% 66%, calc(100% - 12px) 100%, 0 100%);
  transition: transform .2s ease, filter .2s ease;
}
.nav-cta:hover { transform: translateY(-1px); filter: brightness(1.08); }

/* 联赛切换条 */
.league-bar {
  border-top: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(18, 183, 106, .12), rgba(70, 227, 208, .05) 52%, transparent 92%);
}
.league-bar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 7px var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.league-bar-inner::-webkit-scrollbar { display: none; }

.league-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .04em;
  color: var(--frost);
  white-space: nowrap;
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  animation: scorePulse 2.4s ease-out infinite;
}
@keyframes scorePulse {
  0%   { box-shadow: 0 0 0 0 rgba(70, 227, 208, .55); }
  70%  { box-shadow: 0 0 0 8px rgba(70, 227, 208, 0); }
  100% { box-shadow: 0 0 0 0 rgba(70, 227, 208, 0); }
}
.league-current { color: var(--cyan); font-weight: 600; }

.league-chips { display: flex; gap: 6px; flex: 0 0 auto; }
.chip {
  padding: 4px 11px;
  font-size: 12px;
  color: #B9C6DA;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.chip:hover { color: #fff; border-color: var(--green); }
.chip[aria-pressed="true"] {
  color: #06140C;
  font-weight: 700;
  background: var(--green);
  border-color: var(--green);
}

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0; bottom: -1px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  transition: width .12s linear;
}

/* ===========================================================
   页脚
   =========================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 110px);
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}

.footer-ruler {
  position: relative;
  height: 26px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background-image: repeating-linear-gradient(90deg, rgba(140, 154, 179, .34) 0 1px, transparent 1px 26px);
}
.footer-ruler::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--cyan) 46%, var(--orange));
  opacity: .9;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(0, 2fr);
  gap: clamp(28px, 5vw, 68px);
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(34px, 5vw, 58px) var(--gutter) 26px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.footer-mark {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  font-family: var(--font-display);
  font-weight: 800; font-size: 24px; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  color: var(--brown);
  background: linear-gradient(150deg, var(--green), var(--cyan));
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}
.footer-name { font-size: 20px; font-weight: 700; letter-spacing: .01em; color: #fff; }
.footer-tag {
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: .03em;
  color: var(--frost);
}
.footer-cta {
  margin-top: 8px;
  display: inline-block;
  padding: 10px 17px;
  font-size: 13px; font-weight: 700;
  color: var(--green);
  border: 1px solid var(--green);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  transition: background-color .2s ease, color .2s ease;
}
.footer-cta:hover { background: var(--green); color: #06140C; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.footer-col-title {
  margin-bottom: 13px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500; letter-spacing: .16em;
  color: var(--cyan);
}
.footer-links { display: grid; gap: 9px; }
.footer-links a {
  font-size: 14px;
  color: #C2CDDE;
  transition: color .2s ease;
}
.footer-links a:hover { color: var(--green); }

.footer-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 26px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: .02em;
  color: var(--frost);
}
.footer-contact { color: #A9B6CB; }
.footer-legal { color: var(--frost); }
.footer-copy { color: rgba(140, 154, 179, .85); }

/* ===========================================================
   响应式
   =========================================================== */
@media (max-width: 1080px) {
  .nav-link { padding: 9px 9px; font-size: 13.5px; }
  .nav-num { display: none; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .brand-tagline { display: none; }

  .site-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    z-index: 95;
    width: min(340px, 88vw);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 84px 20px 32px;
    background: var(--ink-2);
    border-left: 1px solid var(--line);
    overflow-y: auto;
    transform: translateX(101%);
    transition: transform .34s cubic-bezier(.22, .8, .3, 1);
  }
  .site-nav[data-open] { transform: translateX(0); }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item + .nav-item { border-top: 1px solid var(--line); }
  .nav-link {
    justify-content: space-between;
    padding: 15px 4px;
    font-size: 16px;
  }
  .nav-num { display: inline; font-size: 10px; }
  .nav-link[aria-current="page"] { color: var(--green); }
  .nav-link[aria-current="page"]::after {
    left: 4px; right: auto;
    width: 24px; bottom: 10px;
  }
  .nav-cta {
    display: block;
    margin: 20px 0 0;
    padding: 14px 16px;
    text-align: center;
  }

  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }
}

@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .footer-meta { flex-direction: column; gap: 7px; }
  .brand-name { font-size: 16px; }
  .league-status { font-size: 10.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
