.page-home {
  --home-line-lg: rgba(22, 48, 92, 0.45);
  --home-line-sm: rgba(22, 48, 92, 0.18);
  --league: var(--cyan);
  position: relative;
  isolation: isolate;
  color: var(--white);
}

.page-home::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
  background-image:
    linear-gradient(to right, var(--home-line-sm) 1px, transparent 1px),
    linear-gradient(to bottom, var(--home-line-sm) 1px, transparent 1px),
    linear-gradient(to right, var(--home-line-lg) 1px, transparent 1px),
    linear-gradient(to bottom, var(--home-line-lg) 1px, transparent 1px);
  background-size: 16px 16px, 16px 16px, 96px 96px, 96px 96px;
}

/* ---------- 通用小件 ---------- */
.page-home .section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.page-home .section-index {
  color: var(--cyan);
  letter-spacing: 0.12em;
  opacity: 0.85;
}

.page-home .section-title {
  margin: 0;
  font-size: clamp(1.5rem, 4.4vw, 2.15rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.page-home .section-lede {
  margin: 14px 0 0;
}

.page-home .crumbs {
  padding-top: 18px;
}

/* ---------- 首屏 ---------- */
.page-home .hero-section {
  position: relative;
  overflow: hidden;
  padding-top: clamp(16px, 3vw, 30px);
  padding-bottom: clamp(36px, 6vw, 64px);
}

.page-home .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.2) 72%, transparent);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.2) 72%, transparent);
}

.page-home .hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 44px);
  padding-top: 12px;
}

.page-home .hero-copy h1 {
  margin: 14px 0 16px;
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-weight: 900;
}

.page-home .hero-copy .lede {
  max-width: 32em;
}

.page-home .hero-status {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 13px;
  color: var(--muted);
}

.page-home .hero-status-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-home .hero-status-item .status-dot {
  flex: none;
}

.page-home .hero-index-wrap {
  position: relative;
  padding-left: 12px;
}

.page-home .hero-index-wrap::after {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 2px;
  border-radius: var(--radius-pill);
  background: linear-gradient(to bottom, var(--cyan), rgba(0, 229, 255, 0.05));
}

.page-home .hero-index-head {
  margin: 0 0 12px;
  color: var(--muted);
}

.page-home .hero-index {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .hero-index-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(11, 23, 48, 0.82);
  text-decoration: none;
  color: inherit;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.page-home .hero-index-link:hover,
.page-home .hero-index-link:focus-visible {
  transform: translateY(-4px);
  border-color: var(--cyan);
  background: var(--panel);
}

.page-home .hi-num {
  font-size: 13px;
  color: var(--cyan);
  letter-spacing: 0.08em;
}

.page-home .hi-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.page-home .hi-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}

.page-home .hi-sub {
  font-size: 12.5px;
  color: var(--muted);
}

.page-home .hero-stats {
  list-style: none;
  margin: clamp(28px, 5vw, 46px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--line);
}

.page-home .hero-stats .stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: var(--panel);
}

.page-home .hero-stats .stat-value {
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  color: var(--cyan);
  line-height: 1.1;
}

.page-home .hero-stats .stat-label {
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- 联赛矩阵 ---------- */
.page-home .matrix-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 26px;
}

.page-home .matrix-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}

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

.page-home .matrix-list {
  display: grid;
  gap: 14px;
}

.page-home .league-group {
  position: relative;
  padding: 18px 20px 18px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .league-group:hover,
.page-home .league-group:focus-within {
  transform: translateY(-4px);
  border-color: var(--cyan);
}

.page-home .league-group::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: var(--radius-pill);
  background: var(--league);
}

.page-home .league-group--football {
  --league: var(--lg-football);
}

.page-home .league-group--basket {
  --league: var(--lg-basket);
}

.page-home .league-group--cup {
  --league: var(--lg-cup);
}

.page-home .lg-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-home .lg-head .hue-dot {
  flex: none;
  background: var(--league);
  box-shadow: 0 0 0 4px rgba(22, 48, 92, 0.65);
}

.page-home .lg-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.page-home .lg-count {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--muted);
}

.page-home .lg-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 12px 0 10px;
}

.page-home .lg-stat dt {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.page-home .lg-stat dd {
  margin: 2px 0 0;
  font-size: 1.2rem;
  color: var(--white);
}

.page-home .lg-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 回看集锦 ---------- */
.page-home .reel-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%);
}

.page-home .reel-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.page-home .reel-body {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(22px, 5vw, 52px);
  background: linear-gradient(to top, rgba(5, 11, 26, 0.97), rgba(5, 11, 26, 0.5) 62%, rgba(5, 11, 26, 0.05));
}

.page-home .reel-title {
  margin: 12px 0 12px;
  font-size: clamp(1.45rem, 4.2vw, 2.1rem);
  line-height: 1.15;
}

.page-home .reel-text {
  margin: 0;
  max-width: 40em;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .reel-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
  padding: 0;
}

.page-home .reel-tags .pill {
  color: var(--orange-soft);
  border-color: rgba(255, 122, 24, 0.4);
}

/* ---------- 家庭看球面板 ---------- */
.page-home .home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 24px;
}

.page-home .home-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.page-home .hometile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 15px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.page-home .hometile:hover,
.page-home .hometile:focus-visible {
  transform: translateY(-4px);
  border-color: var(--cyan);
  background: var(--panel-2);
}

.page-home .hometile-num {
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 0.1em;
}

.page-home .hometile-title {
  font-size: 15px;
  font-weight: 700;
}

.page-home .hometile-desc {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.page-home .home-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}

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

/* ---------- 新手三步 ---------- */
.page-home .steps {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-home .step {
  position: relative;
  padding: 20px 20px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, var(--panel-2), var(--panel));
}

.page-home .step-num {
  display: block;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  line-height: 1;
  color: var(--cyan);
  opacity: 0.6;
  letter-spacing: 0.02em;
}

.page-home .step-title {
  margin: 12px 0 8px;
  font-size: 1.1rem;
}

.page-home .step-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--muted);
}

/* ---------- 更新记录与信任条 ---------- */
.page-home .updates-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.page-home .update-item {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  overflow: hidden;
}

.page-home .update-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  list-style: none;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

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

.page-home .update-item summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  color: var(--cyan);
}

.page-home .update-item[open] summary::after {
  content: "–";
}

.page-home .update-item summary:hover,
.page-home .update-item summary:focus-visible {
  background: var(--panel-2);
  color: var(--cyan);
}

.page-home .update-item p {
  margin: 0;
  padding: 0 18px 18px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .trust-bar {
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--panel-2), rgba(5, 11, 26, 0.6));
}

.page-home .trust-title {
  margin: 0 0 12px;
  font-size: 1.15rem;
  line-height: 1.3;
}

.page-home .trust-text {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .trust-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.page-home .trust-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.page-home .trust-key {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.page-home .trust-val {
  font-size: 14.5px;
  color: var(--white);
  word-break: break-word;
}

.page-home .trust-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 20px 0 0;
  font-size: 13.5px;
}

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

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

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

@media (min-width: 1000px) {
  .page-home .hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }

  .page-home .hero-index-wrap {
    padding-left: 20px;
  }

  .page-home .matrix-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 32px;
    align-items: start;
  }

  .page-home .matrix-figure {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }

  .page-home .reel-banner {
    min-height: 420px;
  }

  .page-home .home-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }

  .page-home .updates-grid {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    align-items: start;
    gap: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-index-link,
  .page-home .league-group,
  .page-home .hometile,
  .page-home .update-item summary {
    transition: none;
  }
}
