/* ==========================================================
   乐动体育平台官方CN站 —— 共享全站样式
   ========================================================== */

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

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

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-ink);
  background-color: var(--color-cream);
  padding-top: 64px;
  overflow-x: hidden;
}

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

ul,
ol {
  list-style: none;
}

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

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

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

:focus-visible {
  outline: 3px solid var(--color-electric);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: var(--color-pitch);
  color: var(--color-cream);
}

/* ---------- CSS Variables ---------- */
:root {
  /* 色彩 */
  --color-cream: #F5F0E8;
  --color-paper: #FFF9EF;
  --color-ink: #1C1B1A;
  --color-pitch: #1A4A3A;
  --color-electric: #0E5FD8;
  --color-ember: #E8522E;
  --color-gold: #D9A21B;
  --color-brick: #8E3B2F;
  --color-line: #D6CBB8;
  --color-night: #0D1117;

  /* 字体 */
  --font-headline: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-data: "Roboto Mono", "SF Mono", "Menlo", "Consolas", monospace;

  /* 版式字号 */
  --fs-display: clamp(40px, 6vw, 72px);
  --fs-h1: clamp(32px, 4vw, 48px);
  --fs-h2: clamp(24px, 3vw, 32px);
  --fs-h3: 20px;
  --fs-body: 16px;
  --fs-caption: 13px;

  /* 布局 */
  --header-width: 296px;
  --container-max: 1240px;
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(13, 17, 23, 0.08);
  --shadow-md: 0 8px 24px rgba(13, 17, 23, 0.12);
  --shadow-lg: 0 16px 48px rgba(13, 17, 23, 0.16);
}

/* ---------- 基础排版 ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-headline);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p {
  line-height: 1.85;
  max-width: 68ch;
}

.data-number {
  font-family: var(--font-data);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-pitch);
}

.data-label {
  font-size: var(--fs-caption);
  color: var(--color-ink);
  opacity: 0.72;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- 可访问性 ---------- */
.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: 0;
  left: 0;
  z-index: 2001;
  background: var(--color-ember);
  color: #fff;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 0 0 14px 0;
  transform: translateY(-200%);
  transition: transform 0.25s;
}

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

/* ---------- 通用容器与布局 ---------- */
.container-ld {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}

.site-section {
  padding: clamp(48px, 8vw, 96px) 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 32px;
}

.section-title {
  position: relative;
  font-size: var(--fs-h2);
  padding-left: 18px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12em;
  bottom: 0.12em;
  width: 6px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--color-ember), var(--color-brick));
}

.section-subtitle {
  font-size: var(--fs-caption);
  color: var(--color-ink);
  opacity: 0.6;
  letter-spacing: 0.04em;
}

.display-title {
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-family: var(--font-headline);
  text-wrap: balance;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-pitch);
  color: var(--color-cream);
  box-shadow: 0 4px 14px rgba(26, 74, 58, 0.28);
}

.btn-primary:hover {
  background: #14503d;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 74, 58, 0.34);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-ink);
  color: var(--color-ink);
}

.btn-outline:hover {
  background: var(--color-ink);
  color: var(--color-cream);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 13px;
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-ink);
  white-space: nowrap;
}

.tag-gold {
  background: rgba(217, 162, 27, 0.16);
  border-color: rgba(217, 162, 27, 0.45);
  color: #8a6a10;
}

.tag-ember {
  background: rgba(232, 82, 46, 0.12);
  border-color: rgba(232, 82, 46, 0.4);
  color: var(--color-ember);
}

.tag-pitch {
  background: rgba(26, 74, 58, 0.12);
  border-color: rgba(26, 74, 58, 0.4);
  color: var(--color-pitch);
}

/* ---------- 悬浮卡片 ---------- */
.float-card {
  background: var(--color-paper);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.float-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

/* ---------- 左右分屏基座 ---------- */
.split-layout {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

.split-sticky {
  position: sticky;
  top: 32px;
  align-self: start;
}

/* ---------- 斜切分隔 ---------- */
.slash-divider {
  height: 12px;
  width: 100%;
  background: repeating-linear-gradient(
    -45deg,
    var(--color-brick) 0,
    var(--color-brick) 12px,
    var(--color-cream) 12px,
    var(--color-cream) 24px
  );
  border-radius: var(--radius-pill);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-ink);
  opacity: 0.68;
  padding: 18px 0;
}

.breadcrumb a {
  color: var(--color-pitch);
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  color: var(--color-ember);
  font-weight: 800;
}

/* ==========================================================
   头部 —— 框架式导航
   ========================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-night);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  box-shadow: 0 2px 12px rgba(13, 17, 23, 0.35);
}

/* 滚动进度条 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2000;
  background: rgba(217, 162, 27, 0.2);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- 品牌（移动端横条） ---------- */
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--color-pitch);
  color: var(--color-cream);
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  box-shadow: inset 0 0 0 2px rgba(245, 240, 232, 0.18);
}

