.page-home {
  --home-gap: clamp(16px, 2.2vw, 28px);
  --home-line: 1px solid rgba(138, 151, 163, 0.22);
  --home-line-strong: 1px solid rgba(138, 151, 163, 0.42);
  --home-panel-shadow: 0 24px 60px rgba(15, 74, 74, 0.35);
}

.page-home .home-wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page-home .home-hero {
  padding-top: clamp(18px, 4vw, 52px);
}

/* ---------- 首屏非对称分栏 ---------- */
.page-home .hero-grid {
  display: grid;
  gap: var(--home-gap);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.page-home .hero-stack .bs-title {
  margin: 8px 0 14px;
  letter-spacing: 0.01em;
}

.page-home .hero-stack .bs-lede {
  max-width: 30em;
  margin-bottom: 22px;
}

.page-home .quick-stack {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .quick-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: var(--home-line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(22, 56, 77, 0.55), rgba(11, 36, 54, 0.85));
  color: var(--snow);
  text-decoration: none;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.page-home .quick-link:hover,
.page-home .quick-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(232, 121, 59, 0.6);
  background: linear-gradient(135deg, rgba(22, 56, 77, 0.9), rgba(11, 36, 54, 0.98));
}

.page-home .quick-link:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 2px;
}

.page-home .quick-idx {
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.page-home .quick-body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.page-home .quick-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
}

.page-home .quick-desc {
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(234, 241, 245, 0.68);
}

.page-home .quick-arrow {
  color: var(--barley);
  font-size: 1.05rem;
  transition: transform 0.25s var(--ease);
}

.page-home .quick-link:hover .quick-arrow,
.page-home .quick-link:focus-visible .quick-arrow {
  transform: translateX(3px);
  color: var(--prayer);
}

/* ---------- 右侧数据面板 ---------- */
.page-home .panel-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: var(--home-line);
  background: var(--deep);
  box-shadow: var(--home-panel-shadow);
  min-height: clamp(360px, 52vw, 460px);
  display: flex;
}

.page-home .panel-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(0.85);
}

.page-home .panel-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page-home .panel-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding: clamp(18px, 3vw, 34px);
  background: linear-gradient(180deg, rgba(7, 28, 44, 0.32) 0%, rgba(7, 28, 44, 0.9) 78%);
}

.page-home .panel-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.page-home .panel-stage {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: rgba(234, 241, 245, 0.72);
}

.page-home .panel-stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin-top: auto;
}

.page-home .panel-stat {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-left: 2px solid rgba(91, 192, 235, 0.45);
  background: rgba(11, 36, 54, 0.5);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.page-home .panel-stat:nth-child(2) {
  border-left-color: rgba(111, 175, 143, 0.7);
}

.page-home .panel-stat:nth-child(3) {
  border-left-color: rgba(232, 121, 59, 0.7);
}

.page-home .panel-num {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 600;
  line-height: 1;
  color: var(--snow);
}

.page-home .panel-label {
  font-size: 0.8rem;
  color: rgba(234, 241, 245, 0.7);
  line-height: 1.5;
}

.page-home .panel-version {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: rgba(217, 164, 65, 0.12);
  border: 1px solid rgba(217, 164, 65, 0.38);
}

.page-home .panel-version-text {
  font-size: 0.86rem;
  color: rgba(234, 241, 245, 0.85);
}

.page-home .panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 通用章节头 ---------- */
.page-home .section-head {
  max-width: 46em;
  margin-bottom: clamp(18px, 2.4vw, 26px);
}

.page-home .section-head .bs-heading {
  margin: 6px 0 12px;
}

.page-home .section-lede {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(234, 241, 245, 0.74);
  margin: 0;
}

/* ---------- 联赛专题目录 ---------- */
.page-home .league-figure {
  margin: 0 0 clamp(18px, 2.6vw, 28px);
}

.page-home .league-figure .bs-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--home-line);
}

.page-home .league-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 100%;
  height: auto;
  display: block;
}

.page-home .league-figure figcaption {
  margin-top: 8px;
  font-size: 0.82rem;
  color: rgba(234, 241, 245, 0.6);
}

.page-home .league-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
}

.page-home .league-card {
  position: relative;
  padding: 18px 18px 18px 20px;
  border: var(--home-line);
  border-left: 3px solid var(--barley);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(22, 56, 77, 0.6), rgba(11, 36, 54, 0.9));
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.page-home .league-card--orange {
  border-left-color: var(--prayer);
}

.page-home .league-card:hover {
  transform: translateY(-3px);
  border-color: rgba(138, 151, 163, 0.5);
}

.page-home .league-code {
  font-size: 12px;
  color: rgba(138, 151, 163, 0.9);
  letter-spacing: 0.1em;
}

.page-home .league-name {
  margin: 8px 0 4px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--snow);
}

.page-home .league-count {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--gold);
  letter-spacing: 0.06em;
}

.page-home .league-desc {
  margin: 0 0 14px;
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(234, 241, 245, 0.72);
}

.page-home .league-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--barley);
  text-decoration: none;
  border-bottom: 1px solid rgba(111, 175, 143, 0.4);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-home .league-card--orange .league-link {
  color: var(--prayer);
  border-bottom-color: rgba(232, 121, 59, 0.4);
}

.page-home .league-link:hover,
.page-home .league-link:focus-visible {
  color: var(--snow);
  border-bottom-color: var(--snow);
}

.page-home .league-link:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
}

