/* ==========================================================================
   星空体育看台 — shared site kit (/assets/site.css)
   ========================================================================== */

:root{
  --sky-deep:#0B1F3A;
  --sky-night:#132C4F;
  --gold:#F5C542;
  --gold-soft:#FFE39A;
  --banner-blue:#2F80ED;
  --flag-red:#E45757;
  --flag-green:#2FBF71;
  --flag-yellow:#F2B134;
  --mist:#8FA3BF;
  --line:#28456B;
  --wash:#DCE6F2;
  --paper:#F4F7FB;

  --font-sans:"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,monospace;

  --shell:1280px;
  --gutter:clamp(20px,4vw,48px);
  --baseline:8px;

  --shadow-card:0 24px 48px -36px rgba(2,10,22,.95);
  --ease:cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*,*::before,*::after{box-sizing:border-box}
html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
  scroll-padding-top:110px;
}
body,h1,h2,h3,h4,h5,p,ul,ol,figure,blockquote{margin:0}
ul[class],ol[class]{list-style:none;padding:0}
img,svg{display:block;max-width:100%}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
a{color:inherit;text-decoration:none}
::selection{background:var(--gold);color:var(--sky-deep)}

/* ---------- base ---------- */
body{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  background:var(--sky-deep);
  color:var(--wash);
  font-family:var(--font-sans);
  font-size:clamp(16px,.35vw + 15px,18px);
  font-weight:400;
  line-height:1.75;
  letter-spacing:.01em;
  -webkit-font-smoothing:antialiased;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  opacity:.55;
  background-image:
    radial-gradient(1.4px 1.4px at 34px 44px,rgba(244,247,251,.75),transparent 100%),
    radial-gradient(1.2px 1.2px at 148px 126px,rgba(245,197,66,.6),transparent 100%),
    radial-gradient(1.6px 1.6px at 236px 74px,rgba(244,247,251,.45),transparent 100%),
    radial-gradient(1px 1px at 92px 208px,rgba(143,163,191,.8),transparent 100%),
    radial-gradient(1.1px 1.1px at 268px 232px,rgba(244,247,251,.5),transparent 100%);
  background-size:300px 300px;
  background-repeat:repeat;
}
body > *{position:relative;z-index:1}
main{flex:1 1 auto}

h1,h2,h3,h4{color:var(--paper);font-weight:900;letter-spacing:-.01em;line-height:1.1;text-wrap:balance}
p{text-wrap:pretty}

a:hover{color:var(--gold)}

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

.skip-link{
  position:fixed;
  top:-88px;
  left:16px;
  z-index:120;
  padding:12px 22px;
  background:var(--gold);
  color:var(--sky-deep);
  font-size:14px;
  font-weight:700;
  letter-spacing:.06em;
  transition:top .25s var(--ease);
}
.skip-link:focus{top:12px;color:var(--sky-deep)}

