/* ==========================================================
   海博体育 全站共享样式 /assets/site.css
   创意原则：体育数据广播终端 / 框架式导航 / 框景首屏
   ========================================================== */

/* ---------- 1. CSS 变量 ---------- */
:root {
  --bg-deep: #0A1B2A;
  --bg-panel: #0F212E;
  --bg-card: #12293A;
  --border-color: #1E3A4D;
  --accent-green: #14F195;
  --accent-orange: #FF6B35;
  --accent-yellow: #FFC857;
  --text-main: #E6F1FF;
  --text-sub: #8FA8BF;
  --font-heading: 'Arial Black', 'PingFang SC', sans-serif;
  --font-data: 'Consolas', 'Courier New', monospace;
  --font-body: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --content-width: 1280px;
  --radius: 4px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 6rem;
  --header-h: 4.5rem;
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-main);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

p {
  overflow-wrap: break-word;
}

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

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

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

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

button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

strong,
b {
  font-weight: 700;
}

[hidden] {
  display: none !important;
}

/* ---------- 3. 中文排版 ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.2;
  color: var(--text-main);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.375rem);
  letter-spacing: 0.015em;
}

h3 {
  font-size: 1.1875rem;
  letter-spacing: 0.01em;
}

h4 {
  font-size: 1rem;
}

.body-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-sub);
}

.mono {
  font-family: var(--font-data);
}

.data-text {
  font-family: var(--font-data);
  color: var(--accent-green);
}

/* ---------- 4. 内容容器与分区 ---------- */
.container {
  width: min(100% - 2rem, var(--content-width));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-8);
}

.section--tight {
  padding-block: var(--space-5);
}

.section--panel {
  background: var(--bg-panel);
}

.section__header {
  margin-bottom: var(--space-5);
}

.section__title {
  margin-bottom: var(--space-2);
}

.section__subtitle {
  font-size: 1rem;
  color: var(--text-sub);
  max-width: 60ch;
  line-height: 1.7;
}

/* ---------- 5. 页面页首横幅 ---------- */
.page-header {
  padding-block: var(--space-6) var(--space-5);
  background: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg-deep) 100%);
  border-bottom: 1px solid var(--border-color);
}

.page-header__title {
  margin-bottom: var(--space-2);
}

.page-header__description {
  font-size: 1.0625rem;
  color: var(--text-sub);
  max-width: 65ch;
  line-height: 1.7;
}

/* ---------- 6. Skip Link ---------- */
.skip-link {
  position: fixed;
  left: var(--space-4);
  top: -100px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  background: var(--accent-green);
  color: var(--bg-deep);
  font-weight: 700;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus-visible {
  top: 0;
  outline: none;
}

/* ---------- 7. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 27, 42, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
}

.site-header::before {
  content: '';
  display: block;
  height: 3px;
  background: var(--accent-green);
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  max-width: var(--content-width);
  margin-inline: auto;
  min-height: var(--header-h);
  padding-inline: var(--space-4);
}

.header__brand {
  flex-shrink: 0;
}

.header__logo-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  border-radius: var(--radius);
}

.header__logo-mark {
  position: relative;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--accent-green) 0%, #0f9f6f 100%);
  border-radius: var(--radius);
  box-shadow: 0 0 14px rgba(20, 241, 149, 0.28);
}

.header__logo-mark::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  width: 18px;
  height: 2px;
  background: var(--bg-deep);
  box-shadow: 0 6px 0 var(--bg-deep), 0 12px 0 var(--bg-deep);
}

.header__logo-mark::after {
  content: '';
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 6px;
  height: 6px;
  background: var(--accent-orange);
  border: 1px solid var(--bg-deep);
  border-radius: 50%;
}

.header__logo-text {
  display: inline-flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.15;
}

.header__logo-name {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.375rem;
  letter-spacing: 0.04em;
  color: var(--text-main);
  white-space: nowrap;
}

.header__logo-sub {
  font-family: var(--font-data);
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  color: var(--text-sub);
  text-transform: uppercase;
}

/* ---------- 8. 导航 ---------- */
.header__nav {
  position: static;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.header__nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: var(--space-2) var(--space-3);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-sub);
  border-radius: var(--radius);
  transition: color 0.2s ease, background 0.2s ease;
}

