/* ==========================================================================
   必一体育 · 共享站点样式  /assets/site.css
   海报式分层构图 · 深海蓝 / 电光青 / 活力橙 · 锐利直角与精密网格
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--deep);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

a {
  color: inherit;
}

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

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

table {
  border-collapse: collapse;
  width: 100%;
}

hr {
  border: 0;
  border-top: 1px solid var(--grid);
  margin: 0;
}

/* ---------- 2. Tokens ---------- */
:root {
  --deep: #061A33;
  --navy: #0E2A4D;
  --cyan: #14E0C8;
  --mist: #7FF0E2;
  --orange: #FF6A1F;
  --sand: #FFB27A;
  --wine: #7A1F3D;
  --indigo: #3B2A6B;
  --paper: #F5F8FB;
  --graphite: #44576B;
  --grid: #C7D3DE;

  --rule: rgba(127, 240, 226, 0.22);
  --rule-soft: rgba(127, 240, 226, 0.12);

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, "Courier New", monospace;

  --shell: 1320px;
  --header-h: 76px;
  --step: 8px;
}

/* ---------- 3. 基础排版 ---------- */
h1, h2, h3, h4 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.display {
  font-size: clamp(40px, 7vw, 108px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: clamp(24px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

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

.lede {
  max-width: 44ch;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.72;
  color: var(--graphite);
}

.prose {
  max-width: 40em;
}

.prose p + p {
  margin-top: 1.15em;
}

.prose h3 {
  margin: 2.4em 0 0.7em;
  font-size: clamp(19px, 1.8vw, 23px);
  font-weight: 700;
  line-height: 1.3;
}

.prose ul {
  margin-top: 1em;
}

.prose ul li {
  position: relative;
  padding-left: 20px;
  margin-top: 0.5em;
  color: var(--graphite);
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.86em;
  width: 9px;
  height: 1px;
  background: var(--orange);
}

/* ---------- 4. 焦点态 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.site-nav__link:focus-visible,
.header-cta:focus-visible,
.footer-col__list a:focus-visible,
.footer-legal a:focus-visible {
  outline-offset: 1px;
}

[id="main-content"] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* ---------- 5. 布局工具 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

.shell--narrow {
  max-width: 900px;
}

.shell--wide {
  max-width: 1480px;
}

.section {
  padding: 104px 0;
}

.section--tight {
  padding: 64px 0;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-12 { grid-column: span 12; }

@media (max-width: 1080px) {
  .span-3,
  .span-4,
  .span-5 { grid-column: span 6; }
  .span-7,
  .span-8,
  .span-9 { grid-column: span 12; }
}

@media (max-width: 700px) {
  .grid-12 { gap: 16px; }
  .span-3,
  .span-4,
  .span-5,
  .span-6 { grid-column: span 12; }
}

/* ---------- 6. 通用按钮 / 标签 / 卡片 / 细线 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid transparent;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--sand);
  color: var(--deep);
}

.btn--cyan {
  background: var(--cyan);
  color: var(--deep);
}

.btn--cyan:hover {
  background: var(--mist);
  color: var(--deep);
}

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

.btn--outline:hover {
  background: var(--cyan);
  color: var(--deep);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--rule);
  background: rgba(20, 224, 200, 0.06);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-decoration: none;
}

.tag--orange {
  border-color: rgba(255, 106, 31, 0.42);
  background: rgba(255, 106, 31, 0.1);
  color: var(--sand);
}

.card {
  position: relative;
  padding: 26px 24px;
  background: #fff;
  border: 1px solid var(--grid);
  transition: border-color 0.22s ease, transform 0.22s ease;
}

.card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.card--dark {
  background: var(--navy);
  border-color: var(--rule);
  color: var(--paper);
}

.card__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.card__meta {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--graphite);
}

.card--dark .card__meta {
  color: var(--mist);
}

.rule {
  width: 100%;
  height: 1px;
  background: var(--rule-soft);
  border: 0;
}

/* ---------- 7. 页头带 ---------- */
.page-head {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 56px) 0 56px;
  background: var(--deep);
  color: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(127, 240, 226, 0.07) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(127, 240, 226, 0.07) 0 1px, transparent 1px 64px);
  pointer-events: none;
}

.page-head > * {
  position: relative;
  z-index: 1;
}

/* ---------- 8. 图片容器 ---------- */
.figure {
  position: relative;
  display: block;
  margin: 0;
  background: var(--navy);
  border: 1px solid var(--rule-soft);
}

.figure__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--navy);
  background-image:
    linear-gradient(135deg, rgba(20, 224, 200, 0.16) 0%, rgba(6, 26, 51, 0) 58%),
    repeating-linear-gradient(0deg, rgba(127, 240, 226, 0.14) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(127, 240, 226, 0.14) 0 1px, transparent 1px 40px);
}

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

.figure__caption {
  padding: 10px 2px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: var(--graphite);
}

.figure--wide .figure__media { aspect-ratio: 21 / 9; }
.figure--3x2 .figure__media { aspect-ratio: 3 / 2; }
.figure--1x1 .figure__media { aspect-ratio: 1 / 1; }
.figure--tall .figure__media { aspect-ratio: 4 / 5; }
.figure--dark .figure__caption { color: var(--mist); }

