/* ==========================================================================
   乐宝体育 · 全站共享样式 /assets/site.css
   设计系统：赛日编辑部 · 深空蓝黑 × 炽热橙红 × 电光黄
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  /* 色彩体系 */
  --primary: #FF4D00;
  --primary-dark: #CC3B00;
  --deep-space: #0A0E27;
  --electric-yellow: #FFD700;
  --paper: #F5F1E6;
  --ink: #12161F;
  --muted-ink: #5A6472;
  --line: #D0D4DC;
  --data-green: #00C48C;
  --warning: #FF9F1C;

  /* 字体 */
  --font-display: "Noto Sans SC", "PingFang SC", sans-serif;
  --font-mono: "Roboto Mono", "SFMono-Regular", monospace;

  /* 布局 */
  --container-max: 1440px;
  --container-pad: clamp(1rem, 4vw, 2.5rem);

  /* 间距 */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* 圆角 */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-full: 999px;

  /* 过渡 */
  --t-fast: 150ms ease;
  --t-base: 260ms cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* 头部高度 */
  --header-topbar-h: 56px;
  --header-navbar-h: 60px;
}

/* ---------- 2. 重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--deep-space);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

ul,
ol {
  list-style: none;
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
}

/* ---------- 3. 基础排版 ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
  color: inherit;
}

p {
  text-wrap: pretty;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* 焦点可见 */
:focus-visible {
  outline: 3px solid var(--electric-yellow);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(10, 14, 39, 0.25);
  border-radius: var(--r-sm);
}

/* ---------- 4. 容器与区块 ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--sp-8);
}

.section--paper {
  background-color: var(--paper);
  color: var(--ink);
}

.section--dark {
  background-color: var(--deep-space);
  color: var(--paper);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 36px 36px;
}

.section--tint {
  background-color: #EBE6D8;
  color: var(--ink);
}

.section__title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--sp-3);
  letter-spacing: -0.01em;
}

.section__title--light {
  color: var(--paper);
}

.section__lead {
  max-width: 64ch;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--muted-ink);
  margin-bottom: var(--sp-5);
}

.section__lead--light {
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.375rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  background-color: transparent;
  border: 2px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color var(--t-base),
    border-color var(--t-base),
    color var(--t-base),
    transform var(--t-base),
    box-shadow var(--t-base);
}

.btn--primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--paper);
}

.btn--primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 77, 0, 0.4);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.85);
}

.btn--ghost:hover {
  border-color: var(--electric-yellow);
  color: var(--paper);
  background-color: rgba(255, 215, 0, 0.08);
  transform: translateY(-1px);
}

.btn--sm {
  padding: 0.375rem 0.9375rem;
  font-size: 0.8125rem;
  border-radius: var(--r-full);
}

/* ---------- 6. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: var(--r-full);
  background-color: rgba(255, 77, 0, 0.08);
  border: 1px solid rgba(255, 77, 0, 0.28);
  color: var(--primary-dark);
  white-space: nowrap;
}

.tag--light {
  background-color: rgba(255, 215, 0, 0.08);
  border-color: rgba(255, 215, 0, 0.35);
  color: var(--electric-yellow);
}

/* ---------- 7. 卡片 ---------- */
.card {
  background-color: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 2px 12px rgba(10, 14, 39, 0.06);
  overflow: hidden;
  transition:
    transform var(--t-base),
    box-shadow var(--t-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(10, 14, 39, 0.14);
}

.card__body {
  padding: var(--sp-5);
}

.card__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--sp-2);
}

.card__text {
  color: var(--muted-ink);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ---------- 8. 图片容器 ---------- */
.img-cover {
  position: relative;
  overflow: hidden;
  background-color: var(--deep-space);
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
}

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

.img-cover--ratio-4-3 {
  aspect-ratio: 4 / 3;
}

.img-cover--ratio-1-1 {
  aspect-ratio: 1 / 1;
}

/* ---------- 9. 网格 ---------- */
.grid {
  display: grid;
  gap: var(--sp-5);
}

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

/* ---------- 10. 面包屑 ---------- */
.breadcrumb {
  padding-block: var(--sp-4);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
}

.breadcrumb__item {
  color: var(--muted-ink);
  display: inline-flex;
  align-items: center;
}

.breadcrumb__item:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--line);
  font-family: var(--font-mono);
}

.breadcrumb__link {
  color: var(--primary);
  font-weight: 600;
}

.breadcrumb__link:hover {
  text-decoration: underline;
}

.breadcrumb__item[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.breadcrumb__item[aria-current="page"]::after {
  display: none;
}

/* ---------- 11. 页头顶部标题区 ---------- */
.page-header {
  background-color: var(--deep-space);
  color: var(--paper);
  padding-block: var(--sp-7) var(--sp-6);
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 36px 36px;
}

.page-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--electric-yellow) 40%, transparent 100%);
}

.page-header__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.page-header__lead {
  margin-top: var(--sp-3);
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* ---------- 12. 跳过链接 ---------- */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2000;
  background-color: var(--primary);
  color: var(--paper);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: 0 0 var(--r-md) 0;
  box-shadow: 0 4px 16px rgba(255, 77, 0, 0.4);
  transform: translateY(-120%);
  transition: transform var(--t-base);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- 13. 头部整体 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--deep-space);
  color: var(--paper);
  box-shadow: 0 8px 32px rgba(10, 14, 39, 0.5);
}

