/* ============================================================
   YOBO体育 · Site Kit 共享样式
   File: /assets/site.css
   设计语言：体育数据控制台 · 深蓝基座 · 竞技红焦点 · 荧光绿状态
   ============================================================ */

/* ---------- 变量 ---------- */
:root {
  --c-primary: #0B1A2E;
  --c-primary-2: #102C4C;
  --c-accent: #E63A3E;
  --c-accent-2: #39FF9E;
  --c-text: #F2F5F8;
  --c-text-dim: #B0B8C2;
  --c-white: #FFFFFF;
  --c-red-soft: rgba(230, 58, 62, 0.15);
  --header-w: 240px;
  --rad-sm: 10px;
  --rad-md: 16px;
  --rad-lg: 24px;
  --rad-pill: 999px;
  --font-display: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Source Sans 3', 'Inter', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Roboto Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --shadow-btn: 0 6px 20px rgba(230, 58, 62, 0.32);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-z: 100;
  --progress-z: 120;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--c-text);
  background-color: var(--c-primary);
  background-image:
    radial-gradient(circle at 12% -8%, rgba(230, 58, 62, 0.10), transparent 42%),
    radial-gradient(circle at 92% 18%, rgba(57, 255, 158, 0.045), transparent 36%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 排版 ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.15;
  color: var(--c-white);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.04rem; }
p { margin-bottom: 1em; }
a {
  color: var(--c-accent-2);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--c-accent); }
ul, ol { padding-left: 1.4em; }

::selection { background: var(--c-accent); color: var(--c-white); }

:focus-visible {
  outline: 2px solid var(--c-accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--c-accent-2);
  outline-offset: 3px;
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 10px 20px;
  background: var(--c-accent);
  color: var(--c-white);
  border-radius: var(--rad-pill);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-220%);
  transition: transform 0.2s var(--ease);
}
.skip-link:hover { color: var(--c-white); }
.skip-link:focus { transform: translateY(0); }

/* ---------- 按钮体系 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--rad-pill);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  background: none;
  color: var(--c-white);
  transition:
    transform 0.15s var(--ease),
    box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(2px); }

.btn-primary {
  background: var(--c-accent);
  color: var(--c-white);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
  background: #f05053;
  color: var(--c-white);
  box-shadow: 0 8px 28px rgba(230, 58, 62, 0.45);
}
.btn-primary:active {
  box-shadow: 0 2px 8px rgba(230, 58, 62, 0.4);
}
.btn-block { width: 100%; }

/* ---------- 头部 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--header-w);
  z-index: var(--header-z);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--c-primary-2) 0%, var(--c-primary) 100%);
  border-right: 1px solid rgba(242, 245, 248, 0.06);
}

.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(242, 245, 248, 0.06);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--c-text-dim);
  white-space: nowrap;
  overflow: hidden;
}
.status-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-accent-2);
  box-shadow: 0 0 8px var(--c-accent-2);
}
.status-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 18px 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}
.mark-bolt { fill: var(--c-accent); }
.mark-line {
  fill: none;
  stroke: var(--c-accent-2);
  stroke-width: 2.4;
  stroke-linecap: round;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--c-white);
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

/* 移动端导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid rgba(242, 245, 248, 0.14);
  border-radius: var(--rad-pill);
  color: var(--c-white);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-toggle:hover {
  background: var(--c-primary-2);
  border-color: var(--c-accent-2);
}
.nav-toggle[aria-expanded="true"] { border-color: var(--c-accent); }
.nav-toggle-box {
  position: relative;
  display: block;
  width: 18px;
  height: 14px;
}
.nav-toggle-bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease), top 0.25s var(--ease);
}
.nav-toggle-bar:nth-child(1) { top: 0; }
.nav-toggle-bar:nth-child(2) { top: 6px; }
.nav-toggle-bar:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { top: 6px; transform: rotate(-45deg); }
.nav-toggle-text { font-size: 13px; font-weight: 700; }

/* 导航面板 */
.header-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px 12px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.header-panel::-webkit-scrollbar { width: 4px; }
.header-panel::-webkit-scrollbar-track { background: transparent; }
.header-panel::-webkit-scrollbar-thumb { background: rgba(242, 245, 248, 0.12); border-radius: 4px; }

