/* ============================================================
   88体育看台 · /assets/site.css
   夜间球场灯光 + 电子记分牌 + 档案夹系统
   ============================================================ */

*,
*::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, p,
ul, ol, figure, blockquote {
  margin: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

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

/* ---------- 变量 ---------- */
:root {
  --ink: #082A24;
  --night: #0A1B32;
  --stand: #1E5A50;
  --cyan: #3EF0D8;
  --amber: #FF9B51;
  --crimson: #C13A52;
  --cream: #F7F1E4;
  --fog: #A9BBB5;
  --mist: #DCEAE5;
  --gold: #F4C95D;
  --on-cyan: #04140F;

  --font-display: "Barlow Condensed", "Oswald", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shell: 1360px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius-xl: 34px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 基底 ---------- */
body {
  min-height: 100vh;
  background:
    radial-gradient(120% 78% at 6% -12%, rgba(30, 90, 80, .58), transparent 58%),
    radial-gradient(92% 70% at 102% -4%, rgba(10, 27, 50, .95), transparent 56%),
    radial-gradient(70% 50% at 50% 108%, rgba(30, 90, 80, .34), transparent 62%),
    var(--ink);
  background-attachment: fixed;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: clamp(15px, .32vw + 14px, 17px);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(62, 240, 216, .3);
  color: var(--cream);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.55rem); }

p { text-wrap: pretty; }

strong { font-weight: 700; }

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

/* ---------- 容器与节奏 ---------- */
.wrap {
  width: min(100%, var(--shell));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(36px, 6vw, 84px);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: clamp(18px, 3vw, 34px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}

.lede {
  max-width: 62ch;
  font-size: clamp(1rem, 1.2vw, 1.14rem);
  color: rgba(247, 241, 228, .84);
}

.rule {
  height: 1px;
  margin-block: clamp(20px, 3vw, 34px);
  border: 0;
  background: linear-gradient(90deg, rgba(62, 240, 216, .55), rgba(62, 240, 216, .06) 55%, transparent);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .74em 1.28em;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease),
              color .2s var(--ease), border-color .2s var(--ease),
              box-shadow .2s var(--ease);
}

.btn--solid {
  background: var(--amber);
  color: #26160B;
  box-shadow: 0 12px 26px -18px rgba(255, 155, 81, .95);
}

.btn--solid:hover {
  background: #FFB87C;
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(8, 42, 36, .35);
  border-color: rgba(247, 241, 228, .26);
  color: var(--cream);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

/* ---------- 标签与筛选 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .44em .95em;
  border: 1px solid rgba(169, 187, 181, .28);
  border-radius: var(--radius-pill);
  background: rgba(8, 42, 36, .5);
  font-family: var(--font-body);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: rgba(247, 241, 228, .82);
  cursor: pointer;
  transition: background-color .19s var(--ease), color .19s var(--ease),
              border-color .19s var(--ease), transform .19s var(--ease);
}

.chip:hover {
  border-color: rgba(62, 240, 216, .55);
  color: var(--cyan);
  transform: translateY(-1px);
}

.chip[aria-pressed="true"],
.chip[aria-current="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--on-cyan);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .3em .72em;
  border: 1px solid rgba(62, 240, 216, .32);
  border-radius: 8px;
  background: rgba(62, 240, 216, .13);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tag--amber {
  background: rgba(255, 155, 81, .15);
  border-color: rgba(255, 155, 81, .36);
  color: var(--amber);
}

.tag--crimson {
  background: rgba(193, 58, 82, .2);
  border-color: rgba(193, 58, 82, .45);
  color: #F092A4;
}

.tag--gold {
  background: rgba(244, 201, 93, .16);
  border-color: rgba(244, 201, 93, .4);
  color: var(--gold);
}

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .7em;
  padding: clamp(18px, 2.2vw, 28px);
  border: 1px solid rgba(169, 187, 181, .16);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(158deg, rgba(30, 90, 80, .52), rgba(10, 27, 50, .76) 72%);
  transition: transform .22s var(--ease), border-color .22s var(--ease),
              box-shadow .22s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(62, 240, 216, .42);
  box-shadow: 0 26px 48px -36px rgba(0, 0, 0, .95);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55em;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--fog);
}

.breadcrumb a {
  color: var(--fog);
  transition: color .18s var(--ease);
}

.breadcrumb a:hover { color: var(--cyan); }

.breadcrumb__sep {
  opacity: .48;
}

.breadcrumb [aria-current="page"] {
  color: var(--cream);
}

/* ---------- 图片容器基础 ---------- */
.image-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(62, 240, 216, .16);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 100% at 18% 0%, rgba(62, 240, 216, .18), transparent 58%),
    linear-gradient(152deg, var(--stand), var(--night) 74%);
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: auto -12% -46% -12%;
  height: 78%;
  background: repeating-linear-gradient(
      100deg,
      rgba(62, 240, 216, .09) 0 1px,
      transparent 1px 22px
    );
  pointer-events: none;
}

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

