/* =====================================================
   58买球官网 · 三球速览 Site Kit
   路径 /assets/site.css
   覆盖：reset / 变量 / 排版 / 头部 / 页脚 / 基础组件
   ===================================================== */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: "IBM Plex Mono", "Noto Sans Mono", "PingFang SC", "Microsoft YaHei", monospace;
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-ink);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h, 104px);
  min-height: 100vh;
}
img, picture, video, canvas, svg { max-width: 100%; display: block; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
table { border-collapse: collapse; width: 100%; }
input, textarea, select { font: inherit; }

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

/* ---------- 2. Variables ---------- */
:root {
  /* 色彩体系 */
  --c-navy: #0b1d2b;
  --c-neon: #39ff14;
  --c-orange: #ff6b35;
  --c-paper: #f5e9d7;
  --c-ink: #1d1d1b;
  --c-grayblue: #d0d9e0;
  --c-white: #ffffff;
  --c-red: #e63946;

  /* 字体 */
  --font-head: "Archivo Black", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "IBM Plex Mono", "Noto Sans Mono", "PingFang SC", "Microsoft YaHei", monospace;

  /* 布局 */
  --container-w: 1280px;
  --header-h: 104px;

  /* 间距 */
  --sp-xs: 8px;
  --sp-sm: 16px;
  --sp-md: 24px;
  --sp-lg: 48px;
  --sp-xl: 96px;

  /* 圆角 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* 层叠 */
  --z-header: 1000;
  --z-progress: 1500;
  --z-skip: 2000;
}

@media (max-width: 767px) {
  :root { --header-h: 96px; }
}

/* ---------- 3. 通用排版 ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.2;
  color: var(--c-navy);
}
h1 { font-size: clamp(40px, 8vw, 96px); letter-spacing: 2px; }
h2 { font-size: clamp(28px, 5vw, 56px); letter-spacing: 2px; }
h3 { font-size: clamp(20px, 3vw, 32px); }
h4 { font-size: 20px; }
h5, h6 { font-size: 16px; }

p { margin-bottom: 1em; }
strong { font-weight: 700; }
em { font-style: normal; color: var(--c-orange); }

/* ---------- 4. 容器 ---------- */
.container {
  max-width: var(--container-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
@media (max-width: 480px) {
  .container { padding-left: 16px; padding-right: 16px; }
}

/* ---------- 5. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: var(--z-skip);
  background: var(--c-neon);
  color: var(--c-navy);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* ---------- 6. 滚动进度条 ---------- */
.scroll-progress {
  --progress: 0%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: var(--z-progress);
  pointer-events: none;
}
.scroll-progress::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--progress);
  background: linear-gradient(90deg, var(--c-neon) 0%, var(--c-orange) 100%);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.35);
}

/* ---------- 7. 头部 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  background: var(--c-navy);
  border-bottom: 1px solid rgba(208, 217, 224, 0.15);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.site-header[data-scrolled="true"] {
  background: rgba(11, 29, 43, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.header-top {
  padding: 10px 0;
  border-bottom: 1px solid rgba(208, 217, 224, 0.12);
  transition: padding 0.35s ease;
}
.header-bottom {
  position: relative;
  padding: 8px 0;
  transition: padding 0.35s ease;
}
.header-bottom::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 96px;
  height: 3px;
  background: var(--c-orange);
  transform: skewX(-35deg);
  transform-origin: right bottom;
  border-radius: 2px 0 0 2px;
}
.site-header[data-scrolled="true"] .header-top { padding: 4px 0; }
.site-header[data-scrolled="true"] .header-bottom { padding: 4px 0; }

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-bottom-inner {
  display: flex;
  align-items: center;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand::before {
  content: "";
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: var(--c-neon);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: background 0.25s ease;
}
.brand:hover::before { background: var(--c-orange); }
.brand-name {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 900;
  color: var(--c-white);
  letter-spacing: 3px;
  white-space: nowrap;
}
.brand-domain {
  font-size: 11px;
  color: var(--c-neon);
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid rgba(57, 255, 20, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* 快捷入口 */
.header-quick {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-quick::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 16px;
  background: var(--c-orange);
  transform: skewX(-20deg);
}
.quick-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-grayblue);
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(208, 217, 224, 0.3);
  transition: all 0.25s ease;
  letter-spacing: 1px;
  white-space: nowrap;
}
.quick-link:hover {
  color: var(--c-white);
  border-color: var(--c-neon);
  background: rgba(57, 255, 20, 0.1);
}
.quick-link-accent {
  color: var(--c-orange);
  border-color: rgba(255, 107, 53, 0.4);
}
.quick-link-accent:hover {
  background: rgba(255, 107, 53, 0.15);
  border-color: var(--c-orange);
}

