/* ==========================================================================
   乐竞体育 全站共享样式 /assets/site.css
   主题：数据赛道 · 记分牌 · 斜切竞技场
   ========================================================================== */

:root {
  --color-bg: #1A1A1A;
  --color-bg-panel: #241F1B;
  --color-bg-cream: #F5EFE6;
  --color-blue: #00E5FF;
  --color-orange: #FF6A00;
  --color-black: #0D0D0D;
  --color-gold: #D9A566;
  --color-red: #FF4D3D;
  --font-heading: "Oswald", "Impact", "Arial Narrow", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-num: "DIN Alternate", "Roboto Mono", "SFMono-Regular", monospace;
  --header-w: 280px;
  --header-h: 64px;
  --content-max: 1280px;
  --transition: 0.3s ease;
}

/* ---------- Reset 与基础排版 ---------- */

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

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

body {
  background: var(--color-bg);
  color: rgba(245, 239, 230, 0.85);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

ul,
ol {
  list-style: none;
}

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

a:hover {
  color: var(--color-orange);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-bg-cream);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

p {
  max-width: 65ch;
}

strong {
  color: var(--color-bg-cream);
}

:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 3px;
}

::selection {
  background: var(--color-blue);
  color: var(--color-black);
}

/* ---------- 无障碍跳过链接 ---------- */

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 3000;
  background: var(--color-orange);
  color: var(--color-black);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  letter-spacing: 0.04em;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: top 0.25s ease;
}

.skip-link:focus-visible {
  top: 16px;
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.5);
}

/* ---------- 页面滚动进度条 ---------- */

.page-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-blue) 0%, var(--color-orange) 100%);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 2000;
  pointer-events: none;
  transition: transform 0.08s linear;
}

/* ---------- 页头：桌面左侧框架轨 ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--header-w);
  background: var(--color-black);
  z-index: 1000;
  overflow-y: auto;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-blue) 0%, var(--color-orange) 100%);
  opacity: 0.55;
  pointer-events: none;
}

.header-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 32px 24px 24px;
}

/* 品牌 */

.header-brand {
  flex-shrink: 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-orange) 100%);
  color: var(--color-black);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.brand-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--color-bg-cream);
}

.brand-tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-blue);
  line-height: 1.2;
}

/* 赛季标签 */

.header-season {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin: 28px 0 22px;
  padding: 6px 10px;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.12), rgba(255, 106, 0, 0.06));
  border-left: 2px solid var(--color-orange);
}

.season-text {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(245, 239, 230, 0.7);
}

.season-year {
  font-family: var(--font-num);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-orange);
}

/* 主导航 */

.header-nav {
  display: block;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(245, 239, 230, 0.6);
  border-left: 3px solid transparent;
  position: relative;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--color-blue), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover {
  color: var(--color-bg-cream);
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.1), transparent);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--color-blue);
  border-left-color: var(--color-orange);
}

.nav-index {
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 500;
  min-width: 22px;
  color: rgba(0, 229, 255, 0.7);
  letter-spacing: 0.05em;
}

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

.nav-name {
  line-height: 1.2;
}

/* 下载 CTA 与信任徽标 */

.header-cta {
  margin-top: auto;
  padding-top: 28px;
}

.btn-download {
  display: inline-flex;
  width: 100%;
}

.btn-download-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  background: var(--color-orange);
  color: var(--color-black);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: background 0.3s ease;
}

.btn-download:hover .btn-download-inner {
  background: var(--color-blue);
}

.btn-download-arrow {
  font-size: 18px;
  line-height: 1;
}

.header-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 10px;
  background: rgba(245, 239, 230, 0.04);
}

.trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15);
  flex-shrink: 0;
  animation: pulse-dot 2s infinite;
}

.trust-text {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(245, 239, 230, 0.6);
}

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

/* 移动端导航开关 */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.4);
  transition: border-color 0.3s ease;
}

