/* ==========================================================================
   星空体育 Site Kit — /assets/site.css
   创意主题：技术蓝图 × 星域竞技场
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  --sk-blue-deep: #0A0E23;
  --sk-blue-dark: #141A3C;
  --sk-blue-star: #1B2A5A;
  --sk-gold: #F5C518;
  --sk-orange: #FF4D2E;
  --sk-white: #FFFFFF;
  --sk-silver: #B0B8C8;
  --sk-gradient: linear-gradient(135deg, #1A3A68, #0A0E23);

  --sk-font-display: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --sk-font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --sk-font-data: 'Roboto Mono', 'Courier New', monospace;

  --sk-rail-w: 280px;
  --sk-header-h: 64px;
  --sk-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sk-transition: 0.3s var(--sk-ease);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--sk-header-h);
}

body {
  min-height: 100vh;
  font-family: var(--sk-font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--sk-white);
  background-color: var(--sk-blue-deep);
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1.6px),
    radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 2px),
    radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1.6px),
    linear-gradient(rgba(27, 42, 90, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 42, 90, 0.35) 1px, transparent 1px);
  background-size:
    180px 180px,
    260px 260px,
    420px 420px,
    56px 56px,
    56px 56px;
  background-position:
    0 0,
    14px 14px,
    -22px 28px,
    0 0,
    0 0;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--sk-gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

::selection {
  background: rgba(245, 197, 24, 0.32);
  color: var(--sk-white);
}

:focus-visible {
  outline: 2px solid var(--sk-gold);
  outline-offset: 3px;
}

/* ---------- 3. 无障碍辅助 ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -120%;
  left: 16px;
  z-index: 3000;
  background: var(--sk-gold);
  color: var(--sk-blue-deep);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  transition: top 0.25s var(--sk-ease);
}

.skip-link:focus {
  top: 0;
}

/* ---------- 4. 阅读进度条 ---------- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
  width: 100%;
  height: 3px;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--sk-gold), var(--sk-orange));
  box-shadow: 0 0 14px rgba(245, 197, 24, 0.45);
  border-radius: 0 2px 2px 0;
}

/* ---------- 5. 头部 / 轨道导航 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: var(--sk-rail-w);
  height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg,
      rgba(26, 58, 104, 0.35),
      rgba(10, 14, 35, 0.9) 40%,
      rgba(20, 26, 60, 0.98)),
    var(--sk-blue-dark);
  border-right: 1px solid var(--sk-blue-star);
}

.site-header::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 1px;
  height: 62vh;
  background: linear-gradient(to bottom, transparent, rgba(245, 197, 24, 0.25), transparent);
  pointer-events: none;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 24px 0;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--sk-white);
}

.header-logo__mark {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(245, 197, 24, 0.45);
  background: radial-gradient(circle at 35% 30%, rgba(245, 197, 24, 0.16), rgba(245, 197, 24, 0.03) 70%);
  color: var(--sk-gold);
  font-size: 18px;
  line-height: 1;
  text-shadow: 0 0 12px rgba(245, 197, 24, 0.6);
}

.header-logo__mark::after {
  content: '';
  position: absolute;
  inset: -5px;
  border: 1px dashed rgba(245, 197, 24, 0.28);
  border-radius: 50%;
  animation: logo-orbit 32s linear infinite;
}

.header-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.header-logo__text strong {
  font-family: var(--sk-font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--sk-white);
}

.header-logo__text small {
  margin-top: 3px;
  font-family: var(--sk-font-data);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--sk-silver);
}

@keyframes logo-orbit {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- 6. 主导航 ---------- */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  flex-shrink: 0;
  border: 1px solid var(--sk-blue-star);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  border-radius: 2px;
  background: var(--sk-white);
  transition: transform 0.3s var(--sk-ease), opacity 0.3s var(--sk-ease);
}

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

.site-nav {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 40px;
}

.site-nav__list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.site-nav__item {
  list-style: none;
}

.site-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--sk-silver);
  background: transparent;
  transition: color 0.3s var(--sk-ease), background 0.3s var(--sk-ease);
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--sk-white);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 85%);
}

.site-nav__link[aria-current="page"] {
  color: var(--sk-gold);
  background: linear-gradient(90deg, rgba(245, 197, 24, 0.09), transparent 82%);
  text-shadow: 0 0 18px rgba(245, 197, 24, 0.25);
}

.site-nav__link[aria-current="page"]::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 26px;
  border-radius: 3px 0 0 3px;
  background: var(--sk-gold);
  box-shadow: 0 0 12px rgba(245, 197, 24, 0.55);
}

