/* ==========================================
   完美体育 /assets/site.css
   全站共享样式
   ========================================== */

/* ---------- 变量 ---------- */
:root {
  --brand-orange: #FF6B00;
  --deep-navy: #0B1B3A;
  --electric-green: #C6FF00;
  --off-white: #F6F3EE;
  --glass-white: rgba(255, 255, 255, 0.72);
  --ink-900: #0A1128;
  --ink-600: #3A4050;
  --grad-spectrum: linear-gradient(135deg, #FF6B00 0%, #FFC700 100%);
  --font-title: "Source Han Sans Heavy", "Noto Sans SC Black", "Source Han Sans CN", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-en: "Arial Narrow", "Roboto Condensed", "PingFang SC", sans-serif;
  --font-num: "DIN Alternate", "Bebas Neue", "Roboto Condensed", "Arial Narrow", sans-serif;
  --container-width: 1280px;
  --radius: 4px;
  --skew: -6deg;
}

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

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

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul[class],
ol[class] {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

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

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

/* ---------- 基础排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-900);
  background-color: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-title);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

:focus-visible {
  outline: 3px solid var(--brand-orange);
  outline-offset: 3px;
}

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

.content {
  padding-block: 48px;
}

.content--narrow {
  max-width: 760px;
  margin-inline: auto;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--brand-orange);
  color: #ffffff;
  border: 2px solid var(--brand-orange);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  transform: skewX(var(--skew));
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.btn:hover {
  background: #ff8636;
  border-color: #ff8636;
  transform: skewX(var(--skew)) translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--brand-orange);
}

.btn--outline:hover {
  background: var(--brand-orange);
  color: #ffffff;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.btn--ghost:hover {
  background: transparent;
  border-color: var(--electric-green);
  color: var(--electric-green);
}

.btn--small {
  padding: 8px 16px;
  font-size: 13px;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  font-size: 13px;
  margin-bottom: 24px;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb__item {
  color: var(--ink-600);
}

.breadcrumb__item:not(:last-child)::after {
  content: "·";
  margin: 0 10px;
  color: var(--brand-orange);
}

.breadcrumb__item--current {
  color: var(--ink-900);
  font-weight: 600;
}

.breadcrumb a {
  color: var(--ink-600);
}

.breadcrumb a:hover {
  color: var(--brand-orange);
}

/* ---------- 分区与标题节奏 ---------- */
.section {
  padding-block: 88px;
}

.section--tight {
  padding-block: 48px;
}

.section--dark {
  background: var(--deep-navy);
  color: var(--off-white);
}

.section__kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--brand-orange);
  margin-bottom: 12px;
}

.section--dark .section__kicker {
  color: var(--electric-green);
}

.section__title {
  font-size: clamp(2rem, 3.4vw, 3rem);
  margin-bottom: 16px;
}

.section__lede {
  font-size: 18px;
  line-height: 1.7;
  max-width: 640px;
  color: var(--ink-600);
}

.section--dark .section__lede {
  color: rgba(255, 255, 255, 0.68);
}

/* ---------- 玻璃卡片与标签 ---------- */
.glass-card {
  background: var(--glass-white);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  padding: 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.section--dark .glass-card {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}

.tag {
  display: inline-block;
  background: var(--electric-green);
  color: var(--deep-navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  transform: skewX(var(--skew));
}

.stat-num {
  font-family: var(--font-num);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  color: var(--brand-orange);
  font-variant-numeric: tabular-nums;
}

.side-note {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-600);
  writing-mode: vertical-rl;
}

.skew-band {
  display: block;
  height: 8px;
  background: var(--grad-spectrum);
  transform: skewX(-12deg);
  border: 0;
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--electric-green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.7);
  }
}

/* ---------- 图片容器 ---------- */
.image-shell {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--deep-navy);
}

.image-shell::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.image-shell--square::before {
  padding-top: 100%;
}

.image-shell--portrait::before {
  padding-top: 125%;
}

.image-shell--wide::before {
  padding-top: 42%;
}

.image-shell > img,
.image-shell > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-shell--placeholder {
  background:
    linear-gradient(135deg, rgba(255, 107, 0, 0.35), rgba(11, 27, 58, 0.85)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 10px);
}

.image-shell--placeholder::after {
  content: "赛场影像";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  letter-spacing: 0.2em;
}

/* ---------- 页内筛选 ---------- */
.filter-board {
  margin-block: 24px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: transparent;
  border: 1px solid rgba(11, 27, 58, 0.25);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-600);
  transform: skewX(-4deg);
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.filter-btn:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}

.filter-btn.is-active {
  background: var(--deep-navy);
  border-color: var(--deep-navy);
  color: var(--electric-green);
}

.filter-btn.is-active:hover {
  color: var(--electric-green);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.filter-item {
  animation: filterIn 200ms ease both;
}

.filter-item.is-hidden {
  display: none;
}

@keyframes filterIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 9999;
  background: var(--electric-green);
  color: var(--deep-navy);
  padding: 12px 20px;
  font-weight: 700;
  border-radius: var(--radius);
  transition: top 200ms ease;
}

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

