/* YOBO体育 · 全站共享样式 /assets/site.css */

/* ========== Reset & Tokens ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --header-height: 68px;
  --content-max: 1120px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --c-ink: #0B1612;
  --c-pitch: #0F3324;
  --c-gold: #F5B700;
  --c-gold-light: #FFD85C;
  --c-bone: #F4F1E1;
  --c-slate: #A6B5A9;
  --c-crimson: #E64A2E;
  --c-paper: #F7F3E8;
  --c-brown: #2B2016;
  --c-snow: #F9FCFF;

  --font-title: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', serif;
  --font-body: 'Noto Sans SC', 'Inter', system-ui, -apple-system, sans-serif;
  --font-data: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--c-ink);
  color: var(--c-bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

a {
  color: var(--c-gold);
  text-decoration: none;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
}

::selection {
  background: rgba(245, 183, 0, 0.85);
  color: var(--c-ink);
}

:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
}

/* ========== Skip Link ========== */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 2000;
  background: var(--c-gold);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 2px;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: 12px;
  color: var(--c-ink);
}

/* ========== Header Frame ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  pointer-events: none;
  background: transparent;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 120;
  background: linear-gradient(90deg, var(--c-gold), var(--c-gold-light));
}

.header-topbar {
  position: relative;
  z-index: 101;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-height);
  padding: 0 24px;
  background: var(--c-ink);
  border-bottom: 1px solid rgba(245, 183, 0, 0.18);
  pointer-events: auto;
}

.header-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 103;
  pointer-events: none;
}

.header-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--c-gold), var(--c-gold-light));
}

/* ========== Brand ========== */
.brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 6px 0;
  color: var(--c-bone);
}

.brand-mark:hover {
  color: var(--c-bone);
}

.brand-mark__badge {
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--c-gold);
}

.brand-mark__word {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 21px;
  color: var(--c-bone);
}

/* ========== Header Console ========== */
.header-console {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  font-family: var(--font-data);
  font-size: 13px;
  color: var(--c-slate);
}

.header-console__clock {
  display: inline-block;
  padding: 5px 9px;
  border: 1px solid rgba(245, 183, 0, 0.2);
  border-radius: 3px;
  background: rgba(15, 51, 36, 0.55);
  color: var(--c-bone);
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.header-console__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-gold);
  box-shadow: 0 0 6px rgba(245, 183, 0, 0.8);
  animation: statusPulse 2s infinite ease-in-out;
}

@keyframes statusPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.78);
  }
}

/* ========== Nav Toggle ========== */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 8px 12px;
  background: none;
  border: 1px solid rgba(245, 183, 0, 0.35);
  border-radius: 3px;
  color: var(--c-bone);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.nav-toggle:hover {
  border-color: var(--c-gold);
  background: rgba(245, 183, 0, 0.06);
}

.nav-toggle__hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
  transition: gap 0.2s var(--ease-out);
}

.nav-toggle__line {
  display: block;
  height: 2px;
  background: var(--c-gold);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}

.nav-toggle__label {
  font-weight: 600;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__hamburger {
  gap: 1px;
}

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

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

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

/* ========== Framework Nav (Desktop Wings) ========== */
.primary-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  pointer-events: none;
}

.primary-nav__group {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 96px;
  padding: 14px 10px;
  background: rgba(11, 22, 18, 0.82);
  border: 1px solid rgba(245, 183, 0, 0.16);
  border-radius: 2px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: auto;
}

.primary-nav__group--left {
  left: 18px;
  border-left: 2px solid rgba(245, 183, 0, 0.55);
}

.primary-nav__group--right {
  right: 18px;
  border-right: 2px solid rgba(245, 183, 0, 0.55);
}

.primary-nav__title {
  display: block;
  margin: 0 auto 8px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--c-slate);
  writing-mode: vertical-rl;
  text-orientation: upright;
}

.nav-link {
  display: block;
  text-align: center;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 2px;
  color: var(--c-bone);
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.nav-link:hover {
  color: var(--c-gold-light);
  border-color: rgba(245, 183, 0, 0.35);
}

.nav-link:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 2px;
  color: var(--c-gold-light);
}

