/* ================================================================
   球速体育 · Site Kit
   冲刺蓝图 / SPRINT BLUEPRINT
   ================================================================ */

/* ---------- 1. 变量 ---------- */
:root {
  --color-red: #FF3B30;
  --color-blue: #0A84FF;
  --color-yellow: #FFD60A;
  --color-green: #30D158;
  --color-deep-teal: #0F4C5C;
  --color-wine: #722F37;
  --color-indigo: #4B0082;
  --color-light-gray: #F2F4F8;
  --color-ink: #1A1A2E;
  --color-slate: #4A4A5A;
  --color-white: #FFFFFF;
  --color-grid: #D1D5DB;

  --font-heading: "Archivo", "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;

  --rail-width: 248px;
  --topbar-height: 40px;
  --mobile-bar-height: 60px;
  --container-main: 1280px;
  --container-gutter: clamp(1rem, 4vw, 3rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-ink);
  background-color: var(--color-light-gray);
  background-image:
    linear-gradient(to right, rgba(209, 213, 219, 0.42) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(209, 213, 219, 0.42) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a {
  color: var(--color-blue);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-red);
}

ul,
ol {
  padding-left: 1.5rem;
}

/* ---------- 3. 中文排版 ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-ink);
  font-weight: 800;
}

p {
  max-width: 68ch;
}

small,
.small {
  font-size: 0.8125rem;
}

strong,
b {
  font-weight: 600;
}

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

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

#main-content {
  scroll-margin-top: calc(var(--topbar-height) + 0.5rem);
  padding-top: calc(var(--topbar-height) + clamp(1.25rem, 4vw, 2.5rem));
  min-height: 60vh;
}

/* ---------- 5. Skip Link ---------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
  background: var(--color-ink);
  color: var(--color-white);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-100%);
  transition: transform 0.3s var(--ease-out);
}

.skip-link:hover {
  background: var(--color-blue);
  color: var(--color-white);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid var(--color-yellow);
  outline-offset: 0;
}

/* ---------- 6. 滚动进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1005;
  background: linear-gradient(90deg, var(--color-red) 0%, var(--color-blue) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

/* ---------- 7. 头部 ---------- */
.site-header {
  position: relative;
  z-index: 900;
  font-family: var(--font-body);
}

.site-header__rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail-width);
  max-width: 86vw;
  background: var(--color-deep-teal);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
  z-index: 950;
  box-shadow: 4px 0 18px rgba(0, 0, 0, 0.18);
}

.site-header__rail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0,
    transparent 12px,
    rgba(255, 255, 255, 0.025) 12px,
    rgba(255, 255, 255, 0.025) 13px
  );
  pointer-events: none;
}

.site-header__top {
  position: fixed;
  inset: 0 0 auto var(--rail-width);
  height: var(--topbar-height);
  background: var(--color-light-gray);
  border-bottom: 1px solid var(--color-grid);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
  padding: 0 clamp(1rem, 3vw, 2rem);
  z-index: 940;
  overflow: hidden;
}

.site-header__top::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  border-left: 3px solid var(--color-indigo);
  border-top: 3px solid var(--color-indigo);
  opacity: 0.5;
}

.site-header__top::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -65deg,
    transparent 0,
    transparent calc(38px),
    rgba(255, 59, 48, 0.09) calc(38px),
    rgba(255, 59, 48, 0.09) calc(39px)
  );
  pointer-events: none;
}

.site-header__status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-ink);
}

.site-header__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-red);
  animation: qs-pulse 1.8s ease-in-out infinite;
}

@keyframes qs-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
}

.site-header__mail {
  color: var(--color-blue);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  transition: color 0.25s;
  position: relative;
  z-index: 1;
}

.site-header__mail:hover {
  color: var(--color-red);
  text-decoration: underline;
}

.site-header__tick {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--color-slate);
  border-left: 1px solid var(--color-grid);
  padding-left: 1rem;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  flex-shrink: 0;
}

.brand__mark {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  background: var(--color-red);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.28);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.brand__name {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: 0.08em;
  line-height: 1.3;
}

.brand__sub {
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

/* 导航 */
.site-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
  position: relative;
  z-index: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__item {
  margin: 0;
  padding: 0;
}

.site-nav__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 46px;
  padding: 0.75rem 1.5rem;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  position: relative;
  border-left: 3px solid transparent;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 70%);
}

.site-nav__link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-white);
  border-left-color: var(--color-yellow);
}

.site-nav__link[aria-current="page"] {
  color: var(--color-white);
  background: rgba(255, 59, 48, 0.12);
  border-left-color: var(--color-red);
}

.site-nav__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-red);
}

.site-nav__id {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-yellow);
  opacity: 0.85;
  min-width: 1.75em;
}

.site-nav__label {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-nav__arrow {
  margin-left: auto;
  font-size: 0.8125rem;
  opacity: 0;
  transform: translate(-4px, 0);
  transition: opacity 0.25s, transform 0.25s;
}

.site-nav__link:hover .site-nav__arrow,
.site-nav__link[aria-current="page"] .site-nav__arrow {
  opacity: 0.85;
  transform: none;
}

/* 侧栏底部信息 */
.site-header__foot {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
  z-index: 1;
}

.site-header__coord,
.site-header__ver {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: background-color 0.25s, border-color 0.25s;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
}

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  background: var(--color-white);
  width: 100%;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

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

/* ---------- 8. 页脚 ---------- */
.site-footer {
  background: var(--color-deep-teal);
  color: rgba(255, 255, 255, 0.82);
  margin-top: clamp(3rem, 8vw, 5rem);
  border-top: 4px solid var(--color-red);
}

.site-footer__grid {
  max-width: var(--container-main);
  margin: 0 auto;
  padding: 3rem var(--container-gutter) 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}

.site-footer__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-white);
  text-decoration: none;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.site-footer__logo::before {
  content: "◆";
  color: var(--color-red);
  font-size: 0.8em;
}

