/* ==========================================================================
   四季体育赛场 · 共享样式表 /assets/site.css
   分屏框架 · 印刷边框 · 四季赛季色体系
   ========================================================================== */

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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

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

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

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

a { color: inherit; }

hr { border: 0; }

/* ---------- 1. 变量 ---------- */
:root {
  --ink: #0D1A2F;
  --ink-2: #14243D;
  --ink-3: #1B3050;

  --spring: #2FB68A;
  --summer: #FF6A2B;
  --summer-deep: #C2400F;
  --autumn: #D89A28;
  --winter: #4FB2E3;

  --paper: #F4EFE4;
  --paper-2: #E6E9EF;
  --black: #12151A;
  --gray: #7C8798;
  --signal: #FFD24A;

  --season-accent: #2FB68A;
  --season-ink: #1B7A5C;

  --accent: var(--season-accent);
  --accent-ink: var(--season-ink);

  --rail: 288px;
  --page-max: 1480px;
  --gutter: clamp(18px, 4vw, 48px);

  --rule: rgba(13, 26, 47, 0.18);
  --rule-soft: rgba(13, 26, 47, 0.09);
  --rule-dark: rgba(244, 239, 228, 0.22);
  --rule-dark-soft: rgba(244, 239, 228, 0.10);

  --font-display: "Noto Sans SC Condensed", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --dur: 160ms;
}

html[data-season="summer"] { --season-accent: #FF6A2B; --season-ink: #C2400F; }
html[data-season="autumn"] { --season-accent: #D89A28; --season-ink: #8E6410; }
html[data-season="winter"] { --season-accent: #4FB2E3; --season-ink: #1F6E9C; }

/* ---------- 2. 中文排版基底 ---------- */
body {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.01em;
  color: var(--black);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 640px) {
  body { font-size: 16px; }
}

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

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

/* ---------- 3. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 400;
  transform: translateY(-220%);
  padding: 11px 20px;
  background: var(--signal);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 2px;
  transition: transform var(--dur) var(--ease);
}

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

#main-content { scroll-margin-top: 110px; }

/* ---------- 4. 顶部框架 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 3px solid var(--accent);
}

.header-frame {
  position: relative;
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  align-items: center;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 86px;
}

/* 品牌 */
.brand-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--paper);
}

.brand-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  line-height: 1;
  border-radius: 2px;
  transition: background-color var(--dur) var(--ease);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  line-height: 1.05;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-tag {
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.14em;
  color: rgba(244, 239, 228, 0.52);
  white-space: nowrap;
}

/* 赛季色标 */
.season-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.season-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 4px;
  border: 1px solid rgba(244, 239, 228, 0.26);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.14em;
  color: rgba(244, 239, 228, 0.72);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.season-chip:hover {
  border-color: var(--paper);
  color: var(--paper);
}

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

.season-chip__dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
}

.season-chip[data-season="spring"] .season-chip__dot { background: var(--spring); }
.season-chip[data-season="summer"] .season-chip__dot { background: var(--summer); }
.season-chip[data-season="autumn"] .season-chip__dot { background: var(--autumn); }
.season-chip[data-season="winter"] .season-chip__dot { background: var(--winter); }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1.5px solid rgba(244, 239, 228, 0.38);
  border-radius: 2px;
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

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

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) 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(-6px) rotate(-45deg); }

/* 框架式导航 */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(8px, 1.6vw, 26px);
  margin-left: auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(0px, 0.5vw, 10px);
}

.nav-list a {
  position: relative;
  display: inline-block;
  padding: 10px 9px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: rgba(244, 239, 228, 0.82);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 2px;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 5px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease);
}

.nav-list a:hover { color: #FFFFFF; }
.nav-list a:hover::after { transform: scaleX(1); }

.nav-list a[aria-current="page"] {
  background: var(--accent);
  color: var(--ink);
}

.nav-list a[aria-current="page"]::after { display: none; }

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

.btn--primary:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(244, 239, 228, 0.5);
  color: var(--paper);
}

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

.btn--ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn--ink:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

.btn--outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  color: var(--paper);
}

.nav-cta { flex: none; padding: 10px 18px; }

/* ---------- 6. 版式容器与通用零件 ---------- */
.content-wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding: clamp(40px, 6vw, 84px) 0; }
.section--tight { padding: clamp(24px, 3.4vw, 48px) 0; }

.measure { max-width: 34em; }

.prose {
  max-width: 38em;
  font-size: 17px;
  line-height: 1.8;
}

.prose > p + p { margin-top: 1.05em; }

.prose h2,
.prose h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.prose h2 { font-size: clamp(20px, 2.4vw, 30px); margin-top: 1.9em; }
.prose h3 { font-size: clamp(18px, 1.8vw, 22px); margin-top: 1.6em; }

.prose ul,
.prose ol {
  margin-top: 1em;
  padding-left: 1.3em;
}

.prose li { margin-top: 0.45em; }

.prose a {
  color: var(--accent-ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: opacity var(--dur) var(--ease);
}

.prose a:hover { opacity: 0.72; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.3;
  color: var(--accent-ink);
}

.eyebrow::before {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
}

/* 面包屑 */
.breadcrumb { margin-bottom: 22px; }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--gray);
}

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

.breadcrumb li + li::before {
  content: "／";
  margin: 0 8px;
  opacity: 0.55;
}

.breadcrumb a {
  color: var(--gray);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.breadcrumb a:hover {
  color: var(--accent-ink);
  border-bottom-color: currentColor;
}

.breadcrumb [aria-current="page"] {
  color: var(--black);
  font-weight: 700;
}

/* 网格 */
.grid { display: grid; gap: clamp(16px, 2.2vw, 30px); }
.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)); }

