/* ============================================================================
   小鸟体育综合 /assets/site.css
   赛场数据指挥舱 · 共享样式层
   ========================================================================== */

/* 01 设计变量
   ---------------------------------------------------------------- */
:root {
  --clr-deep: #0F3B3B;
  --clr-accent: #FF5A36;
  --clr-green: #7CCB8A;
  --clr-wine: #6B1F2A;
  --clr-indigo: #3D2E5A;
  --clr-cream: #F2EFE9;
  --clr-ink: #1E1E1E;
  --clr-gray: #4A4A4A;

  --font-headline: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", sans-serif;
  --font-number: "Roboto Mono", "SFMono-Regular", "Consolas", monospace;

  --rail-width: 72px;
  --header-h: 64px;
  --container-w: 1280px;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;

  --shadow-sm: 0 2px 8px rgba(15, 59, 59, 0.12);
  --shadow-md: 0 8px 28px rgba(15, 59, 59, 0.18);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --speed-fast: 180ms;
  --speed-base: 320ms;
}

/* 02 Reset & Base
   ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--clr-ink);
  background-color: var(--clr-cream);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

ul,
ol {
  padding: 0;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 900;
  line-height: 1.25;
  color: var(--clr-ink);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); }

p {
  margin: 0 0 1em;
}

a {
  color: var(--clr-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color var(--speed-fast) ease;
}

a:hover {
  color: var(--clr-accent);
}

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

::selection {
  background: var(--clr-accent);
  color: var(--clr-cream);
}

/* 03 工具类
   ---------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.text-mono {
  font-family: var(--font-number);
  font-size: 0.85em;
  letter-spacing: 0.04em;
}

.mono-label {
  display: inline-block;
  font-family: var(--font-number);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-accent);
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(15, 59, 59, 0.08);
  color: var(--clr-deep);
}

.tag--hot {
  background: var(--clr-wine);
  color: var(--clr-cream);
}

.tag--live {
  background: var(--clr-green);
  color: var(--clr-deep);
}

.speed-lines {
  background-image:
    linear-gradient(-55deg, transparent 70%, rgba(15, 59, 59, 0.04) 70%),
    repeating-linear-gradient(-55deg, transparent 0 12px, rgba(255, 90, 54, 0.12) 12px 14px, transparent 14px 26px);
}

/* 04 Skip link
   ---------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  display: inline-block;
  padding: 10px 20px;
  background: var(--clr-accent);
  color: var(--clr-cream);
  font-family: var(--font-headline);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 12px 0;
}

.skip-link:focus {
  left: 0;
  color: var(--clr-cream);
}

/* 05 滚动进度条
   ---------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1500;
  background: transparent;
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.scroll-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--clr-accent) 0%, var(--clr-green) 100%);
}

/* 06 按钮体系
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 0;
  border-radius: var(--radius-md);
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 0.92rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--speed-fast) ease,
    box-shadow var(--speed-fast) ease,
    background-color var(--speed-fast) ease,
    color var(--speed-fast) ease;
}

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

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

.btn--primary {
  background: var(--clr-deep);
  color: var(--clr-cream);
}

.btn--primary:hover {
  background: #124848;
  color: var(--clr-cream);
}

.btn--accent {
  background: var(--clr-accent);
  color: var(--clr-cream);
  box-shadow: 0 4px 18px rgba(255, 90, 54, 0.4);
}

.btn--accent:hover {
  background: #e94a28;
  color: var(--clr-cream);
}

.btn--ghost {
  background: transparent;
  color: var(--clr-deep);
  border: 2px solid var(--clr-deep);
}

.btn--sm {
  padding: 8px 14px;
  font-size: 0.85rem;
  border-radius: 8px;
}

.btn__text {
  display: block;
}

.btn__meta {
  display: block;
  font-family: var(--font-number);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

/* 07 共享页头
   ---------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 1000;
  background: var(--clr-deep);
  color: var(--clr-cream);
  border-bottom: 1px solid rgba(242, 239, 233, 0.16);
}

/* 品牌轨道 */
.brand-rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-width);
  z-index: 1100;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 22px;
  background: var(--clr-deep);
  border-right: 1px solid rgba(242, 239, 233, 0.12);
}

.brand-rail__mark {
  width: 40px;
  height: auto;
}

.brand-rail__text {
  writing-mode: vertical-rl;
  font-family: var(--font-number);
  font-size: 0.68rem;
  letter-spacing: 0.4em;
  color: rgba(242, 239, 233, 0.45);
  text-transform: uppercase;
  max-height: 50vh;
  overflow: hidden;
}

.brand-rail__index {
  font-family: var(--font-number);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--clr-accent);
}

/* 顶栏 */
.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
  padding: 0 20px;
  background: var(--clr-deep);
}

.header-bar::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: -1px;
  width: 34%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--clr-accent) 0 6px, transparent 6px 14px);
  opacity: 0.8;
  pointer-events: none;
}