.site-nav__index {
  min-width: 24px;
  font-family: var(--sk-font-data);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(176, 184, 200, 0.42);
}

.site-nav__link[aria-current="page"] .site-nav__index {
  color: var(--sk-gold);
}

.site-nav__label {
  letter-spacing: 0.1em;
}

.site-nav__foot {
  padding: 24px;
  border-top: 1px solid rgba(27, 42, 90, 0.65);
}

.site-nav__coord {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  font-family: var(--sk-font-data);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(176, 184, 200, 0.38);
}

/* ---------- 7. 移动端抽屉遮罩 ---------- */
.nav-backdrop {
  display: none;
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  margin-left: var(--sk-rail-w);
  background:
    linear-gradient(180deg, rgba(26, 58, 104, 0.22), rgba(10, 14, 35, 0.4)),
    var(--sk-blue-dark);
  border-top: 1px solid var(--sk-blue-star);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 1fr 1.3fr;
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: 48px;
  padding-top: 56px;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--sk-white);
}

.footer-logo__mark {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(245, 197, 24, 0.4);
  background: rgba(245, 197, 24, 0.05);
  color: var(--sk-gold);
  font-size: 16px;
}

.footer-logo__name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--sk-font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.footer-logo__name small {
  font-family: var(--sk-font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--sk-silver);
}

.site-footer__tagline {
  max-width: 24em;
  font-size: 14px;
  line-height: 1.8;
  color: var(--sk-silver);
  padding-left: 14px;
  border-left: 2px solid rgba(245, 197, 24, 0.4);
}

.site-footer__col {
  min-width: 0;
}

.site-footer__title {
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(27, 42, 90, 0.7);
  font-family: var(--sk-font-data);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sk-gold);
}

.site-footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--sk-silver);
}

.site-footer__list--contact {
  color: var(--sk-silver);
}

.site-footer__list a {
  color: var(--sk-silver);
  text-decoration: none;
  transition: color 0.25s var(--sk-ease);
}

.site-footer__list a:hover,
.site-footer__list a:focus-visible {
  color: var(--sk-gold);
}

.site-footer__note {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(27, 42, 90, 0.7);
  font-size: 12px;
  line-height: 1.7;
  color: rgba(176, 184, 200, 0.68);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px;
  border-top: 1px solid rgba(27, 42, 90, 0.7);
  font-family: var(--sk-font-data);
  font-size: 12px;
  color: rgba(176, 184, 200, 0.58);
}

.site-footer__copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-footer__icp {
  letter-spacing: 0.08em;
}

/* ---------- 9. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--sk-font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--sk-ease), box-shadow 0.3s var(--sk-ease),
    background-color 0.3s var(--sk-ease), border-color 0.3s var(--sk-ease),
    color 0.3s var(--sk-ease);
}

.btn--primary {
  background-color: var(--sk-orange);
  color: var(--sk-white);
  box-shadow: 0 4px 20px rgba(255, 77, 46, 0.22);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: #e8431f;
  color: var(--sk-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 77, 46, 0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--sk-white);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--sk-gold);
  color: var(--sk-gold);
}

.btn--sm {
  padding: 10px 18px;
  font-size: 13px;
}

/* ---------- 10. 布局容器 ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.site-main,
#main-content {
  display: block;
  margin-left: var(--sk-rail-w);
  min-height: 100vh;
}

.section {
  position: relative;
  padding-block: clamp(56px, 8vw, 96px);
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-top: 1px solid rgba(245, 197, 24, 0.35);
  border-left: 1px solid rgba(245, 197, 24, 0.35);
  pointer-events: none;
}

.section--alt {
  background: linear-gradient(180deg, rgba(20, 26, 60, 0.4), rgba(10, 14, 35, 0.1));
}

.grid {
  display: grid;
  gap: clamp(16px, 2.5vw, 28px);
}

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

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

/* ---------- 11. 面包屑 ---------- */
.breadcrumb {
  padding: 20px 0;
  font-family: var(--sk-font-data);
  font-size: 13px;
  color: var(--sk-silver);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.breadcrumb li + li::before {
  content: '/';
  margin: 0 8px;
  color: rgba(176, 184, 200, 0.35);
}

.breadcrumb a {
  color: var(--sk-silver);
  text-decoration: none;
  transition: color 0.25s var(--sk-ease);
}

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

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

/* ---------- 12. 标题系统 ---------- */
.section-header {
  margin-bottom: 40px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-family: var(--sk-font-data);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--sk-gold);
}