/* ---------- shell & section rhythm ---------- */
.shell{
  width:100%;
  max-width:var(--shell);
  margin-inline:auto;
  padding-inline:var(--gutter);
}
.section{padding-block:clamp(56px,7vw,104px)}
.section--night{background:var(--sky-night);border-block:1px solid var(--line)}
.section--wash{
  background:var(--wash);
  color:var(--sky-night);
  border-block:1px solid #C3D2E4;
}
.section--wash .section-title,
.section--wash .display-title{color:var(--sky-deep)}
.section--wash .lede,
.section--wash .prose,
.section--wash .prose p{color:var(--sky-night)}
.section--wash .eyebrow{color:#4B628A}
.section--wash .eyebrow::before{background:var(--sky-night)}

/* ---------- type scale ---------- */
.display-title{
  font-size:clamp(56px,9vw,132px);
  line-height:.94;
  font-weight:900;
  letter-spacing:-.025em;
  color:var(--paper);
}
.section-title{
  font-size:clamp(36px,5vw,72px);
  line-height:1.04;
  font-weight:900;
  color:var(--paper);
}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:12px;
  letter-spacing:.22em;
  line-height:1.6;
  color:var(--mist);
}
.eyebrow::before{
  content:"";
  width:26px;
  height:1px;
  background:var(--gold);
  flex:none;
}
.eyebrow--vertical{
  writing-mode:vertical-rl;
  text-orientation:mixed;
  flex-direction:column;
  gap:12px;
  letter-spacing:.34em;
}
.eyebrow--vertical::before{width:1px;height:26px}
.lede{
  max-width:52ch;
  font-size:clamp(17px,1.4vw,21px);
  line-height:1.7;
  color:var(--wash);
}
.prose{max-width:720px;color:var(--wash)}
.prose > * + *{margin-top:1.15em}
.prose h2{font-size:clamp(24px,2.4vw,30px);line-height:1.3;margin-top:1.9em}
.prose h3{font-size:clamp(19px,1.6vw,22px);line-height:1.4;margin-top:1.6em}
.prose ul{list-style:disc;padding-left:1.3em}
.prose ol{list-style:decimal;padding-left:1.3em}
.prose li + li{margin-top:.45em}
.prose a{color:var(--gold);border-bottom:1px solid rgba(245,197,66,.45)}
.prose a:hover{border-bottom-color:var(--gold)}
.prose strong{color:var(--paper);font-weight:700}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:44px;
  padding:0 22px;
  border:1px solid transparent;
  border-radius:2px;
  font-size:14px;
  font-weight:700;
  letter-spacing:.06em;
  line-height:1.4;
  text-align:center;
  transition:background .25s var(--ease),color .25s var(--ease),border-color .25s var(--ease);
}
.btn--gold{background:var(--gold);color:var(--sky-deep);border-color:var(--gold)}
.btn--gold:hover,.btn--gold:focus-visible{background:var(--gold-soft);border-color:var(--gold-soft);color:var(--sky-deep)}
.btn--ghost{background:transparent;color:var(--paper);border-color:var(--line)}
.btn--ghost:hover,.btn--ghost:focus-visible{border-color:var(--gold);color:var(--gold)}
.btn--sm{min-height:38px;padding:0 15px;font-size:12.5px;letter-spacing:.08em}
.btn--block{width:100%}

/* ---------- tags & stat ---------- */
.tag{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:3px 10px;
  border:1px solid currentColor;
  border-radius:999px;
  font-size:12px;
  letter-spacing:.08em;
  line-height:1.6;
  white-space:nowrap;
}
.tag::before{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:currentColor;
  flex:none;
}
.tag--green{color:var(--flag-green)}
.tag--red{color:var(--flag-red)}
.tag--yellow{color:var(--flag-yellow)}
.tag--blue{color:var(--banner-blue)}
.tag--gold{color:var(--gold)}

.stat{
  display:flex;
  align-items:baseline;
  gap:7px;
  font-family:var(--font-mono);
  font-variant-numeric:tabular-nums;
  font-feature-settings:"tnum" 1;
}
.stat__value{
  font-size:clamp(28px,3.4vw,44px);
  font-weight:600;
  line-height:1;
  letter-spacing:-.01em;
  color:var(--gold);
}
.stat__unit{font-size:13px;letter-spacing:.1em;color:var(--mist)}

/* ---------- panel / grid / misc ---------- */
.panel{
  background:var(--sky-night);
  border:1px solid var(--line);
  border-radius:3px;
  padding:clamp(20px,2.4vw,32px);
  box-shadow:var(--shadow-card);
  transition:border-color .3s var(--ease),background .3s var(--ease);
}
.panel:hover{border-color:rgba(245,197,66,.5)}

.grid{display:grid;gap:clamp(16px,2vw,28px)}
.grid--12{grid-template-columns:repeat(12,minmax(0,1fr))}

.divider{border:0;height:1px;background:var(--line);margin-block:clamp(28px,4vw,52px)}
.divider--gold{background:linear-gradient(90deg,var(--gold),rgba(245,197,66,0))}

.breadcrumbs{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:9px;
  padding-block:16px;
  font-size:12px;
  letter-spacing:.14em;
  color:var(--mist);
}
.breadcrumbs__link{color:var(--mist);border-bottom:1px solid transparent;transition:color .25s var(--ease)}
.breadcrumbs__link:hover{color:var(--gold);border-bottom-color:currentColor}
.breadcrumbs__sep{color:var(--line)}
.breadcrumbs [aria-current="page"]{color:var(--paper)}