.site-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1.15;
}

.site-brand__name {
  font-family: var(--font-headline);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--clr-cream);
  letter-spacing: 0.04em;
}

.site-brand__tag {
  font-family: var(--font-number);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--clr-accent);
  text-transform: uppercase;
}

.site-brand:hover .site-brand__name {
  color: var(--clr-accent);
}

.header-button {
  flex-shrink: 0;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  gap: 2px;
}

/* 导航 */
.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1001;
  display: none;
  background: var(--clr-deep);
  border-top: 1px solid rgba(242, 239, 233, 0.1);
  box-shadow: var(--shadow-md);
}

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

.site-nav__list {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 8px 0;
}

.site-nav__item + .site-nav__item {
  border-top: 1px solid rgba(242, 239, 233, 0.06);
}

.site-nav__link {
  display: block;
  padding: 14px 20px;
  color: rgba(242, 239, 233, 0.85);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background var(--speed-fast) ease, color var(--speed-fast) ease;
}

.site-nav__link:hover {
  background: rgba(255, 90, 54, 0.1);
  color: var(--clr-cream);
}

.site-nav__link[aria-current="page"] {
  color: var(--clr-accent);
  background: rgba(255, 90, 54, 0.15);
  border-left: 3px solid var(--clr-accent);
}

/* 汉堡按钮 */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(242, 239, 233, 0.28);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--clr-cream);
  border-radius: 2px;
  transition: transform var(--speed-fast) ease, opacity var(--speed-fast) ease;
}

/* 08 共享页脚
   ---------------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--clr-deep);
  color: rgba(242, 239, 233, 0.78);
  border-top: 2px solid var(--clr-accent);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 240px;
  height: 240px;
  background: rgba(255, 90, 54, 0.07);
  border-radius: 42% 58% 61% 39% / 45% 42% 58% 55%;
  pointer-events: none;
}

.site-footer a {
  color: rgba(242, 239, 233, 0.78);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--clr-accent);
}

.site-footer__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 44px 20px 32px;
}

.footer-brand__mark {
  width: 52px;
  height: auto;
  margin-bottom: 12px;
}

.footer-brand__name {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--clr-cream);
  margin-bottom: 4px;
}

.footer-trust {
  font-size: 0.85rem;
  line-height: 1.75;
  color: rgba(242, 239, 233, 0.58);
  border-left: 3px solid var(--clr-green);
  padding-left: 12px;
  margin: 14px 0 0;
}

.footer-heading {
  font-size: 0.95rem;
  color: var(--clr-cream);
  margin-bottom: 14px;
  padding-bottom: 8px;
  position: relative;
}

.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  background: var(--clr-accent);
}

.footer-nav__list,
.footer-legal__list,
.footer-contact__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav__list a,
.footer-legal__list a {
  font-size: 0.9rem;
}

.footer-contact__list li {
  font-size: 0.88rem;
  color: rgba(242, 239, 233, 0.68);
}

.footer-contact__note {
  font-size: 0.78rem;
  color: rgba(242, 239, 233, 0.5);
  margin: 14px 0 0;
  border-top: 1px solid rgba(242, 239, 233, 0.1);
  padding-top: 12px;
}

.site-footer__bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 18px 20px;
  border-top: 1px solid rgba(242, 239, 233, 0.1);
  font-family: var(--font-number);
  font-size: 0.78rem;
  color: rgba(242, 239, 233, 0.46);
}

.site-footer__bottom p {
  margin: 0;
}

/* 09 布局工具
   ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--space-xl) 0;
}

.section--tight {
  padding: var(--space-lg) 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-title {
  margin: 0;
  position: relative;
  padding-left: 18px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12em;
  width: 8px;
  height: 0.9em;
  background: var(--clr-accent);
  border-radius: 999px;
  transform: skew(-12deg);
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--clr-gray);
  margin: 6px 0 0 18px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* 10 首屏声明区
   ---------------------------------------------------------------- */
#main-content {
  min-height: 70vh;
  background: var(--clr-cream);
}

.page-hero {
  position: relative;
  padding: clamp(48px, 7vw, 88px) 20px 56px;
  background: var(--clr-deep);
  color: var(--clr-cream);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
}

.page-hero__index {
  font-family: var(--font-number);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--clr-accent);
}

.page-hero__title {
  color: var(--clr-cream);
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 10px 0 14px;
}

.page-hero__lead {
  max-width: 640px;
  color: rgba(242, 239, 233, 0.72);
  font-size: 1.05rem;
}

/* 11 数据统计组件
   ---------------------------------------------------------------- */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.stat-card {
  background: var(--clr-cream);
  border: 1px solid rgba(15, 59, 59, 0.12);
  border-radius: 14px 20px 16px 22px / 20px 14px 22px 16px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 70px;
  height: 70px;
  background: rgba(255, 90, 54, 0.08);
  border-radius: 50%;
}

.stat-card__value {
  font-family: var(--font-number);
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1.1;
  color: var(--clr-accent);
  display: block;
}

