/* ============================================================
   ZOTY 中欧体育赛场 · /assets/site.css
   共享外壳：reset → tokens → 中文排版 → 头部 → 页脚 → 基础组件
   ============================================================ */

/* ---------- 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, svg, video { display: block; max-width: 100%; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
}

a { color: inherit; }

[hidden] { display: none !important; }

/* ---------- 2. Tokens ---------- */
:root {
  --pitch: #1E7A4C;
  --pitch-dark: #0F4A2E;
  --indigo: #141B3C;
  --indigo-mid: #2A356B;
  --paper: #F4EEE2;
  --paper-line: #DCD2C0;
  --ink: #0E1424;
  --muted: #5A6178;
  --fluoro: #D8FF3E;
  --orange: #F2793D;
  --white: #F7F3EA;

  --font-display: "Saira Condensed", "Barlow Condensed", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han 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;

  --shell-max: 1320px;
  --gutter: 24px;
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 22px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-card: 0 16px 36px -28px rgba(14, 20, 36, .7);
  --shadow-island: 0 22px 46px -30px rgba(14, 20, 36, .95);
}

@media (min-width: 768px) { :root { --gutter: 40px; } }
@media (min-width: 1200px) { :root { --gutter: 72px; } }

/* ---------- 3. 排版基线 ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(30, 122, 76, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 122, 76, .07) 1px, transparent 1px);
  background-size: 24px 24px;
  padding-top: 108px;
  overflow-x: hidden;
}

#main-content { display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.01em;
  color: var(--ink);
}

h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }

p { max-width: 38em; }

strong { font-weight: 700; }

::selection {
  background: var(--pitch);
  color: var(--white);
}

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

.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--fluoro);
}

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

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  margin-bottom: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pitch);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 9px;
  background: var(--pitch);
  transform: skewX(-24deg);
  flex: none;
}

.section-title {
  font-size: 28px;
  letter-spacing: -.015em;
}

.section-title::after {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--pitch) 0 30px, var(--fluoro) 30px 46px);
  transform: skewX(-28deg);
}

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

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

@media (max-width: 767px) {
  .grid-12 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform .18s var(--ease),
    background-color .18s var(--ease),
    color .18s var(--ease),
    border-color .18s var(--ease),
    box-shadow .18s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--fluoro);
  color: var(--ink);
  box-shadow: 0 12px 26px -18px rgba(216, 255, 62, .95);
}
.btn-primary:hover { background: #e5ff7d; }

.btn-pitch {
  background: var(--pitch);
  color: var(--white);
}
.btn-pitch:hover { background: #24925b; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--paper-line);
}
.btn-ghost:hover {
  border-color: var(--pitch);
  color: var(--pitch-dark);
}

/* ---------- 6. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--paper-line);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
}

.tag-pitch {
  background: var(--pitch);
  border-color: transparent;
  color: var(--white);
}

.tag-fluoro {
  background: var(--fluoro);
  border-color: transparent;
  color: var(--indigo);
}

/* ---------- 7. 内容层 ---------- */
.card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-m);
  background: var(--paper);
  box-shadow: var(--shadow-card);
}

.card-fold::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 24px;
  height: 24px;
  background: linear-gradient(225deg, var(--paper-line) 0 50%, transparent 50%);
  border-top-right-radius: var(--radius-m);
  pointer-events: none;
}

.card-dark {
  background: var(--indigo);
  border-color: var(--indigo-mid);
  color: var(--white);
  box-shadow: 0 20px 42px -32px rgba(14, 20, 36, 1);
}

.card-dark h2,
.card-dark h3,
.card-dark h4 { color: var(--white); }

.card-glass {
  background: rgba(20, 27, 60, .42);
  border-color: rgba(247, 243, 234, .16);
  color: var(--white);
  backdrop-filter: blur(12px) saturate(145%);
  -webkit-backdrop-filter: blur(12px) saturate(145%);
}

