/* ==========================================================================
   趣体育 / 共享样式表  /assets/site.css
   赛程手帐视觉体系：奶油纸底 · 高原青蓝 · 草场绿 · 荧光橙点色
   ========================================================================== */

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

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

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

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

a { color: var(--lake); text-decoration: none; }

table { border-collapse: collapse; width: 100%; }

#main-content { display: block; }

/* ---------- 2. 变量 ---------- */
:root {
  --paper: #F4EFE3;
  --white: #FFFDF8;
  --ink: #221C17;
  --lake: #0F4C63;
  --grass: #2E6B4F;
  --orange: #FF6A2B;
  --orange-deep: #E8551A;
  --yellow: #F2C14E;
  --mist: #C9DCE4;
  --lead: #6B6157;
  --deep: #0B2A34;

  --font-display: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, "Noto Sans Mono CJK SC", "Courier New", monospace;

  --shell: 1180px;
  --shell-narrow: 880px;
  --pad: clamp(16px, 4vw, 32px);
  --hairline: 1px solid var(--mist);
  --soft-shadow: 0 2px 8px rgba(34, 28, 23, 0.05);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --scroll-progress: 0;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100%;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 31px,
    rgba(201, 220, 228, 0.26) 31px 32px
  );
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: inherit;
}

strong, b { font-weight: 700; }

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

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

/* ---------- 4. 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.container--narrow { max-width: var(--shell-narrow); }

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.14em;
  color: var(--lake);
  text-transform: uppercase;
}

.lede {
  font-size: 19px;
  line-height: 1.8;
  font-weight: 500;
  color: var(--ink);
}

.prose {
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
}

.prose p { margin-bottom: 1.2em; }
.prose p:last-child { margin-bottom: 0; }
.prose h3 {
  margin: 1.6em 0 0.6em;
  font-size: 24px;
  line-height: 1.3;
}
.prose h4 {
  margin: 1.4em 0 0.5em;
  font-size: 19px;
  line-height: 1.4;
}
.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
  list-style: disc;
}
.prose li { margin-bottom: 0.5em; }

.divider {
  height: 1px;
  border: 0;
  margin: clamp(28px, 4vw, 48px) 0;
  background: var(--mist);
}

/* ---------- 5. 章节（手帐章节头） ---------- */
.chapter {
  position: relative;
  padding: clamp(52px, 7vw, 96px) 0;
  border-top: var(--hairline);
}

.chapter--deep {
  background: var(--deep);
  color: var(--paper);
  border-top-color: transparent;
}
.chapter--deep .chapter__num {
  color: rgba(244, 239, 227, 0.16);
  -webkit-text-stroke: 1px rgba(244, 239, 227, 0.42);
}
.chapter--deep .chapter__lede { color: rgba(244, 239, 227, 0.76); }
.chapter--deep .eyebrow { color: var(--yellow); }

.chapter__head { max-width: 780px; }

.chapter__num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(46px, 7vw, 88px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: rgba(15, 76, 99, 0.13);
  -webkit-text-stroke: 1px rgba(15, 76, 99, 0.42);
}

.chapter__title {
  margin-top: 10px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.16;
}

.chapter__lede {
  margin-top: 18px;
  font-size: 19px;
  line-height: 1.8;
  font-weight: 500;
  color: var(--lead);
}

.chapter__band {
  display: block;
  width: 72px;
  height: 5px;
  margin-top: 24px;
  background: var(--orange);
  border-radius: 1px;
}

/* ---------- 6. 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(18px, 3vw, 32px);
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(170px, 220px) minmax(0, 1fr); }

/* ---------- 7. 卡片 ---------- */
.card {
  background: var(--white);
  border: var(--hairline);
  border-radius: 2px;
  padding: clamp(18px, 2.4vw, 26px);
  box-shadow: var(--soft-shadow);
  min-width: 0;
}

.card--offset:nth-child(3n + 2) { margin-top: 8px; }
.card--offset:nth-child(3n + 3) { margin-top: 4px; }

.card__title {
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 10px;
}

.card__meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: var(--lead);
  margin-bottom: 10px;
}

.card__body {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
}

/* ---------- 8. 比分与轮次（等宽数字级） ---------- */
.score {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  min-width: 0;
}