.stat-card__label {
  display: block;
  font-size: 0.84rem;
  color: var(--clr-gray);
  margin-top: 6px;
}

/* 12 数据滚动条
   ---------------------------------------------------------------- */
[data-ticker] {
  position: relative;
  overflow: hidden;
  padding: 14px 18px;
  background: var(--clr-deep);
  color: var(--clr-cream);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--clr-accent);
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

[data-ticker]:focus-visible {
  outline: 3px solid var(--clr-accent);
  outline-offset: 2px;
}

[data-ticker-inner] {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
  will-change: transform;
}

[data-ticker-inner] > * {
  flex-shrink: 0;
  padding-right: 48px;
}

[data-ticker].is-paused [data-ticker-inner] {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

[data-ticker]::after {
  content: "点击暂停";
  position: absolute;
  top: 8px;
  right: 12px;
  font-family: var(--font-number);
  font-size: 0.7rem;
  color: var(--clr-green);
}

[data-ticker].is-paused::after {
  content: "点击继续";
}

/* 13 标签页组件
   ---------------------------------------------------------------- */
.tabs {
  border: 1px solid rgba(15, 59, 59, 0.14);
  border-radius: 16px 18px 14px 20px / 18px 14px 20px 16px;
  background: var(--clr-cream);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  border-bottom: 2px solid rgba(15, 59, 59, 0.1);
  background: rgba(15, 59, 59, 0.03);
}

.tab-button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 14px 20px;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--clr-gray);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color var(--speed-fast) ease, border-color var(--speed-fast) ease, background var(--speed-fast) ease;
}

.tab-button:hover {
  color: var(--clr-deep);
  background: rgba(15, 59, 59, 0.05);
}

.tab-button[aria-selected="true"] {
  color: var(--clr-deep);
  border-bottom-color: var(--clr-accent);
  background: var(--clr-cream);
}

.tab-panel {
  padding: 24px 20px;
}

.tab-panel[hidden] {
  display: none;
}

/* 14 面包屑
   ---------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  gap: 6px;
  padding: 16px 0;
  font-size: 0.82rem;
  color: var(--clr-gray);
}

.breadcrumb a {
  color: var(--clr-deep);
  text-decoration: none;
  font-weight: 500;
}

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

.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  font-family: var(--font-number);
  color: var(--clr-accent);
  font-weight: 700;
}

/* 15 图片容器
   ---------------------------------------------------------------- */
.img-frame {
  position: relative;
  background: var(--clr-indigo);
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.img-frame--portrait {
  aspect-ratio: 3 / 4;
}

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

.img-frame::after {
  content: attr(data-caption);
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  max-width: calc(100% - 20px);
  padding: 4px 10px;
  background: rgba(15, 59, 59, 0.82);
  color: var(--clr-cream);
  font-family: var(--font-number);
  font-size: 0.72rem;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.img-frame:empty::before {
  content: "+";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-number);
  font-size: 1.4rem;
  color: var(--clr-accent);
  background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(255, 255, 255, 0.04) 10px 11px);
}

/* 16 响应式
   ---------------------------------------------------------------- */
@media (min-width: 768px) {
  .site-nav {
    position: static;
    display: block;
    flex: 1;
    margin-left: 20px;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .site-nav__list {
    flex-direction: row;
    justify-content: flex-end;
    padding: 0;
  }

  .site-nav__item + .site-nav__item {
    border-top: 0;
  }

  .site-nav__link {
    padding: 8px 13px;
    font-size: 0.9rem;
    border-radius: 6px;
  }

  .site-nav__link[aria-current="page"] {
    border-left: 0;
  }

  .nav-toggle {
    display: none;
  }

  .container {
    padding: 0 24px;
  }

  .content-grid {
    grid-template-columns: 1.7fr 0.8fr;
    align-items: start;
  }

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

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 48px 24px 40px;
  }

  .page-hero {
    padding: 64px 24px 72px;
  }
}

@media (max-width: 1023px) {
  .site-brand__tag,
  .header-button {
    display: none;
  }
}

@media (min-width: 1024px) {
  .brand-rail {
    display: flex;
  }

  .header-bar {
    margin-left: var(--rail-width);
    padding-left: 24px;
    padding-right: 32px;
  }

  #main-content,
  .site-footer {
    margin-left: var(--rail-width);
  }

  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1.6fr;
    gap: 48px;
    padding: 56px 32px 48px;
  }

  .site-footer__bottom {
    padding-left: 32px;
    padding-right: 32px;
  }

  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 17 减少动态偏好
   ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  [data-ticker-inner] {
    animation: none !important;
    white-space: normal;
    flex-wrap: wrap;
    gap: 8px;
  }

  [data-ticker-inner] > * {
    padding-right: 24px;
  }

  [data-ticker]::after {
    content: "数据列表";
  }

  [data-ticker].is-paused::after {
    content: "数据列表";
  }
}
