/* ============================================
   杏彩体育CN 中国官网 · /assets/site.css
   视觉方向：精密数据仪表盘 · 框架式导航 · 锐利直角
   ============================================ */

/* ---------- 1. 设计变量 ---------- */
:root {
  --color-primary: #0B1B3D;
  --color-primary-deep: #060F24;
  --color-primary-translucent: rgba(11, 27, 61, 0.85);
  --color-accent: #FF6B00;
  --color-silver: #C0C0C0;
  --color-electric: #00C2FF;
  --color-purple: #7B61FF;
  --color-bg-light: #F5F7FA;
  --color-text-dark: #1A1A1A;
  --color-text-muted: #4A5568;

  --font-heading: 'Archivo Black', 'Impact', sans-serif;
  --font-body: 'Helvetica Neue', 'Arial', sans-serif;

  --size-hero: clamp(2.5rem, 8vw, 5rem);
  --size-h2: clamp(1.8rem, 4vw, 2.5rem);
  --size-h3: clamp(1.2rem, 2.5vw, 1.5rem);
  --size-body: 1rem;
  --size-sm: 0.875rem;
  --size-xs: 0.75rem;

  --line-heading: 1.1;
  --line-body: 1.7;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  --container-width: 1200px;
  --header-height: 72px;

  --ease-fast: 0.18s ease;
  --ease-base: 0.3s ease;
  --ease-slow: 0.55s ease;
}

/* ---------- 2. Reset 与基础 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: var(--line-body);
  color: var(--color-text-dark);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: var(--line-heading);
  color: var(--color-primary);
}

p {
  margin: 0 0 1.25em;
}

a {
  color: var(--color-accent);
}

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

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

button {
  font-family: inherit;
  font-size: inherit;
}

#main-content {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

/* ---------- 3. 可访问性 ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -120px;
  left: var(--space-sm);
  z-index: 200;
  background: var(--color-accent);
  color: #fff;
  padding: 12px 22px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(6, 15, 36, 0.4);
  transition: top var(--ease-fast);
}

.skip-link:focus {
  top: var(--space-sm);
  outline: none;
  box-shadow: 0 8px 20px rgba(6, 15, 36, 0.4), 0 0 0 4px var(--color-electric);
}

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

/* ---------- 4. 布局基础 ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.section {
  padding-block: var(--space-xl);
}

.section--tight {
  padding-block: var(--space-lg);
}

.section--alt {
  background: var(--color-bg-light);
}

.section--dark {
  background: var(--color-primary);
  color: rgba(192, 192, 192, 0.8);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.grid {
  display: grid;
  gap: var(--space-md);
}

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

.prose {
  max-width: 72ch;
}

/* ---------- 5. 通用组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0.75em 1.5em;
  background: transparent;
  border: 2px solid transparent;
  font-family: var(--font-heading);
  font-size: var(--size-sm);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--ease-fast), border-color var(--ease-fast), color var(--ease-fast), transform var(--ease-fast);
}

.btn--accent {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

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

.btn--ghost {
  border-color: var(--color-silver);
  color: var(--color-primary);
}

.btn--ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-accent);
  transform: translateY(-2px);
}

.btn--light {
  background: #fff;
  border-color: #fff;
  color: var(--color-primary);
}

.btn--light:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  transform: translateY(-2px);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 var(--space-md);
  padding: 0;
  list-style: none;
  font-size: var(--size-sm);
}

.breadcrumbs li + li::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 1px;
  margin-right: 0.5rem;
  background: var(--color-silver);
  vertical-align: middle;
}

.breadcrumbs a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--ease-fast);
}

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

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

.data-panel {
  position: relative;
  padding: var(--space-md);
  background: var(--color-bg-light);
  border: 1px solid var(--color-silver);
  border-top: 4px solid var(--color-electric);
  transition: transform var(--ease-base), box-shadow var(--ease-base);
}

.data-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(11, 27, 61, 0.14);
}

.data-panel--accent {
  border-top-color: var(--color-accent);
}

.data-panel--cut {
  background: var(--color-primary);
  border: none;
  color: var(--color-silver);
}

.data-panel--cut::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 52px 52px 0;
  border-color: transparent var(--color-accent) transparent transparent;
}

.data-panel__label {
  font-size: var(--size-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.data-panel--cut .data-panel__label {
  color: rgba(192, 192, 192, 0.6);
}

.data-panel__value {
  margin: var(--space-xs) 0 0;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--size-h3);
  color: var(--color-primary);
}

.data-panel--cut .data-panel__value {
  color: #fff;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--color-primary);
  color: #fff;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -6%;
  width: 36%;
  height: 160%;
  background: var(--color-accent);
  opacity: 0.14;
  transform: skewX(-14deg);
}

.page-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-electric), var(--color-accent), var(--color-purple));
}

.page-hero__title {
  max-width: 22ch;
  margin-bottom: var(--space-sm);
  font-size: var(--size-h2);
  color: #fff;
}

.page-hero__desc {
  max-width: 48ch;
  color: rgba(192, 192, 192, 0.85);
}

.page-hero .breadcrumbs {
  margin-bottom: var(--space-md);
}

.page-hero .breadcrumbs li + li::before {
  background: rgba(255, 255, 255, 0.4);
}

.page-hero .breadcrumbs a {
  color: rgba(255, 255, 255, 0.7);
}

.page-hero .breadcrumbs a:hover {
  color: var(--color-accent);
}

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

.image-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--color-primary);
}

.image-frame--tall { aspect-ratio: 4 / 5; }
.image-frame--wide { aspect-ratio: 21 / 9; }

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

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

.image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.diagonal-slice {
  position: relative;
  overflow: hidden;
}

.diagonal-slice::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -8%;
  width: 28%;
  height: 160%;
  background: var(--color-accent);
  opacity: 0.1;
  transform: skewX(-14deg);
}

.speed-line {
  height: 4px;
  background: repeating-linear-gradient(105deg, var(--color-electric) 0 24px, transparent 24px 48px, var(--color-accent) 48px 72px, transparent 72px 96px);
  opacity: 0.55;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--size-sm);
}

.table th,
.table td {
  padding: 0.8rem var(--space-sm);
  border-bottom: 1px solid var(--color-silver);
  text-align: left;
  vertical-align: top;
}

.table thead th {
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: 0.05em;
}

.table tbody tr {
  transition: background var(--ease-fast);
}

.table tbody tr:hover {
  background: rgba(0, 194, 255, 0.06);
}

/* 滚动显现：由 SITE_JS 添加 .js-reveal 以避免无 JS 时隐藏内容 */
[data-reveal].js-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--ease-slow), transform var(--ease-slow);
}

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