/* 移动端导航按钮 */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(208, 217, 224, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav-toggle:hover {
  border-color: var(--c-neon);
  background: rgba(57, 255, 20, 0.08);
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-neon);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) 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) { transform: translateY(-7px) rotate(-45deg); }

/* 主导航 */
.main-nav {
  display: block;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-item { position: relative; }
.nav-link {
  position: relative;
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-grayblue);
  padding: 8px 2px;
  letter-spacing: 3px;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--c-neon);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}
.nav-link:hover { color: var(--c-white); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--c-neon); }
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--c-neon);
}

/* 移动端导航折叠态 */
@media (max-width: 767px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h, 96px);
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--c-navy);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .main-nav[data-open="true"] {
    max-height: calc(100vh - var(--header-h, 96px));
    overflow-y: auto;
    border-bottom: 3px solid var(--c-neon);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
  }
  .nav-link {
    display: block;
    font-size: 17px;
    padding: 14px 24px;
    border-left: 3px solid transparent;
    letter-spacing: 4px;
  }
  .nav-link::after { display: none; }
  .nav-link:hover {
    border-left-color: var(--c-neon);
    padding-left: 28px;
    background: rgba(57, 255, 20, 0.05);
  }
  .nav-link[aria-current="page"] { border-left-color: var(--c-neon); }
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  background: var(--c-navy);
  color: var(--c-grayblue);
  padding: 64px 0 0;
  margin-top: 80px;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-neon) 0%, var(--c-neon) 25%, var(--c-orange) 25%, var(--c-orange) 50%, rgba(11, 29, 43, 0) 50%);
}
.site-footer::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: 3px solid var(--c-orange);
  opacity: 0.25;
  transform: rotate(45deg);
  border-radius: 4px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-brand-name {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 900;
  color: var(--c-white);
  letter-spacing: 3px;
}
.footer-brand-domain {
  font-size: 12px;
  color: var(--c-neon);
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid rgba(57, 255, 20, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}
.footer-trust {
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-grayblue);
  margin-top: 16px;
  max-width: 420px;
}
.footer-contact {
  font-size: 13px;
  line-height: 1.8;
  color: var(--c-grayblue);
  margin-top: 16px;
}
.footer-links { max-width: 260px; }
.footer-heading {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 900;
  color: var(--c-white);
  letter-spacing: 2px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--c-orange);
  display: inline-block;
}
.footer-link-list li { margin-bottom: 8px; }
.footer-link-list a {
  font-size: 14px;
  color: var(--c-grayblue);
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-link-list a:hover {
  color: var(--c-neon);
  padding-left: 6px;
}
.footer-legal p { margin-bottom: 4px; }
.footer-icp {
  font-size: 13px;
  color: var(--c-grayblue);
  margin-bottom: 4px;
}
.footer-copyright {
  font-size: 13px;
  color: var(--c-grayblue);
  margin-top: 8px;
}
.footer-address {
  font-size: 13px;
  color: var(--c-grayblue);
  line-height: 1.6;
  margin-top: 8px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 20px;
  border-top: 1px solid rgba(208, 217, 224, 0.15);
  font-size: 13px;
  flex-wrap: wrap;
}
.footer-bottom-links { display: flex; align-items: center; gap: 8px; }
.footer-bottom-links a {
  color: var(--c-grayblue);
  transition: color 0.2s ease;
}
.footer-bottom-links a:hover { color: var(--c-neon); }
.footer-sep { color: rgba(208, 217, 224, 0.4); }
.footer-domain { color: var(--c-orange); letter-spacing: 1px; }

@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .site-footer { padding-top: 48px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- 9. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  line-height: 1;
}
.btn-primary { background: var(--c-neon); color: var(--c-navy); }
.btn-primary:hover { background: var(--c-navy); color: var(--c-neon); border-color: var(--c-neon); }
.btn-accent { background: var(--c-orange); color: var(--c-white); }
.btn-accent:hover { background: var(--c-navy); color: var(--c-orange); border-color: var(--c-orange); }
.btn-outline { border-color: var(--c-grayblue); color: var(--c-navy); }
.btn-outline:hover { border-color: var(--c-navy); background: var(--c-navy); color: var(--c-white); }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ---------- 10. 面包屑 ---------- */
.breadcrumb { padding: 16px 0; }
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.breadcrumb-list li {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--c-ink);
}
.breadcrumb-list li::after {
  content: "/";
  color: var(--c-ink);
  opacity: 0.4;
  margin-left: 8px;
}
.breadcrumb-list li:last-child::after { content: none; }
.breadcrumb-list a { color: var(--c-navy); transition: color 0.2s ease; }
.breadcrumb-list a:hover { color: var(--c-orange); }
.breadcrumb-list [aria-current="page"] { color: var(--c-orange); font-weight: 700; }