.header-panel-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.main-nav { flex: 1; }

.nav-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-item { position: relative; }
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--rad-pill);
  color: var(--c-text-dim);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease);
}
.nav-link:hover {
  color: var(--c-white);
  background: rgba(242, 245, 248, 0.06);
  text-decoration: none;
}
.nav-link[aria-current="page"] {
  color: var(--c-white);
  background: linear-gradient(90deg, rgba(230, 58, 62, 0.20), rgba(230, 58, 62, 0.04));
  box-shadow: inset 0 0 0 1px rgba(230, 58, 62, 0.15);
}
.nav-link[aria-current="page"]::after {
  content: '';
  position: absolute;
  right: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent-2);
  box-shadow: 0 0 8px rgba(57, 255, 158, 0.7);
}
.nav-index {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--c-accent);
  min-width: 26px;
}
.nav-link[aria-current="page"] .nav-index { color: var(--c-accent-2); }
.nav-label { white-space: nowrap; }

/* 侧栏底部行动区 */
.header-foot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  padding: 16px 4px 0;
  border-top: 1px solid rgba(242, 245, 248, 0.06);
}
.header-foot-note {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--c-text-dim);
  text-align: center;
  line-height: 1.5;
}

/* ---------- 滚动进度线 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: var(--progress-z);
  background: rgba(242, 245, 248, 0.08);
  pointer-events: none;
}
.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--c-accent) 0%, var(--c-accent-2) 100%);
  transform: scaleX(0);
  transform-origin: 0 0;
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  margin-left: var(--header-w);
  background: var(--c-primary-2);
  border-top: 1px solid rgba(242, 245, 248, 0.06);
  overflow: hidden;
  color: var(--c-text-dim);
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--c-accent) 0%, var(--c-accent) 32%, transparent 90%);
  z-index: 2;
}
.site-footer::after {
  content: '';
  position: absolute;
  right: -8%;
  bottom: -32%;
  width: 45%;
  height: 65%;
  background: var(--c-red-soft);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.site-footer .footer-shell,
.site-footer .footer-bottom {
  position: relative;
  z-index: 1;
}

.footer-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 48px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--c-white);
  flex-wrap: wrap;
}
.footer-logo:hover { color: var(--c-white); text-decoration: none; }
.footer-logo .brand-mark { width: 30px; height: 30px; }
.footer-logo .brand-name { font-size: 20px; }

.brand-domain {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-text-dim);
  border: 1px solid rgba(242, 245, 248, 0.14);
  padding: 2px 8px;
  border-radius: var(--rad-pill);
}
.footer-desc {
  font-size: 14px;
  color: var(--c-text-dim);
  line-height: 1.7;
  max-width: 38ch;
  margin: 0;
}
.footer-trust {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--c-text-dim);
  background: rgba(242, 245, 248, 0.04);
  border: 1px solid rgba(242, 245, 248, 0.07);
  border-radius: var(--rad-md);
  padding: 12px 14px;
  max-width: 48ch;
  line-height: 1.6;
}
.trust-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-accent-2);
  margin-top: 7px;
  box-shadow: 0 0 8px var(--c-accent-2);
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.footer-col-nav,
.footer-col-legal,
.footer-col-contact {
  align-items: flex-start;
}
.footer-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  margin-bottom: 2px;
}
.footer-col-contact .footer-title { color: var(--c-accent); }
.footer-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-list a {
  color: var(--c-text);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer-list a:hover { color: var(--c-accent-2); text-decoration: none; }
.footer-contact-item {
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text);
  word-break: break-all;
}
.footer-contact-item a { color: var(--c-white); }
.footer-contact-item a:hover { color: var(--c-accent-2); }
.footer-hours {
  font-size: 12px;
  color: var(--c-text-dim);
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(242, 245, 248, 0.06);
}

.footer-bottom {
  margin-top: 56px;
  border-top: 1px solid rgba(242, 245, 248, 0.07);
  background: rgba(11, 26, 46, 0.5);
}
.footer-bar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-text-dim);
}

/* ---------- 主内容容器 ---------- */
#main-content {
  margin-left: var(--header-w);
  min-height: calc(100vh - 72px);
  scroll-margin-top: 88px;
  outline: none;
}
#main-content:focus-visible {
  outline: 2px solid var(--c-accent-2);
  outline-offset: -2px;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
}