.score__num {
  display: inline-block;
  padding: 2px 10px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 2px;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.score--hot .score__num {
  background: var(--orange);
  color: #fff;
}

.score__label {
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: var(--lead);
}

/* ---------- 9. 标签流 ---------- */
.tag-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--mist);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.tag:hover {
  border-color: var(--lake);
  color: var(--lake);
}

.tag[aria-pressed="true"],
.tag.tag--on {
  border-color: var(--orange);
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--orange);
  font-weight: 700;
}

/* ---------- 10. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.btn--primary:hover { background: var(--orange-deep); border-color: var(--orange-deep); }
.btn--primary:active { transform: translateY(1px); }

.btn--ghost {
  background: var(--white);
  border-color: var(--mist);
  color: var(--lake);
}
.btn--ghost:hover { border-color: var(--lake); }

.btn--quiet {
  padding-inline: 0;
  border-color: transparent;
  box-shadow: inset 0 -2px 0 var(--orange);
}
.btn--quiet:hover { color: var(--lake); }

/* ---------- 11. 面包屑 ---------- */
.crumbs { margin-bottom: 28px; }

.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--lead);
}

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

.crumbs__item + .crumbs__item::before {
  content: "／";
  color: var(--lead);
  opacity: 0.45;
}

.crumbs__link {
  color: var(--lake);
  text-decoration: none;
}
.crumbs__link:hover { text-decoration: underline; }

.crumbs__current { color: var(--lead); }

/* ---------- 12. 图片容器基础规则 ---------- */
.media { margin: 0; }

.media__frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--mist);
  border-radius: 2px;
  background: var(--mist);
  box-shadow: var(--soft-shadow);
}

.media__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.media__caption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--lead);
}

/* ---------- 13. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  padding: 10px 22px;
  background: var(--orange);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 0 0 3px 3px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* ---------- 14. 刊头 ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--paper);
  border-bottom: var(--hairline);
  transition: box-shadow 0.24s var(--ease);
}

.masthead.is-condensed { box-shadow: 0 2px 8px rgba(34, 28, 23, 0.08); }

.masthead__inner {
  position: relative;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(18px, 3vw, 30px) var(--pad) 0;
  transition: padding-top 0.24s var(--ease);
}

.masthead__brandrow {
  display: flex;
  justify-content: center;
  text-align: center;
}

.masthead__brand {
  display: block;
  color: var(--ink);
  text-decoration: none;
}

.masthead__mark {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1;
  letter-spacing: 0.08em;
  transition: font-size 0.24s var(--ease), letter-spacing 0.24s var(--ease);
}

.masthead__tagline {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.16em;
  color: var(--lead);
  transition: opacity 0.2s ease;
}

.masthead.is-condensed .masthead__inner { padding-top: 12px; }
.masthead.is-condensed .masthead__mark {
  font-size: 24px;
  letter-spacing: 0.14em;
}
.masthead.is-condensed .masthead__tagline { display: none; }
.masthead.is-condensed .masthead__navrow { margin-top: 8px; }
.masthead.is-condensed .site-nav__link { padding-block: 9px; }

.masthead__navrow {
  margin-top: clamp(16px, 2.4vw, 24px);
  border-top: var(--hairline);
  transition: margin-top 0.24s var(--ease);
}

/* ---------- 15. 栏目导航 ---------- */
.site-nav { display: block; }

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.site-nav__item { position: relative; }

.site-nav__item + .site-nav__item { border-left: var(--hairline); }

.site-nav__link {
  display: block;
  padding: 14px clamp(13px, 2.4vw, 30px);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.site-nav__link:hover {
  color: var(--lake);
  background: rgba(15, 76, 99, 0.06);
}

.site-nav__link[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  box-shadow: inset 0 -3px 0 var(--orange);
}

/* ---------- 16. 移动导航按钮 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin: 16px auto 0;
  padding: 10px 18px;
  background: var(--white);
  border: var(--hairline);
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: border-color 0.18s ease, color 0.18s ease;
}

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

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: background-color 0.18s ease;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.22s var(--ease);
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.nav-toggle.is-open .nav-toggle__bars { background: transparent; }
.nav-toggle.is-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.nav-toggle__label { white-space: nowrap; }

/* ---------- 17. 滚动进度线 ---------- */
.scroll-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
}

.scroll-bar__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--orange);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
  transition: transform 0.12s linear;
}

/* ---------- 18. 页脚 ---------- */
.site-foot {
  margin-top: clamp(40px, 7vw, 96px);
  background: var(--deep);
  color: var(--paper);
}