.header__nav-link::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--accent-green);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.header__nav-link:hover,
.header__nav-link:focus-visible {
  color: var(--text-main);
  background: rgba(20, 241, 149, 0.08);
}

.header__nav-link:hover::before,
.header__nav-link:focus-visible::before {
  opacity: 1;
  transform: scale(1);
}

.header__nav-link[aria-current="page"] {
  color: var(--accent-green);
  font-weight: 700;
}

.header__nav-link[aria-current="page"]::before {
  opacity: 1;
  transform: scale(1);
}

.header__nav-link[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: var(--space-3);
  right: var(--space-3);
  bottom: 2px;
  height: 2px;
  background: var(--accent-green);
  border-radius: 1px;
}

/* ---------- 9. 移动导航开关 ---------- */
.header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--bg-panel);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.header__toggle:hover,
.header__toggle:focus-visible {
  border-color: var(--accent-green);
  background: rgba(20, 241, 149, 0.08);
}

.header__toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent-green);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.header__toggle[aria-expanded="true"] .header__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__toggle[aria-expanded="true"] .header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.header__toggle[aria-expanded="true"] .header__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 10. 滚动进度条 ---------- */
.header__progress {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent-orange);
  pointer-events: none;
  z-index: 5;
  border-radius: 0 3px 3px 0;
}

/* ---------- 11. 页脚 ---------- */
.site-footer {
  margin-top: var(--space-8);
  background: var(--bg-panel);
  border-top: 1px solid var(--border-color);
}

.site-footer::before {
  content: '';
  display: block;
  height: 4px;
  background: repeating-linear-gradient(
    to right,
    var(--accent-green) 0 10px,
    transparent 10px 18px
  );
}

.footer__container {
  max-width: var(--content-width);
  margin-inline: auto;
  padding: var(--space-7) var(--space-4) var(--space-5);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.footer__logo-mark {
  display: inline-block;
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  background: linear-gradient(135deg, var(--accent-green) 0%, #0f9f6f 100%);
  border-radius: var(--radius);
  margin-bottom: var(--space-3);
}

.footer__logo-mark::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 7px;
  width: 16px;
  height: 2px;
  background: var(--bg-panel);
  box-shadow: 0 5px 0 var(--bg-panel), 0 10px 0 var(--bg-panel);
}

.footer__logo-mark::after {
  content: '';
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 5px;
  height: 5px;
  background: var(--accent-orange);
  border: 1px solid var(--bg-panel);
  border-radius: 50%;
}

.footer__slogan {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.125rem;
  color: var(--text-main);
  margin-bottom: var(--space-2);
}

.footer__trust {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-sub);
  max-width: 40ch;
}

.footer__title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-green);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border-color);
}

.footer__links li + li {
  margin-top: var(--space-2);
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-sub);
  transition: color 0.2s ease;
}

.footer__links a::before {
  content: '';
  width: 3px;
  height: 3px;
  background: var(--accent-orange);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.footer__links a:hover,
.footer__links a:focus-visible {
  color: var(--text-main);
}

.footer__links a:hover::before,
.footer__links a:focus-visible::before {
  opacity: 1;
}

.footer__contact {
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer__contact-item {
  position: relative;
  padding-left: 1rem;
  margin-bottom: var(--space-2);
  color: var(--text-sub);
  overflow-wrap: break-word;
}

.footer__contact-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 4px;
  height: 4px;
  background: var(--accent-green);
}

.footer__note {
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: rgba(255, 200, 87, 0.08);
  border-left: 2px solid var(--accent-yellow);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-sub);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-color);
  font-size: 0.8125rem;
  color: var(--text-sub);
}

.footer__copyright {
  font-family: var(--font-data);
  letter-spacing: 0.03em;
}

.footer__meta {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  opacity: 0.8;
}

