/* ==========================================================================
   顺发体育 Site Kit — 运动数据坐标场
   ========================================================================== */

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

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

:root {
  --primary: #0A1128;
  --secondary: #14263D;
  --accent: #00FFB3;
  --accent-deep: #00C896;
  --gold: #FFD166;
  --deep: #0D1B2A;
  --light: #F0F4F8;
  --text-main: #1A1E2E;
  --text-sub: #4A5568;
  --text-on-dark: #FFFFFF;
  --error: #FF7B7B;
  --header-h: 72px;
  --frame-w: 3px;
  --shadow-hard: 8px 8px 0 rgba(0, 0, 0, 0.28);
  --shadow-accent: 8px 8px 0 rgba(0, 255, 179, 0.22);
  --font-head: 'Noto Sans SC Black', 'Arial Unicode MS', sans-serif;
  --font-body: 'Noto Sans SC Regular', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --site-max: 78rem;
  --site-max-wide: 90rem;
  --section-pad: clamp(3rem, 7vw, 6rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  background-color: var(--primary);
  color: var(--text-on-dark);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem;
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.15;
  color: inherit;
}

p { margin: 0 0 1.25rem; }
a { color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; }
[hidden] { display: none !important; }

::selection { background: var(--accent); color: var(--primary); }

/* ---------- Utilities ---------- */
.container, .container-wide {
  margin-inline: auto;
  padding-inline: 1rem;
}
.container { width: min(100%, var(--site-max)); }
.container-wide { width: min(100%, var(--site-max-wide)); }

@media (min-width: 48rem) {
  .container, .container-wide { padding-inline: 1.5rem; }
}
@media (min-width: 64rem) {
  .container, .container-wide { padding-inline: 2rem; }
}

.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.75rem;
  left: 0.75rem;
  z-index: 2000;
  padding: 0.65rem 1.2rem;
  background: var(--gold);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid var(--primary);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
  transform: translateY(calc(-100% - 1rem));
  transition: transform 0.2s ease;
}
.skip-link:focus-visible { transform: translateY(0); outline: none; }

/* ---------- Sections ---------- */
.section-block { padding-block: var(--section-pad); }
.section--dark { background: var(--primary); color: var(--text-on-dark); }
.section--deep { background: var(--deep); color: var(--text-on-dark); }
.section--light { background: var(--light); color: var(--text-main); }
.section--light a { color: var(--accent-deep); }
.section--light a:hover { color: var(--primary); }

.section-title {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 1rem;
  font-size: clamp(1.9rem, 4.5vw, 3.25rem);
  letter-spacing: 0.01em;
}
.section-title::before {
  content: "//";
  font-size: 0.7em;
  color: var(--accent);
}
.section--light .section-title::before { color: var(--accent-deep); }

.lead {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.72);
}
.section--light .lead { color: var(--text-sub); }