.media-frame{
  position:relative;
  overflow:hidden;
  aspect-ratio:16 / 9;
  border:1px solid var(--line);
  border-radius:3px;
  background-color:var(--sky-night);
  background-image:
    radial-gradient(120% 90% at 18% 0%,rgba(47,128,237,.24),transparent 62%),
    radial-gradient(70% 60% at 88% 92%,rgba(245,197,66,.14),transparent 70%),
    linear-gradient(180deg,#10243E 0%,#0B1F3A 100%);
}
.media-frame__img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.media-frame--wide{aspect-ratio:21 / 9}
.media-frame--tall{aspect-ratio:3 / 4}

[data-section-nav] a[aria-current="true"]{color:var(--gold)}

/* ---------- header ---------- */
.header-utility{
  background:var(--sky-night);
  border-bottom:1px solid var(--line);
  overflow:hidden;
  max-height:72px;
  transition:max-height .35s var(--ease),opacity .3s var(--ease),border-color .3s var(--ease);
}
.header-utility__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:clamp(12px,2vw,32px);
  padding-block:10px;
}
.header-utility__note{
  display:inline-flex;
  align-items:center;
  gap:9px;
  font-size:12.5px;
  letter-spacing:.06em;
  line-height:1.6;
  color:var(--mist);
}
.header-utility__note::before{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--flag-green);
  box-shadow:0 0 0 3px rgba(47,191,113,.18);
  flex:none;
}
.header-utility__actions{
  display:flex;
  align-items:center;
  gap:clamp(10px,1.6vw,20px);
}
.header-utility__link{
  position:relative;
  font-size:12.5px;
  letter-spacing:.1em;
  color:var(--mist);
  padding-bottom:3px;
  transition:color .25s var(--ease);
}
.header-utility__link::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:1px;
  background:currentColor;
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .3s var(--ease);
}
.header-utility__link:hover{color:var(--gold)}
.header-utility__link:hover::after{transform:scaleX(1)}

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(11,31,58,.94);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(12px);
}
.site-header.is-compact .header-utility{
  max-height:0;
  opacity:0;
  border-bottom-color:transparent;
}
.header-bar{position:relative}
.header-bar__inner{
  display:flex;
  align-items:center;
  gap:clamp(12px,2vw,28px);
  padding-block:18px;
  transition:padding .3s var(--ease);
}
.site-header.is-compact .header-bar__inner{padding-block:10px}

.brand{
  display:flex;
  align-items:center;
  gap:13px;
  flex:none;
}
.brand__mark{
  position:relative;
  width:36px;
  height:36px;
  flex:none;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:50%;
  box-shadow:inset 0 0 14px rgba(245,197,66,.16);
  transition:border-color .3s var(--ease);
}
.brand__mark::before,
.brand__mark::after{
  content:"";
  position:absolute;
  background:var(--gold);
  border-radius:2px;
}
.brand__mark::before{width:16px;height:1.5px}
.brand__mark::after{width:1.5px;height:16px}
.brand:hover .brand__mark{border-color:var(--gold)}
.brand__text{display:flex;flex-direction:column;gap:2px}
.brand__name{
  font-size:20px;
  font-weight:900;
  letter-spacing:.03em;
  line-height:1.2;
  color:var(--paper);
}
.brand__tagline{
  font-size:11.5px;
  letter-spacing:.14em;
  line-height:1.5;
  color:var(--mist);
}

