/* ==========================================================================
   博奥体育CN / 全站共享样式 / assets/site.css
   设计语法：技术蓝图式数据控制台
   ========================================================================== */

/* 重置与变量 */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-void: #0A192F;
  --bg-panel: #112240;
  --bg-panel-2: #0B1E3A;
  --accent: #39FF14;
  --accent-soft: rgba(57, 255, 20, 0.1);
  --fire-start: #FF6B35;
  --fire-end: #FF2E63;
  --ink-hi: #E6F1FF;
  --ink-mid: #A8B2D1;
  --ink-low: #607A9C;
  --line: #233554;
  --grid: rgba(255, 255, 255, 0.05);
  --warn: #FFD166;
  --font-h: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans", "PingFang SC", sans-serif;
  --font-data: "Roboto Mono", "SF Mono", "Consolas", monospace;
  --w-container: 1320px;
  --header-h: 78px;
  --radius: 4px;
}

/* 基础元素 */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-hi);
  background-color: var(--bg-void);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main,
section,
article,
aside,
header,
footer,
nav,
figure {
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-h);
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink-hi);
  margin-bottom: 0.6em;
}

p {
  margin-bottom: 1em;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--ink-hi);
}

ul, ol {
  padding-left: 1.4em;
  margin-bottom: 1em;
}

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

code {
  font-family: var(--font-data);
  font-size: 0.9em;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--accent);
}

pre {
  font-family: var(--font-data);
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 1.4em;
}

pre code {
  border: 0;
  padding: 0;
  background: transparent;
}

blockquote {
  border-left: 3px solid var(--accent);
  background: var(--bg-panel);
  padding: 18px 22px;
  color: var(--ink-mid);
  margin: 24px 0;
}

blockquote strong {
  color: var(--ink-hi);
}

/* 通用工具类 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.data-mono {
  font-family: var(--font-data);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-mid);
}

.panel-shell {
  max-width: var(--w-container);
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
}

.page-shell {
  max-width: var(--w-container);
  margin: 0 auto;
  padding: 56px 28px 96px;
  width: 100%;
}

#main-content {
  min-height: 60vh;
  scroll-margin-top: calc(var(--header-h) + 12px);
  outline: none;
}

/* 面包屑 */
.breadcrumb {
  max-width: var(--w-container);
  margin: 20px auto 0;
  padding: 0 28px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-low);
}

.breadcrumb a {
  color: var(--ink-mid);
}

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

.breadcrumb .bc-sep {
  margin: 0 10px;
  color: var(--ink-low);
}

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

/* 页面标题与摘要 */
.page-title {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.page-title[data-kicker]::before {
  content: attr(data-kicker);
  display: block;
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.24em;
  color: var(--accent);
  margin-bottom: 16px;
}

.page-sub {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-mid);
  max-width: 44em;
  margin-bottom: 0;
}

/* 数据标签 */
.data-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-mid);
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  white-space: nowrap;
}

.data-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(57, 255, 20, 0.7);
}

/* 图片占位容器 */
.img-stage {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(57, 255, 20, 0.08) 0%, transparent 40%),
    linear-gradient(315deg, rgba(255, 46, 99, 0.06) 0%, transparent 60%),
    var(--bg-panel);
  border: 1px solid var(--line);
}

.img-stage.is-16-9 { aspect-ratio: 16 / 9; }
.img-stage.is-1-1 { aspect-ratio: 1 / 1; }

.img-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: 1;
  pointer-events: none;
}

.img-stage::after {
  content: attr(data-label);
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-mid);
  background: rgba(10, 25, 47, 0.78);
  padding: 3px 10px;
  border-left: 2px solid var(--accent);
  z-index: 2;
}

.img-stage img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 焦点可见性 */
:focus-visible {
  outline: 2px dashed var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* 跳转链接 */
.skip-link {
  position: fixed;
  top: -120px;
  left: 20px;
  z-index: 2000;
  padding: 10px 20px;
  background: var(--accent);
  color: #04120A;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: 4px;
  transition: top 0.25s ease;
}

.skip-link:focus-visible {
  top: 16px;
  color: #04120A;
}

/* ==========================================================================
   头部
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 25, 47, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

/* 阅读进度条 */
.prog-rail {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  overflow: hidden;
  z-index: 10;
}

.prog-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--fire-start), var(--fire-end), var(--accent));
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.5);
  transition: width 0.2s ease-out;
}

/* 头部网格 */
.hdr-grid {
  max-width: var(--w-container);
  margin: 0 auto;
  padding: 0 28px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 22px;
  position: relative;
}

/* 品牌 */
.hdr-brand {
  flex-shrink: 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink-hi);
}

.brand-link:hover {
  color: var(--ink-hi);
}

.brand-ico {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #04120A;
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.5px;
  clip-path: polygon(0 0, 100% 0, 100% 74%, 78% 100%, 0 100%);
  box-shadow: 0 0 16px rgba(57, 255, 20, 0.25);
}

.brand-txt {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.brand-sub {
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
}

/* 导航 */
.hdr-nav {
  margin: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 2px;
}

.nav-item {
  position: relative;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 13px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-mid);
  text-decoration: none;
  border-radius: var(--radius);
  overflow: hidden;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav-idx {
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-low);
  transition: color 0.25s ease;
}

/* 导航扫描线 */
.nav-link::before {
  content: "";
  position: absolute;
  left: -100%;
  top: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(57, 255, 20, 0.12), transparent);
  transition: left 0.45s ease;
  pointer-events: none;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  background: var(--accent-soft);
  color: var(--ink-hi);
}

.nav-link:hover .nav-idx {
  color: var(--accent);
}

.nav-link[aria-current="page"] {
  color: var(--ink-hi);
  background: var(--accent-soft);
}

