.page-home {
  --home-gap: clamp(1.4rem, 3vw, 2.8rem);
  --home-pad: clamp(3.2rem, 7vw, 5.6rem);
  --home-cut: 16px;
  background: var(--ink);
  color: var(--white);
  overflow-x: hidden;
}

.page-home .section {
  padding: var(--home-pad) 0;
}

/* ---------- 声明段 ---------- */
.page-home .home-declare {
  position: relative;
  isolation: isolate;
  padding: clamp(3.4rem, 9vw, 6.4rem) 0 clamp(2.4rem, 5vw, 3.6rem);
  overflow: hidden;
}

.page-home .declare-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: -2;
}

.page-home .declare-veil {
  display: block;
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(58% 46% at 84% 10%, rgba(47, 224, 200, 0.22), transparent 70%),
    radial-gradient(44% 38% at 10% 90%, rgba(255, 90, 31, 0.16), transparent 72%),
    linear-gradient(180deg, rgba(4, 18, 14, 0.5) 0%, rgba(4, 18, 14, 0.9) 58%, var(--ink) 100%);
}

.page-home .declare-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
}

.page-home .home-h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.3rem, 7.4vw, 5rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.page-home .eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.page-home .lede {
  margin: 0;
  max-width: 34em;
  font-size: 0.98rem;
  line-height: 1.8;
  color: rgba(234, 245, 241, 0.86);
}

.page-home .declare-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.page-home .declare-index {
  align-self: end;
}

.page-home .index-head {
  margin: 0 0 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.page-home .index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hair);
}

.page-home .index-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--hair-soft);
}

.page-home .index-k {
  font-size: 0.76rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.page-home .index-v {
  font-size: 1.18rem;
  color: var(--mist);
  line-height: 1;
}

.page-home .index-v i {
  font-style: normal;
  font-size: 0.7rem;
  color: var(--muted);
  margin-left: 0.15rem;
  letter-spacing: 0.04em;
}

/* ---------- 赛事时间轴 + 卡片矩阵 ---------- */
.page-home .home-live {
  background: linear-gradient(180deg, var(--ink), var(--stand) 26%, var(--ink));
}

.page-home .section-head {
  margin-bottom: clamp(1.6rem, 3.4vw, 2.6rem);
}

.page-home .section-index {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.page-home .section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4.2vw, 2.4rem);
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: -0.01em;
}

.page-home .section-note {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 300;
  color: var(--muted);
}

.page-home .live-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
}

.page-home .live-rail {
  min-width: 0;
}

.page-home .rail-tools {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}

.page-home .tag-row {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.2rem;
}

.page-home .tag-row::-webkit-scrollbar {
  display: none;
}

.page-home .tag {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .tag--on,
.page-home .tag[aria-pressed="true"] {
  color: var(--mist);
  border-bottom-color: var(--cyan);
}

.page-home .rail-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--hair);
  background: rgba(8, 31, 25, 0.6);
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .rail-switch[aria-pressed="true"] {
  color: var(--cyan);
  border-color: var(--cyan);
}

.page-home .rail-switch-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(47, 224, 200, 0.14);
}

.page-home .timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hair);
}

.page-home .timeline-item {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: 0.15rem 1rem;
  padding: 0.7rem 0 0.7rem 1rem;
  border-bottom: 1px solid var(--hair-soft);
  border-left: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.page-home .timeline-item:hover {
  border-left-color: var(--cyan);
  background: rgba(18, 53, 44, 0.42);
}

.page-home .timeline-time {
  margin: 0;
  font-size: 1.02rem;
  color: var(--mist);
  letter-spacing: -0.01em;
}

.page-home .timeline-body {
  min-width: 0;
}

.page-home .timeline-league {
  margin: 0 0 0.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.page-home .timeline-title {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  color: var(--white);
  line-height: 1.4;
}

.page-home .vs {
  color: var(--edge);
  margin: 0 0.2rem;
}

.page-home .timeline-meta {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--muted);
}

.page-home .live-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem;
  min-width: 0;
}

