/* ================================================================
   site.css — b体育入口 共享样式
   深空蓝技术网格 + 荧光绿/橙强调 + 现代粗野主义卡片
   ================================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --c-bg: #0A192F;
  --c-bg-deep: #0D1B2A;
  --c-paper: #F5E6C8;
  --c-silver: #C0C0C0;
  --c-neon: #39FF14;
  --c-orange: #FF6B00;
  --c-white: #FFFFFF;
  --c-blue: #4D7CFE;
  --c-muted: #8899AA;

  --f-title: "Arial Black", "PingFang SC", "Microsoft YaHei", sans-serif;
  --f-body: "Roboto", "PingFang SC", "Microsoft YaHei", sans-serif;
  --f-mono: "Source Code Pro", "Courier New", monospace;

  --bw: 2px;
  --shadow: 6px 6px 0 rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --container: 1240px;
  --header-h: 72px;
}

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

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 112px;
  overflow-x: hidden;
  background-color: var(--c-bg);
  background-image:
    linear-gradient(rgba(57, 255, 20, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 20, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--c-white);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  word-break: break-word;
}

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

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--c-neon);
}

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

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

/* ---------- 通用容器 ---------- */
.site-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2000;
  background: var(--c-neon);
  color: #04180A;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  padding: 10px 18px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  color: #04180A;
}

/* ---------- 顶部阅读进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--c-neon), var(--c-orange));
  z-index: 1500;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.6);
}

/* ---------- 头部悬浮胶囊 ---------- */
.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 1000;
  pointer-events: none;
  padding: 0 12px;
}

.header-capsule {
  max-width: calc(var(--container) + 48px);
  margin: 0 auto;
  position: relative;
  background: rgba(10, 25, 47, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(192, 192, 192, 0.22);
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(57, 255, 20, 0.06);
  pointer-events: auto;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* 坐标定位角标 */
.header-capsule::before,
.header-capsule::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1.5px solid rgba(57, 255, 20, 0.45);
  opacity: 0.6;
  pointer-events: none;
}

.header-capsule::before {
  top: -5px;
  left: -5px;
  border-right: 0;
  border-bottom: 0;
}

.header-capsule::after {
  bottom: -5px;
  right: -5px;
  border-left: 0;
  border-top: 0;
}

.site-header.is-scrolled .header-capsule {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(57, 255, 20, 0.12);
  border-color: rgba(57, 255, 20, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
  padding: 0 8px 0 20px;
}

/* ---------- 品牌 ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 0;
}

.brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 2px solid var(--c-neon);
  border-radius: 10px;
  background: rgba(57, 255, 20, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 14px rgba(57, 255, 20, 0.18);
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -30%;
  width: 55%;
  height: 55%;
  background: rgba(57, 255, 20, 0.2);
  transform: rotate(45deg);
}

.brand-mark-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-orange);
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.8);
  z-index: 1;
}

.brand-mark-line {
  position: absolute;
  bottom: 5px;
  left: 5px;
  right: 5px;
  height: 2px;
  background: var(--c-silver);
  opacity: 0.5;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.brand-name {
  font-family: var(--f-title);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--c-white);
  transform: skewX(-5deg);
  white-space: nowrap;
}

.brand-tagline {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--c-neon);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 导航 ---------- */
.nav-bar {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-block;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-muted);
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-link:hover {
  color: var(--c-white);
  background: rgba(57, 255, 20, 0.1);
}

.nav-link[aria-current="page"] {
  color: var(--c-neon);
  background: rgba(57, 255, 20, 0.12);
  box-shadow: inset 0 0 0 1px rgba(57, 255, 20, 0.35);
}

/* ---------- 头部行动区 ---------- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.header-cta {
  white-space: nowrap;
}

/* ---------- 移动端导航按钮 ---------- */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(192, 192, 192, 0.35);
  background: rgba(255, 255, 255, 0.05);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(57, 255, 20, 0.1);
  border-color: rgba(57, 255, 20, 0.4);
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] {
  background: rgba(57, 255, 20, 0.15);
  border-color: rgba(57, 255, 20, 0.5);
}

.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);
}

/* ---------- 按钮体系 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 10px 20px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--c-neon);
  color: #04180A;
  box-shadow: 0 0 16px rgba(57, 255, 20, 0.3);
  transform: skewX(-3deg);
}

.btn-primary:hover {
  background: #5CFF40;
  color: #04180A;
  transform: skewX(-3deg) translateY(-2px);
  box-shadow: 0 4px 20px rgba(57, 255, 20, 0.4);
}

.btn-secondary {
  background: var(--c-orange);
  color: #FFF;
  box-shadow: 0 0 12px rgba(255, 107, 0, 0.25);
  transform: skewX(-3deg);
}

.btn-secondary:hover {
  background: #FF7D22;
  color: #FFF;
  transform: skewX(-3deg) translateY(-2px);
}

.btn:active {
  transform: scale(0.96);
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 80px;
  position: relative;
  background-image:
    linear-gradient(rgba(57, 255, 20, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 20, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  background-color: var(--c-bg-deep);
  border-top: 1px solid rgba(57, 255, 20, 0.2);
  padding: 56px 0 24px;
}

.footer-topline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-neon), var(--c-orange), transparent 70%);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand .brand-mark {
  width: 42px;
  height: 42px;
}

.footer-brand-name {
  font-family: var(--f-title);
  font-weight: 900;
  font-size: 24px;
  color: var(--c-white);
  transform: skewX(-5deg);
  line-height: 1.1;
}

.footer-about {
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 380px;
}

.footer-trust {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(57, 255, 20, 0.06);
  border-left: 3px solid var(--c-neon);
  border-radius: 0 8px 8px 0;
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.65;
  color: var(--c-paper);
  max-width: 440px;
}

.footer-heading {
  font-family: var(--f-title);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--c-neon);
  margin-bottom: 18px;
  transform: skewX(-5deg);
}

.footer-links li,
.footer-contact li {
  margin-bottom: 10px;
}

.footer-links a,
.footer-contact a {
  display: inline-block;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.6;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--c-orange);
  padding-left: 4px;
}

.footer-contact li {
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
}

.footer-meta {
  border-top: 1px solid rgba(192, 192, 192, 0.15);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.footer-meta-note {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--c-muted);
}

.footer-meta-line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--c-muted);
}

.footer-icp {
  font-family: var(--f-mono);
  color: var(--c-silver);
  border: 1px solid rgba(192, 192, 192, 0.25);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
}

/* ---------- 主内容 ---------- */
.page-main {
  flex: 1;
  width: 100%;
}