.nav-link[aria-current="page"] .nav-idx {
  color: var(--accent);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.6);
}

/* 右侧工具区 */
.hdr-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.data-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(17, 34, 64, 0.7);
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-mid);
  white-space: nowrap;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(57, 255, 20, 0.8);
  animation: dot-pulse 2s ease-in-out infinite;
}

.status-sig {
  color: var(--ink-mid);
}

.status-sep {
  margin: 0 2px;
  color: var(--ink-low);
}

.status-ch {
  color: var(--ink-low);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.status-num {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  min-width: 18px;
  text-align: right;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* 强调按钮 */
.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--accent);
  color: #04120A;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 2px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}

.btn-solid:hover {
  background: #7AFF4D;
  color: #04120A;
  filter: drop-shadow(0 0 14px rgba(57, 255, 20, 0.45));
}

.btn-arrow {
  font-size: 13px;
}

/* 移动导航开关 */
.hdr-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 10px 9px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  flex-shrink: 0;
}

.hdr-toggle:hover {
  border-color: var(--accent);
}

.toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink-hi);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.hdr-toggle[aria-expanded="true"] .toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
  background: var(--accent);
}

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

.hdr-toggle[aria-expanded="true"] .toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  background: var(--accent);
}

/* ==========================================================================
   页脚
   ========================================================================== */

.site-footer {
  position: relative;
  background-color: #071224;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 46px 46px;
  border-top: 1px solid var(--line);
  margin-top: 80px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 55%);
}

.ftr-grid {
  max-width: var(--w-container);
  margin: 0 auto;
  padding: 64px 28px 44px;
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 2.4fr;
  gap: 48px;
}

.ftr-brand .brand-link {
  margin-bottom: 18px;
}

.ftr-brand .brand-ico {
  width: 42px;
  height: 42px;
  font-size: 16px;
}

.ftr-about {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-mid);
  max-width: 30em;
  margin-bottom: 0;
}

.ftr-heading {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-hi);
}

.ftr-heading::before {
  content: "//";
  margin-right: 8px;
  color: var(--accent);
  font-family: var(--font-data);
}

.ftr-linklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ftr-linklist li {
  margin-bottom: 2px;
}

.ftr-linklist a {
  position: relative;
  display: inline-block;
  padding: 6px 0 6px 16px;
  font-size: 14px;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease, text-shadow 0.2s ease;
}

.ftr-linklist a::before {
  content: "›";
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-family: var(--font-data);
}

.ftr-linklist a:hover {
  color: var(--ink-hi);
  padding-left: 20px;
  text-shadow: 0 0 12px rgba(57, 255, 20, 0.35);
}

.ftr-contact .ftr-line {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-mid);
  margin-bottom: 4px;
}

.ftr-contact .ftr-line::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 6px;
  font-size: 8px;
  color: var(--accent);
}

.ftr-note {
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-low);
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-bottom: 0;
}

.ftr-legal {
  max-width: var(--w-container);
  margin: 0 auto;
  padding: 18px 28px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--ink-low);
}

.icp-tag {
  font-family: var(--font-data);
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(57, 255, 20, 0.05);
  color: var(--ink-mid);
  white-space: nowrap;
}

.ftr-copy {
  margin: 0;
  color: var(--ink-mid);
}

.ftr-ts {
  width: 100%;
  margin: 6px 0 0;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-low);
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}

/* ==========================================================================
   响应式
   ========================================================================== */

:root {
  --hdr-break: 960px;
}

@media (max-width: 1120px) {
  .data-status {
    display: none;
  }

  .hdr-grid {
    gap: 14px;
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 66px;
  }

  .hdr-grid {
    gap: 12px;
    padding: 0 18px;
  }

  .hdr-brand {
    margin-right: 0;
  }

  /* 移动 nav：数据面板式抽屉 */
  .hdr-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.45);
    transition:
      max-height 0.38s ease,
      visibility 0s linear 0.38s;
  }

  .hdr-nav[data-open="true"] {
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    visibility: visible;
    transition:
      max-height 0.38s ease,
      visibility 0s;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 18px;
    gap: 0;
  }

  .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
  }

  .nav-item:last-child {
    border-bottom: 0;
  }

  .nav-link {
    padding: 15px 10px;
    font-size: 16px;
    border-radius: var(--radius);
  }

  .nav-link::before {
    display: none;
  }

  .nav-link[aria-current="page"]::after {
    display: none;
  }

  .nav-link[aria-current="page"] {
    position: relative;
  }

  .nav-link[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 18px;
    width: 3px;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(57, 255, 20, 0.6);
  }

  .nav-idx {
    font-size: 12px;
  }

  .hdr-toggle {
    display: flex;
  }
}

@media (max-width: 640px) {
  .brand-ico {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-sub {
    display: none;
  }

  .btn-solid {
    padding: 9px 13px;
    font-size: 13px;
  }

  .btn-arrow {
    font-size: 12px;
  }

  .ftr-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
    padding: 48px 20px 36px;
  }

  .ftr-brand,
  .ftr-contact {
    grid-column: 1 / -1;
  }

  .ftr-legal {
    padding: 18px 20px 24px;
    gap: 10px 18px;
  }
}

@media (max-width: 420px) {
  .hdr-grid {
    gap: 8px;
    padding: 0 12px;
  }

  .btn-solid .btn-arrow {
    display: none;
  }

  .btn-solid {
    padding: 9px 11px;
    font-size: 12px;
  }

  .ftr-grid {
    grid-template-columns: 1fr;
    gap: 32px 0;
  }

  .ftr-legal {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   动效与可访问性
   ========================================================================== */

@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;
  }

  .prog-bar {
    transition: none;
  }

  .status-dot {
    animation: none;
  }
}