.nav-toggle:hover {
  border-color: var(--color-orange);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-blue);
  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-content {
  position: relative;
  min-height: 100vh;
  padding: 24px;
  overflow-x: hidden;
}

#main-content {
  outline: none;
}

.content-container {
  max-width: var(--content-max);
  margin: 0 auto;
}

/* ---------- 页脚 ---------- */

.site-footer {
  position: relative;
  background: var(--color-black);
  color: rgba(245, 239, 230, 0.65);
  border-top: 1px solid rgba(0, 229, 255, 0.25);
}

.footer-finish {
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--color-bg-cream) 0 12px, var(--color-bg) 12px 24px);
  border-bottom: 2px solid rgba(255, 106, 0, 0.55);
  opacity: 0.85;
}

.footer-shell {
  max-width: calc(var(--content-max) + 80px);
  margin: 0 auto;
  padding: 48px 32px 20px;
}

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

.footer-brand-link {
  margin-bottom: 20px;
}

.footer-about {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(245, 239, 230, 0.6);
  margin-bottom: 16px;
}

.footer-trust {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(217, 165, 102, 0.85);
  background: rgba(217, 165, 102, 0.06);
  border-left: 2px solid var(--color-gold);
  padding: 10px 12px;
}

.footer-trust .trust-dot {
  margin-top: 5px;
  width: 6px;
  height: 6px;
  background: var(--color-gold);
  box-shadow: none;
  animation: none;
}

.footer-heading {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.2);
  position: relative;
}

.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 24px;
  height: 2px;
  background: var(--color-orange);
}

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

.footer-links a {
  display: inline-block;
  color: rgba(245, 239, 230, 0.6);
  font-size: 14px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-blue);
  transform: translateX(4px);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(245, 239, 230, 0.6);
}

.footer-contact .footer-contact-list {
  gap: 6px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(245, 239, 230, 0.1);
  font-size: 12px;
  color: rgba(245, 239, 230, 0.45);
}

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

/* ---------- 通用按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-primary {
  background: var(--color-orange);
  color: var(--color-black);
}

.btn-primary:hover {
  background: var(--color-blue);
  color: var(--color-black);
}

.btn-ghost {
  background: transparent;
  color: var(--color-blue);
  border-color: var(--color-blue);
}

.btn-ghost:hover {
  background: rgba(0, 229, 255, 0.12);
  color: var(--color-blue);
}

/* ---------- 面包屑 ---------- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 12px 0;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: rgba(245, 239, 230, 0.5);
}

.breadcrumb > *:not(:first-child)::before {
  content: "/";
  margin-right: 6px;
  color: rgba(0, 229, 255, 0.4);
  font-family: var(--font-num);
}

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

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

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

/* ---------- 章节与索引组件 ---------- */

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 12px;
}

.section-tag::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--color-orange);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(245, 239, 230, 0.12);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-bg-cream);
  margin: 0;
}

.section-title-extra {
  font-family: var(--font-num);
  font-size: 14px;
  color: rgba(0, 229, 255, 0.7);
  white-space: nowrap;
}

.data-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.3);
  font-family: var(--font-num);
  font-size: 13px;
  color: var(--color-bg-cream);
}

.data-chip strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-orange);
}

/* ---------- 卡片组件 ---------- */

.panel-card {
  position: relative;
  padding: 20px;
  background: var(--color-bg-panel);
  border: 1px solid rgba(245, 239, 230, 0.08);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

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

.stat-card {
  position: relative;
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--color-bg-panel) 0%, var(--color-black) 100%);
  border: 1px solid rgba(245, 239, 230, 0.08);
  border-left: 3px solid var(--color-blue);
}

.stat-value {
  display: block;
  font-family: var(--font-num);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-bg-cream);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 239, 230, 0.55);
}

.stat-card--orange {
  border-left-color: var(--color-orange);
}

.stat-card--orange .stat-value {
  color: var(--color-orange);
}

