/*
 * sport-template 专用壳层（全新 DOM：.st-header / .st-footer）
 * 仅随 layout.php 在 slug=sport-template 时加载；与 site-mast / site-foot 结构无关。
 */

.st-layout {
  --st-edge: #0c4a6e;
  --st-edge-soft: #164e63;
  --st-ink: #0f172a;
  --st-muted: #64748b;
  --st-line: rgba(148, 163, 184, 0.42);
}

/* —— 顶栏：卡片式身份区 + 虚线分隔 + 标签导航（非通栏深色 dock） —— */
.st-header {
  position: sticky;
  top: 0;
  z-index: 120;
  margin: 0;
  padding: 0;
}

.st-header__sheet {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    155deg,
    rgba(240, 249, 255, 0.98) 0%,
    rgba(248, 250, 252, 0.96) 48%,
    rgba(226, 232, 240, 0.93) 100%
  );
  border-bottom: 1px solid var(--st-line);
  box-shadow: 0 14px 42px rgba(15, 23, 42, 0.07);
}

.st-header__frame {
  position: relative;
  padding: 18px 20px 16px;
}

.st-header__primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.st-header__identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.st-header__mark {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}

.st-header__mark--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 与 layout 内联 --logo-c* 一致：必须有渐变底，否则白字落在浅色顶栏上会不可读 */
.st-header__mark--glyph {
  font-weight: 950;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 1px 3px rgba(15, 23, 42, 0.35);
  background: linear-gradient(
    135deg,
    var(--logo-c1, #0d9488) 0%,
    var(--logo-c2, #2dd4bf) 45%,
    var(--logo-c3, #2563eb) 100%
  );
}

.st-header__names {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.st-header__sitename {
  font-size: clamp(1.06rem, 2.5vw, 1.38rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--st-ink);
  line-height: 1.18;
}

.st-header__grab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 780;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #0284c7, #0d9488);
  box-shadow: 0 8px 26px rgba(14, 165, 233, 0.32);
}

.st-header__grab:hover {
  filter: brightness(1.05);
}

.st-header__rail {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(100, 116, 139, 0.4);
}

.st-header__rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 6px;
  align-items: center;
}

.st-header__rail-list li {
  margin: 0;
}

.st-header__rail-list a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
  color: var(--st-edge-soft);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.st-header__rail-list a:hover {
  background: rgba(14, 165, 233, 0.11);
  border-color: rgba(14, 165, 233, 0.28);
  color: var(--st-edge);
}

.st-header__synopsis {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.68;
  color: var(--st-muted);
  max-width: 52rem;
}

@media (max-width: 640px) {
  .st-header__frame {
    padding: 14px 16px 14px;
  }
  .st-header__rail-list a {
    padding: 7px 11px;
    font-size: 13px;
  }
}

/* —— 页脚：夜幕底 + 双栏卡片 + 底部分割条（非 site-foot__grid） —— */
.st-footer {
  position: relative;
  margin-top: 44px;
  padding: 0 0 32px;
  color: #e2e8f0;
}

.st-footer__mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, #020617 0%, #0f172a 38%, #1e293b 100%);
  pointer-events: none;
}

.st-footer--photo .st-footer__mesh {
  background-image: var(--footer-bg),
    linear-gradient(180deg, rgba(2, 6, 23, 0.65) 0%, rgba(15, 23, 42, 0.88) 55%, #020617 100%);
  background-size: cover, auto;
  background-position: center 58%, center;
  background-repeat: no-repeat, no-repeat;
}

.st-footer__shell {
  position: relative;
  z-index: 1;
  padding-top: 36px;
}

.st-footer__band {
  padding: 22px 24px;
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(71, 85, 105, 0.55);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.28);
}

.st-footer__title {
  margin: 0 0 12px;
  font-size: clamp(1.12rem, 2.4vw, 1.34rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #f8fafc;
}

.st-footer__body {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: #cbd5e1;
}

.st-footer__aside {
  margin-top: 18px;
  padding: 20px 22px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(51, 65, 85, 0.65);
}

.st-footer__aside-h {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #94a3b8;
}

.st-footer__facts {
  margin: 0;
}

.st-footer__fact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 18px;
  margin-bottom: 12px;
}

.st-footer__fact:last-child {
  margin-bottom: 0;
}

.st-footer__fact dt {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.st-footer__fact dd {
  margin: 0;
  font-size: 13px;
  color: #e2e8f0;
  word-break: break-word;
}

.st-footer__strip {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(71, 85, 105, 0.45);
}

.st-footer__pipe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 4px;
  font-size: 13px;
}

.st-footer__pipe a {
  color: #cbd5e1;
  font-weight: 650;
  text-decoration: none;
}

.st-footer__pipe a:hover {
  color: #38bdf8;
}

.st-footer__dot {
  color: rgba(148, 163, 184, 0.55);
  user-select: none;
}

.st-footer__legal {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
}

@media (min-width: 900px) {
  .st-footer__shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    gap: 18px 22px;
    align-items: start;
  }

  .st-footer__band {
    grid-column: 1;
    grid-row: 1;
  }

  .st-footer__aside {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
  }

  .st-footer__strip {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 4px;
  }
}

@media (max-width: 760px) {
  .st-footer__shell {
    padding-top: 28px;
  }
}