/* ---------- 12. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--accent-green);
  color: var(--bg-deep);
  font-weight: 700;
}

.btn--primary:hover {
  background: #2ef3a3;
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn--outline:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

/* ---------- 13. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-3) 0;
  font-size: 0.875rem;
  color: var(--text-sub);
}

.breadcrumb a {
  color: var(--text-sub);
  transition: color 0.2s ease;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent-green);
}

.breadcrumb__sep {
  display: inline-block;
  color: var(--border-color);
  margin-inline: 0.25rem;
  font-family: var(--font-data);
}

/* ---------- 14. 卡片 ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: var(--space-4);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: rgba(20, 241, 149, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.card__title {
  font-size: 1.0625rem;
  margin-bottom: var(--space-2);
  letter-spacing: 0.01em;
}

.card__body {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-sub);
}

.card__footer {
  margin-top: var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px solid var(--border-color);
}

/* ---------- 15. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.1875rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-sub);
  background: rgba(20, 241, 149, 0.06);
  border: 1px solid var(--border-color);
  border-radius: 999px;
}

.tag--hot {
  color: var(--accent-orange);
  border-color: rgba(255, 107, 53, 0.4);
  background: rgba(255, 107, 53, 0.08);
}

.tag--live {
  color: var(--accent-green);
  border-color: rgba(20, 241, 149, 0.4);
  background: rgba(20, 241, 149, 0.1);
}

/* ---------- 16. 媒体占位框 ---------- */
.media-frame {
  position: relative;
  display: block;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.media-frame img,
.media-frame svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(20, 241, 149, 0.1);
  pointer-events: none;
}

/* ---------- 17. 数据统计块 ---------- */
.data-stat {
  display: inline-flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-card);
  border-left: 3px solid var(--accent-green);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.data-stat__value {
  font-family: var(--font-data);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
}

.data-stat__label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-sub);
}

/* ---------- 18. 坐标眉标 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-data);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: var(--space-2);
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent-orange);
  transform: rotate(45deg);
}

/* ---------- 19. 网格 ---------- */
.grid {
  display: grid;
  gap: var(--space-5);
}

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

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

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

/* ---------- 20. 工具类 ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
}

/* ---------- 21. 焦点可见 ---------- */
:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- 22. 响应式：平板与移动端 ---------- */
@media (max-width: 1023px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }
}

@media (max-width: 900px) {
  .header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  }

  .js-enabled .header__nav {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .js-enabled .header__nav[data-open] {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .header__nav-list {
    flex-direction: column;
    gap: 0;
    padding: var(--space-2) var(--space-3);
  }

  .header__nav-item {
    border-bottom: 1px solid rgba(30, 58, 77, 0.5);
  }

  .header__nav-item:last-child {
    border-bottom: none;
  }

  .header__nav-link {
    display: flex;
    padding: var(--space-3) var(--space-2);
    font-size: 1rem;
  }

  .header__nav-link::before {
    width: 6px;
    height: 6px;
  }

  .header__nav-link[aria-current="page"]::after {
    left: var(--space-2);
    right: auto;
    width: 24px;
    bottom: auto;
    top: 50%;
    height: 2px;
    transform: translateY(-50%);
    border-radius: 1px;
  }

  .header__toggle {
    display: inline-flex;
  }

  .grid--2,
  .grid--split {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding-block: var(--space-6);
  }
}

@media (max-width: 767px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

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

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .page-header {
    padding-block: var(--space-4) var(--space-4);
  }
}

@media (max-width: 480px) {
  .header__logo-sub {
    display: none;
  }

  .header__logo-name {
    font-size: 1.125rem;
  }

  .header__logo-mark {
    width: 2.125rem;
    height: 2.125rem;
  }

  .header__logo-mark::before {
    top: 7px;
    left: 6px;
    width: 16px;
  }

  .header__logo-mark::after {
    right: 4px;
    bottom: 4px;
    width: 5px;
    height: 5px;
  }
}

/* ---------- 23. 减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