.nav-toggle{
  display:none;
  align-items:center;
  gap:10px;
  min-height:44px;
  margin-left:auto;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:2px;
  color:var(--paper);
  font-size:13px;
  letter-spacing:.16em;
  transition:border-color .25s var(--ease),color .25s var(--ease);
}
.nav-toggle:hover{border-color:var(--gold);color:var(--gold)}
.nav-toggle__bars{
  display:inline-flex;
  flex-direction:column;
  gap:5px;
  width:18px;
  flex:none;
}
.nav-toggle__bars span{
  display:block;
  height:1.5px;
  width:100%;
  background:currentColor;
  transition:transform .3s var(--ease);
}
.nav-toggle__label{white-space:nowrap}
.site-header[data-open] .nav-toggle{border-color:var(--gold);color:var(--gold)}
.site-header[data-open] .nav-toggle__bars span:first-child{transform:translateY(3.25px) rotate(45deg)}
.site-header[data-open] .nav-toggle__bars span:last-child{transform:translateY(-3.25px) rotate(-45deg)}

.primary-nav{
  display:flex;
  align-items:center;
  margin-left:auto;
}
.primary-nav__list{
  display:flex;
  align-items:center;
  gap:2px;
  flex-wrap:wrap;
}
.primary-nav__link{
  position:relative;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 14px;
  font-size:14px;
  letter-spacing:.06em;
  color:var(--wash);
  transition:color .25s var(--ease);
}
.primary-nav__link::after{
  content:"";
  position:absolute;
  left:14px;
  right:14px;
  bottom:7px;
  height:1px;
  background:var(--gold);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .3s var(--ease);
}
.primary-nav__link:hover{color:var(--paper)}
.primary-nav__link:hover::after{transform:scaleX(1)}
.primary-nav__link[aria-current="page"]{color:var(--gold)}
.primary-nav__link[aria-current="page"]::after{transform:scaleX(1)}

.nav-cta{display:none}
.header-bar__cta{display:none;flex:none}
.site-header.is-compact .header-bar__cta{display:inline-flex}

.scroll-meter{
  position:fixed;
  inset:0 0 auto 0;
  height:2px;
  z-index:60;
  pointer-events:none;
  background:transparent;
}
.scroll-meter__bar{
  display:block;
  height:100%;
  width:0;
  background:linear-gradient(90deg,var(--gold),var(--gold-soft));
  transition:width .1s linear;
}

.to-top{
  position:fixed;
  right:clamp(16px,3vw,32px);
  bottom:clamp(16px,3vw,32px);
  z-index:55;
  width:48px;
  height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:50%;
  background:rgba(19,44,79,.92);
  color:var(--gold);
  backdrop-filter:blur(8px);
  transition:border-color .25s var(--ease),background .25s var(--ease),transform .25s var(--ease);
}
.to-top:hover,.to-top:focus-visible{border-color:var(--gold);background:var(--sky-night);transform:translateY(-2px)}
.to-top[hidden]{display:none}
.to-top__arrow{font-size:17px;line-height:1}

/* ---------- footer ---------- */
.site-footer{
  margin-top:auto;
  background:var(--sky-night);
  border-top:1px solid var(--line);
  color:var(--wash);
}
.site-footer::before{
  content:"";
  display:block;
  height:2px;
  background:linear-gradient(90deg,var(--gold) 0%,rgba(245,197,66,.55) 22%,rgba(245,197,66,0) 62%);
}
.footer-top{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);
  gap:clamp(32px,5vw,72px);
  padding-block:clamp(40px,5vw,64px) clamp(28px,3vw,40px);
}
.footer-brand{max-width:38ch}
.footer-brand__name{
  font-size:24px;
  font-weight:900;
  letter-spacing:.03em;
  line-height:1.2;
  color:var(--paper);
}
.footer-brand__statement{
  margin-top:12px;
  font-size:15px;
  line-height:1.75;
  color:var(--mist);
}
.footer-brand__cta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:20px;
  min-height:44px;
  font-size:14px;
  font-weight:700;
  letter-spacing:.06em;
  color:var(--gold);
  border-bottom:1px solid rgba(245,197,66,.4);
  transition:border-color .25s var(--ease),gap .25s var(--ease);
}
.footer-brand__cta::after{content:"→";font-size:15px;line-height:1}
.footer-brand__cta:hover{border-bottom-color:var(--gold);gap:12px}

