/* ==========================================================
   大江体育 · Site Kit 共享样式
   设计语言：纵向体育长卷 / 侧轨导航 / 复古出版 × 体育动感
   文件：/assets/site.css
   ========================================================== */

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-ink);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

a {
  color: var(--color-orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

::selection {
  background: var(--color-orange);
  color: #fff;
}

/* ---------- 2. Tokens ---------- */
:root {
  --color-cream: #F5E9D8;
  --color-cream-dark: #E8DAC8;
  --color-ink: #1E1B18;
  --color-ink-soft: #3B3732;
  --color-orange: #FF4E00;
  --color-orange-bright: #FF9A00;
  --color-deep-blue: #1A2F3E;
  --color-gold: #C9A227;
  --color-white: #FFFFFF;

  --font-display: Impact, "Arial Black", "PingFang SC", "Heiti SC", "Microsoft YaHei", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --container: 1200px;
  --header-h: 64px;
  --header-rail: 100px;
  --radius: 16px;
  --gap: 1.5rem;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. Focus & Accessibility ---------- */
:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 1300;
  display: inline-block;
  padding: .75rem 1.25rem;
  background: var(--color-orange);
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(30, 27, 24, .25);
  transition: top .2s var(--ease);
}

.skip-link:focus-visible {
  top: 1rem;
}

body.has-open-nav {
  overflow: hidden;
}

/* ---------- 4. Reading Progress ---------- */
.page-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1200;
  background: rgba(255, 255, 255, .1);
  pointer-events: none;
}

.page-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, var(--color-orange), var(--color-gold));
}

/* ---------- 5. Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem;
  background-color: var(--color-deep-blue);
  color: var(--color-white);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .25rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-orange), var(--color-gold));
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(255, 78, 0, .45);
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .06em;
  white-space: nowrap;
}

.brand-name em {
  font-style: normal;
  font-size: .56rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin-top: .15rem;
}

/* ---------- 6. Nav Toggle ---------- */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem .9rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}

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

.nav-toggle__bars {
  position: relative;
  width: 18px;
  height: 14px;
}

.nav-toggle__bar {
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .3s var(--ease), width .3s var(--ease);
}

.nav-toggle__bar--top { top: 0; }
.nav-toggle__bar--mid { top: 6px; }
.nav-toggle__bar--bot { top: 12px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bar--top {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar--mid {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar--bot {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- 7. Site Nav ---------- */
.site-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  bottom: 0;
  z-index: 950;
  width: min(320px, 86vw);
  padding: 1.75rem 1.5rem;
  background: rgba(26, 47, 62, .98);
  box-shadow: 12px 0 32px rgba(0, 0, 0, .2);
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform .35s var(--ease), visibility 0s linear .35s;
}

.site-nav[data-open="true"] {
  transform: translateX(0);
  visibility: visible;
  transition: transform .35s var(--ease), visibility 0s;
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.site-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .8rem 1rem;
  border-radius: 12px;
  color: rgba(255, 255, 255, .72);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .04em;
  text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease);
}

.site-nav__num {
  font-family: var(--font-display);
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--color-gold);
  opacity: .75;
  min-width: 1.5rem;
}

.site-nav__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, .07);
}

.site-nav__link[aria-current="page"] {
  color: #fff;
  background: linear-gradient(90deg, rgba(255, 78, 0, .28), rgba(255, 78, 0, .08));
}

.site-nav__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 20%;
  bottom: 20%;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--color-orange), var(--color-gold));
}

.site-nav__link[aria-current="page"] .site-nav__num {
  opacity: 1;
}

.site-nav__link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, .06);
}

.site-nav__link.is-active .site-nav__num {
  opacity: 1;
  color: var(--color-orange-bright);
}

/* ---------- 8. Header Meta ---------- */
.site-header__meta {
  display: none;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .22em;
  color: rgba(255, 255, 255, .6);
  text-transform: uppercase;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-orange);
  animation: live-pulse 2s ease-out infinite;
}

.site-header__meta-text {
  font-size: .5625rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 78, 0, .55); }
  70% { box-shadow: 0 0 0 7px rgba(255, 78, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 78, 0, 0); }
}