.section-label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--sk-gold);
}

.section-label::after {
  content: '';
  width: 8px;
  height: 1px;
  background: var(--sk-gold);
}

.section-title {
  margin: 0 0 12px;
  font-family: var(--sk-font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--sk-white);
}

.section-lead {
  max-width: 44em;
  font-size: 16px;
  line-height: 1.85;
  color: var(--sk-silver);
}

.text-gold {
  color: var(--sk-gold);
}

.text-silver {
  color: var(--sk-silver);
}

/* ---------- 13. 展览标签与说明牌 ---------- */
.exhibit-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sk-font-data);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sk-silver);
}

.exhibit-label::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sk-gold);
  box-shadow: 0 0 8px rgba(245, 197, 24, 0.6);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border: 1px solid rgba(245, 197, 24, 0.3);
  border-radius: 999px;
  background: rgba(245, 197, 24, 0.05);
  font-family: var(--sk-font-data);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--sk-gold);
  white-space: nowrap;
}

/* ---------- 14. 卡片 ---------- */
.card {
  position: relative;
  border: 1px solid var(--sk-blue-star);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(20, 26, 60, 0.95), rgba(10, 14, 35, 0.88));
  padding: 24px;
  transition: transform 0.35s var(--sk-ease), border-color 0.35s var(--sk-ease),
    box-shadow 0.35s var(--sk-ease);
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(245, 197, 24, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.32);
}

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

.card__meta {
  font-family: var(--sk-font-data);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--sk-gold);
}

/* ---------- 15. 图片占位容器 ---------- */
.img-ratio {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--sk-blue-star);
  background: linear-gradient(135deg, #1a3a68, #0a0e23);
}

.img-ratio::before {
  content: '';
  display: block;
  padding-top: 56.25%;
}

.img-ratio--4-3::before {
  padding-top: 75%;
}

.img-ratio--1-1::before {
  padding-top: 100%;
}

.img-ratio > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-ratio--placeholder::after {
  content: 'IMG · 星空体育';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--sk-font-data);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: rgba(176, 184, 200, 0.35);
}

/* ---------- 16. 滚动显现 ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s var(--sk-ease), transform 0.65s var(--sk-ease);
    will-change: opacity, transform;
  }

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

  [data-reveal][data-reveal-delay="1"] {
    transition-delay: 0.1s;
  }

  [data-reveal][data-reveal-delay="2"] {
    transition-delay: 0.2s;
  }

  [data-reveal][data-reveal-delay="3"] {
    transition-delay: 0.3s;
  }
}

/* ---------- 17. 响应式 ---------- */
@media (max-width: 991.98px) {
  .site-header {
    width: 100%;
    height: var(--sk-header-h);
    flex-direction: row;
    align-items: center;
    background: rgba(20, 26, 60, 0.98);
    border-right: none;
    border-bottom: 1px solid var(--sk-blue-star);
  }

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

  .header-bar {
    width: 100%;
    height: 100%;
    padding: 0 16px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: var(--sk-header-h);
    left: 0;
    bottom: 0;
    z-index: 990;
    width: min(320px, 85vw);
    padding: 28px 0 24px;
    background: linear-gradient(180deg, #1b2a5a, #0a0e23 70%);
    border-right: 1px solid var(--sk-blue-star);
    box-shadow: 16px 0 48px rgba(0, 0, 0, 0.4);
    transform: translateX(-105%);
    transition: transform 0.35s var(--sk-ease);
    overflow-y: auto;
  }

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

  .site-nav__link {
    padding: 16px 24px;
    font-size: 16px;
  }

  .site-nav__link[aria-current="page"]::after {
    left: 0;
    right: auto;
    width: 3px;
    height: 26px;
    border-radius: 0 3px 3px 0;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    top: var(--sk-header-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 980;
    background: rgba(10, 14, 35, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--sk-ease), visibility 0.3s var(--sk-ease);
  }

  .nav-backdrop[data-open] {
    opacity: 1;
    visibility: visible;
  }

  body.has-nav-open {
    overflow: hidden;
  }

  .site-main,
  #main-content {
    margin-left: 0;
    padding-top: var(--sk-header-h);
  }

  .site-footer {
    margin-left: 0;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .grid--2,
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 44px;
  }

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

/* ---------- 18. 减少动态偏好 ---------- */
@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;
  }

  .header-logo__mark::after {
    animation: none;
  }

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