.site-foot__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(44px, 6vw, 76px) var(--pad) 28px;
}

.site-foot a { color: inherit; }

.site-foot__brandrow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(244, 239, 227, 0.16);
}

.site-foot__brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0.1em;
  color: var(--paper);
  text-decoration: none;
}

.site-foot__tagline {
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.14em;
  color: rgba(244, 239, 227, 0.62);
}

.site-foot__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
  padding: 34px 0;
}

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

.foot-col__title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.14em;
  color: var(--yellow);
  margin-bottom: 14px;
}

.foot-col__list {
  display: grid;
  gap: 10px;
}

.foot-col__link {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(244, 239, 227, 0.82);
  text-decoration: none;
  transition: color 0.18s ease;
}

.foot-col__link:hover { color: var(--orange); }

.site-foot__contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px 32px;
  padding: 24px 0;
  border-top: 1px solid rgba(244, 239, 227, 0.16);
  border-bottom: 1px solid rgba(244, 239, 227, 0.16);
}

.contact-item {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(244, 239, 227, 0.8);
  overflow-wrap: anywhere;
}

.contact-item__key {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.16em;
  color: var(--yellow);
}

.contact-note {
  grid-column: 1 / -1;
  font-size: 13px;
  line-height: 1.85;
  color: rgba(244, 239, 227, 0.58);
}

.site-foot__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 22px;
  padding-top: 22px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(244, 239, 227, 0.6);
}

.site-foot__icp { font-family: var(--font-mono); letter-spacing: 0.06em; }

.site-foot__bottom { letter-spacing: 0.04em; }

/* ---------- 19. 返回顶部 ---------- */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--deep);
  color: var(--paper);
  border: 1px solid rgba(244, 239, 227, 0.28);
  box-shadow: 0 2px 8px rgba(11, 42, 52, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s var(--ease), visibility 0.24s linear, background-color 0.18s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover { background: var(--lake); }

.back-to-top__icon {
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1;
}

/* ---------- 20. 动效协议 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-band] {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s var(--ease);
}

[data-band].is-visible { transform: scaleX(1); }

/* ---------- 21. 断点 ---------- */
@media (max-width: 980px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  body { font-size: 16.5px; }

  .masthead__inner { padding-top: 20px; }

  .masthead__mark {
    font-size: clamp(30px, 8vw, 44px);
    letter-spacing: 0.1em;
  }

  .masthead__tagline {
    font-size: 12px;
    letter-spacing: 0.1em;
    margin-top: 8px;
  }

  .masthead.is-condensed .masthead__mark {
    font-size: clamp(26px, 7vw, 34px);
    letter-spacing: 0.12em;
  }
  .masthead.is-condensed .masthead__tagline { display: block; }

  .nav-toggle { display: flex; }

  .masthead__navrow {
    margin-top: 14px;
    border-top: var(--hairline);
  }

  .site-nav {
    display: none;
    padding: 6px 0 16px;
  }

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

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav__item + .site-nav__item {
    border-left: 0;
    border-top: var(--hairline);
  }

  .site-nav__link {
    padding: 15px 6px;
    font-size: 17px;
    font-weight: 600;
  }

  .site-nav__link[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--orange);
    padding-left: 14px;
  }

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

  .card--offset:nth-child(n) { margin-top: 0; }

  .chapter__title { font-size: clamp(26px, 7vw, 36px); }
  .chapter__num { font-size: clamp(40px, 12vw, 62px); }
  .chapter__lede,
  .lede { font-size: 17.5px; }

  .site-foot__legal { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .site-foot__cols { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .site-foot__contact { grid-template-columns: minmax(0, 1fr); }

  .back-to-top {
    right: 14px;
    bottom: 16px;
    width: 46px;
    height: 46px;
  }
}

/* ---------- 22. 无障碍与偏好 ---------- */
@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;
  }

  [data-reveal],
  [data-band] {
    opacity: 1;
    transform: none;
  }

  .scroll-bar__fill { transition: none; }

  .back-to-top {
    transform: none;
    transition: opacity 0.001ms linear, visibility 0.001ms linear;
  }
}

@media (forced-colors: active) {
  .masthead,
  .site-foot,
  .card,
  .media__frame { border: 1px solid CanvasText; }
  .site-nav__link[aria-current="page"] { outline: 2px solid CanvasText; }
}