.divider-slash {
  height: 2px;
  border: 0;
  margin: clamp(2rem, 4vw, 3.5rem) 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent) 30%, var(--gold) 30%, var(--gold) 40%, transparent 40%);
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--crumb-current, rgba(255, 255, 255, 0.55));
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.5rem; }
.breadcrumbs li:not(:last-child)::after { content: "/"; color: var(--accent); }
.breadcrumbs a { color: var(--crumb-link, rgba(255, 255, 255, 0.85)); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.section--light .breadcrumbs { --crumb-current: var(--text-sub); --crumb-link: var(--text-main); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(0, 255, 179, 0.25);
  color: var(--accent);
}
.btn--primary { background: var(--accent); color: var(--primary); }
.btn--primary:hover { background: var(--gold); border-color: var(--gold); color: var(--primary); box-shadow: 5px 5px 0 rgba(255, 209, 102, 0.3); }
.btn--ghost { color: var(--text-on-dark); border-color: rgba(255, 255, 255, 0.4); }
.btn--ghost:hover { color: #FFFFFF; border-color: rgba(255, 255, 255, 0.7); box-shadow: 5px 5px 0 rgba(255, 255, 255, 0.12); }

/* ---------- Tags & Legend ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-dark);
}
.tag--accent { color: var(--accent); border-color: var(--accent); }
.tag--gold { color: var(--gold); border-color: var(--gold); }
.tag--dark { color: rgba(255, 255, 255, 0.6); border-color: rgba(255, 255, 255, 0.14); }

.legend {
  display: grid;
  gap: 0.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}
.legend__title {
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.legend__item { display: flex; align-items: center; gap: 0.6rem; }
.legend__dot {
  --c: var(--accent);
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  background: var(--c);
  transform: rotate(45deg);
}

/* ---------- Cards & Grids ---------- */
.card {
  position: relative;
  padding: 1.6rem;
  background: var(--secondary);
  border: 2px solid rgba(255, 255, 255, 0.13);
  box-shadow: var(--shadow-hard);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translate(-3px, -3px) rotate(-0.3deg);
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}
.card--light { background: var(--light); color: var(--text-main); border-color: rgba(26, 30, 46, 0.12); }
.card--plain { background: transparent; box-shadow: none; }

.grid-2, .grid-3 { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 40rem) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Media ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--deep);
  border: 2px solid rgba(255, 255, 255, 0.14);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--r16x9 { aspect-ratio: 16 / 9; }
.media--r4x3 { aspect-ratio: 4 / 3; }
.media--r1x1 { aspect-ratio: 1 / 1; }
.media__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 180px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  background: linear-gradient(135deg, var(--secondary), var(--primary) 70%);
}

/* ---------- Forms ---------- */
.field { display: grid; gap: 0.4rem; margin-bottom: 1.25rem; }
.field > label { font-size: 0.9rem; font-weight: 600; color: rgba(255, 255, 255, 0.8); }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 0;
  background: var(--primary);
  color: var(--text-on-dark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 255, 179, 0.2);
}
.field .field__hint { font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); }
.field .field__error { font-size: 0.8rem; color: var(--error); }

blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.4rem;
  border-left: 4px solid var(--gold);
  background: rgba(255, 209, 102, 0.08);
  color: inherit;
  font-size: 1.05rem;
}
.section--light blockquote { background: rgba(255, 209, 102, 0.18); }

/* ---------- Scroll Progress & Back to Top ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 1500;
  pointer-events: none;
  background: linear-gradient(90deg, var(--accent-deep) 0%, var(--accent) 60%, var(--gold) 100%);
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.5rem;
  z-index: 900;
  width: 50px;
  height: 50px;
  border: 2px solid var(--accent);
  background: var(--primary);
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 5px 5px 0 rgba(0, 255, 179, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease, color 0.2s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent); color: var(--primary); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--primary);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  border-bottom: var(--frame-w) solid var(--accent);
}

.site-header__topline {
  height: 4px;
  background: repeating-linear-gradient(90deg,
    var(--accent) 0 18px,
    var(--gold) 18px 24px,
    transparent 24px 32px);
}

.site-header__bar {
  position: relative;
  z-index: 1010;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-h);
  padding-block: 0.5rem;
}

/* Brand */
.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--text-on-dark);
}
.site-header__brand:hover { color: var(--text-on-dark); }
.site-header__mark { width: 46px; height: 34px; flex: 0 0 auto; }
.site-header__brandtext { display: flex; flex-direction: column; line-height: 1.05; }
.site-header__brandtext strong { font-family: var(--font-head); font-size: 1.3rem; letter-spacing: 0.02em; }
.site-header__brandtext small {
  margin-top: 0.2rem;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Nav */
.site-header__backdrop {
  position: fixed;
  inset: 0;
  z-index: 1004;
  background: rgba(3, 9, 20, 0.72);
}

.site-header__nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1005;
  width: min(86vw, 23rem);
  padding: calc(var(--header-h) + 1.5rem) 1.75rem 1.5rem;
  background: var(--deep);
  border-left: 2px solid var(--accent);
  overflow-y: auto;
  visibility: hidden;
  transform: translateX(102%);
  transition: transform 0.3s ease, visibility 0.3s ease;
}
.site-header__nav[data-open] { visibility: visible; transform: translateX(0); }