/* ---------- 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-text-dim);
  padding: 16px 0;
}
.breadcrumbs a { color: var(--c-text-dim); }
.breadcrumbs a:hover { color: var(--c-accent-2); }
.breadcrumbs-sep { color: var(--c-text-dim); opacity: 0.5; }
.breadcrumbs [aria-current="page"] { color: var(--c-white); }

/* ---------- 栅格 ---------- */
.page-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

/* ---------- 基础组件 ---------- */
.card {
  background: var(--c-primary-2);
  border: 1px solid rgba(242, 245, 248, 0.06);
  border-radius: var(--rad-lg);
  padding: 28px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover {
  border-color: rgba(57, 255, 158, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(11, 26, 46, 0.5);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--rad-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--c-text-dim);
  background: rgba(242, 245, 248, 0.06);
  border: 1px solid rgba(242, 245, 248, 0.10);
}
.pill--accent {
  color: var(--c-accent-2);
  border-color: rgba(57, 255, 158, 0.30);
  background: rgba(57, 255, 158, 0.08);
}
.pill--red {
  color: #ff9a9d;
  border-color: rgba(230, 58, 62, 0.40);
  background: rgba(230, 58, 62, 0.12);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--c-accent);
  border-radius: 2px;
}

.data-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--c-text);
}
.data-line strong {
  color: var(--c-white);
  font-weight: 600;
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--rad-lg);
  background: var(--c-primary-2);
  border: 1px solid rgba(242, 245, 248, 0.08);
  aspect-ratio: 16 / 9;
}
.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(230, 58, 62, 0.12), transparent 50%);
  pointer-events: none;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--portrait { aspect-ratio: 4 / 5; }
.media-frame--sports { aspect-ratio: 3 / 4; }
.media-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-text-dim);
  margin-top: 8px;
}

/* ---------- 平板 / 移动端 ---------- */
@media (max-width: 1023px) {
  .site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(242, 245, 248, 0.08);
    box-shadow: 0 8px 24px rgba(11, 26, 46, 0.35);
  }
  .header-status {
    padding: 6px 16px 5px;
    font-size: 9px;
    border-bottom: 1px solid rgba(242, 245, 248, 0.05);
  }
  .header-main {
    padding: 10px 16px;
  }
  .brand { gap: 8px; }
  .brand-mark { width: 28px; height: 28px; }
  .brand-name { font-size: 18px; }
  .nav-toggle { display: inline-flex; }

  .header-panel {
    flex: unset;
    display: grid;
    grid-template-rows: 0fr;
    padding: 0;
    overflow: hidden;
    transition: grid-template-rows 0.35s var(--ease);
  }
  .header-panel[data-open] { grid-template-rows: 1fr; }
  .header-panel-inner {
    overflow: hidden;
    min-height: 0;
    padding: 8px 16px 16px;
    border-top: 1px solid rgba(242, 245, 248, 0.08);
  }
  .header-foot {
    margin-top: 10px;
    padding: 14px 0 0;
  }

  #main-content,
  .site-footer {
    margin-left: 0;
  }
  #main-content {
    scroll-margin-top: 12px;
    min-height: calc(100vh - 60px);
  }

  .footer-shell {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding: 48px 24px 0;
  }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { margin-top: 44px; }
  .footer-bar { padding: 20px 24px; }
}

@media (max-width: 767px) {
  .footer-shell {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 20px 0;
  }
  .footer-brand { grid-column: auto; }
  .footer-bar {
    justify-content: center;
    text-align: center;
    padding: 20px;
  }
  .page-grid { grid-template-columns: 1fr; }
  .nav-link {
    padding: 12px 14px;
    font-size: 16px;
  }
  .breadcrumbs {
    font-size: 11px;
    padding: 12px 0;
  }
  .card { padding: 20px; }
  #main-content { scroll-margin-top: 8px; }
}

/* ---------- 减弱动效 ---------- */
@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;
    transition-delay: 0ms !important;
  }
}
