/* ==========================================================
   利来体育 VENUE 共享样式 /assets/site.css
   数据赛道 · 黑绿青对比 · 悬浮胶囊导航 · 编辑部目录
   ========================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  background: #0A0E17;
  color: #FFFFFF;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: #00C853;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

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

input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 2px solid #00F0FF;
  outline-offset: 2px;
}

/* ---------- CSS Variables ---------- */
:root {
  --green: #00C853;
  --cyan: #00F0FF;
  --dark: #0A0E17;
  --carbon: #141A24;
  --silver: #C0C0C0;
  --white: #FFFFFF;
  --gray: #E6EDF3;
  --gray-dark: #4A5568;
  --success: #66BB6A;
  --warning: #FFB74D;

  --bg-primary: #0A0E17;
  --bg-secondary: #141A24;
  --text-primary: #FFFFFF;
  --text-secondary: #E6EDF3;
  --text-muted: #4A5568;
  --border-color: rgba(192, 192, 192, 0.16);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SF Mono, "Roboto Mono", "Consolas", "Liberation Mono", monospace;

  --container: 1200px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;

  --radius-pill: 999px;
  --radius-md: 8px;
  --radius-sm: 4px;

  --z-header: 100;
  --z-progress: 300;
  --transition: 0.25s ease;
}

/* ---------- 中文排版 ---------- */
h1, h2, h3, h4, h5 {
  font-feature-settings: "palt" on;
  line-height: 1.2;
  font-weight: 800;
  color: #FFFFFF;
}

p {
  font-size: 15px;
  color: #E6EDF3;
}

a {
  transition: color 0.2s ease;
}

::selection {
  background: #00C853;
  color: #0A0E17;
}

/* ---------- 容器 ---------- */
.container {
  width: min(100% - 48px, 1200px);
  margin-inline: auto;
}

/* ---------- 章节 ---------- */
.section {
  padding: 96px 0;
  position: relative;
}

.section--alt {
  background: #141A24;
}

.section--dark {
  background: #0A0E17;
}

.section-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: #00C853;
  border: 1px solid rgba(0, 200, 83, 0.4);
  padding: 4px 12px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.section-head {
  margin-bottom: 40px;
}

.section-title {
  font-size: clamp(32px, 4.4vw, 54px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 16em;
}

.section-desc {
  font-size: 16px;
  color: #E6EDF3;
  max-width: 42em;
  margin-top: 12px;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 24px 0 8px;
  font-size: 13px;
  color: #4A5568;
}

.breadcrumb a {
  color: #E6EDF3;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #00C853;
}

.breadcrumb-item:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: #4A5568;
  font-family: var(--font-mono);
}

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

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

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: 4px;
  border: 1px solid transparent;
  line-height: 1.2;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: #00C853;
  color: #0A0E17;
  border-color: #00C853;
}

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

.btn-outline {
  border-color: #C0C0C0;
  color: #FFFFFF;
  background: transparent;
}

.btn-outline:hover {
  border-color: #00F0FF;
  color: #00F0FF;
}

.btn-ghost {
  color: #E6EDF3;
  padding: 8px 16px;
}

.btn-ghost:hover {
  color: #00C853;
}

/* ---------- 面板与卡片 ---------- */
.panel {
  background: #141A24;
  border: 1px solid rgba(192, 192, 192, 0.16);
  border-radius: 4px;
  padding: 24px;
  position: relative;
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #00C853, transparent);
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.data-card {
  background: #141A24;
  border: 1px solid rgba(192, 192, 192, 0.12);
  border-radius: 4px;
  padding: 18px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.data-card:hover {
  border-color: rgba(0, 240, 255, 0.4);
  transform: translateY(-2px);
}

.data-card .stat-value {
  font-size: 28px;
  font-family: var(--font-mono);
  color: #00F0FF;
  line-height: 1.2;
}

.data-card .stat-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #E6EDF3;
  margin-top: 4px;
}

/* ---------- 统计块 ---------- */
.stat {
  border-left: 3px solid #00C853;
  padding: 16px 24px;
  background: #141A24;
  margin-bottom: 24px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.stat-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #E6EDF3;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ---------- 标签 ---------- */
.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
}

.badge-success {
  background: rgba(102, 187, 106, 0.15);
  color: #66BB6A;
  border: 1px solid rgba(102, 187, 106, 0.35);
}

.badge-warning {
  background: rgba(255, 183, 77, 0.15);
  color: #FFB74D;
  border: 1px solid rgba(255, 183, 77, 0.35);
}

.tag {
  display: inline-block;
  font-size: 12px;
  color: #C0C0C0;
  border: 1px solid rgba(192, 192, 192, 0.3);
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 0.05em;
  margin-right: 8px;
  margin-bottom: 8px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tag:hover {
  color: #00F0FF;
  border-color: #00F0FF;
}

/* ---------- 眉题与导语 ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #00F0FF;
  margin-bottom: 12px;
}

.lede {
  font-size: 18px;
  line-height: 1.7;
  color: #E6EDF3;
  max-width: 40em;
}

.divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 200, 83, 0.6), rgba(192, 192, 192, 0.1) 70%);
  margin: 48px 0;
  position: relative;
}

.divider::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 8px;
  height: 8px;
  background: #00F0FF;
  transform: rotate(45deg);
}

/* ---------- 媒体框架 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  background: #141A24;
  border: 1px solid rgba(192, 192, 192, 0.16);
  border-radius: 4px;
  aspect-ratio: 16 / 9;
}

.media-frame--portrait {
  aspect-ratio: 3 / 4;
}

.media-frame--square {
  aspect-ratio: 1 / 1;
}

.media-frame img,
.media-frame svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.media-frame:hover img,
.media-frame:hover svg {
  transform: scale(1.03);
}

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

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), 1240px);
  height: 62px;
  background: rgba(10, 14, 23, 0.85);
  border: 1px solid rgba(192, 192, 192, 0.18);
  border-radius: 999px;
  padding: 0 8px 0 18px;
  z-index: 100;
  display: flex;
  align-items: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  background: #00C853;
  color: #0A0E17;
  padding: 10px 20px;
  font-weight: 600;
  z-index: 200;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s ease;
}

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

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

/* ---------- 品牌 ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #FFFFFF;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  white-space: nowrap;
}

.brand-en {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #00F0FF;
  border: 1px solid rgba(0, 240, 255, 0.35);
  padding: 2px 6px;
  margin-left: 2px;
  text-transform: uppercase;
  line-height: 1.4;
  white-space: nowrap;
}

/* ---------- 导航 ---------- */
.nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}

.nav-link {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: #E6EDF3;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #FFFFFF;
  background: rgba(192, 192, 192, 0.12);
}

.nav-link[aria-current="page"] {
  color: #0A0E17;
  background: #00C853;
  font-weight: 700;
}

.nav-link[aria-current="page"]:hover {
  background: #00C853;
  color: #0A0E17;
}

/* ---------- 汉堡按钮 ---------- */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(192, 192, 192, 0.25);
  background: rgba(20, 26, 36, 0.8);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: #FFFFFF;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

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

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

/* ---------- 滚动进度 ---------- */
.scan-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #00C853, #00F0FF);
  z-index: 300;
  transition: width 0.08s linear;
  pointer-events: none;
}

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