.site-nav {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav__item { margin: 0; }
.site-nav__link {
  position: relative;
  display: block;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.site-nav__link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(0, 255, 179, 0.06);
}
.site-nav__link[aria-current="page"] {
  color: var(--primary);
  background: var(--accent);
  border-color: var(--accent);
}

/* Toggle */
.site-header__toggle {
  position: relative;
  z-index: 1020;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--accent);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header__toggle:hover { background: rgba(0, 255, 179, 0.08); }
.site-header__toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.site-header__toggle[aria-expanded="true"] .site-header__toggle-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__toggle[aria-expanded="true"] .site-header__toggle-line:nth-child(2) { opacity: 0; }
.site-header__toggle[aria-expanded="true"] .site-header__toggle-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Strip */
.site-header__strip { display: none; }

/* Desktop */
@media (min-width: 64rem) {
  .site-header__nav {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    border: 0;
    overflow: visible;
    transform: none;
    visibility: visible;
  }
  .site-nav { flex-direction: row; gap: 0.25rem; }
  .site-nav__link {
    padding: 0.62rem 1rem;
    font-size: 0.95rem;
    border: 1px solid transparent;
    background: transparent;
  }
  .site-nav__link::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 4px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.22s ease;
  }
  .site-nav__link:hover::after,
  .site-nav__link[aria-current="page"]::after { transform: scaleX(1); }
  .site-nav__link:hover { color: #FFFFFF; }
  .site-nav__link[aria-current="page"] {
    color: var(--accent);
    background: rgba(0, 255, 179, 0.07);
    border-color: rgba(0, 255, 179, 0.4);
  }
  .site-header__toggle { display: none; }
  .site-header__strip {
    display: block;
    padding-block: 0.45rem;
    background: var(--deep);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .site-header__strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
  .site-header__strip-item {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background-color: var(--deep);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  color: rgba(255, 255, 255, 0.78);
  border-top: var(--frame-w) solid var(--accent);
  margin-top: clamp(3rem, 6vw, 5rem);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-block: clamp(2.5rem, 5vw, 4rem) 2rem;
}
@media (min-width: 40rem) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.5fr; } }

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-family: var(--font-head);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #FFFFFF;
}
.site-footer__logo:hover { color: var(--accent); }
.site-footer__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--accent);
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 900;
  transform: rotate(-5deg);
  box-shadow: 4px 4px 0 var(--gold);
}
.site-footer__desc { max-width: 34rem; font-size: 0.95rem; color: rgba(255, 255, 255, 0.68); }
.site-footer__trust {
  max-width: 34rem;
  padding-left: 0.9rem;
  border-left: 3px solid var(--gold);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.52);
}

.site-footer__title {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.site-footer__list,
.site-footer__contact-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer__list a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.site-footer__list a::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--accent);
}
.site-footer__list a:hover { padding-left: 0.25rem; color: var(--accent); }
.site-footer__list a[aria-current="page"] { color: var(--gold); }
.site-footer__list a[aria-current="page"]::before { background: var(--gold); }

.site-footer__contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
}
.site-footer__contact-mark {
  --c: var(--accent);
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  margin-top: 0.45rem;
  background: var(--c);
}
.site-footer__contact-mark--phone { --c: var(--accent); }
.site-footer__contact-mark--mail { --c: var(--gold); }
.site-footer__contact-mark--addr { --c: var(--accent-deep); }
.site-footer__contact-note {
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

.site-footer__bottom {
  background: rgba(0, 0, 0, 0.32);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 2rem;
  padding-block: 0.9rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Focus & Motion ---------- */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@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;
  }
}