/* ---------- 头部 ---------- */
.site-header {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 10px),
    var(--deep-navy);
  color: var(--off-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header::before {
  content: "";
  position: absolute;
  right: -40px;
  top: 64px;
  width: 240px;
  height: 5px;
  background: var(--electric-green);
  transform: rotate(-14deg);
  opacity: 0.55;
  z-index: 0;
}

.site-header__strip {
  height: 6px;
  background: var(--grad-spectrum);
}

/* ---------- 报头 ---------- */
.masthead {
  position: relative;
  z-index: 1;
  max-width: var(--container-width);
  margin-inline: auto;
  padding: 44px 24px 24px;
  text-align: center;
}

.masthead__side {
  position: absolute;
  top: 52px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  color: rgba(255, 255, 255, 0.45);
  z-index: 2;
}

.masthead__side::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-bottom: 8px;
  background: var(--brand-orange);
}

.masthead__side--left {
  left: 4vw;
}

.masthead__side--right {
  right: 4vw;
  color: rgba(198, 255, 0, 0.7);
}

.masthead__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(198, 255, 0, 0.28);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--electric-green);
  font-weight: 600;
}

.masthead__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.masthead__emblem {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--electric-green);
  transform: rotate(45deg) scale(0.85);
  position: relative;
  flex: 0 0 auto;
}

.masthead__emblem::before {
  content: "";
  position: absolute;
  inset: 9px;
  background: var(--deep-navy);
  border-radius: 50%;
}

.masthead__emblem::after {
  content: "";
  position: absolute;
  inset: 16px;
  background: var(--brand-orange);
  border-radius: 50%;
}

.masthead__name {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--brand-orange);
  display: inline-block;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .masthead__name {
    background: linear-gradient(120deg, #FFD84D, var(--brand-orange) 55%, #FFC700);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

.masthead__tagline {
  margin-top: 16px;
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.72);
}

.masthead__tagline::before,
.masthead__tagline::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 12px;
  background: var(--electric-green);
  transform: rotate(45deg);
}

.masthead::after {
  content: "";
  display: block;
  width: 96px;
  height: 6px;
  margin: 20px auto 0;
  background: var(--brand-orange);
  transform: skewX(-16deg);
}

/* ---------- 导航 ---------- */
.site-nav {
  position: relative;
  z-index: 20;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 27, 58, 0.92);
}

.site-nav__list {
  max-width: var(--container-width);
  margin-inline: auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  gap: 2px;
  list-style: none;
}

.site-nav__link {
  display: block;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  transition: color 180ms ease, background-color 180ms ease;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 8px;
  height: 3px;
  background: var(--electric-green);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
}

.site-nav__link:hover {
  color: var(--electric-green);
}

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

.site-nav__link[aria-current="page"] {
  background: var(--electric-green);
  color: var(--deep-navy);
}

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

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--off-white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
}

.nav-toggle__icon {
  position: relative;
  width: 20px;
  height: 16px;
  display: inline-block;
  color: var(--electric-green);
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 200ms ease, top 200ms ease, bottom 200ms ease;
}

.nav-toggle__icon::before {
  top: 2px;
  box-shadow: 0 6px 0 currentColor;
}

.nav-toggle__icon::after {
  bottom: 2px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
  top: 7px;
  box-shadow: none;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
  bottom: 7px;
  transform: rotate(-45deg);
}

/* ---------- 页脚 ---------- */
.site-footer {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0 2px, transparent 2px 10px),
    var(--deep-navy);
  color: rgba(255, 255, 255, 0.8);
}

.site-footer__strip {
  height: 6px;
  background: var(--grad-spectrum);
}

.site-footer__main {
  max-width: var(--container-width);
  margin-inline: auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 48px;
}

.site-footer__name {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--off-white);
}

.site-footer__name::before {
  content: "";
  width: 18px;
  height: 18px;
  background: var(--brand-orange);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.site-footer__about {
  margin-top: 16px;
  max-width: 360px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.65);
}

.site-footer__heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--electric-green);
  margin-bottom: 14px;
  text-transform: uppercase;
}

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

.site-footer__nav a {
  display: inline-block;
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  transition: color 180ms ease;
}

.site-footer__nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--brand-orange);
  transform: translateY(-50%) rotate(45deg);
}

.site-footer__nav a:hover {
  color: var(--electric-green);
}

.site-footer__contact p {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.65);
}

.site-footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.16);
}

.site-footer__bar-inner {
  max-width: var(--container-width);
  margin-inline: auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  font-variant-numeric: tabular-nums;
}

/* ---------- 滚动显现 ---------- */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

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

  .masthead__side {
    display: none;
  }
}

@media (max-width: 920px) {
  .site-nav {
    background: transparent;
  }

  .nav-toggle {
    display: inline-flex;
    position: absolute;
    top: 24px;
    right: 20px;
    z-index: 40;
  }

  .site-nav__list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
  }

  .site-nav[data-open] .site-nav__list {
    display: flex;
  }

  .site-nav__link {
    padding: 14px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

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

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

  .site-nav__link[aria-current="page"] {
    background: var(--electric-green);
    color: var(--deep-navy);
  }

  .masthead {
    padding-top: 32px;
  }

  .section {
    padding-block: 56px;
  }
}

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

  .site-footer__main {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 24px 32px;
  }

  .site-footer__bar-inner {
    flex-direction: column;
    text-align: center;
  }

  .masthead__tagline::before,
  .masthead__tagline::after {
    display: none;
  }
}

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

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

  .pulse-dot {
    animation: none;
  }
}