.site-footer {
  background: #0A0E17;
  border-top: 1px solid rgba(192, 192, 192, 0.12);
  padding: 64px 0 0;
  margin-top: 96px;
}

.footer-inner {
  width: min(100% - 48px, 1200px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: #00C853;
  text-transform: uppercase;
  margin-top: 12px;
}

.footer-heading {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #C0C0C0;
  border-bottom: 1px solid rgba(192, 192, 192, 0.12);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #E6EDF3;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
  padding-left: 0;
  display: inline-block;
}

.footer-links a:hover {
  color: #00F0FF;
  padding-left: 6px;
}

.footer-links li {
  font-size: 14px;
  color: #E6EDF3;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(192, 192, 192, 0.1);
  padding: 20px 0;
}

.footer-bottom-inner {
  width: min(100% - 48px, 1200px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy,
.footer-icp {
  font-size: 13px;
  color: #4A5568;
  font-family: var(--font-mono);
}

/* ==========================================================
   动效与辅助
   ========================================================== */

.track-line {
  position: relative;
  height: 2px;
  border: none;
  background: linear-gradient(90deg, #00C853, rgba(0, 240, 255, 0.3) 60%, transparent);
  margin: 48px 0;
  overflow: visible;
}

.track-line::after {
  content: "";
  position: absolute;
  right: 0;
  top: -4px;
  width: 10px;
  height: 10px;
  background: #00F0FF;
  transform: rotate(45deg);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-reveal][data-revealed] {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 1023px) {
  .site-header {
    width: calc(100% - 24px);
    top: 12px;
    height: 58px;
    padding-left: 14px;
  }

  .nav-list {
    gap: 0;
  }

  .nav-link {
    padding: 8px 12px;
    font-size: 13px;
  }

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

  .brand-en {
    display: none;
  }

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

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

@media (max-width: 767px) {
  .section {
    padding: 56px 0;
  }

  .brand-logo {
    width: 26px;
    height: 26px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 12px;
    right: 12px;
    background: rgba(10, 14, 23, 0.97);
    border: 1px solid rgba(192, 192, 192, 0.18);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
  }

  .nav[data-open] {
    display: block;
  }

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

  .nav-link {
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 15px;
    text-align: left;
  }

  .nav-link[aria-current="page"] {
    background: rgba(0, 200, 83, 0.15);
    color: #00C853;
    border-left: 3px solid #00C853;
    border-radius: 0 8px 8px 0;
  }

  .nav-link:hover {
    background: rgba(192, 192, 192, 0.08);
    color: #FFFFFF;
  }

  /* 页脚移动端 */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 32px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  /* 网格移动端 */
  .grid--2,
  .grid--3,
  .data-grid {
    grid-template-columns: 1fr;
  }

  .container {
    width: min(100% - 32px, 1200px);
  }
}

/* ---------- 减小动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scan-progress {
    display: none;
  }

  .track-line::after {
    animation: none;
  }
}

/* ==========================================================
   打印样式
   ========================================================== */
@media print {
  .site-header,
  .scan-progress,
  .site-footer {
    display: none !important;
  }

  body {
    background: #FFFFFF;
    color: #000000;
  }

  .section {
    padding: 24px 0;
  }
}
