/* ============================================================
   金喜体育 · GOLDENJOY SPORTS
   全站共享样式  /assets/site.css
   创意母题：数字竞技场 — 深墨蓝赛场底色，金橙能量引擎，亮绿实时脉冲
   ============================================================ */

/* ---------- 0. 设计令牌 ---------- */
:root {
  --color-primary: #FFB300;
  --color-primary-soft: #FFD166;
  --color-secondary: #0A1E3C;
  --color-accent: #00E676;
  --color-light-bg: #F5F7FA;
  --color-dark-bg: #0A1E3C;
  --color-text-dark: #1A1A2E;
  --color-text-light: #FFFFFF;
  --color-grid-line: rgba(10, 30, 60, 0.1);
  --color-alt-gray: #8A94A6;

  --font-heading: "Anton", "Arial Narrow", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container-max: 1240px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-island: 0 12px 40px rgba(10, 30, 60, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  --shadow-pop: 0 24px 48px rgba(10, 30, 60, 0.4);
  --corner-cut: 4px 4px 4px 22px;
}

/* ---------- 1. Reset 与基础排版 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text-dark);
  background: var(--color-light-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

svg {
  display: block;
}

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

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text-dark);
}

h1 {
  font-size: clamp(40px, 7vw, 80px);
  line-height: 0.95;
}

h2 {
  font-size: clamp(26px, 3.6vw, 40px);
}

h3 {
  font-size: clamp(20px, 2.4vw, 26px);
}

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--color-primary);
  color: var(--color-secondary);
}

/* ---------- 2. 可达性工具 ---------- */
.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;
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 24px rgba(255, 179, 0, 0.45);
  transition: top 0.3s var(--ease-out);
}

.skip-link:focus-visible {
  top: 16px;
}

/* ---------- 3. 布局容器 ---------- */
.content-container {
  width: min(100% - 40px, var(--container-max));
  margin-inline: auto;
}

@media (min-width: 640px) {
  .content-container {
    width: min(100% - 64px, var(--container-max));
  }
}

.section {
  padding: var(--space-6) 0;
}

.section--tight {
  padding: var(--space-5) 0;
}

/* ---------- 4. 页头 ---------- */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 100;
  padding: 12px 20px 14px;
}

.progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1001;
  background: rgba(10, 30, 60, 0.08);
  pointer-events: none;
}

.progress-track__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.nav-island {
  position: relative;
  max-width: 1200px;
  margin-inline: auto;
  border-radius: 999px;
  background: rgba(10, 30, 60, 0.92);
  box-shadow: var(--shadow-island);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-island::after {
  content: "";
  position: absolute;
  top: -4px;
  right: 26px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid var(--color-dark-bg);
  animation: live-pulse 2s ease-out infinite;
}

.nav-island__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 8px 8px 18px;
}

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

.brand-mark__badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px 14px 14px 4px;
  background: var(--color-primary);
  color: var(--color-secondary);
  transition: transform 0.3s var(--ease-out), border-radius 0.3s var(--ease-out);
}

.brand-mark:hover .brand-mark__badge {
  transform: rotate(-6deg) scale(1.05);
  border-radius: 4px 14px 4px 14px;
}

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

.brand-mark__pulse {
  stroke: var(--color-accent);
}

.brand-mark__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-mark__name {
  font-family: var(--font-heading);
  font-size: 20px;
  letter-spacing: 0.08em;
  color: #ffffff;
  transition: color 0.25s;
}

.brand-mark:hover .brand-mark__name {
  color: var(--color-primary);
}

.brand-mark__en {
  font-size: 9px;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

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

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.25s, background 0.25s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-primary);
  transform: translateX(-50%) scaleX(0);
  transition: transform 0.3s var(--ease-out);
}

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

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(0.4);
}

.nav-link[aria-current="page"] {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.25s, color 0.25s, transform 0.3s var(--ease-out);
}

.icon-btn:hover {
  background: var(--color-primary);
  color: var(--color-secondary);
  transform: rotate(-8deg);
}

.icon-btn__icon {
  width: 20px;
  height: 20px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle__line {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #ffffff;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}

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

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

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

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50% 50% 4px 50%;
  background: var(--color-primary);
  color: var(--color-secondary);
  box-shadow: 0 12px 32px rgba(255, 179, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.9);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.3s, background 0.25s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--color-accent);
}

.to-top__icon {
  width: 22px;
  height: 22px;
}

