/* ==========================================================================
   BOB体育中文站 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   ========================================================================== */

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

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

body,
h1, h2, h3, h4, h5,
p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; }

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

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

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

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

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ---------- 2. 设计变量 ---------- */
:root {
  /* 色彩 */
  --ink: #061A2B;
  --ink-2: #0B2740;
  --ink-3: #123553;
  --cyan: #2DE2E6;
  --cyan-soft: #9BF6F7;
  --orange: #FF6B2C;
  --lime: #B6FF3B;
  --cream: #F7F3EA;
  --mist: #E6EDF5;
  --steel: #5D7285;
  --coral: #FF8A7A;

  --line: rgba(45, 226, 230, 0.22);
  --line-strong: rgba(45, 226, 230, 0.46);
  --line-soft: rgba(230, 237, 245, 0.12);

  /* 字体 */
  --font-display: "Archivo Black", "Noto Sans SC", "PingFang SC",
    "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "HarmonyOS Sans SC",
    "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace,
    SFMono-Regular, Consolas, "Liberation Mono", monospace;

  /* 尺度 */
  --header-h: 78px;
  --shell: 1320px;
  --gutter: clamp(18px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  padding-top: var(--header-h);
  background: var(--ink);
  color: var(--mist);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.02vw, 17px);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.06;
  color: #ffffff;
}

h1 { font-size: clamp(48px, 8vw, 120px); }
h2 { font-size: clamp(32px, 4vw, 56px); }
h3 { font-size: clamp(20px, 1.8vw, 30px); line-height: 1.2; }
h4 { font-size: clamp(17px, 1.2vw, 20px); line-height: 1.3; letter-spacing: -0.01em; }

p { max-width: 74ch; }

strong { font-weight: 700; color: #ffffff; }

::selection { background: var(--cyan); color: var(--ink); }

/* ---------- 4. 通用容器与网格 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
}

.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

/* ---------- 5. 通用文本与标签 ---------- */
.plate {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.plate::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--cyan);
  flex: none;
}

.num {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-align: center;
  transition: background-color 0.24s var(--ease), color 0.24s var(--ease),
    border-color 0.24s var(--ease), transform 0.24s var(--ease);
}

.btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #08131d;
  font-weight: 700;
}

.btn--primary:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--cyan-soft);
  background: rgba(45, 226, 230, 0.04);
}

.btn--ghost:hover {
  background: rgba(45, 226, 230, 0.14);
  border-color: var(--cyan);
  color: #ffffff;
}

/* ---------- 7. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--steel);
}

.breadcrumb a { color: var(--steel); transition: color 0.2s var(--ease); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--cyan); }
.breadcrumb__sep { color: var(--steel); opacity: 0.55; }

/* ---------- 8. 框景与图片容器 ---------- */
.frame {
  position: relative;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(11, 39, 64, 0.74), rgba(6, 26, 43, 0.92));
}

.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.frame::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
}

.frame::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
}

.media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
}

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

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 26, 43, 0) 42%, rgba(6, 26, 43, 0.78) 100%);
  pointer-events: none;
}

.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }

/* ---------- 9. 表格基础 ---------- */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
}

.table th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  border-bottom-color: var(--line);
}

.table tbody tr:nth-child(even) { background: rgba(11, 39, 64, 0.45); }

/* ==========================================================================
   10. 头部
   ========================================================================== */
.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 200;
  padding: 11px 20px;
  background: var(--cyan);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transform: translate(-50%, -130%);
  transition: transform 0.22s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible { transform: translate(-50%, 0); }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(6, 26, 43, 0.94) 0%, rgba(6, 26, 43, 0.55) 62%, rgba(6, 26, 43, 0) 100%);
  transition: background-color 0.34s var(--ease), border-color 0.34s var(--ease),
    box-shadow 0.34s var(--ease);
}

.site-header[data-scrolled] {
  background: var(--ink);
  border-bottom-color: var(--line);
  box-shadow: 0 16px 44px rgba(3, 12, 21, 0.62);
}

.site-header[data-open] {
  background: var(--ink);
  border-bottom-color: var(--line);
}

.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: rgba(45, 226, 230, 0.1);
  overflow: hidden;
}

.header-progress > span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--lime) 100%);
  transition: width 0.12s linear;
}

.header-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 34px);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand__mark {
  position: relative;
  display: block;
  width: 32px;
  height: 32px;
  border: 1px solid var(--cyan);
  flex: none;
  transition: border-color 0.24s var(--ease);
}

.brand__mark::before {
  content: "";
  position: absolute;
  inset: 7px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--cyan) 0 3px,
    transparent 3px 6px
  );
  opacity: 0.85;
}

.brand__mark::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 8px;
  height: 8px;
  background: var(--orange);
}

.brand:hover .brand__mark { border-color: var(--cyan-soft); }

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.16;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: #ffffff;
  white-space: nowrap;
}

.brand__tag {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  white-space: nowrap;
}