/* ---------- 9. 面包屑 / 横向轨道 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--graphite);
}

.breadcrumb a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

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

.breadcrumb__sep {
  color: var(--grid);
}

.breadcrumb [aria-current="page"] {
  color: var(--deep);
}

.rail,
[data-rail] {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--cyan) transparent;
}

.rail > * ,
[data-rail] > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.rail::-webkit-scrollbar,
[data-rail]::-webkit-scrollbar {
  height: 6px;
}

.rail::-webkit-scrollbar-thumb,
[data-rail]::-webkit-scrollbar-thumb {
  background: var(--cyan);
}

.rail::-webkit-scrollbar-track,
[data-rail]::-webkit-scrollbar-track {
  background: rgba(127, 240, 226, 0.14);
}

/* ---------- 10. 滚动显现 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal="left"] {
  transform: translateX(-22px);
}

.js [data-reveal="right"] {
  transform: translateX(22px);
}

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

/* ---------- 11. 页头 ---------- */
.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 120;
  display: inline-block;
  padding: 12px 18px;
  background: var(--cyan);
  color: var(--deep);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: top 0.2s ease;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  border-bottom: 1px solid transparent;
  background: linear-gradient(
    180deg,
    rgba(6, 26, 51, 0.9) 0%,
    rgba(6, 26, 51, 0.52) 58%,
    rgba(6, 26, 51, 0) 100%
  );
  transition: background-color 0.28s ease, border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.site-header[data-scrolled="true"] {
  background: var(--deep);
  background-image: none;
  border-bottom-color: var(--rule);
  box-shadow: 0 14px 30px -26px rgba(0, 0, 0, 0.95);
}

.header-shell {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  min-height: var(--header-h);
  transition: min-height 0.28s ease;
}

.site-header[data-scrolled="true"] .header-shell {
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--mist);
  text-decoration: none;
}

.brand__mark {
  padding: 8px 9px;
  background: var(--cyan);
  color: var(--deep);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  clip-path: polygon(0 0, 100% 0, 100% 68%, 82% 100%, 0 100%);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand__name {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.06em;
}

.brand__tagline {
  color: var(--mist);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.16em;
  opacity: 0.82;
}

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

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav__item {
  position: relative;
}

.site-nav__link {
  display: block;
  padding: 9px 12px;
  border-bottom: 2px solid transparent;
  color: var(--mist);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease;
}

.site-nav__link:hover {
  color: #fff;
  background: rgba(20, 224, 200, 0.1);
}

.site-nav__link[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--orange);
}

.header-cta {
  display: inline-block;
  flex: 0 0 auto;
  padding: 10px 18px;
  background: var(--cyan);
  color: var(--deep);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.header-cta:hover {
  background: var(--orange);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--rule);
  background: rgba(6, 26, 51, 0.5);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
  border-color: var(--cyan);
  background: rgba(20, 224, 200, 0.12);
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--mist);
  transition: transform 0.24s ease, opacity 0.2s ease;
}

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

@media (max-width: 1080px) {
  .site-nav__link {
    padding: 9px 9px;
    font-size: 13px;
  }
  .header-cta {
    padding: 10px 14px;
    font-size: 12px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 64px;
  }

  .header-shell {
    gap: 12px;
  }

  .site-header[data-scrolled="true"] .header-shell {
    min-height: 64px;
  }

  .brand__tagline,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    margin-left: 0;
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 10px 24px 24px;
    background: var(--navy);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
  }

  .site-nav[data-open="true"] {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__item {
    width: 100%;
  }

  .site-nav__link {
    padding: 15px 4px;
    border-bottom: 1px solid var(--rule-soft);
    border-left: 2px solid transparent;
    font-size: 16px;
    letter-spacing: 0.08em;
  }

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

  .site-nav__link[aria-current="page"] {
    padding-left: 12px;
    border-bottom-color: var(--rule-soft);
    border-left-color: var(--orange);
    background: rgba(20, 224, 200, 0.06);
    color: #fff;
  }
}

/* ---------- 12. 页脚 ---------- */
.site-footer {
  position: relative;
  background: var(--deep);
  color: var(--mist);
  font-size: 15px;
  border-top: 1px solid var(--rule);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--cyan) 0 22%,
    var(--orange) 22% 30%,
    var(--wine) 30% 46%,
    var(--indigo) 46% 62%,
    transparent 62% 100%
  );
}

.footer-shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 68px 24px 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 2fr);
  gap: 56px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--rule-soft);
}

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

.brand--stack {
  margin-bottom: 2px;
}

.footer-intro {
  max-width: 38ch;
  color: rgba(245, 248, 251, 0.72);
  font-size: 15px;
  line-height: 1.8;
}

.footer-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
}

.footer-fact {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.footer-fact__num {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.footer-fact__label {
  color: rgba(245, 248, 251, 0.6);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.footer-col__title {
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-col__list li + li {
  margin-top: 10px;
}

.footer-col__list a {
  color: rgba(245, 248, 251, 0.78);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-col__list a:hover {
  color: #fff;
  border-bottom-color: var(--orange);
}

.footer-contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.35fr);
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule-soft);
}

.footer-contact__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-contact__key {
  color: rgba(127, 240, 226, 0.6);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.footer-contact__val {
  color: #fff;
  font-size: 15px;
  line-height: 1.5;
  word-break: break-word;
}

.footer-contact__note {
  color: rgba(245, 248, 251, 0.62);
  font-size: 13px;
  line-height: 1.7;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  color: rgba(127, 240, 226, 0.62);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-legal a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-legal a:hover {
  color: #fff;
  border-bottom-color: var(--orange);
}

@media (max-width: 1080px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .footer-contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-contact__note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .section {
    padding: 72px 0;
  }
  .section--tight {
    padding: 48px 0;
  }
  .page-head {
    padding: calc(var(--header-h) + 40px) 0 44px;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }
  .shell,
  .header-shell {
    padding: 0 20px;
  }
  .footer-shell {
    padding: 48px 20px 28px;
  }
  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }
  .footer-contact {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

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