/* =========================================================
   /assets/site.css — 冠军体育CN中文站 共享外壳
   ========================================================= */

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

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

body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink-900: #08251F;
  --ink-800: #0B2E27;
  --green-700: #103B31;
  --track-red: #D6402F;
  --track-deep: #A9281E;
  --signal: #47F0C5;
  --cyan-dark: #006B53;
  --off-white: #F3EFE4;
  --paper: #FCFAF4;
  --graphite: #141C19;
  --steel: #5F716A;
  --sand: #CFC7B5;
  --amber: #F0B44C;

  --rail-w: clamp(96px, 8vw, 132px);
  --bar-h: 76px;
  --gutter: clamp(16px, 3vw, 34px);
  --maxw: 1320px;

  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 26px;

  --shadow-1: 0 1px 0 rgba(8, 37, 31, .05), 0 14px 30px -22px rgba(8, 37, 31, .75);

  --font-display: "Oswald", "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", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  padding-left: var(--rail-w);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--graphite);
  background: var(--off-white);
  overflow-x: hidden;
}

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

h1 { font-size: clamp(36px, 6vw, 76px); }
h2 { font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-size: clamp(21px, 2.2vw, 27px); }

strong, b { font-weight: 700; }

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

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(8, 37, 31, .55);
  border-radius: 3px;
}

.u-nav-locked { overflow: hidden; }

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: calc(var(--rail-w) + 16px);
  z-index: 300;
  padding: 10px 18px;
  border-radius: var(--radius-s);
  background: var(--signal);
  color: var(--ink-900);
  font-weight: 700;
  font-size: 14px;
  transform: translateY(-220%);
  transition: transform .18s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 5. Header shell ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
}

/* 5.1 品牌轨道 */
.site-header__rail {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  width: var(--rail-w);
  padding: 22px 0 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: var(--ink-900);
  border-right: 1px solid rgba(71, 240, 197, .18);
}

.site-header__rail::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 92px;
  height: 5px;
  background: var(--track-red);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-align: center;
  color: var(--off-white);
}

.brand__mark {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  border: 2px solid var(--signal);
  border-radius: 50%;
  transition: transform .2s var(--ease);
}
.brand__mark::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid rgba(243, 239, 228, .55);
  border-radius: 50%;
}
.brand__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 2px;
  height: 13px;
  background: var(--track-red);
  transform: translateX(-50%);
}
.brand:hover .brand__mark { transform: rotate(-12deg); }

.brand__name {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  letter-spacing: .3em;
}

.brand__sub {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .32em;
  color: var(--signal);
  opacity: .88;
}

.rail__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.rail__chip {
  padding: 3px 7px;
  border-radius: 3px;
  background: var(--track-red);
  color: #fff;
  font-size: 10px;
  letter-spacing: .14em;
}
.rail__year {
  font-size: 10.5px;
  color: rgba(243, 239, 228, .55);
  letter-spacing: .1em;
}

/* 5.2 顶部横条 */
.site-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--bar-h);
  padding: 0 var(--gutter);
  background: rgba(243, 239, 228, .95);
  border-bottom: 1px solid var(--sand);
  transition: box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.site-header.is-scrolled .site-header__bar {
  box-shadow: 0 16px 26px -24px rgba(8, 37, 31, .95);
  background: rgba(252, 250, 244, .98);
}

.bar__kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan-dark);
  white-space: nowrap;
}
.bar__dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--track-red);
  animation: dot-pulse 3.4s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

/* 5.3 导航 */
.site-header__nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.primary-nav__link {
  position: relative;
  display: inline-block;
  padding: 10px 12px;
  border-radius: var(--radius-s);
  font-size: 15px;
  font-weight: 500;
  color: var(--graphite);
  transition: color .16s var(--ease), background-color .16s var(--ease);
}
.primary-nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--track-red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .2s var(--ease);
}
.primary-nav__link:hover { color: var(--track-deep); }
.primary-nav__link:hover::after { transform: scaleX(1); }

.primary-nav__link[aria-current="page"] {
  background: var(--ink-900);
  color: var(--paper);
}
.primary-nav__link[aria-current="page"]::after {
  left: 8px;
  right: 8px;
  bottom: 5px;
  background: var(--signal);
  transform: scaleX(1);
}

.drawer__head,
.drawer__note { display: none; }

.header__cta { margin-left: 6px; }