.image-frame--wide { aspect-ratio: 21 / 9; }
.image-frame--tall { aspect-ratio: 3 / 4; }
.image-frame--square { aspect-ratio: 1 / 1; }

.image-frame__caption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 14px 16px;
  background: linear-gradient(transparent, rgba(8, 42, 36, .92));
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
}

/* ---------- 数据单元 ---------- */
.stat__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.stat__label {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  color: var(--fog);
}

/* ============================================================
   页头 · 悬浮胶囊浮岛
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 14px var(--gutter) 0;
  pointer-events: none;
}

.site-header__inner {
  width: min(100%, var(--shell));
  margin-inline: auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 14px;
  padding: 9px 12px 9px 16px;
  border: 1px solid rgba(62, 240, 216, .16);
  border-radius: var(--radius-pill);
  background:
    linear-gradient(102deg, rgba(10, 27, 50, .95) 0%, rgba(8, 42, 36, .93) 52%, rgba(30, 90, 80, .9) 100%);
  box-shadow:
    0 22px 48px -34px rgba(0, 0, 0, .98),
    inset 0 1px 0 rgba(247, 241, 228, .08);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  pointer-events: auto;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -72px;
  z-index: 120;
  padding: .68em 1.15em;
  border-radius: var(--radius-pill);
  background: var(--cyan);
  color: var(--on-cyan);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  pointer-events: auto;
  transition: top .18s var(--ease);
}

.skip-link:focus {
  top: 16px;
}

/* 品牌铭牌 */
.brandmark {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  padding-right: 6px;
}

.brandmark__glyph {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 14px;
  background: linear-gradient(158deg, var(--cyan) 0%, #2CC0AE 42%, var(--stand) 100%);
  box-shadow: inset 0 0 0 1px rgba(4, 20, 15, .35);
  color: var(--on-cyan);
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -.05em;
}

.brandmark__text {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.brandmark__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--cream);
}

.brandmark__line {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .16em;
  color: var(--fog);
  text-transform: uppercase;
}

/* 移动抽屉按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: .55em 1em;
  border: 1px solid rgba(169, 187, 181, .3);
  border-radius: var(--radius-pill);
  background: rgba(8, 42, 36, .62);
  color: var(--cream);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .14em;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}

.nav-toggle:hover {
  border-color: rgba(62, 240, 216, .6);
  color: var(--cyan);
}

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

.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform .22s var(--ease), opacity .18s var(--ease);
}

.nav-toggle__label {
  line-height: 1;
}

.site-header[data-open] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header[data-open] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.site-header[data-open] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* 栏目胶囊链 */
.pillnav {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-left: auto;
}

.pillnav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  padding: 4px;
  border: 1px solid rgba(169, 187, 181, .14);
  border-radius: var(--radius-pill);
  background: rgba(8, 42, 36, .55);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.pillnav__list::-webkit-scrollbar { display: none; }

.pillnav__link {
  display: block;
  padding: .52em .95em;
  border-radius: var(--radius-pill);
  color: rgba(247, 241, 228, .76);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .05em;
  white-space: nowrap;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}

.pillnav__link:hover {
  color: var(--cyan);
  background: rgba(62, 240, 216, .1);
}

.pillnav__link[aria-current="page"] {
  background: var(--cyan);
  color: var(--on-cyan);
  box-shadow: 0 8px 20px -12px rgba(62, 240, 216, .95);
}