/* ---------- 贴图容器 ---------- */

.media-frame {
  display: block;
  position: relative;
  background: linear-gradient(135deg, var(--color-bg-panel), var(--color-black));
  border: 1px solid rgba(0, 229, 255, 0.18);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.media-frame::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 22px;
  height: 22px;
  background: linear-gradient(225deg, rgba(0, 229, 255, 0.8) 0 11px, transparent 11px);
  pointer-events: none;
}

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

.media-frame:hover img {
  transform: scale(1.04);
}

.aspect-16x9 {
  aspect-ratio: 16 / 9;
}

.aspect-4x3 {
  aspect-ratio: 4 / 3;
}

/* ---------- 响应式网格 ---------- */

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 24px;
}

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

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

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

/* ---------- 首屏骨架 ---------- */

.page-hero {
  position: relative;
  padding: 48px 0;
  border-bottom: 1px solid rgba(0, 229, 255, 0.2);
  margin-bottom: 40px;
}

.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-orange), transparent 60%);
}

.page-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-bg-cream);
  margin-bottom: 8px;
}

.page-lead {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(245, 239, 230, 0.6);
  max-width: 60ch;
}

/* ---------- 滚动显现协议 ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js [data-reveal="in"] {
  opacity: 1;
  transform: none;
}

.js [data-reveal-delay="1"] {
  transition-delay: 0.08s;
}

.js [data-reveal-delay="2"] {
  transition-delay: 0.16s;
}

.js [data-reveal-delay="3"] {
  transition-delay: 0.24s;
}

/* ---------- 桌面端布局补强 ---------- */

@media (min-width: 1024px) {
  .main-content {
    margin-left: var(--header-w);
    padding: 32px 40px;
  }

  .site-footer {
    margin-left: var(--header-w);
  }
}

/* ---------- 平板与手机：顶部控制条 ---------- */

@media (max-width: 1023px) {
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: var(--header-h);
    overflow: visible;
  }

  .site-header::before {
    top: auto;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-blue), var(--color-orange));
    opacity: 0.7;
  }

  .header-shell {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    min-height: 0;
    height: var(--header-h);
    padding: 0 16px;
    gap: 10px;
  }

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

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }

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

  .brand-tag {
    font-size: 10px;
  }

  .header-season {
    display: none;
  }

  .header-nav {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    z-index: 900;
    background: rgba(13, 13, 13, 0.98);
    border-bottom: 3px solid var(--color-orange);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  }

  .header-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s;
  }

  .nav-list {
    padding: 16px;
    gap: 2px;
  }

  .nav-link {
    padding: 12px 14px;
    font-size: 15px;
  }

  .header-cta {
    margin-top: 0;
    margin-left: auto;
    width: auto;
    padding-top: 0;
    flex-shrink: 0;
  }

  .btn-download {
    width: auto;
  }

  .btn-download-inner {
    width: auto;
    padding: 9px 12px;
    font-size: 13px;
  }

  .btn-download-arrow {
    font-size: 14px;
  }

  .header-trust {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-content {
    padding-top: calc(var(--header-h) + 16px);
  }

  .site-footer {
    border-top-color: rgba(0, 229, 255, 0.35);
  }

  .footer-shell {
    padding: 32px 20px 16px;
  }

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

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

  .page-hero {
    padding: 32px 0;
  }
}

/* ---------- 小屏手机适配 ---------- */

@media (max-width: 480px) {
  .brand-tag {
    display: none;
  }

  .header-shell {
    padding: 0 12px;
    gap: 6px;
  }

  .btn-download-inner {
    padding: 9px 10px;
    font-size: 12px;
  }

  .main-content {
    padding-left: 16px;
    padding-right: 16px;
  }

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

/* ---------- 动效偏好 ---------- */

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

  .page-progress {
    transition: none;
  }

  .trust-dot {
    animation: none;
  }

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