/* ---------- 11. 页面区段 */
.page-section { padding: 64px 0; }
.page-section-navy { background: var(--c-navy); color: var(--c-grayblue); }
.page-section-navy h1, .page-section-navy h2, .page-section-navy h3 { color: var(--c-white); }
.page-section-paper { background: var(--c-paper); }
.page-section-white { background: var(--c-white); }

.section-header { margin-bottom: 32px; }
.section-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 2px;
  color: var(--c-navy);
}
.page-section-navy .section-title { color: var(--c-white); }
.section-title .accent { color: var(--c-orange); }
.section-subtitle {
  font-size: 15px;
  color: var(--c-ink);
  opacity: 0.7;
  margin-top: 8px;
  letter-spacing: 1px;
}
.page-section-navy .section-subtitle { color: var(--c-grayblue); }

/* ---------- 12. 栅格 ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1023px) and (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ---------- 13. 卡片 ---------- */
.card {
  background: var(--c-white);
  border: 1px solid var(--c-grayblue);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(11, 29, 43, 0.06);
  padding: 24px;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  box-shadow: 0 6px 20px rgba(11, 29, 43, 0.1);
  transform: translateY(-2px);
  border-color: rgba(255, 107, 53, 0.5);
}
.card-navy {
  background: var(--c-navy);
  color: var(--c-grayblue);
  border-color: var(--c-navy);
}
.card-navy h3, .card-navy h4 { color: var(--c-white); }

/* ---------- 14. 标签 ---------- */
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(57, 255, 20, 0.12);
  color: var(--c-navy);
  border: 1px solid rgba(57, 255, 20, 0.4);
}
.tag-orange {
  background: rgba(255, 107, 53, 0.12);
  color: var(--c-orange);
  border-color: rgba(255, 107, 53, 0.4);
}
.tag-red {
  background: rgba(230, 57, 70, 0.1);
  color: var(--c-red);
  border-color: rgba(230, 57, 70, 0.4);
}

/* ---------- 15. 图片容器 ---------- */
.img-frame {
  position: relative;
  overflow: hidden;
  background: var(--c-navy);
  border-radius: var(--radius-md);
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.img-frame:hover img { transform: scale(1.03); }
.img-frame-wide { aspect-ratio: 16 / 9; }
.img-frame-square { aspect-ratio: 1 / 1; }
.img-frame-card { aspect-ratio: 4 / 3; }
.img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 29, 43, 0.65) 0%, transparent 60%);
  z-index: 1;
}

/* ---------- 16. 实用工具 ---------- */
.u-bg-navy { background: var(--c-navy); color: var(--c-grayblue); }
.u-bg-paper { background: var(--c-paper); }
.u-bg-white { background: var(--c-white); }
.u-text-center { text-align: center; }
.u-text-neon { color: var(--c-neon); }
.u-text-orange { color: var(--c-orange); }
.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;
}

/* ---------- 17. 响应式全局 ---------- */
@media (max-width: 767px) {
  body { font-size: 15px; }
  .page-section { padding: 40px 0; }
  .header-bottom-inner { justify-content: space-between; }
}
@media (min-width: 768px) {
  .header-bottom-inner { justify-content: flex-start; }
}

/* ---------- 18. 动效与无障碍 ---------- */
@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;
  }
  .card:hover, .grid-2 .card:hover, .grid-3 .card:hover { transform: none; }
}
