/* ==========================================================================
   星空体育 · 共享站点样式 /assets/site.css
   深空蓝黑底 + 蓝图网格 + 星芒金 / 信号橙信号灯
   ========================================================================== */

:root {
  /* 色彩体系 */
  --xk-space: #070B14;
  --xk-night: #0E1628;
  --xk-grid: #17233C;
  --xk-line: #2A3A5A;
  --xk-gold: #F2C14E;
  --xk-orange: #FF7A3D;
  --xk-red: #E5484D;
  --xk-yellow: #F5C542;
  --xk-ink: #E9EDF5;
  --xk-dim: #9AA5B8;

  /* 字体栈 */
  --xk-sans: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --xk-mono: ui-monospace, "JetBrains Mono", "IBM Plex Mono", Menlo, Consolas, monospace;

  /* 度量 */
  --xk-w: 1180px;
  --xk-gutter: clamp(16px, 4vw, 40px);
  --xk-ease: cubic-bezier(.2, .7, .3, 1);
  --xk-radius: 2px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--xk-ink);
  background-color: var(--xk-space);
  background-image:
    radial-gradient(1100px 560px at 82% -8%, rgba(242, 193, 78, .10), transparent 62%),
    radial-gradient(880px 520px at 4% 6%, rgba(255, 122, 61, .065), transparent 60%),
    linear-gradient(to right, rgba(42, 58, 90, .22) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42, 58, 90, .16) 1px, transparent 1px);
  background-size: auto, auto, 80px 80px, 80px 80px;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  font-family: var(--xk-sans);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: .01em;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; }
a { color: inherit; }
strong, b { font-weight: 700; }
hr { border: 0; }

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

::selection {
  background: rgba(242, 193, 78, .3);
  color: #FFF8E4;
}

/* ---------- 跳过链接 ---------- */
.xk-skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--xk-gold);
  color: #0A0F1A;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: var(--xk-radius);
  transition: top .18s var(--xk-ease);
}
.xk-skip:focus { top: 12px; }

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

.xk-section { padding-block: clamp(36px, 6vw, 78px); }

.xk-rule {
  height: 1px;
  background: var(--xk-line);
  opacity: .8;
}

.xk-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

/* ---------- 排版 ---------- */
.xk-display {
  font-family: var(--xk-sans);
  font-weight: 900;
  font-size: clamp(40px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -.025em;
  margin: 0;
}

.xk-h2 {
  font-family: var(--xk-sans);
  font-weight: 800;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.18;
  letter-spacing: -.01em;
  margin: 0;
}

.xk-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--xk-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--xk-gold);
}
.xk-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  flex: none;
}

.xk-lede {
  font-size: 15px;
  line-height: 1.85;
  color: var(--xk-dim);
  max-width: 62ch;
}

.xk-meta {
  font-family: var(--xk-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--xk-dim);
}