.page-body {
  padding: 32px 0 56px;
}

/* ---------- 章节与标题 ---------- */
.section {
  padding: 44px 0;
}

.section-heading {
  font-family: var(--f-title);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  text-transform: uppercase;
  transform: skewX(-5deg);
  color: var(--c-white);
  margin-bottom: 16px;
}

.section-index {
  font-family: var(--f-mono);
  color: var(--c-neon);
  font-size: 0.55em;
  margin-right: 10px;
  vertical-align: middle;
  font-weight: 400;
}

.section-subtitle {
  font-size: 16px;
  color: var(--c-muted);
  margin-bottom: 28px;
  max-width: 720px;
  line-height: 1.7;
}

/* ---------- 网格系统 ---------- */
.grid {
  display: grid;
  gap: 24px;
}

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

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

.grid-aside {
  grid-template-columns: 7fr 5fr;
  gap: 32px;
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--c-bg-deep);
  border: 1px solid rgba(192, 192, 192, 0.2);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 8px 10px 0 rgba(0, 0, 0, 0.35);
}

.card-paper {
  background: var(--c-paper);
  border-color: rgba(245, 230, 200, 0.4);
}

.card-paper .card-title {
  color: var(--c-bg-deep);
}

.card-paper .card-text {
  color: #3A3325;
}

.card-paper:hover {
  box-shadow: 8px 10px 0 rgba(0, 0, 0, 0.4);
}

.card-title {
  font-family: var(--f-title);
  font-weight: 900;
  font-size: 18px;
  color: var(--c-white);
  transform: skewX(-5deg);
  margin-bottom: 10px;
  line-height: 1.3;
}

.card-text {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.7;
}

/* ---------- 引文块 ---------- */
.quote-block {
  background: var(--c-paper);
  border-left: 4px solid var(--c-orange);
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  color: #2A2416;
  font-size: 16px;
  line-height: 1.8;
  box-shadow: var(--shadow);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--c-muted);
  padding: 12px 0;
}

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

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

.breadcrumb-sep {
  color: var(--c-silver);
  opacity: 0.5;
}

/* ---------- 媒体容器 ---------- */
.media-frame {
  position: relative;
  background:
    linear-gradient(135deg, rgba(77, 124, 254, 0.08) 25%, transparent 25%),
    linear-gradient(225deg, rgba(57, 255, 20, 0.06) 25%, transparent 25%),
    var(--c-bg-deep);
  background-size: 20px 20px;
  border: 1px solid rgba(192, 192, 192, 0.25);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-frame::after {
  content: "IMG";
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--c-silver);
  opacity: 0.5;
}

.media-frame--hero {
  min-height: 480px;
}

.media-frame--card {
  min-height: 180px;
}

.media-frame--thumb {
  min-height: 100px;
  border-radius: 10px;
}

.media-frame img,
.media-frame video,
.media-frame svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.media-frame img,
.media-frame video,
.media-frame svg + *,
.media-frame > *:not(style) {
  z-index: 1;
}

.media-frame > * {
  position: relative;
  z-index: 1;
}

/* ---------- 文本工具 ---------- */
.text-neon {
  color: var(--c-neon);
}

.text-orange {
  color: var(--c-orange);
}

.text-muted {
  color: var(--c-muted);
}

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

/* ---------- 响应式 ---------- */

/* 平板及以下：导航收进下拉面板 */
@media (max-width: 1080px) {
  body {
    padding-top: 100px;
  }

  .nav-bar {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    z-index: 1;
    background: rgba(10, 25, 47, 0.98);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(57, 255, 20, 0.4);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  }

  .nav-bar[data-open="true"] {
    display: block;
    animation: navDrop 0.25s ease;
  }

  @keyframes navDrop {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-link {
    display: block;
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* 手机 */
@media (max-width: 768px) {
  body {
    padding-top: 86px;
  }

  .site-header {
    top: 8px;
    padding: 0 8px;
  }

  .header-capsule {
    border-radius: 999px;
  }

  .header-inner {
    height: 62px;
    padding: 0 4px 0 12px;
    gap: 10px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-width: 2px;
  }

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

  .brand-tagline {
    font-size: 9px;
    max-width: 140px;
  }

  .header-cta {
    padding: 8px 14px;
    font-size: 13px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

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

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .media-frame--hero {
    min-height: 320px;
  }

  .grid-aside {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* 超窄手机 */
@media (max-width: 400px) {
  .brand-tagline {
    display: none;
  }

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

  .header-cta {
    display: none;
  }

  .header-inner {
    gap: 8px;
  }

  .header-actions {
    gap: 0;
  }
}

/* ---------- 无障碍与降级 ---------- */
@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 {
    transform: none;
  }

  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar {
    transform: none;
  }

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

  .nav-bar[data-open="true"] {
    animation: none;
  }

  .scroll-progress {
    display: none;
  }
}