.site-footer__logo:hover {
  color: var(--color-yellow);
}

.site-footer__desc {
  margin-top: 0.875rem;
  font-size: 0.875rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.68);
  max-width: 34em;
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer__contact a {
  color: var(--color-blue);
  text-decoration: none;
  width: fit-content;
}

.site-footer__contact a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.site-footer__title {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-yellow);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

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

.site-footer__list a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.25s, padding-left 0.25s;
}

.site-footer__list a:hover {
  color: var(--color-white);
  padding-left: 4px;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.25rem var(--container-gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.46);
  letter-spacing: 0.04em;
}

/* ---------- 9. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.btn--primary {
  background: var(--color-red);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(255, 59, 48, 0.32);
}

.btn--primary:hover {
  background: #e0352b;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 59, 48, 0.4);
}

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

.btn--ghost:hover {
  background: var(--color-blue);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* ---------- 10. 面包屑 ---------- */
.breadcrumbs {
  padding: 0 0 1.25rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--color-slate);
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs li::before {
  content: "/";
  color: var(--color-grid);
  font-weight: 600;
}

.breadcrumbs li:first-child::before {
  content: none;
}

.breadcrumbs a {
  color: var(--color-blue);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--color-red);
  text-decoration: underline;
}

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

/* ---------- 11. 卡片 ---------- */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-grid);
  border-radius: 0;
  padding: 1.5rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.card:hover {
  border-color: var(--color-indigo);
  box-shadow: 4px 4px 0 0 rgba(75, 0, 130, 0.14);
}

/* ---------- 12. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.65rem;
  background: var(--color-light-gray);
  color: var(--color-slate);
  border: 1px solid var(--color-grid);
  white-space: nowrap;
}

.tag--live {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}

.tag--new {
  background: var(--color-yellow);
  color: var(--color-ink);
  border-color: var(--color-yellow);
}

/* ---------- 13. 标题与段落头 ---------- */
.section-head {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-slate);
}

.eyebrow::before {
  content: "";
  width: 1.25rem;
  height: 2px;
  background: var(--color-red);
  flex: 0 0 auto;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0.5rem 0 0;
  color: var(--color-ink);
}

/* ---------- 14. 分隔线 ---------- */
.divider {
  height: 1px;
  border: 0;
  background: var(--color-indigo);
  opacity: 0.3;
  margin: 2rem 0;
}

/* ---------- 15. 数据展示块 ---------- */
.stat-block {
  background: var(--color-wine);
  color: var(--color-white);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-heading);
}

.stat-block__value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-block__label {
  margin-top: 0.4rem;
  font-size: 0.8125rem;
  opacity: 0.86;
  letter-spacing: 0.06em;
}

/* ---------- 16. 筛选条 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 0 1.5rem;
}

.filter-btn {
  border: 1px solid var(--color-grid);
  background: var(--color-white);
  padding: 0.55rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-slate);
  cursor: pointer;
  border-radius: 0;
  transition: all 0.25s;
}

.filter-btn:hover,
.filter-btn[aria-pressed="true"] {
  border-color: var(--color-red);
  background: var(--color-red);
  color: var(--color-white);
}

[data-filter-item][data-hidden="true"] {
  display: none !important;
}

/* ---------- 17. 显现动画 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

[data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: none;
}

/* ---------- 18. 聚焦可见 ---------- */
:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

/* ---------- 19. 桌面端适配 ---------- */
@media (min-width: 769px) {
  body {
    margin-left: var(--rail-width);
  }
}

/* ---------- 20. 移动端适配 ---------- */
@media (max-width: 768px) {
  #main-content {
    padding-top: calc(var(--mobile-bar-height) + 1rem);
    scroll-margin-top: calc(var(--mobile-bar-height) + 0.5rem);
  }

  .site-header__rail {
    position: fixed;
    inset: 0 0 auto 0;
    width: 100%;
    max-width: none;
    height: var(--mobile-bar-height);
    flex-direction: row;
    align-items: center;
    padding: 0 1rem;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.16);
  }

  .brand {
    flex: 1;
    border-bottom: 0;
    padding: 0;
  }

  .brand__name {
    font-size: 1.0625rem;
  }

  .brand__sub {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }

  .site-nav {
    position: fixed;
    top: var(--mobile-bar-height);
    bottom: 0;
    left: 0;
    width: min(320px, 86vw);
    background: var(--color-deep-teal);
    transform: translateX(-100%);
    transition: transform 0.35s var(--ease-out);
    z-index: 959;
    padding-top: 1rem;
    box-shadow: 6px 0 24px rgba(0, 0, 0, 0.32);
    flex: none;
    overflow-y: auto;
  }

  .site-nav[data-open="true"] {
    transform: translateX(0);
  }

  .site-header__top {
    display: none;
  }

  .site-header__foot {
    display: none;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2rem;
  }

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

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

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

  .site-header__pulse {
    animation: none;
  }

  .scroll-progress {
    display: none;
  }

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