/* ---------- 5. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 80px;
  background: var(--color-dark-bg);
  color: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--color-primary) 0 46%, var(--color-accent) 46% 62%, transparent 62%);
  z-index: 2;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(-45deg, transparent 0 22px, rgba(255, 255, 255, 0.02) 22px 23px);
  pointer-events: none;
}

.site-footer .content-container {
  position: relative;
  z-index: 1;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--color-primary);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px;
  padding: 72px 0 48px;
}

.site-footer__brand-block {
  grid-column: span 4;
}

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

.brand-mark--footer .brand-mark__name {
  font-size: 24px;
}

.site-footer__slogan {
  margin-top: 20px;
  font-family: var(--font-heading);
  font-size: 24px;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-transform: uppercase;
}

.site-footer__statement {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer__trust {
  margin-top: 18px;
  padding: 12px 14px;
  border-left: 3px solid var(--color-accent);
  background: rgba(0, 230, 118, 0.08);
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
}

.site-footer__col {
  grid-column: span 2;
}

.site-footer__col--contact {
  grid-column: span 4;
}

.site-footer__heading {
  font-family: var(--font-heading);
  font-size: 16px;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__list {
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.site-footer__contact {
  display: grid;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
}

.site-footer__contact-item {
  display: flex;
  gap: 8px;
}

.site-footer__label {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.42);
}

.site-footer__value {
  color: rgba(255, 255, 255, 0.78);
  overflow-wrap: break-word;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0 28px;
  text-align: center;
}

.site-footer__copyright {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
}

.site-footer__note {
  margin-top: 8px;
  max-width: 640px;
  margin-inline: auto;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.36);
}

@media (max-width: 1023px) {
  .site-footer__brand-block {
    grid-column: span 6;
  }

  .site-footer__col {
    grid-column: span 3;
  }

  .site-footer__col--contact {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {
  .site-footer__grid {
    gap: 32px;
    padding: 56px 0 32px;
  }

  .site-footer__brand-block,
  .site-footer__col,
  .site-footer__col--contact {
    grid-column: span 12;
  }
}

/* ---------- 6. 按钮与通用组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-secondary);
  box-shadow: 0 6px 24px rgba(255, 179, 0, 0.35);
}

.btn--primary:hover {
  background: var(--color-primary-soft);
  transform: translateY(-2px);
}

.btn--ghost {
  box-shadow: inset 0 0 0 2px rgba(10, 30, 60, 0.25);
  color: var(--color-secondary);
}

.btn--ghost:hover {
  background: rgba(10, 30, 60, 0.06);
}

.btn--light {
  background: #ffffff;
  color: var(--color-secondary);
}

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

.panel-cut {
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}

.diag-lines {
  background-image: repeating-linear-gradient(-45deg, transparent 0 16px, rgba(10, 30, 60, 0.05) 16px 17px);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-alt-gray);
  margin-bottom: 20px;
}

.breadcrumbs a {
  color: var(--color-secondary);
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--color-primary);
}

.breadcrumbs__sep {
  color: rgba(10, 30, 60, 0.25);
}

.breadcrumbs [aria-current="page"] {
  color: var(--color-alt-gray);
}

/* ---------- 7. Bento 网格 ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.bento-cell {
  grid-column: span 4;
  padding: 28px;
  border-radius: var(--corner-cut);
  background: #ffffff;
}

.bento-cell--wide {
  grid-column: span 8;
}

.bento-cell--accent {
  background: var(--color-primary);
  color: var(--color-secondary);
}

.bento-cell--dark {
  background: var(--color-secondary);
  color: #ffffff;
}

.bento-cell--tint {
  background: var(--color-light-bg);
}

@media (max-width: 1023px) {
  .bento-cell,
  .bento-cell--wide {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {
  .bento-cell,
  .bento-cell--wide {
    grid-column: span 12;
  }
}

/* ---------- 8. 媒体占位容器 ---------- */
.media-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--corner-cut);
  background: linear-gradient(135deg, rgba(10, 30, 60, 0.06), rgba(255, 179, 0, 0.12));
}

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

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

.media-box--1x1 {
  aspect-ratio: 1 / 1;
}

.media-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-box__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-heading);
  font-size: 40px;
  letter-spacing: 0.08em;
  color: rgba(10, 30, 60, 0.25);
  background: linear-gradient(135deg, rgba(255, 179, 0, 0.14), rgba(0, 230, 118, 0.1));
}

/* ---------- 9. 章节标题、首屏与数据 ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 36px;
}

.section-index {
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  line-height: 1;
  padding-bottom: 4px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  text-transform: uppercase;
}

.section-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--color-alt-gray);
  text-transform: uppercase;
}

.page-hero {
  position: relative;
  padding: 96px 0 64px;
  overflow: hidden;
}

.page-hero--dark {
  background: var(--color-secondary);
  color: #ffffff;
}

.page-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--color-primary);
  text-transform: uppercase;
}

.page-hero__kicker::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
}

.page-hero__title {
  font-size: clamp(44px, 8vw, 92px);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-top: 18px;
}

.page-hero__desc {
  max-width: 520px;
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-alt-gray);
}

.page-hero--dark .page-hero__title {
  color: #ffffff;
}

.page-hero--dark .page-hero__desc {
  color: rgba(255, 255, 255, 0.72);
}

.split-hero {
  display: grid;
  align-items: center;
  gap: 40px;
}

.split-hero__visual {
  min-height: 320px;
}

@media (min-width: 1024px) {
  .split-hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 64px;
  }

  .split-hero__visual {
    min-height: 480px;
  }
}

.data-stat {
  font-family: var(--font-heading);
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--color-secondary);
}

.data-stat--gold {
  color: var(--color-primary);
}

.data-stat--light {
  color: #ffffff;
}

.data-stat__label {
  display: block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--color-alt-gray);
  text-transform: uppercase;
}

/* ---------- 10. 响应式：页头 / 导航 ---------- */
@media (max-width: 1023px) {
  .site-header {
    padding: 10px 12px 12px;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(10, 30, 60, 0.97);
    border-radius: 20px 20px 6px 20px;
    padding: 14px;
    box-shadow: var(--shadow-pop), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out), visibility 0.28s;
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

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

  .nav-link {
    justify-content: space-between;
    height: auto;
    padding: 13px 16px;
    border-radius: 12px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link[aria-current="page"] {
    background: var(--color-primary);
    color: var(--color-secondary);
  }

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

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

  .brand-mark__name {
    font-size: 18px;
  }

  .brand-mark__badge {
    width: 38px;
    height: 38px;
    border-radius: 12px 12px 12px 4px;
  }

  .icon-btn {
    width: 40px;
    height: 40px;
  }

  .nav-actions {
    gap: 6px;
  }

  .to-top {
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
  }
}

/* ---------- 11. 动效与降级 ---------- */
@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.55);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(0, 230, 118, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 230, 118, 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;
  }
}
