/* ============================================
   必一体育 · 全站共享样式
   File: /assets/site.css
   ============================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

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

body[data-menu-open="true"] {
  overflow: hidden;
}

main {
  display: block;
  min-height: 60vh;
}

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

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

ul,
ol {
  list-style: none;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.15;
  color: var(--ink);
}

p {
  overflow-wrap: break-word;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

/* ---------- Design Tokens ---------- */
:root {
  --bg: #F5F0E8;
  --ink: #1A1D21;
  --lime: #C6FF00;
  --orange: #FF6A00;
  --navy: #0A2540;
  --silver: #C0C0C8;
  --muted: #6B6B6E;
  --white: #FFFFFF;
  --shadow: rgba(0, 0, 0, 0.2);
  --header-h: 72px;
  --container-w: 1240px;
  --font-heading: 'Arial Black', 'Helvetica Neue', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'Courier New', Courier, monospace;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --border-w: 3px;
}

/* ---------- Focus-visible ---------- */
:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}

/* ---------- Skip Link ---------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3000;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  padding: 12px 24px;
  transform: translateY(-150%);
  transition: transform 0.3s ease;
}

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

/* ---------- Scroll Progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--lime) 0%, var(--orange) 100%);
  z-index: 4000;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* ---------- Container ---------- */
.container {
  width: min(var(--container-w), 92%);
  margin-inline: auto;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--navy);
  transition: color 0.2s ease;
}

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

.breadcrumb a::after {
  content: "/";
  font-family: var(--font-mono);
  color: var(--silver);
  font-weight: 400;
}

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

/* ============================================
   Header
   ============================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background-color: transparent;
  background-image: linear-gradient(to bottom, rgba(10, 37, 64, 0.45), rgba(10, 37, 64, 0.15) 70%, transparent);
  color: var(--white);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lime) 0 72%, var(--orange) 72% 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  pointer-events: none;
}

.site-header[data-scrolled],
.site-header[data-menu-open] {
  background-color: var(--navy);
  background-image: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.site-header[data-scrolled]::after,
.site-header[data-menu-open]::after {
  transform: scaleX(1);
}

.header-inner {
  width: min(var(--container-w), 94%);
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.02em;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
  transform: skewX(-7deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--white);
}

.brand-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--lime);
  text-transform: uppercase;
}

/* Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(10, 37, 64, 0.25);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.nav-toggle:hover {
  border-color: var(--lime);
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.nav-toggle:hover .nav-toggle-bar {
  background: var(--lime);
}

.nav-toggle-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--lime);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) 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(-8px) rotate(-45deg);
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.nav-link {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  transition: color 0.25s ease, background-color 0.25s ease;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 5px;
  height: 3px;
  background: var(--lime);
  transition: left 0.3s ease, right 0.3s ease;
  pointer-events: none;
}

.nav-link:hover {
  color: var(--lime);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  left: 12px;
  right: 12px;
}

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

/* Nav CTA */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
  padding: 11px 20px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.25);
  background-color: #D8FF4D;
}

.nav-cta:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
}

.nav-cta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 2px rgba(10, 37, 64, 0.2);
  flex-shrink: 0;
}

/* Mobile Nav Breakpoint */
@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
    z-index: 1100;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    background-color: var(--navy);
    background-image: repeating-linear-gradient(135deg, transparent 0 22px, rgba(198, 255, 0, 0.03) 22px 23px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 28px 24px 48px;
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s ease, visibility 0s linear 0.35s;
  }

  .site-nav[data-open] {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.35s ease;
  }

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

  .nav-link {
    font-family: var(--font-heading);
    font-size: 22px;
    padding: 16px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--white);
  }

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

  .nav-link:hover,
  .nav-link[aria-current="page"] {
    color: var(--lime);
    background: rgba(198, 255, 0, 0.07);
  }

  .nav-cta {
    margin-top: 28px;
    margin-left: 0;
    justify-content: center;
  }
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  position: relative;
  background: var(--navy);
  color: rgba(245, 240, 232, 0.85);
  margin-top: 96px;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--lime) 0 30%, var(--orange) 30% 48%, rgba(10, 37, 64, 0) 48% 100%);
  z-index: 2;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 16px, rgba(198, 255, 0, 0.025) 16px 17px);
  pointer-events: none;
}

.footer-top {
  position: relative;
  z-index: 1;
  width: min(var(--container-w), 92%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: 44px;
  padding: 72px 0 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--white);
}

.footer-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--lime);
  border: 1px solid var(--lime);
  padding: 4px 10px;
}

.footer-desc {
  max-width: 280px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.7);
}

.footer-col {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  padding-left: 22px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--lime);
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-left: 14px;
  position: relative;
}