.nav-link[aria-current="page"] {
  color: var(--c-gold);
  background: rgba(245, 183, 0, 0.08);
  border-color: rgba(245, 183, 0, 0.45);
}

/* ========== Mobile Dropdown Nav ========== */
@media (max-width: 1024px) {
  .site-header {
    pointer-events: auto;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    bottom: auto;
    max-height: 0;
    overflow: hidden;
    background: rgba(11, 22, 18, 0.97);
    border-bottom: 1px solid rgba(245, 183, 0, 0.2);
    transition: max-height 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
    pointer-events: none;
  }

  .primary-nav[data-open] {
    max-height: 420px;
    pointer-events: auto;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  }

  .primary-nav__group {
    position: static;
    top: auto;
    transform: none;
    left: auto;
    right: auto;
    align-items: stretch;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2px;
    min-width: 0;
    padding: 6px 20px;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
  }

  .primary-nav__group--right {
    margin-top: 4px;
  }

  .primary-nav__title {
    display: none;
  }

  .nav-link {
    padding: 10px 14px;
    font-size: 15px;
    border: none;
    border-radius: 0;
  }

  .nav-link[aria-current="page"] {
    background: rgba(245, 183, 0, 0.1);
    border-bottom: 1px solid var(--c-gold);
  }

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

@media (max-width: 520px) {
  .header-console__status span[data-data-status] {
    display: none;
  }

  .header-console {
    gap: 8px;
  }
}

/* ========== Footer ========== */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--c-pitch);
  color: var(--c-bone);
  border-top: 2px solid var(--c-gold);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
}

.site-footer a {
  color: var(--c-bone);
  transition: color 0.2s var(--ease-out);
}

.site-footer a:hover {
  color: var(--c-gold-light);
}

.footer-inner {
  position: relative;
  z-index: 2;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 56px 24px 24px;
}

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

.footer-brand__statement {
  margin: 14px 0 0;
  max-width: 42ch;
  color: var(--c-slate);
  font-size: 14px;
}

.footer-brand__icp {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 10px;
  border: 1px solid rgba(245, 183, 0, 0.16);
  border-radius: 2px;
  background: rgba(11, 22, 18, 0.3);
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--c-slate);
}

.brand-mark--footer .brand-mark__badge {
  font-size: 28px;
}

.brand-mark--footer .brand-mark__word {
  font-size: 26px;
}

.footer-heading {
  margin: 0 0 14px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--c-gold);
}

.footer-links {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 18px;
}

.footer-links a {
  display: inline-block;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--c-gold-light);
  border-bottom-color: rgba(245, 183, 0, 0.4);
}

.footer-contact__list {
  list-style: none;
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
}

.footer-contact__item {
  position: relative;
  padding-left: 14px;
  color: var(--c-slate);
  font-size: 14px;
}

.footer-contact__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 1px;
  background: var(--c-gold);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid rgba(244, 241, 225, 0.12);
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--c-slate);
}

.footer-bottom__trust {
  color: var(--c-gold);
}

/* Mountain & grassland contours */
.footer-contours {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.footer-contour {
  position: absolute;
  bottom: 0;
  display: block;
}

.footer-contour--one {
  left: 0;
  width: 52%;
  height: 100%;
  background: linear-gradient(160deg, transparent 0%, rgba(249, 252, 255, 0.05) 55%, transparent 80%);
  clip-path: polygon(0 70%, 12% 55%, 25% 64%, 40% 44%, 57% 55%, 72% 36%, 87% 46%, 100% 32%, 100% 100%, 0 100%);
}

.footer-contour--two {
  right: 0;
  width: 46%;
  height: 100%;
  background: linear-gradient(210deg, transparent 0%, rgba(245, 183, 0, 0.05) 45%, transparent 75%);
  clip-path: polygon(0 56%, 18% 66%, 32% 50%, 48% 62%, 62% 44%, 78% 52%, 96% 36%, 100% 40%, 100% 100%, 0 100%);
}

.footer-contour--three {
  left: 18%;
  width: 38%;
  height: 70%;
  background: rgba(244, 241, 225, 0.02);
  clip-path: polygon(0 80%, 16% 68%, 28% 74%, 44% 60%, 60% 70%, 76% 56%, 100% 66%, 100% 100%, 0 100%);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .footer-contour--three {
    display: none;
  }
}

/* ========== Main Layout ========== */
#main-content {
  display: block;
  min-height: calc(100vh - var(--header-height));
  padding-top: calc(var(--header-height) + 36px);
  padding-bottom: 96px;
  padding-left: clamp(20px, 4vw, 44px);
  padding-right: clamp(20px, 4vw, 44px);
  position: relative;
  z-index: 1;
}