/* ---------- 8. 图片容器（页面阶段放置占位图） ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-m);
  background:
    linear-gradient(150deg, var(--pitch-dark) 0%, var(--indigo) 100%);
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(247, 243, 234, .14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(247, 243, 234, .14) 1px, transparent 1px);
  background-size: 24px 24px;
}

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

/* ---------- 9. 面包屑 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

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

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

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color .18s var(--ease);
}

.breadcrumb a:hover { color: var(--pitch); }

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

/* ---------- 10. 可展开内容组 ---------- */
.accordion {
  border-top: 1px solid var(--paper-line);
}

.acc-item {
  border-bottom: 1px solid var(--paper-line);
  transition: background-color .18s var(--ease);
}

.acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 10px;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  background: rgba(20, 27, 60, .035);
  border-radius: var(--radius-s);
  transition: background-color .18s var(--ease), color .18s var(--ease);
}

.acc-trigger:hover { background: rgba(30, 122, 76, .10); }

.acc-icon {
  flex: none;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--pitch);
  border: 1px solid var(--paper-line);
  border-radius: 50%;
  transition: transform .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease);
}

.acc-item[data-expanded] .acc-trigger {
  color: var(--pitch-dark);
  background: rgba(30, 122, 76, .12);
}

.acc-item[data-expanded] .acc-icon {
  transform: rotate(90deg);
  background: var(--fluoro);
  border-color: transparent;
  color: var(--indigo);
}

.acc-panel {
  padding: 2px 10px 20px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  background: transparent;
  transition: background-color .18s var(--ease);
}

.acc-item[data-expanded] .acc-panel {
  background: var(--white);
  border-radius: 0 0 var(--radius-s) var(--radius-s);
}

/* ---------- 11. 横向对比带 ---------- */
.band { position: relative; }

.band-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 4px 2px 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--paper-line) transparent;
  -webkit-overflow-scrolling: touch;
}

.band-track > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.band-track::-webkit-scrollbar { height: 6px; }
.band-track::-webkit-scrollbar-track { background: transparent; }
.band-track::-webkit-scrollbar-thumb {
  background: var(--paper-line);
  border-radius: 999px;
}

.band-track:focus-visible {
  outline: 2px solid var(--pitch);
  outline-offset: 4px;
}

/* ---------- 12. 显现动效 ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  will-change: opacity, transform;
}

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

/* ---------- 13. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 1200;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--fluoro);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform .18s var(--ease);
}

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

/* ---------- 14. 头部浮岛 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: 16px var(--gutter);
  pointer-events: none;
}

.header-island {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 10px 12px 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(216, 255, 62, .18);
  background: linear-gradient(120deg, rgba(15, 74, 46, .94) 0%, rgba(20, 27, 60, .92) 100%);
  color: var(--white);
  box-shadow: var(--shadow-island), inset 0 1px 0 rgba(247, 243, 234, .10);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  transition: padding .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease);
}

[data-header][data-compact] .header-island {
  padding-block: 6px;
  border-color: rgba(216, 255, 62, .30);
  box-shadow: 0 14px 30px -22px rgba(14, 20, 36, 1), inset 0 1px 0 rgba(247, 243, 234, .12);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  position: relative;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 8px;
  background: linear-gradient(140deg, var(--fluoro) 0%, #9ada1f 100%);
  transform: skewX(-8deg);
  box-shadow: 0 8px 18px -10px rgba(216, 255, 62, .85);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px;
  height: 12px;
  border: 2px solid var(--pitch-dark);
  border-radius: 2px;
  transform: rotate(45deg);
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand-code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .14em;
  line-height: 1;
}

.brand-name {
  font-size: 13px;
  letter-spacing: .16em;
  line-height: 1;
  opacity: .78;
}

/* 导航 */
.nav {
  margin-inline: auto;
}

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

.nav-item { display: block; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: rgba(247, 243, 234, .80);
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform .18s var(--ease),
    background-color .18s var(--ease),
    color .18s var(--ease),
    box-shadow .18s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(247, 243, 234, .14);
  color: var(--white);
  transform: translateY(-4px);
}

.nav-link[aria-current="page"] {
  background: var(--pitch);
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(216, 255, 62, .55);
}