/* ---------- 9. Footer ---------- */
.site-footer {
  background-color: var(--color-deep-blue);
  color: rgba(255, 255, 255, .72);
  font-size: .9375rem;
  line-height: 1.75;
}

.site-footer__top {
  padding: 3.5rem 0 3rem;
}

.site-footer__bottom {
  background: rgba(0, 0, 0, .22);
}

.site-footer__bottom .site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.4rem;
  font-size: .8125rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.25rem;
}

.brand-link--footer {
  margin-bottom: 1.4rem;
}

.footer-brand__desc {
  max-width: 34ch;
  color: rgba(255, 255, 255, .62);
  margin-bottom: 1.25rem;
}

.footer-brand__trust {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .4rem 1rem;
  border-radius: 999px;
  background: rgba(201, 162, 39, .1);
  border: 1px solid rgba(201, 162, 39, .32);
  font-size: .8125rem;
  color: var(--color-gold);
}

.trust-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-orange);
}

.footer-nav__title {
  font-family: var(--font-display);
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.25rem;
}

.footer-nav__list {
  display: grid;
  gap: .6rem;
}

.footer-nav__list a {
  color: rgba(255, 255, 255, .68);
  text-decoration: none;
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}

.footer-nav__list a:hover {
  color: #fff;
  padding-left: .4rem;
}

.footer-contact__address {
  font-style: normal;
  display: grid;
  gap: .65rem;
}

.footer-contact__item {
  display: flex;
  gap: .5rem;
  align-items: baseline;
  color: rgba(255, 255, 255, .68);
}

.footer-contact__item--note {
  font-size: .8125rem;
  color: rgba(255, 255, 255, .45);
}

.footer-copyright,
.footer-icp {
  color: rgba(255, 255, 255, .55);
}

.footer-statement {
  flex-basis: 100%;
  color: rgba(255, 255, 255, .4);
}

/* ---------- 10. Layout Helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section--tint {
  background: var(--color-cream-dark);
}

.section--dark {
  background: var(--color-deep-blue);
  color: rgba(255, 255, 255, .88);
}

.section--contrast {
  background: var(--color-ink);
  color: var(--color-cream);
}

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

/* ---------- 11. Section Typography ---------- */
.section-head {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: .75rem;
}

.section-label::before {
  content: "";
  width: 2rem;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--color-orange), var(--color-gold));
}

.section-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1;
  color: var(--color-orange);
  margin-bottom: .25rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  font-weight: 800;
  color: var(--color-ink);
}

.section-intro {
  margin-top: .9rem;
  max-width: 62ch;
  color: var(--color-ink-soft);
  font-size: 1.0625rem;
}

.section--dark .section-title { color: #fff; }
.section--dark .section-label { color: var(--color-orange-bright); }
.section--dark .section-num { color: var(--color-orange-bright); }
.section--dark .section-intro { color: rgba(255, 255, 255, .72); }
.section--contrast .section-title { color: var(--color-cream); }
.section--contrast .section-intro { color: rgba(245, 233, 216, .75); }

.annotation {
  writing-mode: vertical-rl;
  font-size: .75rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

/* ---------- 12. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: .9375rem;
  letter-spacing: .08em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}

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

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-orange), var(--color-orange-bright));
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 78, 0, .28);
}

.btn--primary:hover {
  box-shadow: 0 12px 28px rgba(255, 78, 0, .36);
}

.btn--ghost {
  border-color: var(--color-orange);
  color: var(--color-orange);
  background: transparent;
}

.btn--ghost:hover {
  background: rgba(255, 78, 0, .08);
}

.btn--gold {
  background: var(--color-gold);
  color: var(--color-ink);
  box-shadow: 0 8px 20px rgba(201, 162, 39, .3);
}

/* ---------- 13. Cards ---------- */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-cream-dark);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 10px 28px rgba(30, 27, 24, .06);
}

.card--dark {
  background: var(--color-deep-blue);
  border-color: transparent;
  color: rgba(255, 255, 255, .85);
}

.card--accent {
  background: linear-gradient(135deg, var(--color-orange), var(--color-orange-bright));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 30px rgba(255, 78, 0, .28);
}