/* 卡片与标签 */
.panel {
  position: relative;
  padding: clamp(18px, 2.2vw, 28px);
  background: var(--paper);
  border: 1px dashed var(--rule);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px 5px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  color: var(--gray);
}

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

/* 记分牌数字 */
.stat { display: grid; gap: 6px; }

.stat__value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 44px);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.stat__label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gray);
}

/* ---------- 7. 图片容器（供页面阶段使用） ---------- */
.img-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--rule);
  isolation: isolate;
}

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

.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(79, 178, 227, 0.16), rgba(13, 26, 47, 0.44));
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}

.img-frame[data-ratio="16x9"] { aspect-ratio: 16 / 9; }
.img-frame[data-ratio="4x3"] { aspect-ratio: 4 / 3; }
.img-frame[data-ratio="3x4"] { aspect-ratio: 3 / 4; }
.img-frame[data-ratio="1x1"] { aspect-ratio: 1 / 1; }

.img-frame--tilt { transform: rotate(-1.1deg); }

.img-stack { position: relative; }

.img-stack::before {
  content: "";
  position: absolute;
  inset: 10px -10px -10px 10px;
  z-index: 0;
  border: 1px solid var(--rule);
  background: repeating-linear-gradient(
    135deg,
    rgba(13, 26, 47, 0.10) 0 2px,
    transparent 2px 8px
  );
}

.img-stack .img-frame {
  position: relative;
  z-index: 1;
  transition: transform var(--dur) var(--ease);
}

.img-stack:hover .img-frame { transform: translateY(-4px); }

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  background: var(--ink);
  color: rgba(244, 239, 228, 0.78);
  border-top: 3px solid var(--accent);
}

.footer-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) var(--gutter) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.5fr;
  gap: clamp(24px, 3.4vw, 52px);
  padding-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 1px dashed var(--rule-dark);
}

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

.footer-col--brand .brand { margin-bottom: 0; }

.brand--footer .brand-name { color: var(--paper); }

.footer-claim {
  margin-top: 14px;
  max-width: 20em;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: rgba(244, 239, 228, 0.68);
}

.footer-heading {
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule-dark-soft);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.3;
  color: var(--accent);
}

.footer-list {
  display: grid;
  gap: 9px;
  font-size: 14.5px;
  line-height: 1.6;
}

.footer-list li { min-width: 0; }

.footer-list .is-plain { color: rgba(244, 239, 228, 0.55); }

.footer-list a {
  display: inline;
  color: rgba(244, 239, 228, 0.8);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size var(--dur) var(--ease), color var(--dur) var(--ease);
}

.footer-list a:hover {
  color: var(--paper);
  background-size: 100% 1px;
}

.footer-list--contact {
  gap: 10px;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  padding: 20px 0 26px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(244, 239, 228, 0.52);
}

.footer-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 6px;
}

.footer-band span {
  display: block;
  opacity: 0.28;
  transition: opacity 200ms var(--ease);
}

.footer-band span:nth-child(1) { background: var(--spring); }
.footer-band span:nth-child(2) { background: var(--summer); }
.footer-band span:nth-child(3) { background: var(--autumn); }
.footer-band span:nth-child(4) { background: var(--winter); }

html:not([data-season]) .footer-band span:nth-child(1),
html[data-season="spring"] .footer-band span:nth-child(1),
html[data-season="summer"] .footer-band span:nth-child(2),
html[data-season="autumn"] .footer-band span:nth-child(3),
html[data-season="winter"] .footer-band span:nth-child(4) { opacity: 1; }

/* ---------- 9. 滚动进度 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 500;
  width: 0;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--spring), var(--summer), var(--autumn), var(--winter));
  transition: width 100ms linear;
}

/* ---------- 10. 工具类 ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 11. 响应式 ---------- */
@media (max-width: 1200px) {
  :root { --rail: 250px; }
  .brand-tag { letter-spacing: 0.1em; }
}

@media (max-width: 1080px) {
  .header-frame {
    grid-template-columns: 1fr auto;
    min-height: 68px;
    align-items: center;
  }

  .brand-cell {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
  }

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 12px var(--gutter) 24px;
    background: var(--ink);
    border-bottom: 3px solid var(--accent);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }

  .site-nav[data-open] { display: flex; }

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

  .nav-list a {
    display: block;
    padding: 14px 14px 14px 18px;
    border-bottom: 1px dashed var(--rule-dark-soft);
    border-left: 3px solid transparent;
    border-radius: 0;
  }

  .nav-list a::after { display: none; }

  .nav-list a:hover {
    background: rgba(244, 239, 228, 0.05);
    color: var(--paper);
  }

  .nav-list a[aria-current="page"] {
    background: rgba(244, 239, 228, 0.07);
    color: var(--paper);
    border-left-color: var(--accent);
  }

  .nav-cta {
    width: 100%;
    margin-top: 18px;
    padding: 13px 20px;
  }
}

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

@media (max-width: 640px) {
  .brand-cell {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .brand-name { font-size: 17px; }

  .season-chip { padding: 3px 8px 4px; font-size: 10.5px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }

  .img-stack::before { inset: 8px -6px -8px 8px; }
  .img-frame--tilt { transform: none; }
}

/* ---------- 12. 动效降级 ---------- */
@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;
  }

  .img-stack:hover .img-frame { transform: none; }
  .img-frame--tilt { transform: none; }
  .scroll-progress { transition: none; }
}
