/* ==========================================================================
   中欧体育 ZOTY CN · /assets/site.css
   共享层：reset / 变量 / 中文排版 / 框架头部 / 页脚 / 通用组件
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
  background: #061A24;
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, blockquote, address { margin: 0; }

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

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; width: 100%; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #061A24;
  --ink-2: #0B2E3A;
  --panel: #173F4C;
  --paper: #F2FBF8;
  --muted: #8AA8AF;
  --cyan: #11F0D0;
  --orange: #FF6B2C;
  --lime: #D9FF4F;
  --violet: #9B7CFF;
  --steel: #324B54;

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

  --edge: clamp(16px, 4vw, 56px);
  --gap: clamp(16px, 2.2vw, 30px);
  --shadow-hard: 6px 6px 0 rgba(0, 0, 0, .45);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --z-header: 70;
}

/* ---------- 3. 中文排版与基础 ---------- */
body {
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: clamp(15px, .5vw + 14px, 17px);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.005em;
}

h1 { font-size: clamp(34px, 6vw, 76px); font-weight: 500; }
h2 { font-size: clamp(24px, 3.2vw, 40px); }
h3 { font-size: clamp(18px, 1.8vw, 24px); }

strong { font-weight: 600; color: var(--paper); }

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

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

/* ---------- 4. 无障碍工具类 ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 12px 18px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  border-left: 6px solid var(--orange);
  transform: translateY(-200%);
  transition: transform .25s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1;
  white-space: nowrap;
  border: 2px solid transparent;
  transition: background .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), box-shadow .2s var(--ease),
              transform .18s var(--ease);
}

.btn--accent {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .45);
}

.btn--accent:hover,
.btn--accent:focus-visible {
  background: var(--lime);
  border-color: var(--lime);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .5);
}

.btn--accent:active {
  transform: translate(0, 0);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .5);
}

.btn--quiet {
  background: transparent;
  border-color: var(--steel);
  color: var(--paper);
}

.btn--quiet:hover,
.btn--quiet:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ---------- 6. 框架式头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--ink);
  border-bottom: 3px solid var(--steel);
  box-shadow: 0 14px 26px rgba(0, 0, 0, .38);
}

.header-frame {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 30px);
  padding: 11px var(--edge);
  border-bottom: 1px solid var(--steel);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  padding: 2px 0;
}

.brand__mark {
  display: inline-block;
  padding: 8px 10px 6px;
  background: var(--cyan);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .01em;
  box-shadow: 5px 5px 0 var(--steel);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}

.brand:hover .brand__mark,
.brand:focus-visible .brand__mark {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--orange);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .16em;
  color: var(--paper);
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: .18em;
  color: var(--muted);
}

/* 导航 */
.header-nav {
  display: flex;
  align-items: center;
  margin-inline-start: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(2px, .8vw, 12px);
}

.nav-list a {
  display: inline-block;
  padding: 9px 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.2;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease),
              background .2s var(--ease);
}

.nav-list a:hover {
  color: var(--paper);
  border-bottom-color: var(--cyan);
}

.nav-list a[aria-current="page"] {
  background: var(--cyan);
  border-bottom-color: var(--cyan);
  color: var(--ink);
  font-weight: 600;
  padding-inline: 12px;
}

/* 状态 */
.header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted);
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(217, 255, 79, .16);
  animation: zoty-pulse 2.4s var(--ease) infinite;
}

@keyframes zoty-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

/* 动作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  flex: none;
  padding: 10px 12px;
  background: var(--ink-2);
  border: 2px solid var(--steel);
  color: var(--paper);
  transition: background .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), box-shadow .2s var(--ease);
}

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

.nav-toggle[data-open="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--steel);
}

.nav-toggle__icon {
  display: grid;
  gap: 4px;
  width: 18px;
}

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

.nav-toggle[data-open="true"] .nav-toggle__icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[data-open="true"] .nav-toggle__icon span:nth-child(2) { opacity: 0; }
.nav-toggle[data-open="true"] .nav-toggle__icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-toggle__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1;
}

/* 联赛条 */
.league-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px var(--edge);
  background: var(--ink-2);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--steel) transparent;
}

.league-strip::-webkit-scrollbar { height: 4px; }
.league-strip::-webkit-scrollbar-thumb { background: var(--steel); }