.card__title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: .5rem;
}

.card__text {
  color: var(--color-ink-soft);
}

.card--dark .card__title { color: #fff; }
.card--dark .card__text { color: rgba(255, 255, 255, .75); }
.card--accent .card__text { color: rgba(255, 255, 255, .9); }

/* ---------- 14. Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .28rem .85rem;
  border-radius: 999px;
  background: var(--color-gold);
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.badge--outline {
  background: transparent;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
}

/* ---------- 15. Image Frames ---------- */
.img-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--color-cream-dark);
}

.img-frame--16x9 { aspect-ratio: 16 / 9; }
.img-frame--4x3 { aspect-ratio: 4 / 3; }
.img-frame--square { aspect-ratio: 1 / 1; }

.img-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame--placeholder {
  background: linear-gradient(135deg, var(--color-cream-dark) 0%, var(--color-cream) 100%);
}

.img-frame--placeholder::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  background: repeating-linear-gradient(-45deg, rgba(30, 27, 24, .03) 0 6px, transparent 6px 12px);
  border: 1px dashed rgba(30, 27, 24, .18);
  border-radius: 18px;
}

/* ---------- 16. Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: var(--color-ink-soft);
  margin-bottom: 2rem;
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--color-cream-dark);
  font-weight: 700;
}

.breadcrumb__item a {
  color: var(--color-orange);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb__item a:hover {
  text-decoration: underline;
}

.breadcrumb__item[aria-current="page"] {
  color: var(--color-ink-soft);
  font-weight: 600;
}

/* ---------- 17. Reveal ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}

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

/* ---------- 18. Desktop Rail ---------- */
@media (min-width: 1024px) {
  body {
    margin-left: var(--header-rail);
  }

  .site-header {
    inset: 0 auto 0 0;
    width: var(--header-rail);
    height: auto;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.5rem;
    padding: 1.25rem .75rem;
    border-right: 1px solid rgba(255, 255, 255, .08);
    border-bottom: 0;
    background-color: var(--color-deep-blue);
    background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .02) 0 2px, transparent 2px 12px);
    box-shadow: none;
  }

  .site-header .brand-link {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .5rem;
    padding: .5rem .25rem;
  }

  .brand-mark {
    width: 50px;
    height: 50px;
    font-size: 1.75rem;
  }

  .brand-name {
    font-size: .95rem;
    white-space: normal;
  }

  .brand-name em {
    font-size: .5rem;
    letter-spacing: .28em;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    width: 100%;
    padding: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    visibility: visible;
    transition: none;
    margin-top: .5rem;
  }

  .site-nav__list {
    position: relative;
    gap: .2rem;
  }

  .site-nav__list::before {
    content: "";
    position: absolute;
    left: 50%;
    top: .5rem;
    bottom: .5rem;
    width: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .14) 12%, rgba(255, 255, 255, .14) 88%, rgba(255, 255, 255, 0));
  }

  .site-nav__link {
    flex-direction: column;
    gap: .2rem;
    padding: .55rem .25rem;
    text-align: center;
    font-size: .8rem;
    border-radius: 10px;
  }

  .site-nav__num {
    font-size: .6rem;
    min-width: 0;
  }

  .site-nav__link[aria-current="page"]::before {
    left: -.75rem;
    top: 15%;
    bottom: 15%;
    width: 3px;
  }

  .site-header__meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    margin-top: auto;
    padding-bottom: .25rem;
  }

  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1.7fr;
    gap: 3rem;
  }

  .footer-statement {
    flex-basis: auto;
    margin-left: auto;
  }

  .annotation {
    writing-mode: vertical-rl;
  }
}

/* ---------- 19. Tablet Grid ---------- */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

/* ---------- 20. Grid Base ---------- */
.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

@media (max-width: 767.98px) {
  .grid--2,
  .grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .annotation {
    writing-mode: horizontal-tb;
  }

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

/* ---------- 21. Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

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

  .nav-toggle[aria-expanded="true"] .nav-toggle__bar--top,
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar--mid,
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar--bot {
    transform: none;
    opacity: 1;
  }
}
