/* ============================================================
   YT赛场 · 共享站点样式 /assets/site.css
   头部 + 页脚 + 基础组件
   ============================================================ */

:root {
  --night-900: #071523;
  --night-800: #0B1E32;
  --night-700: #102A44;
  --pitch-700: #176B45;
  --pitch-500: #2E9C63;
  --pitch-mist: #D9E7DA;
  --fog: #F5F7F2;
  --whistle: #FF6A2B;
  --board: #FFD24A;
  --glass: rgba(42, 156, 120, 0.16);
  --ink: #101820;

  --line: rgba(217, 231, 218, 0.16);
  --line-strong: rgba(217, 231, 218, 0.34);
  --text-soft: rgba(245, 247, 242, 0.72);
  --text-mute: rgba(245, 247, 242, 0.5);

  --font-display: "Oswald", "Barlow Condensed", "Arial Narrow", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1280px;
  --gutter: 24px;
  --radius: 2px;
  --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;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--night-900);
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; }
a { color: var(--pitch-500); text-decoration: none; }
a:hover { color: var(--board); }
button { font: inherit; }
table { border-collapse: collapse; width: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--fog);
  line-height: 1.12;
  letter-spacing: 0.01em;
}

::selection { background: var(--pitch-500); color: var(--night-900); }

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

#main-content:focus { outline: none; }

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed;
  left: 14px;
  top: -80px;
  z-index: 300;
  padding: 11px 18px;
  background: var(--board);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 0.18s var(--ease);
}
.skip-link:focus { top: 14px; color: var(--ink); }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  z-index: 250;
  background: linear-gradient(90deg, var(--pitch-500) 0%, var(--board) 70%, var(--whistle) 100%);
  pointer-events: none;
}

/* ============================================================
   头部
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(7, 21, 35, 0.94);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  backdrop-filter: blur(12px) saturate(1.15);
  border-bottom: 1px solid var(--line);
  transition: background 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.site-header[data-stuck="true"] {
  background: rgba(7, 21, 35, 0.99);
  box-shadow: 0 22px 46px -30px rgba(0, 0, 0, 0.95);
}

.header-inner {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
  min-height: 72px;
  padding-block: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 品牌：三根斜切刻度条 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--fog);
}
.brand:hover { color: var(--fog); }
.brand__mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
  transform: skewX(-14deg);
  padding-right: 2px;
}
.brand__mark i { display: block; width: 5px; background: var(--pitch-500); }
.brand__mark i:nth-child(1) { height: 12px; background: var(--pitch-700); }
.brand__mark i:nth-child(2) { height: 19px; background: var(--board); }
.brand__mark i:nth-child(3) { height: 26px; background: var(--pitch-500); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--fog);
}
.brand__slogan {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--pitch-500);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 10px 14px;
  background: rgba(217, 231, 218, 0.08);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--fog);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
}
.nav-toggle:hover { border-color: var(--pitch-500); background: rgba(46, 156, 99, 0.16); }
.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 4px; width: 18px; }
.nav-toggle__bars i {
  display: block;
  height: 2px;
  background: var(--board);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.site-header[data-open="true"] .nav-toggle__bars i:first-child { transform: translateY(3px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__bars i:last-child { transform: translateY(-3px) rotate(-45deg); }

/* 导航：左右分置的右端 */
.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.site-nav__list a {
  position: relative;
  display: block;
  padding: 9px 12px;
  color: var(--text-soft);
  font-size: 14px;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  text-decoration: none;
  transition: color 0.16s var(--ease), background 0.16s var(--ease);
}
.site-nav__list a:hover { color: var(--fog); background: rgba(217, 231, 218, 0.08); }
.site-nav__list a[aria-current="page"] {
  color: var(--board);
  background: rgba(255, 210, 74, 0.09);
  padding-left: 22px;
}
.site-nav__list a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 50%;
  width: 4px;
  height: 15px;
  transform: translateY(-50%) skewX(-14deg);
  background: var(--whistle);
}
.site-nav__hint {
  display: none;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-mute);
}
.site-nav__cta { white-space: nowrap; }

/* 底部斜切彩线 */
.header-rule {
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--pitch-700) 0 40%,
    var(--pitch-500) 40% 72%,
    var(--board) 72% 83%,
    var(--whistle) 83% 100%
  );
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  margin-top: 0;
  background: var(--night-900);
  border-top: 1px solid var(--line);
  color: var(--text-soft);
}