.league-strip__label {
  flex: none;
  padding-right: 12px;
  border-right: 1px solid var(--steel);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.league-tabs {
  display: flex;
  gap: 8px;
  flex: none;
}

.league-tab {
  flex: none;
  padding: 8px 13px;
  background: transparent;
  border: 1px solid var(--steel);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1;
  transition: color .2s var(--ease), background .2s var(--ease),
              border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.league-tab:hover {
  color: var(--paper);
  border-color: var(--cyan);
}

.league-tab[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--steel);
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  background: var(--ink);
  border-top: 3px solid var(--steel);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, .85fr)) minmax(0, 1.3fr);
  gap: clamp(24px, 3vw, 48px);
  padding: clamp(36px, 5vw, 76px) var(--edge) clamp(28px, 4vw, 56px);
}

.footer-mark {
  font-family: var(--font-display);
  font-size: clamp(54px, 8vw, 104px);
  font-weight: 300;
  line-height: .82;
  letter-spacing: -.02em;
  color: var(--ink-2);
  -webkit-text-stroke: 1.5px var(--steel);
  margin-bottom: 14px;
}

.footer-brandline {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--paper);
  margin-bottom: 10px;
}

.footer-desc {
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

.footer-col__title,
.footer-contact__title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

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

.footer-list a {
  display: inline-block;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--paper);
  border-bottom-color: var(--orange);
}

.footer-contact__body {
  font-style: normal;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.footer-contact__body p + p { margin-top: 12px; }

.footer-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: .75;
  margin-bottom: 3px;
}

.footer-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--steel);
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 18px var(--edge) 34px;
  border-top: 1px solid var(--steel);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted);
}

/* ---------- 8. 通用布局 ---------- */
.wrap {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--edge);
}

.section {
  padding-block: clamp(40px, 6vw, 88px);
}

.section + .section {
  border-top: 1px solid var(--steel);
}

.grid {
  display: grid;
  gap: var(--gap);
}

.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)); }

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

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--cyan);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: .01em;
  color: var(--paper);
  margin-block: 10px 18px;
}

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

.tag {
  display: inline-block;
  padding: 5px 9px;
  background: var(--ink-2);
  border: 1px solid var(--steel);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1;
  text-transform: uppercase;
}

.tag--accent {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

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

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.breadcrumb li:not(:last-child)::after {
  content: "/";
  color: var(--steel);
}

.breadcrumb a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.breadcrumb a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

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

/* 图片容器 */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--panel);
  border: 2px solid var(--steel);
  box-shadow: var(--shadow-hard);
}

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

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

.media__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 7px 11px;
  background: var(--ink);
  border-top: 2px solid var(--cyan);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ---------- 9. 显现与联赛筛选 ---------- */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

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

[data-league-item] {
  transition: opacity .3s var(--ease);
}

[data-league-item].is-dimmed {
  opacity: .18;
}

/* ---------- 10. 滚动进度 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 100;
  pointer-events: none;
  background: transparent;
}

.scroll-progress__bar {
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--lime) 55%, var(--orange) 100%);
}

/* ---------- 11. 断点 ---------- */
@media (max-width: 1180px) {
  .header-status { display: none; }
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand { grid-column: 1 / -1; }
}

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

  .header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    margin: 0;
    padding: 10px var(--edge) 22px;
    background: var(--ink-2);
    border-bottom: 3px solid var(--cyan);
    box-shadow: 0 16px 0 rgba(0, 0, 0, .35);
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    z-index: 5;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-list a {
    display: block;
    padding: 14px 6px;
    font-size: 15px;
    letter-spacing: .08em;
    border-bottom: 1px solid var(--steel);
  }

  .nav-list a[aria-current="page"] { padding-inline: 14px; }

  .header-actions .btn--quiet { display: none; }

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

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-brand { grid-column: auto; }
  .footer-base { justify-content: flex-start; }
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .header-frame { gap: 10px; padding-block: 9px; }
  .brand__sub { display: none; }
  .brand__mark { font-size: 23px; padding: 7px 8px 5px; box-shadow: 4px 4px 0 var(--steel); }
  .brand__name { font-size: 15px; letter-spacing: .12em; }
  .btn { padding: 10px 12px; font-size: 10.5px; }
  .league-tab { padding: 7px 10px; font-size: 10px; }
  .media { box-shadow: 4px 4px 0 rgba(0, 0, 0, .45); }
}

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

  .status-dot { animation: none; }

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

  [data-league-item] { transition: none; }

  .brand:hover .brand__mark,
  .btn--accent:hover { transform: none; }
}