.xk-num {
  font-family: var(--xk-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
}

/* ---------- 按钮 ---------- */
.xk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--xk-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.3;
  text-decoration: none;
  color: var(--xk-ink);
  background: rgba(23, 35, 60, .62);
  border: 1px solid var(--xk-line);
  border-radius: var(--xk-radius);
  cursor: pointer;
  transition: background .18s var(--xk-ease), color .18s var(--xk-ease), border-color .18s var(--xk-ease), transform .18s var(--xk-ease);
}
.xk-btn:hover { border-color: var(--xk-orange); color: #FFFFFF; }

.xk-btn--gold {
  background: var(--xk-gold);
  border-color: var(--xk-gold);
  color: #140F02;
  font-weight: 700;
}
.xk-btn--gold:hover {
  background: #FFD470;
  border-color: #FFD470;
  color: #140F02;
}

.xk-btn--signal {
  background: var(--xk-orange);
  border-color: var(--xk-orange);
  color: #1B0A02;
  font-weight: 700;
}
.xk-btn--signal:hover {
  background: #FF9464;
  border-color: #FF9464;
  color: #1B0A02;
}

.xk-btn--ghost {
  background: transparent;
  border-color: var(--xk-line);
  color: var(--xk-dim);
}
.xk-btn--ghost:hover { color: var(--xk-gold); border-color: var(--xk-gold); }

/* ---------- 卡片 / 面板 ---------- */
.xk-card {
  position: relative;
  padding: clamp(16px, 2.4vw, 28px);
  background: rgba(23, 35, 60, .55);
  border: 1px solid var(--xk-line);
  border-radius: var(--xk-radius);
}
.xk-card--quiet {
  background: rgba(14, 22, 40, .7);
  border-color: rgba(42, 58, 90, .7);
}

/* ---------- 筛选胶囊 ---------- */
.xk-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.xk-chip {
  font-family: var(--xk-mono);
  font-size: 12px;
  letter-spacing: .06em;
  padding: 8px 14px;
  background: rgba(23, 35, 60, .6);
  border: 1px solid var(--xk-line);
  border-radius: var(--xk-radius);
  color: var(--xk-dim);
  cursor: pointer;
  transition: color .16s var(--xk-ease), background .16s var(--xk-ease), border-color .16s var(--xk-ease);
}
.xk-chip:hover { color: var(--xk-ink); border-color: var(--xk-orange); }
.xk-chip[aria-pressed="true"] {
  background: var(--xk-orange);
  border-color: var(--xk-orange);
  color: #1B0A02;
  font-weight: 700;
}

.xk-empty {
  padding: 28px 20px;
  border: 1px dashed var(--xk-line);
  border-radius: var(--xk-radius);
  font-family: var(--xk-mono);
  font-size: 13px;
  color: var(--xk-dim);
  text-align: center;
}
.xk-empty[hidden] { display: none; }

/* ---------- 面包屑 ---------- */
.xk-breadcrumb {
  font-family: var(--xk-mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--xk-dim);
}
.xk-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
}
.xk-breadcrumb li { display: inline-flex; align-items: center; }
.xk-breadcrumb li + li::before {
  content: "/";
  margin-inline: 8px;
  color: var(--xk-line);
}
.xk-breadcrumb a {
  text-decoration: none;
  color: var(--xk-dim);
  transition: color .16s var(--xk-ease);
}
.xk-breadcrumb a:hover { color: var(--xk-gold); }
.xk-breadcrumb [aria-current="page"] { color: var(--xk-ink); }

/* ---------- 图片容器基础规则（页面阶段放置占位） ---------- */
.xk-media {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(150deg, rgba(23, 35, 60, .95), rgba(7, 11, 20, .98)),
    var(--xk-night);
  border: 1px solid var(--xk-line);
  border-radius: var(--xk-radius);
}
.xk-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.72) contrast(1.06) brightness(.86);
}
.xk-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(7, 11, 20, .62), transparent 58%);
}
.xk-media--tall { aspect-ratio: 4 / 5; }
.xk-media--square { aspect-ratio: 1 / 1; }
.xk-media--wide { aspect-ratio: 21 / 9; }

.xk-media__cap {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 2;
  font-family: var(--xk-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: rgba(233, 237, 245, .78);
}

/* ==========================================================================
   头部
   ========================================================================== */
.xk-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(7, 11, 20, .92);
  border-bottom: 1px solid var(--xk-line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.xk-header__inner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 2.4vw, 36px);
  width: 100%;
  max-width: var(--xk-w);
  margin-inline: auto;
  padding: 13px var(--xk-gutter);
}

/* 品牌 */
.xk-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.xk-brand__mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--xk-ink);
}
.xk-brand__star {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--xk-gold);
}
.xk-brand__name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .07em;
  white-space: nowrap;
}
.xk-brand__sub {
  font-family: var(--xk-mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .02em;
  color: var(--xk-dim);
  white-space: nowrap;
}

/* 中部索引 + CTA */
.xk-status {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  min-width: 0;
}
.xk-status__dot {
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--xk-orange);
  box-shadow: 0 0 0 3px rgba(255, 122, 61, .16);
}
.xk-status__label {
  font-family: var(--xk-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--xk-gold);
  white-space: nowrap;
}
.xk-status__value {
  font-family: var(--xk-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--xk-dim);
  white-space: nowrap;
}
.xk-status .xk-btn { padding: 8px 16px; font-size: 13px; }