.page-home .cut {
  position: relative;
  clip-path: polygon(0 0, calc(100% - var(--home-cut)) 0, 100% var(--home-cut), 100% 100%, 0 100%);
}

.page-home .cut::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 24px;
  background: linear-gradient(225deg, rgba(47, 224, 200, 0.42), transparent 64%);
  pointer-events: none;
}

.page-home .board-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.05rem 1.1rem 1.15rem;
  background: linear-gradient(160deg, var(--pitch), #0b2a22 72%);
  box-shadow: inset 0 0 0 1px var(--hair);
}

.page-home .board-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.page-home .card-index {
  color: var(--cyan);
  letter-spacing: 0.06em;
}

.page-home .board-state {
  margin-left: auto;
  color: var(--muted);
}

.page-home .board-state.is-live {
  color: var(--flame);
}

.page-home .score-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
}

.page-home .score-side {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--white);
}

.page-home .score-side--away {
  text-align: right;
}

.page-home .score-mid {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.16rem;
  font-size: clamp(1.85rem, 5.4vw, 2.6rem);
  line-height: 1;
  color: var(--mist);
}

.page-home .score-sep {
  font-size: 0.6em;
  color: var(--edge);
}

.page-home .card-meta {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
}

.page-home .table-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.page-home .table-list li {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 0.7rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--hair-soft);
  font-size: 0.86rem;
}

.page-home .table-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-home .t-rank {
  font-size: 0.78rem;
  color: var(--muted);
}

.page-home .t-pts {
  color: var(--white);
}

.page-home .t-move {
  font-size: 0.76rem;
  color: var(--cyan);
}

.page-home .board-figure {
  margin: 0;
  background: linear-gradient(160deg, var(--stand), var(--ink));
  box-shadow: inset 0 0 0 1px var(--hair);
}

.page-home .board-figure img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  opacity: 0.72;
}

.page-home .board-figure .figure-cap {
  padding: 0.7rem 1rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted);
}

.page-home .board-card--wide .draw-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.page-home .draw-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1rem;
  color: var(--mist);
  background: linear-gradient(180deg, rgba(47, 224, 200, 0.18), rgba(47, 224, 200, 0.04));
  box-shadow: inset 0 0 0 1px var(--hair);
}

.page-home .draw-ball--blue {
  color: var(--ember);
  background: linear-gradient(180deg, rgba(255, 90, 31, 0.2), rgba(255, 90, 31, 0.04));
}

.page-home .draw-plus {
  font-size: 0.9rem;
  color: var(--muted);
}

/* 折叠组 */
.page-home .fold-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.55rem 0 0;
  border: 0;
  border-top: 1px solid var(--hair-soft);
  background: none;
  color: var(--mist);
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-align: left;
  cursor: pointer;
}

.page-home .fold-sign {
  position: relative;
  flex: 0 0 auto;
  width: 0.7rem;
  height: 0.7rem;
}

.page-home .fold-sign::before,
.page-home .fold-sign::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: currentColor;
}

.page-home .fold-sign::after {
  transform: rotate(90deg);
  transition: transform var(--dur) var(--ease);
}

.page-home .fold-head[aria-expanded="true"] .fold-sign::after {
  transform: rotate(0deg);
}

.page-home .fold-body p {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 订阅与筛选 ---------- */
.page-home .start-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.2rem;
}

.page-home .start-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.7rem 1.4rem 1.6rem;
  background: linear-gradient(180deg, var(--stand), var(--ink) 88%);
  box-shadow: inset 0 0 0 1px var(--hair);
}

.page-home .start-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
}

.page-home .start-panel--flame::before {
  background: linear-gradient(90deg, var(--flame), rgba(255, 90, 31, 0) 82%);
}

.page-home .start-panel--cyan::before {
  background: linear-gradient(90deg, var(--cyan), rgba(47, 224, 200, 0) 82%);
}

.page-home .start-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.page-home .start-panel--flame .start-kicker {
  color: var(--ember);
}