.footer-cols{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(20px,3vw,40px);
}
.footer-col__title{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  letter-spacing:.22em;
  color:var(--mist);
}
.footer-col__title::before{
  content:"";
  width:16px;
  height:1px;
  background:var(--gold);
  flex:none;
}
.footer-col__list{margin-top:14px}
.footer-col__link{
  display:inline-block;
  padding:6px 0;
  font-size:15px;
  color:var(--wash);
  border-bottom:1px solid transparent;
  transition:color .25s var(--ease),border-color .25s var(--ease);
}
.footer-col__link:hover{color:var(--gold);border-bottom-color:rgba(245,197,66,.5)}

.footer-contact{
  display:flex;
  flex-wrap:wrap;
  gap:10px clamp(20px,3vw,44px);
  padding-block:20px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.footer-contact__item{
  display:inline-flex;
  align-items:baseline;
  gap:9px;
  font-size:14px;
  line-height:1.7;
  color:var(--wash);
  font-family:var(--font-mono);
  font-variant-numeric:tabular-nums;
}
.footer-contact__label{
  font-family:var(--font-sans);
  font-size:11.5px;
  letter-spacing:.16em;
  color:var(--mist);
}
.footer-contact__item--wide{flex:1 1 320px;font-family:var(--font-sans)}

.footer-legal{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px clamp(16px,3vw,36px);
  padding-block:22px 28px;
  font-size:12px;
  letter-spacing:.08em;
  color:var(--mist);
}
.footer-legal__icp,
.footer-legal__copy,
.footer-legal__note{margin:0}
.footer-legal__note{color:#6E85A6}

/* ---------- responsive ---------- */
@media (max-width:1100px){
  .brand__tagline{display:none}
  .primary-nav__link{padding:0 11px;font-size:13.5px}
  .primary-nav__link::after{left:11px;right:11px}
}

@media (max-width:900px){
  html{scroll-padding-top:84px}

  .header-utility__inner{flex-wrap:wrap;row-gap:8px;padding-block:9px}
  .header-utility__note{font-size:11.5px;letter-spacing:.02em;line-height:1.55}
  .header-utility__actions{gap:12px;margin-left:auto}
  .header-utility__link{font-size:12px}
  .header-utility .btn--sm{min-height:44px;padding:0 14px}

  .nav-toggle{display:inline-flex}
  .primary-nav{
    display:none;
    position:absolute;
    left:0;
    right:0;
    top:100%;
    margin-left:0;
    max-height:calc(100vh - 96px);
    overflow-y:auto;
    padding:10px var(--gutter) 26px;
    background:var(--sky-night);
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
    box-shadow:0 30px 50px -30px rgba(0,0,0,.9);
  }
  .site-header[data-open] .primary-nav{display:block}
  .primary-nav__list{flex-direction:column;align-items:stretch;gap:0;flex-wrap:nowrap}
  .primary-nav__link{
    width:100%;
    padding:14px 0;
    min-height:52px;
    font-size:17px;
    letter-spacing:.04em;
    border-bottom:1px solid rgba(40,69,107,.65);
  }
  .primary-nav__link::after{display:none}
  .primary-nav__link[aria-current="page"]{border-bottom-color:var(--gold)}
  .nav-cta{display:block;margin-top:20px}
  .nav-cta .btn{min-height:48px}
  .site-header.is-compact .header-bar__cta{display:none}
  .header-bar__cta{display:none}

  .footer-top{grid-template-columns:minmax(0,1fr);gap:32px}
  .footer-brand{max-width:none}
  .footer-cols{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
  .footer-col__link{font-size:14px;padding:8px 0}
  .footer-contact__item--wide{flex:1 1 100%}
  .btn{min-height:44px}
  .to-top{width:52px;height:52px}
}

@media (max-width:600px){
  .header-utility__note{flex:1 1 100%}
  .header-utility__actions{flex:1 1 100%;justify-content:space-between}
  .brand__mark{width:32px;height:32px}
  .brand__name{font-size:17.5px}
  .footer-cols{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 16px}
  .footer-legal{flex-direction:column;align-items:flex-start;gap:6px}
  .display-title{letter-spacing:-.02em}
}

/* ---------- motion preferences ---------- */
@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:hover,.to-top:focus-visible{transform:none}
}