.site-header__progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--electric-yellow) 100%);
  transition: width 100ms linear;
  z-index: 10;
  border-radius: 0 var(--r-full) var(--r-full) 0;
}

/* 上层 · 品牌说明栏 */
.site-header__topbar {
  background-color: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.site-header__topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--header-topbar-h);
}

.site-header__meta {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

/* 品牌组合 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  border-radius: var(--r-md);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  border-radius: 4px 14px 4px 14px;
  box-shadow: 0 3px 14px rgba(255, 77, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  gap: 0.125rem;
}

.brand__name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--paper);
}

.brand__slogan {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--electric-yellow);
  letter-spacing: 0.1em;
}

/* 下层 · 主栏目导航栏 */
.site-header__navbar {
  position: relative;
  background-color: rgba(0, 0, 0, 0.22);
}

.site-header__navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: var(--header-navbar-h);
}

/* 主导航 */
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav__link {
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  border-radius: var(--r-sm);
  position: relative;
  transition:
    color var(--t-fast),
    background-color var(--t-fast);
}

.site-nav__link:hover {
  color: var(--paper);
  background-color: rgba(255, 255, 255, 0.07);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--primary);
  border-radius: var(--r-full);
  transition: width var(--t-base);
}

.site-nav__link:hover::after {
  width: 70%;
}

.site-nav__link[aria-current="page"] {
  color: var(--paper);
  background-color: rgba(255, 77, 0, 0.15);
}

.site-nav__link[aria-current="page"]::after {
  width: 70%;
}

/* 头部快捷操作 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

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

/* 移动端汉堡按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: var(--r-md);
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color var(--t-fast), border-color var(--t-fast);
}

.nav-toggle:hover {
  background-color: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 215, 0, 0.4);
}

.nav-toggle__line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--paper);
  border-radius: var(--r-full);
  transition:
    transform var(--t-base),
    opacity var(--t-fast);
}

/* 汉堡 → 关闭 X */
.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

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

/* ---------- 14. 响应式导航（平板 / 移动端） ---------- */
@media (max-width: 1024px) {
  :root {
    --header-topbar-h: 48px;
    --header-navbar-h: 52px;
  }

  .nav-toggle {
    display: flex;
  }

  .header-actions {
    display: none;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--deep-space);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 3px solid var(--primary);
    box-shadow: 0 16px 48px rgba(10, 14, 39, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity var(--t-base),
      transform var(--t-base),
      visibility 0s var(--t-base);
  }

  .site-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition:
      opacity var(--t-base),
      transform var(--t-base),
      visibility 0s;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
  }

  .site-nav__link {
    padding: 0.9375rem 1.25rem;
    border-radius: var(--r-md);
    border-left: 3px solid transparent;
    font-size: 1rem;
  }

  .site-nav__link:hover {
    background-color: rgba(255, 255, 255, 0.06);
  }

  .site-nav__link::after {
    display: none;
  }

  .site-nav__link[aria-current="page"] {
    border-left-color: var(--primary);
    background-color: rgba(255, 77, 0, 0.14);
  }
}

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

  .brand__slogan {
    display: none;
  }

  .brand__mark {
    width: 36px;
    height: 36px;
    font-size: 1.125rem;
  }

  .brand__name {
    font-size: 1.0625rem;
  }
}

/* ---------- 15. 页脚 ---------- */
.site-footer {
  background-color: var(--deep-space);
  color: var(--paper);
  position: relative;
  border-top: 4px solid var(--primary);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--electric-yellow) 50%, var(--primary) 100%);
  opacity: 0.6;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--sp-7);
  padding-block: var(--sp-8) var(--sp-7);
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.brand--footer .brand__name {
  font-size: 1.375rem;
}

.brand--footer .brand__slogan {
  color: var(--electric-yellow);
}

.site-footer__trust {
  max-width: 34ch;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer__col {
  min-width: 0;
}

.site-footer__heading {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: var(--sp-4);
  padding-bottom: 0.5rem;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__heading::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 28px;
  height: 2px;
  background-color: var(--primary);
  border-radius: var(--r-full);
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.site-footer__list a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.68);
  transition:
    color var(--t-fast),
    transform var(--t-fast);
}

.site-footer__list a::before {
  content: "";
  width: 4px;
  height: 4px;
  background-color: var(--primary);
  border-radius: 50%;
  opacity: 0.5;
  transition: opacity var(--t-fast);
}

.site-footer__list a:hover {
  color: var(--electric-yellow);
  transform: translateX(2px);
}

.site-footer__list a:hover::before {
  opacity: 1;
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  word-break: break-word;
}

.site-footer__bottom {
  background-color: rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-4);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.42);
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
  }
}

@media (max-width: 640px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }

  .site-footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-2);
    padding-block: var(--sp-5) var(--sp-4);
  }
}

/* ---------- 16. 滚动渐显 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 600ms ease var(--reveal-delay, 0ms),
    transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

/* ---------- 17. 通用响应式网格修正 ---------- */
@media (max-width: 1024px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    padding-block: var(--sp-7);
  }
}

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

  .section {
    padding-block: var(--sp-6);
  }

  .section__title {
    font-size: 1.875rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

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

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