.page-home .start-panel--cyan .start-kicker {
  color: var(--mist);
}

.page-home .start-title {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.page-home .start-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(234, 245, 241, 0.82);
  max-width: 34em;
}

.page-home .start-list {
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.page-home .start-list li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--muted);
}

.page-home .start-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.42rem;
  height: 1px;
  background: var(--edge);
}

.page-home .start-panel .btn {
  align-self: flex-start;
  margin-top: 0.4rem;
}

.page-home .start-figure {
  margin: 1.6rem 0 0;
  max-width: 760px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--stand), var(--ink));
}

.page-home .start-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  opacity: 0.66;
}

.page-home .start-figure .figure-cap {
  padding: 0.75rem 1rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 资讯延伸 ---------- */
.page-home .home-stream {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.page-home .stream-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  z-index: -2;
}

.page-home .stream-veil {
  display: block;
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(96deg, rgba(4, 18, 14, 0.95) 0%, rgba(8, 31, 25, 0.78) 60%, rgba(4, 18, 14, 0.95) 100%);
}

.page-home .stream-list {
  list-style: none;
  margin: 0;
  padding: 0.3rem 0 1rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(15rem, 1fr);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.page-home .stream-item {
  scroll-snap-align: start;
  min-width: 0;
}

.page-home .stream-link {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  height: 100%;
  padding: 1.1rem 1rem;
  background: rgba(8, 31, 25, 0.72);
  box-shadow: inset 0 0 0 1px var(--hair);
  color: inherit;
  text-decoration: none;
  transition: box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}

.page-home .stream-link:hover {
  background: rgba(18, 53, 44, 0.86);
  box-shadow: inset 0 0 0 1px var(--cyan);
}

.page-home .stream-tag {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.page-home .stream-title {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--white);
}

.page-home .stream-meta {
  margin-top: auto;
  font-size: 0.72rem;
  color: var(--muted);
}

.page-home .stream-more {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
}

/* ---------- 收尾 ---------- */
.page-home .home-close {
  padding: clamp(2.6rem, 5vw, 4rem) 0 clamp(3.4rem, 6vw, 5rem);
  border-top: 1px solid var(--hair);
}

.page-home .close-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.6rem;
}

.page-home .close-kicker {
  margin: 0 0 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.page-home .close-text {
  margin: 0;
  max-width: 40em;
  font-size: 0.9rem;
  line-height: 1.85;
  color: rgba(234, 245, 241, 0.8);
}

.page-home .close-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  align-content: start;
}

.page-home .close-link {
  display: block;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--hair-soft);
  font-size: 0.86rem;
  color: var(--mist);
  text-decoration: none;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .close-link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .page-home .live-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
  }

  .page-home .live-board > :nth-child(2),
  .page-home .live-board > :nth-child(4) {
    margin-top: 1.8rem;
  }

  .page-home .board-card--wide {
    grid-column: 1 / -1;
  }

  .page-home .board-figure img {
    height: 100%;
    min-height: 190px;
  }
}

@media (min-width: 900px) {
  .page-home .declare-grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(210px, 0.72fr);
    align-items: end;
  }

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

  .page-home .live-rail {
    position: sticky;
    top: 5.6rem;
  }

  .page-home .start-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem;
  }

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

@media (max-width: 899px) {
  .page-home .index-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1.2rem;
  }

  .page-home .index-list li:nth-child(1),
  .page-home .index-list li:nth-child(2) {
    border-top: 1px solid var(--hair);
    margin-top: 0;
  }
}

@media (max-width: 479px) {
  .page-home .timeline-item {
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0.15rem 0.7rem;
    padding-left: 0.7rem;
  }

  .page-home .draw-ball {
    width: 2.15rem;
    height: 2.15rem;
    font-size: 0.92rem;
  }

  .page-home .close-links {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .timeline-item,
  .page-home .stream-link,
  .page-home .close-link,
  .page-home .tag,
  .page-home .rail-switch,
  .page-home .fold-sign::after {
    transition: none;
  }
}