.brand-mark-lg {
  width: 52px;
  height: 52px;
  font-size: 30px;
  border-radius: 16px;
}

.header-brand-text {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.01em;
  color: var(--color-cream);
  white-space: nowrap;
}

.header-bar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-cream);
  border: 1px solid rgba(245, 240, 232, 0.3);
  transition: border-color 0.2s, background-color 0.2s;
}

.header-lang:hover {
  border-color: var(--color-gold);
  background: rgba(217, 162, 27, 0.12);
}

.header-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: transparent;
}

.header-toggle:hover {
  background: rgba(245, 240, 232, 0.08);
}

.toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-cream);
  margin: 3px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

/* ---------- 主导航（桌面 sidebar / 移动 drawer） ---------- */
.site-nav {
  position: fixed;
  top: 64px;
  bottom: 0;
  left: 0;
  width: min(320px, 88vw);
  background: var(--color-night);
  transform: translateX(-105%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 999;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 0 24px 24px 0;
  box-shadow: 8px 0 32px rgba(13, 17, 23, 0.4);
  padding: 24px 20px 32px;
}

.site-nav[data-open] {
  transform: translateX(0);
}

.site-nav-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* 导航内品牌 */
.site-nav-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 4px 0;
}

.site-nav-head-text {
  line-height: 1.2;
}

.site-nav-brand-cn {
  display: block;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 20px;
  color: var(--color-cream);
  letter-spacing: 0.02em;
}

.site-nav-brand-en {
  display: block;
  margin-top: 6px;
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(245, 240, 232, 0.45);
  text-transform: uppercase;
}

/* 导航列表 */
.site-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-nav-item {
  position: relative;
}

.site-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  color: rgba(245, 240, 232, 0.78);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.site-nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 4px;
  border-radius: 0 6px 6px 0;
  background: var(--color-ember);
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.site-nav-link:hover {
  background: rgba(245, 240, 232, 0.06);
  color: #fff;
  transform: translateX(4px);
}

.site-nav-link:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.site-nav-link[aria-current="page"] {
  background: linear-gradient(90deg, rgba(232, 82, 46, 0.16), rgba(232, 82, 46, 0.05));
  color: #fff;
  font-weight: 800;
}

.site-nav-link[aria-current="page"]::before {
  opacity: 1;
  transform: scaleY(1);
}

.site-nav-index {
  font-family: var(--font-data);
  font-weight: 600;
  font-size: 12px;
  color: var(--color-gold);
  letter-spacing: 0.04em;
  min-width: 26px;
  line-height: 1;
}

.site-nav-label {
  flex: 1;
}

.site-nav-arrow {
  font-size: 15px;
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity 0.25s, transform 0.25s;
  color: var(--color-ember);
}

.site-nav-link:hover .site-nav-arrow,
.site-nav-link[aria-current="page"] .site-nav-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* 导航底部 */
.site-nav-foot {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(245, 240, 232, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-data);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-cream);
  background: rgba(245, 240, 232, 0.08);
  border: 1px solid rgba(245, 240, 232, 0.18);
  transition: background-color 0.2s, border-color 0.2s;
}

.nav-lang-switch:hover {
  background: rgba(245, 240, 232, 0.14);
  border-color: rgba(217, 162, 27, 0.6);
}

.nav-trust {
  font-size: 13px;
  color: rgba(245, 240, 232, 0.5);
  line-height: 1.6;
  letter-spacing: 0.02em;
  max-width: none;
}

.nav-trust-num {
  font-family: var(--font-data);
  font-weight: 600;
  color: var(--color-gold);
  font-size: 18px;
}

.nav-stripe {
  height: 8px;
  border-radius: 4px;
  background: repeating-linear-gradient(
    -45deg,
    var(--color-brick) 0,
    var(--color-brick) 10px,
    rgba(232, 82, 46, 0.6) 10px,
    rgba(232, 82, 46, 0.6) 20px
  );
  margin-top: 4px;
}

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff 0%, #ece6d8 55%, #c8c1b2 100%);
  border: 2px solid var(--color-ink);
  box-shadow: 0 6px 18px rgba(13, 17, 23, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 980;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(13, 17, 23, 0.35);
}

.back-top-arrow {
  width: 20px;
  height: 20px;
  background: var(--color-ink);
  clip-path: polygon(50% 0%, 75% 32%, 60% 32%, 60% 100%, 40% 100%, 40% 32%, 25% 32%);
}

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