/* 头部右侧 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.btn-quick {
  padding: 10px 18px;
  font-size: 13px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(247, 243, 234, .28);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}

.nav-toggle:hover { background: rgba(247, 243, 234, .12); }

.nav-toggle-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
  flex: none;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

[data-header][data-open] .nav-toggle-bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
[data-header][data-open] .nav-toggle-bar:nth-child(2) { opacity: 0; }
[data-header][data-open] .nav-toggle-bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 头部移动端：浮岛降至底部 */
@media (max-width: 1023px) {
  body {
    padding-top: 28px;
    padding-bottom: 108px;
  }

  .site-header {
    top: auto;
    bottom: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .header-island {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 22px;
  }

  .header-island .brand-name { display: none; }

  .nav {
    display: none;
    order: 3;
    flex-basis: 100%;
    width: 100%;
    margin: 0;
  }

  [data-header][data-open] .nav { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding-top: 10px;
    border-top: 1px solid rgba(247, 243, 234, .16);
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    text-align: left;
  }

  .nav-link:hover,
  .nav-link:focus-visible { transform: none; }

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

  .btn-quick {
    padding: 10px 16px;
    font-size: 13px;
  }
}

@media (max-width: 400px) {
  .btn-quick { display: none; }
}

/* ---------- 15. 页脚 ---------- */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 72px;
  background: var(--indigo);
  color: var(--white);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(247, 243, 234, .05) 1px, transparent 1px),
    radial-gradient(120% 90% at 88% -20%, rgba(30, 122, 76, .55) 0%, transparent 62%);
  background-size: 48px 48px, 100% 100%;
}

.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: repeating-linear-gradient(
    90deg,
    var(--pitch) 0 40px,
    var(--fluoro) 40px 56px,
    var(--pitch-dark) 56px 96px
  );
}

.footer-inner {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 76px var(--gutter) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.5fr;
  gap: 48px 40px;
}

.footer-col { min-width: 0; }

.brand-footer { color: var(--white); }
.brand-footer .brand-name { opacity: .70; }

.footer-note {
  margin-top: 18px;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(247, 243, 234, .72);
}

.footer-tag {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .24em;
  color: rgba(216, 255, 62, .72);
}

.footer-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fluoro);
}

.footer-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(247, 243, 234, .18);
}

.footer-leagues {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 12px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(247, 243, 234, .74);
}

.footer-leagues li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-leagues li::before {
  content: "";
  width: 3px;
  height: 12px;
  flex: none;
  background: var(--pitch);
  transform: skewX(-14deg);
}

.footer-links li + li { margin-top: 10px; }

.footer-links a {
  display: inline-block;
  font-size: 14px;
  color: rgba(247, 243, 234, .74);
  text-decoration: none;
  transition: color .18s var(--ease), padding-left .18s var(--ease);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--fluoro);
  padding-left: 6px;
}

.footer-meta {
  display: grid;
  gap: 10px;
  font-size: 13px;
  line-height: 1.7;
}

.footer-meta-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.footer-meta dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(247, 243, 234, .45);
}

.footer-meta dd {
  margin: 0;
  color: rgba(247, 243, 234, .84);
  word-break: break-word;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 56px;
  padding: 20px 0 30px;
  border-top: 1px solid rgba(247, 243, 234, .14);
  font-size: 12px;
  color: rgba(247, 243, 234, .55);
}

.footer-base-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: none;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-left: auto;
}

.footer-legal a {
  color: rgba(247, 243, 234, .70);
  text-decoration: none;
  transition: color .18s var(--ease);
}

.footer-legal a:hover,
.footer-legal a:focus-visible { color: var(--fluoro); }

@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 28px; }
  .footer-inner { padding-top: 62px; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-leagues { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-base { margin-top: 40px; }
  .footer-legal { margin-left: 0; }
  .footer-meta-row { grid-template-columns: 68px minmax(0, 1fr); }
}

/* ---------- 16. 无障碍动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .btn:hover,
  .nav-link:hover,
  .nav-link:focus-visible { transform: none; }

  .has-js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