.pillnav__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.site-header__cta {
  padding: .58em 1.05em;
  font-size: .79rem;
  letter-spacing: .05em;
}

/* 阅读进度 */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: 3px;
  background: rgba(8, 42, 36, .7);
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--amber) 62%, var(--crimson) 100%);
  transition: width .14s linear;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  margin-top: clamp(56px, 8vw, 120px);
  padding: clamp(40px, 6vw, 76px) 0 clamp(22px, 3vw, 34px);
  border-top: 1px solid rgba(62, 240, 216, .14);
  background:
    radial-gradient(120% 130% at 92% 0%, rgba(10, 27, 50, .96), transparent 62%),
    radial-gradient(90% 90% at 0% 100%, rgba(30, 90, 80, .55), transparent 66%),
    linear-gradient(180deg, #061E1A 0%, var(--night) 100%);
  color: rgba(247, 241, 228, .82);
}

.site-footer__top {
  width: min(100%, var(--shell));
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: minmax(230px, .9fr) minmax(0, 1.7fr);
  gap: clamp(26px, 5vw, 64px);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--cream);
  line-height: 1.1;
}

.footer-brand__summary {
  margin-top: 12px;
  max-width: 30ch;
  font-size: .92rem;
  line-height: 1.75;
  color: var(--fog);
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  margin-top: 22px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(62, 240, 216, .42);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--cyan);
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.to-top::after {
  content: "\2191";
  font-size: .9em;
}

.to-top:hover {
  color: var(--cream);
  border-color: var(--cream);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.footer-col__title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(169, 187, 181, .18);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-links li + li { margin-top: 9px; }

.footer-links a {
  display: inline-block;
  font-size: .9rem;
  color: rgba(247, 241, 228, .78);
  transition: color .18s var(--ease), transform .18s var(--ease);
}

.footer-links a:hover {
  color: var(--cyan);
  transform: translateX(4px);
}

.footer-contact li {
  display: flex;
  gap: 10px;
  font-size: .86rem;
  line-height: 1.62;
  color: rgba(247, 241, 228, .88);
}

.footer-contact li + li { margin-top: 8px; }

.footer-contact__key {
  flex: 0 0 42px;
  padding-top: .22em;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  color: var(--fog);
}

.footer-note {
  margin-top: 14px;
  padding-left: 10px;
  border-left: 2px solid rgba(255, 155, 81, .55);
  font-size: .76rem;
  line-height: 1.7;
  color: rgba(169, 187, 181, .88);
}

.footer-meta {
  width: min(100%, var(--shell));
  margin: clamp(28px, 4vw, 46px) auto 0;
  padding: clamp(18px, 3vw, 26px) var(--gutter) 0;
  border-top: 1px solid rgba(169, 187, 181, .16);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--fog);
}

.footer-meta__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.footer-meta__links a {
  color: rgba(247, 241, 228, .72);
  transition: color .18s var(--ease);
}

.footer-meta__links a:hover { color: var(--cyan); }

#main-content:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -6px;
}

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

@media (max-width: 1080px) {
  .site-header__inner {
    flex-wrap: wrap;
    padding: 10px 12px;
    border-radius: 26px;
    gap: 10px;
  }

  .brandmark { margin-right: auto; }

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

  .pillnav {
    display: none;
    order: 3;
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin: 4px 0 2px;
    padding-top: 12px;
    border-top: 1px solid rgba(169, 187, 181, .16);
  }

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

  .pillnav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
  }

  .pillnav__link {
    padding: .72em .95em;
    font-size: .92rem;
    letter-spacing: .08em;
  }

  .pillnav__actions {
    flex-direction: column;
    gap: 8px;
    padding-top: 4px;
  }

  .site-header__cta {
    justify-content: center;
    padding: .78em 1.1em;
    font-size: .88rem;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
  }
}

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

  .footer-col--contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .site-header { padding-top: 10px; }

  .brandmark__glyph {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 1.15rem;
  }

  .brandmark__name { font-size: 1rem; }

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

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   动效偏好
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .card:hover,
  .btn:hover,
  .chip:hover,
  .footer-links a:hover {
    transform: none;
  }
}