/* ---------- 6. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-primary);
  box-shadow: 0 1px 0 rgba(192, 192, 192, 0.14), 0 10px 28px rgba(6, 15, 36, 0.22);
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(192, 192, 192, 0.18);
}

.site-header__progress {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-electric));
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
  transition: width 0.08s linear;
}

.site-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-height: var(--header-height);
  padding-block: 8px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.site-logo__mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: 1.125rem;
  font-weight: 900;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}

.site-logo__text {
  color: #fff;
}

.site-logo__cn {
  color: var(--color-accent);
}

.site-nav {
  margin-inline: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-size: var(--size-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-silver);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--ease-fast);
}

.site-nav__link::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease-fast);
}

.site-nav__link:hover {
  color: #fff;
}

.site-nav__link:hover::after {
  transform: scaleX(1);
}

.site-nav__link[aria-current="page"] {
  color: var(--color-accent);
}

.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-header__cta {
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(192, 192, 192, 0.3);
  cursor: pointer;
  transition: border-color var(--ease-fast), background var(--ease-fast);
}

.nav-toggle:hover {
  background: rgba(255, 107, 0, 0.08);
  border-color: var(--color-accent);
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-silver);
  transition: transform var(--ease-fast), opacity var(--ease-fast), background var(--ease-fast);
}

.nav-toggle:hover .nav-toggle__bar {
  background: var(--color-accent);
}

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

/* ---------- 7. 页脚 ---------- */
.site-footer {
  background: var(--color-primary-deep);
  color: var(--color-silver);
}

.site-footer__speedline {
  height: 5px;
  background: repeating-linear-gradient(115deg, var(--color-electric) 0 28px, transparent 28px 64px, var(--color-accent) 64px 92px, transparent 92px 128px);
  opacity: 0.4;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr;
  gap: var(--space-lg) var(--space-md);
  padding-block: var(--space-lg) var(--space-md);
}

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

.site-logo--footer {
  font-size: 1.25rem;
}

.site-footer__trust {
  max-width: 36ch;
  margin: var(--space-sm) 0 0;
  font-size: var(--size-sm);
  line-height: 1.8;
  color: rgba(192, 192, 192, 0.72);
}

.site-footer__heading {
  margin-bottom: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--size-sm);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.site-footer__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__list li {
  position: relative;
  padding-left: 18px;
  font-size: var(--size-sm);
  line-height: 1.6;
}

.site-footer__list li::before {
  content: '';
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
}

.site-footer__list a {
  color: var(--color-silver);
  text-decoration: none;
  transition: color var(--ease-fast);
}

.site-footer__list a:hover {
  color: var(--color-accent);
}

.site-footer__label {
  display: block;
  font-size: var(--size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(192, 192, 192, 0.5);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs) var(--space-md);
  padding-block: var(--space-md);
  border-top: 1px solid rgba(192, 192, 192, 0.14);
}

.site-footer__copy,
.site-footer__icp {
  margin: 0;
  font-size: var(--size-sm);
  color: rgba(192, 192, 192, 0.58);
}

/* ---------- 8. 响应式 ---------- */
@media (max-width: 959px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-header__bar {
    gap: var(--space-sm);
  }

  .site-nav {
    margin-inline: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 90;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(11, 27, 61, 0.97);
    border-bottom: 4px solid var(--color-accent);
    box-shadow: 0 24px 48px rgba(6, 15, 36, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0s linear 0.24s;
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0s;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-xs) var(--space-md) var(--space-sm);
  }

  .site-nav__item {
    width: 100%;
  }

  .site-nav__link {
    padding: 14px 8px;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(192, 192, 192, 0.1);
  }

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

  .site-nav__item:last-child .site-nav__link {
    border-bottom: 0;
  }

  .site-nav__link:hover {
    background: rgba(255, 107, 0, 0.05);
  }

  .site-nav__link[aria-current="page"] {
    background: rgba(255, 107, 0, 0.08);
    box-shadow: inset 4px 0 0 var(--color-accent);
  }
}

@media (min-width: 640px) and (max-width: 959px) {
  .site-header__cta {
    margin-left: auto;
  }
}

@media (max-width: 639px) {
  .container {
    padding-inline: var(--space-sm);
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: var(--space-lg);
  }

  .site-header__cta {
    display: none;
  }

  .nav-toggle {
    margin-left: auto;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    padding-block: var(--space-lg) var(--space-md);
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- 9. 减少动效 ---------- */
@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;
  }

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

  .site-header__progress {
    transition: none;
  }
}