@media (min-width: 1025px) {
  #main-content {
    padding-left: clamp(150px, 14vw, 180px);
    padding-right: clamp(150px, 14vw, 180px);
  }
}

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

/* ========== Typography & Sections ========== */
.section {
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(48px, 7vw, 88px);
}

.section--pitch {
  background: var(--c-pitch);
  border-top: 1px solid rgba(245, 183, 0, 0.12);
  border-bottom: 1px solid rgba(245, 183, 0, 0.12);
}

.section-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 10px;
  border: 1px solid rgba(245, 183, 0, 0.28);
  border-radius: 2px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--c-gold);
}

.section-title {
  margin: 0 0 12px;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1.15;
  color: var(--c-bone);
}

.body-copy {
  margin: 0 0 16px;
  max-width: 65ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-slate);
}

.display-title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.08;
  color: var(--c-bone);
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.btn:active {
  transform: translateY(0);
}

.btn--gold {
  background: var(--c-gold);
  border-color: var(--c-gold);
  color: var(--c-ink);
}

.btn--gold:hover,
.btn--gold:focus-visible {
  background: var(--c-gold-light);
  border-color: var(--c-gold-light);
  color: var(--c-ink);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  border-color: rgba(245, 183, 0, 0.45);
  color: var(--c-bone);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  border-color: var(--c-gold);
  color: var(--c-gold-light);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(244, 241, 225, 0.3);
  color: var(--c-bone);
  padding: 8px 16px;
  font-size: 13px;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--c-gold);
  color: var(--c-gold);
  transform: none;
}

/* ========== Panels, Tags, Breadcrumb ========== */
.panel {
  background: var(--c-pitch);
  border: 1px solid rgba(245, 183, 0, 0.14);
  border-radius: 4px;
  padding: 24px;
}

.panel--gold-edge {
  border-left: 3px solid var(--c-gold);
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid rgba(245, 183, 0, 0.3);
  border-radius: 20px;
  background: rgba(245, 183, 0, 0.06);
  color: var(--c-gold);
  font-size: 12px;
  line-height: 1.4;
}

.tag--crimson {
  border-color: rgba(230, 74, 46, 0.45);
  background: rgba(230, 74, 46, 0.08);
  color: var(--c-crimson);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  font-family: var(--font-data);
  font-size: 13px;
  color: var(--c-slate);
}

.breadcrumb li + li::before {
  content: "/";
  margin: 0 6px;
  color: var(--c-slate);
  opacity: 0.6;
}

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

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

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

/* ========== Data Table ========== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-pitch);
  font-family: var(--font-data);
  font-size: 13px;
  color: var(--c-bone);
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(244, 241, 225, 0.1);
  text-align: left;
}

.data-table th {
  color: var(--c-gold);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(245, 183, 0, 0.3);
}

.data-table tbody tr:hover {
  background: rgba(245, 183, 0, 0.05);
}

.data-table td[data-key] {
  color: var(--c-gold-light);
  font-weight: 700;
}

/* ========== Grid Helpers ========== */
.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: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ========== Scroll Reveal ========== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  will-change: opacity, transform;
}

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

[data-reveal="clip"] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.55s var(--ease-out);
}

[data-reveal="clip"].is-visible {
  clip-path: inset(0 0 0 0);
}

/* ========== Data Count ========== */
[data-count-up] {
  font-family: var(--font-data);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--c-gold-light);
}

/* ========== Reduced Motion ========== */
@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;
  }

  .status-dot {
    animation: none;
    opacity: 1;
  }

  [data-reveal],
  [data-reveal="clip"] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }

  .primary-nav {
    transition: none;
  }
}