/* 记分牌服务带 */
.footer-band {
  position: relative;
  overflow: hidden;
  background: var(--night-700);
  border-bottom: 1px solid var(--line);
}
.footer-band::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 34%;
  background: var(--pitch-700);
  transform: skewX(-11deg);
  transform-origin: left bottom;
  pointer-events: none;
  z-index: 0;
}
.footer-band__inner {
  position: relative;
  z-index: 1;
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.footer-band__item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 18px 6px;
}
.footer-band__item + .footer-band__item {
  border-left: 1px solid var(--line);
  padding-left: 26px;
}
.footer-band__num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  color: var(--board);
  letter-spacing: 0.02em;
}
.footer-band__label {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: rgba(245, 247, 242, 0.8);
}

/* 主体 */
.footer-main { padding-block: 54px 44px; }
.footer-main__inner {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.brand--footer .brand__name { font-size: 20px; }
.footer-tagline {
  max-width: 34ch;
  margin: 18px 0 24px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(245, 247, 242, 0.66);
}

.footer-contact {
  list-style: none;
  display: grid;
  gap: 11px;
  font-size: 13.5px;
}
.footer-contact__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.footer-contact__key {
  flex: 0 0 66px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--pitch-500);
}
.footer-contact__val {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(245, 247, 242, 0.88);
  word-break: break-word;
}
.footer-contact__row:last-child .footer-contact__val {
  font-family: var(--font-body);
  font-size: 13.5px;
  letter-spacing: 0.01em;
}
.footer-note {
  margin-top: 18px;
  max-width: 38ch;
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-mute);
}

.copy-btn {
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--pitch-mist);
  cursor: pointer;
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease), background 0.16s var(--ease);
}
.copy-btn:hover { border-color: var(--pitch-500); color: var(--board); }
.copy-btn[data-copied="true"] {
  border-color: var(--pitch-500);
  background: rgba(46, 156, 99, 0.22);
  color: var(--board);
}
.copy-btn[data-copied="false"] {
  border-color: var(--whistle);
  color: var(--whistle);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.footer-group__title {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--board);
}
.footer-group ul { list-style: none; display: grid; gap: 9px; }
.footer-group a {
  font-size: 14px;
  color: rgba(245, 247, 242, 0.7);
  text-decoration: none;
  transition: color 0.16s var(--ease);
}
.footer-group a:hover {
  color: var(--fog);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--whistle);
}

/* 底栏 */
.footer-base {
  background: rgba(16, 42, 68, 0.55);
  border-top: 1px solid var(--line);
}
.footer-base__inner {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
  padding-block: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  font-size: 12.5px;
  color: var(--text-mute);
}
.footer-base__legal { margin: 0; letter-spacing: 0.04em; }
.footer-base__links { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; }
.footer-base__links a {
  font-size: 12.5px;
  color: rgba(245, 247, 242, 0.62);
  text-decoration: none;
}
.footer-base__links a:hover { color: var(--board); }

/* ============================================================
   基础组件
   ============================================================ */
.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(30px, 4vw, 56px); }

.band { background: var(--night-900); color: var(--text-soft); }
.band--deep { background: var(--night-700); }
.band--pitch { background: var(--pitch-700); color: var(--pitch-mist); }
.band--mist { background: var(--pitch-mist); color: var(--ink); }
.band--mist h1,
.band--mist h2,
.band--mist h3 { color: var(--ink); }
.band--mist .section-head__desc { color: rgba(16, 24, 32, 0.72); }
.band--mist .eyebrow { color: var(--pitch-700); }
.band--mist .eyebrow::before { background: var(--whistle); }
.band--mist .card { background: rgba(255, 255, 255, 0.55); border-color: rgba(16, 24, 32, 0.14); color: var(--ink); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--pitch-500);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--whistle);
  transform: skewX(-20deg);
}

.display-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--fog);
}
.display-title em {
  font-family: var(--font-serif);
  font-style: normal;
  color: var(--board);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.section-head__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  color: var(--fog);
}
.section-head__desc {
  max-width: 52ch;
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-soft);
}

.split {
  display: grid;
  grid-template-columns: 38fr 62fr;
  gap: 0;
}
.split--reverse { grid-template-columns: 62fr 38fr; }

.card {
  position: relative;
  padding: clamp(18px, 2.2vw, 26px);
  background: rgba(16, 42, 68, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-soft);
}
.card--glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-color: rgba(46, 156, 99, 0.34);
}
.card--solid {
  background: var(--pitch-700);
  border-color: transparent;
  color: var(--pitch-mist);
}
.card--board {
  background: var(--board);
  border-color: transparent;
  color: var(--ink);
}
.card__title {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: inherit;
}
.card__text { font-size: 14px; line-height: 1.8; color: inherit; opacity: 0.86; }