/* 导航 */
.site-nav { margin-left: auto; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1vw, 16px);
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--mist);
  white-space: nowrap;
  transition: color 0.24s var(--ease);
}

.site-nav__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--steel);
  transition: color 0.24s var(--ease);
}

.site-nav__label { white-space: nowrap; }

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 3px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease);
}

.site-nav__link:hover { color: #ffffff; }
.site-nav__link:hover .site-nav__num { color: var(--cyan); }
.site-nav__link:hover::after { transform: scaleX(1); }

.site-nav__link[aria-current="page"] { color: var(--cyan); }
.site-nav__link[aria-current="page"] .site-nav__num { color: var(--orange); }
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* 右侧工具 */
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--cyan-soft);
  white-space: nowrap;
  transition: background-color 0.24s var(--ease), border-color 0.24s var(--ease),
    color 0.24s var(--ease);
}

.tool-link__glyph {
  position: relative;
  width: 11px;
  height: 11px;
  border: 1px solid currentColor;
  border-radius: 50%;
  flex: none;
}

.tool-link__glyph::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 6px;
  height: 1px;
  background: currentColor;
  transform: rotate(45deg);
}

.tool-link:hover {
  background: rgba(45, 226, 230, 0.13);
  border-color: var(--cyan);
  color: #ffffff;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  color: var(--cyan);
  transition: background-color 0.24s var(--ease), border-color 0.24s var(--ease);
}

.nav-toggle:hover { background: rgba(45, 226, 230, 0.12); border-color: var(--cyan); }

.nav-toggle__box {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}

.nav-toggle__box i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle__box i:nth-child(1) { top: 0; }
.nav-toggle__box i:nth-child(2) { bottom: 0; }

.site-header[data-open] .nav-toggle__box i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-open] .nav-toggle__box i:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

body[data-nav-open] { overflow: hidden; }

/* ==========================================================================
   11. 页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 128px);
  background: var(--ink);
  border-top: 1px solid var(--line);
  color: var(--mist);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(45, 226, 230, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 226, 230, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent 72%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent 72%);
}

.footer-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(44px, 6vw, 84px) var(--gutter) 26px;
}

.footer-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  margin: 0;
  max-width: none;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 46px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #ffffff;
}

.footer-line {
  margin: 0;
  max-width: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--steel);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.8fr;
  gap: clamp(24px, 3.4vw, 56px);
  padding-block: clamp(30px, 4vw, 52px);
  border-bottom: 1px solid var(--line-soft);
}

.footer-col { min-width: 0; }

.footer-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-title::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--orange);
  flex: none;
}

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

.footer-list a {
  font-size: 14px;
  color: var(--mist);
  opacity: 0.85;
  transition: color 0.22s var(--ease), opacity 0.22s var(--ease);
}

.footer-list a:hover { color: var(--cyan); opacity: 1; }

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

.footer-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--mist);
  word-break: break-word;
}

.footer-note {
  margin-top: 16px;
  max-width: 44ch;
  font-size: 12px;
  line-height: 1.78;
  color: var(--steel);
}

.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 22px;
  font-size: 12px;
  color: var(--steel);
}

.footer-copy,
.footer-icp {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.footer-icp {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  transition: background-color 0.24s var(--ease), border-color 0.24s var(--ease),
    color 0.24s var(--ease);
}

.footer-top::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--orange);
  flex: none;
}

.footer-top:hover {
  background: rgba(45, 226, 230, 0.13);
  border-color: var(--cyan);
  color: #ffffff;
}

/* ==========================================================================
   12. 响应式
   ========================================================================== */
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }

  .header-tools { margin-left: auto; }

  .tool-link { display: none; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    margin-left: 0;
    padding: 26px var(--gutter) 56px;
    background: var(--ink);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.26s var(--ease), transform 0.26s var(--ease),
      visibility 0.26s var(--ease);
  }

  .site-header[data-open] .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__list > li + li { border-top: 1px solid var(--line-soft); }

  .site-nav__link {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    padding: 18px 0;
    font-size: 17px;
    color: var(--mist);
  }

  .site-nav__num { font-size: 11px; letter-spacing: 0.12em; min-width: 22px; }

  .site-nav__link::after {
    left: 0;
    right: 0;
    bottom: 10px;
  }

  .site-nav__link[aria-current="page"] { color: var(--cyan); }
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .footer-grid > .footer-col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }

  .brand__mark { width: 28px; height: 28px; }
  .brand__name { font-size: 15px; }
  .brand__tag { font-size: 9px; letter-spacing: 0.14em; }

  .footer-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid > .footer-col:last-child { grid-column: auto; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-note { max-width: none; }
}

@media (max-width: 520px) {
  .brand__tag { display: none; }
  .header-shell { gap: 10px; }
  .nav-toggle { width: 40px; height: 40px; }
  .plate { font-size: 10px; letter-spacing: 0.14em; }
  .btn { width: 100%; }
}

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