/* 5.4 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 14px 9px 12px;
  border: 1px solid var(--sand);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-900);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
}
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--track-red);
  transition: transform .18s var(--ease), top .18s var(--ease);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 4px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 4px; transform: rotate(-45deg); }

/* 5.5 遮罩 / 进度线 / 回到顶部 */
.nav-scrim { display: none; }

.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}
.scroll-meter__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--track-red);
  transform: scaleX(0);
  transform-origin: left center;
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 75;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(71, 240, 197, .42);
  background: var(--ink-900);
  color: var(--signal);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), border-color .18s var(--ease);
}
.to-top[data-visible] { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { border-color: var(--signal); }
.to-top__icon {
  width: 10px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg) translate(1px, 1px);
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: background-color .16s var(--ease), color .16s var(--ease),
              border-color .16s var(--ease), transform .16s var(--ease);
}
.btn--primary {
  background: var(--track-red);
  color: #fff;
}
.btn--primary:hover { background: var(--track-deep); transform: translateY(-1px); }
.btn--ghost {
  background: var(--paper);
  border-color: var(--sand);
  color: var(--ink-900);
}
.btn--ghost:hover { border-color: var(--signal); color: var(--cyan-dark); transform: translateY(-1px); }
.btn--block { width: 100%; }

/* ---------- 7. Layout & content ---------- */
.page-shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(40px, 6vw, 84px); }
.section--dark { background: var(--ink-900); color: var(--off-white); }
.section--band { background: var(--green-700); color: var(--off-white); }
.section--paper { background: var(--paper); }

.grid {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
}
.grid--7-5 { grid-template-columns: 7fr 5fr; }
.grid--8-4 { grid-template-columns: 8fr 4fr; }
.grid--4-8 { grid-template-columns: 4fr 8fr; }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-block: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--steel);
}
.breadcrumb a { color: var(--cyan-dark); border-bottom: 1px solid transparent; transition: color .16s, border-color .16s; }
.breadcrumb a:hover { color: var(--track-deep); border-bottom-color: var(--track-deep); }
.breadcrumb__sep { color: var(--sand); }
.breadcrumb [aria-current="page"] { color: var(--graphite); }

.prose {
  max-width: 46rem;
  font-size: 17px;
  line-height: 1.8;
  color: var(--graphite);
}
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); margin-top: 1.7em; }
.prose h3 { font-size: clamp(19px, 2vw, 23px); margin-top: 1.5em; }
.prose a { color: var(--cyan-dark); border-bottom: 1px solid rgba(0, 107, 83, .4); }
.prose a:hover { color: var(--track-deep); border-bottom-color: var(--track-deep); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose blockquote {
  border-left: 4px solid var(--track-red);
  padding: 4px 0 4px 18px;
  color: var(--steel);
  font-size: 18px;
}

.card {
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--sand);
  border-radius: var(--radius-m);
  background: var(--paper);
  transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--signal);
  box-shadow: var(--shadow-1);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(8, 37, 31, .08);
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.tag--signal { background: var(--signal); color: var(--ink-900); }
.tag--red { background: var(--track-red); color: #fff; }
.tag--amber { background: var(--amber); color: var(--ink-900); }

/* ---------- 8. Media frame base ---------- */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-m);
  background: var(--green-700);
}
.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(243, 239, 228, .07) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(0deg, rgba(243, 239, 228, .07) 0 1px, transparent 1px 34px);
  pointer-events: none;
}
.media-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame__badge {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 12px;
  padding: 4px 9px;
  border-radius: 3px;
  background: var(--ink-900);
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
}
.media-frame__caption {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 9px 13px;
  background: rgba(8, 37, 31, .9);
  color: var(--off-white);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}

/* ---------- 9. Footer ---------- */
.site-footer {
  position: relative;
  background: var(--ink-900);
  color: var(--off-white);
  padding-top: 6px;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 32%;
  min-width: 140px;
  height: 6px;
  background: var(--track-red);
}

.footer__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(34px, 5vw, 62px) var(--gutter) clamp(26px, 4vw, 42px);
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
}

.footer__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(21px, 2.3vw, 29px);
  letter-spacing: .03em;
  line-height: 1.2;
}
.footer__summary {
  margin-top: 12px;
  max-width: 28ch;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(243, 239, 228, .72);
}
.footer__meta {
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--signal);
}