.stat-tile { display: flex; flex-direction: column; gap: 6px; }
.stat-tile__num {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1;
  color: var(--board);
}
.stat-tile__label {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-mute);
}

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  padding: 8px 16px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text-soft);
  cursor: pointer;
  transition: background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.filter-btn:hover { border-color: var(--pitch-500); color: var(--fog); }
.filter-btn[aria-pressed="true"] {
  background: var(--pitch-500);
  border-color: var(--pitch-500);
  color: var(--night-900);
  font-weight: 600;
}
[data-filter-item][hidden] { display: none !important; }

.timeline {
  list-style: none;
  position: relative;
  padding-left: 22px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--pitch-500), rgba(46, 156, 99, 0.08));
}
.timeline__item { position: relative; padding-bottom: 28px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 6px;
  width: 10px;
  height: 10px;
  background: var(--whistle);
  transform: skewX(-14deg);
}

.breadcrumb {
  padding-block: 14px;
  font-size: 12.5px;
  color: var(--text-mute);
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(245, 247, 242, 0.28);
}
.breadcrumb a { color: rgba(245, 247, 242, 0.7); text-decoration: none; }
.breadcrumb a:hover { color: var(--board); }
.breadcrumb [aria-current="page"] { color: var(--pitch-mist); }

.media-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 16 / 10;
  background: var(--night-700);
  border-radius: var(--radius);
}
.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--glass);
  pointer-events: none;
}
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s var(--ease), color 0.16s var(--ease),
              border-color 0.16s var(--ease), transform 0.16s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--whistle); color: var(--ink); }
.btn--accent:hover { background: #FF8148; color: var(--ink); }
.btn--green { background: var(--pitch-700); color: var(--fog); }
.btn--green:hover { background: var(--pitch-500); color: var(--night-900); }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--fog); }
.btn--ghost:hover { border-color: var(--pitch-500); color: var(--board); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1120px) {
  :root { --gutter: 20px; }
  .site-nav { gap: 12px; }
  .site-nav__list a { padding-inline: 10px; font-size: 13.5px; }
  .site-nav__list a[aria-current="page"] { padding-left: 20px; }
}

@media (max-width: 1024px) {
  .footer-main__inner { grid-template-columns: 1fr; gap: 38px; }
  .split,
  .split--reverse { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin: 0;
    padding: 18px var(--gutter) 24px;
    background: rgba(7, 21, 35, 0.99);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 34px 56px -34px rgba(0, 0, 0, 0.95);
  }
  .site-header[data-open="true"] .site-nav {
    display: flex;
    animation: navIn 0.18s var(--ease) both;
  }
  @keyframes navIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .site-nav__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .site-nav__list a {
    padding: 13px 12px;
    background: rgba(217, 231, 218, 0.06);
    font-size: 14px;
  }
  .site-nav__list a[aria-current="page"] { padding-left: 26px; }
  .site-nav__list a[aria-current="page"]::before { left: 11px; height: 16px; }
  .site-nav__cta { width: 100%; margin-top: 2px; padding-block: 13px; }
  .site-nav__hint { display: block; }
  .footer-band::before { width: 46%; }
  .footer-band__item { padding: 16px 4px; }
  .footer-band__item + .footer-band__item { padding-left: 18px; }
  .footer-band__num { font-size: 20px; }
  .footer-band__label { font-size: 12px; letter-spacing: 0.06em; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 15px; }
  .header-inner { min-height: 64px; padding-block: 12px; }
  .brand__name { font-size: 19px; }
  .brand__slogan { font-size: 9px; letter-spacing: 0.26em; }
  .brand__mark { height: 24px; }
  .brand__mark i:nth-child(1) { height: 10px; }
  .brand__mark i:nth-child(2) { height: 16px; }
  .brand__mark i:nth-child(3) { height: 22px; }

  .site-nav__list { grid-template-columns: 1fr; }

  .footer-band::before { width: 62%; }
  .footer-band__inner { grid-template-columns: 1fr; }
  .footer-band__item { padding: 14px 4px; }
  .footer-band__item + .footer-band__item {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 4px;
  }
  .footer-main { padding-block: 40px 34px; }
  .footer-nav { gap: 26px; }
  .footer-base__inner { justify-content: flex-start; }
  .footer-base__links { gap: 16px; }
  .footer-contact__key { flex-basis: 100%; }
}

@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;
    scroll-behavior: auto !important;
  }
}