/* 导航 */
.xk-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-self: end;
}
.xk-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.xk-nav__link {
  position: relative;
  display: inline-block;
  padding: 9px 11px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--xk-dim);
  text-decoration: none;
  border-radius: var(--xk-radius);
  white-space: nowrap;
  transition: color .18s var(--xk-ease), background .18s var(--xk-ease);
}
.xk-nav__link:hover { color: var(--xk-ink); background: rgba(23, 35, 60, .8); }
.xk-nav__link[aria-current="page"] { color: var(--xk-gold); }
.xk-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 3px;
  height: 1px;
  background: var(--xk-gold);
}

/* 更多 */
.xk-more { position: relative; }
.xk-more__sum {
  display: inline-block;
  list-style: none;
  padding: 9px 11px;
  font-size: 14px;
  color: var(--xk-dim);
  border-radius: var(--xk-radius);
  cursor: pointer;
  transition: color .18s var(--xk-ease), background .18s var(--xk-ease);
}
.xk-more__sum::-webkit-details-marker { display: none; }
.xk-more__sum::marker { content: ""; }
.xk-more__sum:hover { color: var(--xk-ink); background: rgba(23, 35, 60, .8); }
.xk-more[open] .xk-more__sum { color: var(--xk-gold); }
.xk-more__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 10;
  display: grid;
  gap: 2px;
  min-width: 172px;
  padding: 8px;
  background: #0B1222;
  border: 1px solid var(--xk-line);
  border-radius: var(--xk-radius);
  box-shadow: 0 22px 44px rgba(0, 0, 0, .6);
}
.xk-more__link {
  display: block;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--xk-dim);
  text-decoration: none;
  border-radius: var(--xk-radius);
  transition: background .16s var(--xk-ease), color .16s var(--xk-ease);
}
.xk-more__link:hover { background: rgba(255, 122, 61, .14); color: var(--xk-ink); }

/* 移动端面板内的 CTA（桌面隐藏） */
.xk-nav__foot { display: none; }
.xk-nav__cta { width: 100%; }

/* 汉堡按钮 */
.xk-navtoggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  background: rgba(23, 35, 60, .7);
  border: 1px solid var(--xk-line);
  border-radius: var(--xk-radius);
  color: var(--xk-ink);
  cursor: pointer;
  transition: border-color .18s var(--xk-ease);
}
.xk-navtoggle:hover { border-color: var(--xk-orange); }
.xk-navtoggle__bars {
  display: grid;
  gap: 3px;
  width: 16px;
}
.xk-navtoggle__bars span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform .2s var(--xk-ease), opacity .2s var(--xk-ease);
}
.xk-navtoggle[aria-expanded="true"] .xk-navtoggle__bars span:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}
.xk-navtoggle[aria-expanded="true"] .xk-navtoggle__bars span:nth-child(2) { opacity: 0; }
.xk-navtoggle[aria-expanded="true"] .xk-navtoggle__bars span:nth-child(3) {
  transform: translateY(-4.5px) rotate(-45deg);
}
.xk-navtoggle__text {
  font-family: var(--xk-mono);
  font-size: 12px;
  letter-spacing: .12em;
}

/* 滚动进度 */
.xk-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--xk-gold), var(--xk-orange));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .12s linear;
  pointer-events: none;
}

/* ==========================================================================
   页脚
   ========================================================================== */
.xk-footer {
  margin-top: clamp(48px, 7vw, 96px);
  background: #080D18;
  border-top: 1px solid var(--xk-line);
  color: var(--xk-dim);
}

.xk-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, .72fr)) minmax(0, 1.25fr);
  gap: clamp(22px, 3vw, 46px);
  width: 100%;
  max-width: var(--xk-w);
  margin-inline: auto;
  padding: clamp(36px, 5vw, 66px) var(--xk-gutter) 0;
}