.footer__heading {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--signal);
}
.footer__links li + li { margin-top: 9px; }
.footer__links a {
  font-size: 15px;
  color: rgba(243, 239, 228, .82);
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.footer__links a:hover { color: var(--signal); border-bottom-color: rgba(71, 240, 197, .6); }
.footer__links a[aria-current="page"] { color: var(--signal); border-bottom-color: var(--signal); }

.footer__contact {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(20px, 3vw, 30px) var(--gutter) clamp(22px, 3vw, 34px);
  border-top: 1px solid rgba(243, 239, 228, .14);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px 30px;
}
.footer__contact-item { min-width: 0; }
.footer__contact dt {
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(243, 239, 228, .5);
}
.footer__contact dd {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(243, 239, 228, .92);
  word-break: break-word;
}

.footer__base {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 18px var(--gutter) calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(243, 239, 228, .14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  font-size: 12.5px;
  color: rgba(243, 239, 228, .62);
}
.footer__legal { letter-spacing: .02em; }
.footer__note { max-width: 46ch; line-height: 1.6; }

/* ---------- 10. 响应式 ---------- */
@media (max-width: 1180px) {
  .bar__kicker { display: none; }
}

@media (max-width: 1024px) {
  .primary-nav__link { padding: 9px 9px; font-size: 14px; }
  .header__cta { padding: 10px 15px; font-size: 13.5px; }
  .footer__inner { grid-template-columns: minmax(200px, 1.2fr) repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  body { padding-left: 0; }

  .skip-link { left: 16px; }

  .site-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 var(--gutter);
    min-height: 64px;
    background: var(--ink-900);
    border-bottom: 1px solid rgba(71, 240, 197, .18);
  }

  .site-header__rail {
    position: static;
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    background: none;
    border-right: 0;
  }
  .site-header__rail::after { display: none; }

  .brand { flex-direction: row; align-items: center; gap: 10px; text-align: left; }
  .brand__mark { width: 26px; height: 26px; border-width: 2px; }
  .brand__mark::before { inset: 4px; }
  .brand__mark::after { height: 9px; top: -4px; }
  .brand__name {
    writing-mode: horizontal-tb;
    font-size: 19px;
    letter-spacing: .12em;
  }
  .brand__sub {
    writing-mode: horizontal-tb;
    font-size: 9.5px;
    letter-spacing: .14em;
    line-height: 1.4;
  }

  .rail__foot { display: none; }

  .site-header__bar {
    position: static;
    flex: 0 0 auto;
    min-height: 0;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
  }
  .site-header.is-scrolled .site-header__bar { background: none; box-shadow: none; }

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

  .site-header__nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    margin-left: 0;
    max-height: 84vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
    border-radius: var(--radius-l) var(--radius-l) 0 0;
    background: var(--ink-900);
    color: var(--off-white);
    border-top: 2px solid var(--track-red);
    transform: translateY(102%);
    visibility: hidden;
    transition: transform .24s var(--ease), visibility .24s var(--ease);
  }
  .site-header__nav[data-open] {
    transform: translateY(0);
    visibility: visible;
  }

  .drawer__head {
    display: block;
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--signal);
  }
  .drawer__note {
    display: block;
    font-size: 12px;
    color: rgba(243, 239, 228, .55);
    letter-spacing: .04em;
  }

  .primary-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav__list li + li { border-top: 1px solid rgba(207, 199, 181, .18); }
  .primary-nav__link {
    display: block;
    padding: 15px 10px;
    font-size: 19px;
    font-weight: 500;
    color: var(--off-white);
    border-radius: 0;
  }
  .primary-nav__link::after { display: none; }
  .primary-nav__link:hover,
  .primary-nav__link:focus-visible { color: var(--signal); background: rgba(71, 240, 197, .08); }
  .primary-nav__link[aria-current="page"] {
    background: rgba(71, 240, 197, .12);
    color: var(--signal);
    box-shadow: inset 3px 0 0 var(--track-red);
  }

  .header__cta { width: 100%; margin-left: 0; padding: 14px 20px; font-size: 15px; }

  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 85;
    background: rgba(8, 37, 31, .62);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s var(--ease);
  }
  .nav-scrim[data-open] { opacity: 1; pointer-events: auto; }

  .grid--7-5,
  .grid--8-4,
  .grid--4-8 { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__contact { grid-template-columns: 1fr; }
  .footer__base { flex-direction: column; align-items: flex-start; }

  .to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .footer__inner { grid-template-columns: 1fr; gap: 26px; }
  .brand__sub { display: none; }
}

/* ---------- 11. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }
  .to-top { transform: none; }
}