/* ---------- 球队档案横向卡片带 ---------- */
.page-home .roster-rail {
  list-style: none;
  margin: 0;
  padding: 0 0 6px;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.page-home .roster-card {
  flex: 0 0 78%;
  scroll-snap-align: start;
  border: var(--home-line);
  border-radius: var(--radius);
  background: var(--deep);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.page-home .roster-card:hover {
  transform: translateY(-3px);
  border-color: rgba(91, 192, 235, 0.45);
}

.page-home .roster-media {
  background: var(--glass);
}

.page-home .roster-media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.page-home .roster-body {
  padding: 16px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.page-home .roster-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--snow);
}

.page-home .roster-desc {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.65;
  color: rgba(234, 241, 245, 0.7);
}

.page-home .roster-hint {
  margin: 14px 0 0;
  font-size: 0.84rem;
  color: rgba(234, 241, 245, 0.58);
}

/* ---------- 场馆信息 ---------- */
.page-home .venue-section {
  background: linear-gradient(180deg, rgba(11, 36, 54, 0.5), rgba(7, 28, 44, 0.9));
  border-top: var(--home-line);
  border-bottom: var(--home-line);
}

.page-home .venue-grid {
  display: grid;
  gap: clamp(20px, 3vw, 36px);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.page-home .venue-copy .bs-heading {
  margin: 6px 0 12px;
}

.page-home .venue-facts {
  margin: 20px 0 18px;
  display: grid;
  gap: 0;
  border-top: var(--home-line);
}

.page-home .venue-fact {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: var(--home-line);
}

.page-home .venue-fact dt {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--snow);
  letter-spacing: 0.02em;
}

.page-home .venue-fact dd {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(234, 241, 245, 0.68);
}

.page-home .city-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .city-chip {
  padding: 5px 12px;
  font-size: 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(138, 151, 163, 0.35);
  color: rgba(234, 241, 245, 0.82);
  background: rgba(22, 56, 77, 0.45);
}

.page-home .venue-figure {
  margin: 0;
}

.page-home .venue-figure .bs-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--home-line);
}

.page-home .venue-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: 100%;
  height: auto;
}

.page-home .venue-figure figcaption {
  margin-top: 8px;
  font-size: 0.82rem;
  color: rgba(234, 241, 245, 0.6);
}

/* ---------- 订阅状态 ---------- */
.page-home .sub-card {
  display: grid;
  gap: clamp(18px, 2.6vw, 30px);
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(20px, 3vw, 34px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(217, 164, 65, 0.32);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(217, 164, 65, 0.16), transparent 58%),
    linear-gradient(160deg, rgba(22, 56, 77, 0.75), rgba(7, 28, 44, 0.95));
}

.page-home .sub-copy .bs-heading {
  margin: 6px 0 12px;
}

.page-home .sub-points {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .sub-points li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(234, 241, 245, 0.78);
}

.page-home .sub-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--barley);
}

.page-home .sub-status {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(7, 28, 44, 0.62);
  border: var(--home-line);
}

.page-home .sub-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.page-home .sub-stamp {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: rgba(234, 241, 245, 0.7);
}

.page-home .sub-version {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(234, 241, 245, 0.62);
  word-break: break-word;
}

.page-home .sub-details {
  border-top: var(--home-line);
  padding-top: 12px;
}

.page-home .sub-details summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
  list-style: none;
}

.page-home .sub-details summary::-webkit-details-marker {
  display: none;
}

.page-home .sub-details summary::after {
  content: "＋";
  margin-left: 6px;
  font-family: var(--font-mono);
}

.page-home .sub-details[open] summary::after {
  content: "－";
}

.page-home .sub-details summary:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
}

.page-home .sub-details ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-home .sub-details li {
  font-size: 0.84rem;
  line-height: 1.65;
  color: rgba(234, 241, 245, 0.72);
  padding-left: 14px;
  position: relative;
}

.page-home .sub-details li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ---------- 延伸入口 ---------- */
.page-home .more-title {
  margin: 0 0 16px;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.page-home .more-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr);
}

.page-home .more-link {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: var(--home-line);
  border-radius: var(--radius);
  text-decoration: none;
  background: rgba(11, 36, 54, 0.55);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.page-home .more-link:hover,
.page-home .more-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(91, 192, 235, 0.55);
  background: rgba(22, 56, 77, 0.75);
}

.page-home .more-link:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 2px;
}

.page-home .more-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--snow);
}

.page-home .more-desc {
  font-size: 0.83rem;
  line-height: 1.6;
  color: rgba(234, 241, 245, 0.66);
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-home .league-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 900px) {
  .page-home .hero-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .page-home .hero-stack {
    grid-column: span 4;
  }

  .page-home .hero-panel {
    grid-column: span 8;
  }

  .page-home .roster-rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    gap: 16px;
  }

  .page-home .roster-card {
    flex: initial;
  }

  .page-home .venue-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }

  .page-home .sub-card {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
    align-items: start;
  }
}

@media (min-width: 1100px) {
  .page-home .league-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .more-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .panel-shell {
    min-height: 480px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .quick-link,
  .page-home .league-card,
  .page-home .roster-card,
  .page-home .more-link,
  .page-home .quick-arrow {
    transition: none;
  }

  .page-home .quick-link:hover,
  .page-home .quick-link:focus-visible,
  .page-home .league-card:hover,
  .page-home .roster-card:hover,
  .page-home .more-link:hover,
  .page-home .more-link:focus-visible {
    transform: none;
  }
}