.xk-footer__logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--xk-ink);
}
.xk-footer__tag {
  margin-top: 10px;
  font-family: var(--xk-mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .03em;
  color: var(--xk-gold);
}
.xk-footer__note {
  margin-top: 12px;
  max-width: 30ch;
  font-size: 13px;
  line-height: 1.75;
  color: var(--xk-dim);
}

.xk-footer__title {
  margin-bottom: 14px;
  font-family: var(--xk-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--xk-gold);
}

.xk-footer__list {
  display: grid;
  gap: 9px;
  list-style: none;
  font-size: 14px;
  line-height: 1.65;
}
.xk-footer__list a {
  display: inline-block;
  color: var(--xk-dim);
  text-decoration: none;
  transition: color .18s var(--xk-ease), transform .18s var(--xk-ease);
}
.xk-footer__list a:hover {
  color: var(--xk-ink);
  transform: translateX(2px);
}

.xk-footer__list--contact {
  gap: 10px;
  font-family: var(--xk-mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .01em;
  color: var(--xk-dim);
  word-break: break-word;
}
.xk-footer__k {
  display: inline-block;
  min-width: 34px;
  margin-right: 6px;
  color: var(--xk-gold);
}

.xk-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  width: 100%;
  max-width: var(--xk-w);
  margin: clamp(32px, 4vw, 56px) auto 0;
  padding: 18px var(--xk-gutter) 30px;
  border-top: 1px solid rgba(42, 58, 90, .7);
  font-family: var(--xk-mono);
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--xk-dim);
}
.xk-footer__legal { margin: 0; }
.xk-footer__meta { margin: 0; color: rgba(154, 165, 184, .7); }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1180px) {
  .xk-status__value { display: none; }
}

@media (max-width: 1024px) {
  .xk-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .xk-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  html { scroll-padding-top: 84px; }

  .xk-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding-block: 12px;
  }

  .xk-status { display: none; }
  .xk-navtoggle { display: inline-flex; }

  .xk-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    justify-self: stretch;
    max-height: calc(100vh - 68px);
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    padding: 6px var(--xk-gutter) 22px;
    background: #0A1020;
    border-top: 1px solid var(--xk-line);
    border-bottom: 1px solid var(--xk-line);
    box-shadow: 0 26px 52px rgba(0, 0, 0, .62);
  }
  .xk-nav[data-open] { display: flex; }

  .xk-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .xk-nav__link {
    display: block;
    padding: 14px 2px;
    font-size: 16px;
    border-bottom: 1px solid rgba(42, 58, 90, .55);
    border-radius: 0;
  }
  .xk-nav__link:hover { background: transparent; }
  .xk-nav__link[aria-current="page"] { border-bottom-color: rgba(242, 193, 78, .45); }
  .xk-nav__link[aria-current="page"]::after { display: none; }

  .xk-more { width: 100%; margin-top: 12px; }
  .xk-more__sum {
    display: block;
    width: 100%;
    padding: 12px 2px;
    font-size: 15px;
    border-radius: 0;
  }
  .xk-more__sum:hover { background: transparent; }
  .xk-more__panel {
    position: static;
    margin-top: 6px;
    min-width: 0;
    padding: 4px 0 0;
    background: transparent;
    border: 0;
    border-top: 1px solid rgba(42, 58, 90, .55);
    border-radius: 0;
    box-shadow: none;
  }
  .xk-more__link { padding: 10px 2px; font-size: 14px; }

  .xk-nav__foot { display: block; margin-top: 18px; }
}

@media (max-width: 560px) {
  .xk-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .xk-footer__brand { grid-column: auto; }
  .xk-footer__base {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .xk-brand__name { font-size: 17px; }
  .xk-brand__sub { font-size: 10px; }
  .xk-navtoggle__text { display: none; }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .xk-progress { transition: none; }
  .xk-footer__list a:hover { transform: none; }
}