.footer-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  background: var(--orange);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  position: relative;
  display: inline-block;
  font-size: 14px;
  color: rgba(245, 240, 232, 0.82);
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.footer-links a::before {
  content: ">";
  display: inline-block;
  margin-right: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--orange);
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--lime);
  transition: right 0.3s ease;
}

.footer-links a:hover {
  color: var(--lime);
  padding-left: 6px;
}

.footer-links a:hover::after {
  right: 0;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-line {
  font-size: 13px;
  color: rgba(245, 240, 232, 0.8);
  line-height: 1.6;
}

.footer-line::before {
  content: "◆";
  display: inline-block;
  margin-right: 8px;
  font-size: 10px;
  color: var(--orange);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
}

.footer-bottom-inner {
  width: min(var(--container-w), 92%);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.footer-copy,
.footer-icp {
  font-size: 13px;
  color: rgba(245, 240, 232, 0.62);
}

.footer-trust {
  width: min(var(--container-w), 92%);
  margin: 16px auto 0;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
  font-size: 12px;
  line-height: 1.7;
  color: var(--silver);
  text-align: center;
}

@media (max-width: 960px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding: 52px 0 40px;
  }
}

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
    padding: 44px 0 32px;
  }

  .footer-col {
    border-left: none;
    padding-left: 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
    padding-top: 18px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================
   Page Components
   ============================================ */
.section {
  padding: 96px 0;
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-label::before {
  content: "";
  width: 32px;
  height: 3px;
  background: var(--orange);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.section-desc {
  max-width: 640px;
  font-size: 16px;
  color: var(--muted);
}

/* ---------- Page Hero ---------- */
.page-hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: calc(var(--header-h) + 56px) 0 56px;
  margin-bottom: 64px;
  overflow: hidden;
  border-bottom: 3px solid var(--ink);
}

.page-hero::before {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -30%;
  width: 42%;
  height: 130%;
  background: linear-gradient(115deg, transparent 0%, rgba(198, 255, 0, 0.1) 38%, var(--lime) 46%, var(--lime) 50%, var(--orange) 55%, transparent 60%);
  transform: skewX(-12deg);
  pointer-events: none;
}

.page-hero__title {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: clamp(34px, 5.5vw, 58px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.page-hero__meta {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--lime);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 3px solid var(--ink);
  background: var(--lime);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--shadow);
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.25);
  background-color: #D8FF4D;
}

.btn:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

.btn--orange {
  background: var(--orange);
  color: var(--white);
}

.btn--orange:hover {
  background-color: #FF8133;
}

.btn--navy {
  background: var(--navy);
  color: var(--lime);
  border-color: var(--navy);
}

.btn--navy:hover {
  background-color: #12365C;
}

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

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

/* ---------- Grid ---------- */
.grid {
  display: grid;
  gap: 28px;
}

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

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

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

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

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

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

/* ---------- Data Card ---------- */
.data-card {
  background: var(--bg);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--shadow);
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.data-card:hover {
  transform: translate(-3px, -3px) rotate(-0.4deg);
  box-shadow: 9px 9px 0 rgba(0, 0, 0, 0.25);
}

.data-card__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.data-card__label {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- Media / Figure ---------- */
.media-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--navy);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.media-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(198, 255, 0, 0.1) 12px 13px);
  pointer-events: none;
}

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

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

.figure {
  position: relative;
  margin: 0;
  line-height: 0;
}

.figcaption {
  margin-top: 12px;
  line-height: 1.5;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.figcaption::before {
  content: "▸";
  color: var(--orange);
  font-size: 15px;
}

/* ---------- Legend ---------- */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  border: 3px solid var(--ink);
  background: var(--bg);
  padding: 16px 22px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.15);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.legend-dot {
  width: 14px;
  height: 14px;
  border: 2px solid var(--ink);
  background: var(--lime);
  flex-shrink: 0;
}

/* ---------- Decorative Bands ---------- */
.diag-band {
  height: 96px;
  border-block: 3px solid var(--ink);
  background: linear-gradient(115deg, var(--navy) 0%, var(--navy) 55%, var(--orange) 55%, var(--orange) 70%, var(--lime) 70%, var(--lime) 85%, transparent 85%);
}

.speed-lines {
  height: 48px;
  background-image: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(10, 37, 64, 0.1) 10px 12px, transparent 12px 24px);
}

/* ---------- Section Rhythm ---------- */
.section + .section {
  padding-top: 0;
}

.section:has(.page-hero) {
  padding-top: 0;
}

/* ---------- Reduced Motion ---------- */
@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;
  }

  .scroll-progress {
    transition: none;
  }

  .site-nav {
    transition: none;
  }
}