.site-footer {
  background: var(--color-night);
  color: var(--color-cream);
  margin-top: clamp(64px, 10vw, 128px);
  position: relative;
}

.footer-accent {
  height: 6px;
  background: linear-gradient(90deg, var(--color-brick), var(--color-ember), var(--color-gold));
  border-radius: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 56px) 48px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-brand-name {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 8px;
}

.footer-slogan {
  font-size: 15px;
  color: rgba(245, 240, 232, 0.7);
  line-height: 1.7;
  max-width: 36ch;
  margin-bottom: 16px;
}

.footer-trust {
  font-size: 13px;
  color: rgba(245, 240, 232, 0.48);
  line-height: 1.7;
  max-width: 42ch;
  padding: 14px 18px;
  border-left: 4px solid var(--color-gold);
  background: rgba(245, 240, 232, 0.05);
  border-radius: 0 12px 12px 0;
}

.footer-heading {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 16px;
  color: var(--color-cream);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(245, 240, 232, 0.14);
}

.footer-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
}

.footer-link-list a {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  color: rgba(245, 240, 232, 0.72);
  padding: 6px 0;
  transition: color 0.2s, transform 0.2s;
}

.footer-link-list a::before {
  content: "·";
  color: var(--color-ember);
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  margin-right: 10px;
  transition: transform 0.2s;
}

.footer-link-list a:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer-link-list a:hover::before {
  transform: translateX(-2px);
}

.footer-contact-item {
  font-size: 14px;
  color: rgba(245, 240, 232, 0.72);
  margin-bottom: 10px;
  line-height: 1.6;
}

.footer-contact-note {
  font-size: 12px;
  color: rgba(245, 240, 232, 0.44);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(245, 240, 232, 0.16);
}

.footer-bottom {
  border-top: 1px solid rgba(245, 240, 232, 0.1);
}

.footer-bottom-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 22px clamp(20px, 5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  font-size: 13px;
  color: rgba(245, 240, 232, 0.5);
}

.footer-copyright {
  margin-right: auto;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-legal a {
  color: rgba(245, 240, 232, 0.6);
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--color-gold);
}

.footer-legal span {
  color: rgba(245, 240, 232, 0.3);
}

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

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

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1.4fr;
    gap: clamp(32px, 5vw, 72px);
  }
}

@media (min-width: 1024px) {
  body {
    margin-left: var(--header-width);
    padding-top: 0;
  }

  .site-header {
    top: 0;
    left: 0;
    width: var(--header-width);
    right: auto;
    bottom: 0;
    height: auto;
    padding: 0;
    display: block;
    flex-direction: column;
    box-shadow: none;
    border-right: 1px solid rgba(245, 240, 232, 0.1);
    background:
      linear-gradient(rgba(13, 17, 23, 0.98), rgba(13, 17, 23, 0.98)),
      repeating-linear-gradient(
        -45deg,
        transparent 0,
        transparent 6px,
        rgba(217, 162, 27, 0.08) 6px,
        rgba(217, 162, 27, 0.08) 12px
      );
  }

  .header-bar {
    display: none;
  }

  .site-nav {
    position: static;
    transform: none;
    width: 100%;
    min-height: 100%;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    transition: none;
    overflow: visible;
    display: flex;
    flex-direction: column;
  }

  .site-nav[data-open] {
    transform: none;
  }

  .site-nav-inner {
    padding: 36px 24px 28px;
    gap: 40px;
  }

  .site-nav-head {
    padding: 36px 8px 0;
    margin-bottom: 8px;
  }

  .site-nav-brand-cn {
    font-size: 22px;
  }

  .site-nav-brand-en {
    font-size: 11px;
    letter-spacing: 0.18em;
  }

  .site-nav-list {
    gap: 6px;
  }

  .site-nav-link {
    font-size: 17px;
    padding: 15px 18px;
  }

  .site-nav-index {
    font-size: 12px;
  }

  .site-nav-link[aria-current="page"]::before {
    left: -2px;
  }

  .site-nav-foot {
    margin-top: auto;
    padding-top: 24px;
    padding-bottom: 12px;
  }

  .nav-stripe {
    height: 10px;
  }

  .scroll-progress {
    left: var(--header-width);
  }

  .back-top {
    right: 28px;
    bottom: 32px;
  }

  .skip-link {
    left: var(--header-width);
  }

  .footer-inner {
    padding-left: clamp(24px, 4vw, 56px);
    padding-right: clamp(24px, 4vw, 56px);
  }
}

/* ---------- 降级动画 ---------- */
@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;
  }
}
