.page-home {
  --ph-line: rgba(79, 195, 247, 0.16);
  --ph-card: rgba(17, 20, 24, 0.78);
  --ph-panel: rgba(13, 32, 51, 0.86);
  position: relative;
  display: block;
  overflow-x: clip;
  background:
    radial-gradient(1100px 640px at 84% -10%, rgba(255, 107, 26, 0.14), transparent 62%),
    radial-gradient(900px 560px at 6% 22%, rgba(79, 195, 247, 0.1), transparent 60%),
    var(--ink);
  color: var(--text);
  font-family: var(--font-body);
}

/* ============ 首屏 ============ */
.page-home .hero {
  position: relative;
  padding: clamp(1.4rem, 3.6vw, 2.6rem) 0 clamp(2.4rem, 6vw, 4.6rem);
  overflow: hidden;
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(79, 195, 247, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(79, 195, 247, 0.09) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 78%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 78%);
}

.page-home .hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
}

.page-home .hero-copy {
  display: grid;
  align-content: start;
  gap: 0.95rem;
}

.page-home .hero-copy .breadcrumb {
  margin-bottom: 0.1rem;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.3rem;
}

.page-home .hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  margin: 0.7rem 0 0;
  padding-top: 1.15rem;
  border-top: 1px solid var(--ph-line);
}

.page-home .hero-stat dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.page-home .hero-stat dd {
  margin: 0.28rem 0 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.1vw, 1.42rem);
  color: var(--text);
}

.page-home .hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--ph-line);
  box-shadow: var(--shadow-card);
  background: var(--char);
  isolation: isolate;
}

.page-home .hero-photo {
  margin: 0;
  aspect-ratio: 4 / 3;
}

.page-home .hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.04);
}

.page-home .hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 26, 47, 0.15) 0%, rgba(7, 15, 26, 0.82) 100%);
}

.page-home .stand-arc {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-home .arc {
  position: absolute;
  left: -14%;
  right: -14%;
  border-radius: 50% 50% 0 0 / 62% 62% 0 0;
  border: 2px solid rgba(79, 195, 247, 0.42);
  border-bottom: none;
  box-shadow: 0 -10px 34px -14px rgba(79, 195, 247, 0.55);
}

.page-home .arc-1 {
  bottom: 0;
  height: 74%;
  animation: ph-arc 3.8s ease-in-out infinite;
}

.page-home .arc-2 {
  bottom: 0;
  height: 54%;
  animation: ph-arc 3.8s ease-in-out 0.7s infinite;
}

.page-home .arc-3 {
  bottom: 0;
  height: 34%;
  animation: ph-arc 3.8s ease-in-out 1.4s infinite;
}

@keyframes ph-arc {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.page-home .live-chip {
  position: absolute;
  left: clamp(0.85rem, 3vw, 1.5rem);
  bottom: clamp(0.85rem, 3vw, 1.5rem);
  z-index: 2;
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem 1.15rem;
  border-radius: var(--radius);
  background: rgba(7, 15, 26, 0.86);
  border: 1px solid var(--line-strong);
  transform: skewX(-3deg);
}

.page-home .live-chip__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--ice);
}

.page-home .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grass);
  animation: ph-dot 2.1s ease-out infinite;
}

@keyframes ph-dot {
  0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.55); }
  100% { box-shadow: 0 0 0 12px rgba(46, 204, 113, 0); }
}

.page-home .live-chip__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.5rem, 4.4vw, 2rem);
  color: var(--orange);
  line-height: 1.1;
}

.page-home .live-chip__meta {
  font-size: 0.76rem;
  color: var(--text-soft);
}

/* ============ 区块基础 ============ */
.page-home .section {
  position: relative;
  padding: clamp(2.6rem, 6vw, 5rem) 0;
}

.page-home .block-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.4rem);
}

.page-home .block-head__text {
  display: grid;
  gap: 0.55rem;
}

.page-home .section-index {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
}

.page-home .display--sm {
  font-size: clamp(1.55rem, 3.6vw, 2.55rem);
}

/* ============ 积分榜 ============ */
.page-home .board {
  border-top: 1px solid var(--line-soft);
}

.page-home .league-switch {
  position: relative;
}

.page-home .league-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-home .league-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.3rem;
  margin-bottom: 1.1rem;
  border-radius: var(--pill);
  border: 1px solid var(--ph-line);
  background: rgba(17, 20, 24, 0.72);
}

.page-home .league-tab {
  cursor: pointer;
  padding: 0.45rem 1.05rem;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  user-select: none;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.page-home .league-tab:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.page-home #lg-foot:checked ~ .league-tabs label[for="lg-foot"],
.page-home #lg-basket:checked ~ .league-tabs label[for="lg-basket"],
.page-home #lg-volley:checked ~ .league-tabs label[for="lg-volley"] {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
  font-weight: 700;
}

.page-home #lg-foot:focus-visible ~ .league-tabs label[for="lg-foot"],
.page-home #lg-basket:focus-visible ~ .league-tabs label[for="lg-basket"],
.page-home #lg-volley:focus-visible ~ .league-tabs label[for="lg-volley"] {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

.page-home .league-panel {
  display: none;
}

.page-home .league-panel--foot {
  display: block;
}

.page-home #lg-basket:checked ~ .league-panels .league-panel--foot,
.page-home #lg-volley:checked ~ .league-panels .league-panel--foot {
  display: none;
}

.page-home #lg-basket:checked ~ .league-panels .league-panel--basket,
.page-home #lg-volley:checked ~ .league-panels .league-panel--volley {
  display: block;
}

.page-home .board-head,
.page-home .board-row {
  display: grid;
  grid-template-columns: 2.3rem minmax(0, 1fr) 2.6rem 3rem 2.6rem;
  align-items: center;
  gap: 0.35rem;
}

.page-home .board-head {
  padding: 0 0.75rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  border-bottom: 1px solid var(--ph-line);
}

.page-home .board-head span:not(:nth-child(2)) {
  text-align: right;
}

.page-home .board-list {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.page-home .board-row {
  padding: 0.7rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--ph-card);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.page-home .board-row:hover {
  transform: translateY(-4px);
  border-color: var(--ice);
  background: var(--ph-panel);
}

.page-home .board-rank {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.page-home .board-row:first-child .board-rank {
  color: var(--orange);
  font-weight: 700;
}

.page-home .board-team {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-home .board-pld,
.page-home .board-pts,
.page-home .board-delta {
  font-family: var(--font-mono);
  text-align: right;
}

.page-home .board-pld {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.page-home .board-pts {
  font-weight: 700;
  color: var(--text);
}

.page-home .board-delta {
  font-size: 0.8rem;
}

.page-home .board-delta.is-up { color: var(--grass); }
.page-home .board-delta.is-down { color: var(--orange); }
.page-home .board-delta.is-flat { color: var(--muted); }

/* ============ 本地案例 ============ */
.page-home .cases {
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(17, 20, 24, 0.5), transparent 42%);
}

.page-home .cases-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.2rem, 3vw, 2rem);
}

.page-home .cases-list {
  display: grid;
  gap: 0.9rem;
}

.page-home .case-card {
  position: relative;
  padding: 1.15rem 1.2rem 1.2rem 3.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--ph-line);
  background: linear-gradient(135deg, rgba(22, 27, 34, 0.95), rgba(13, 32, 51, 0.82));
  transform: skewX(-1.4deg);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.page-home .case-card:nth-child(even) {
  transform: skewX(1.4deg);
  background: linear-gradient(135deg, rgba(13, 32, 51, 0.9), rgba(22, 27, 34, 0.9));
}

.page-home .case-card:hover {
  border-color: var(--ice);
}

.page-home .case-card:nth-child(odd):hover { transform: skewX(-1.4deg) translateY(-4px); }
.page-home .case-card:nth-child(even):hover { transform: skewX(1.4deg) translateY(-4px); }

.page-home .case-idx {
  position: absolute;
  left: 1.05rem;
  top: 1.05rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ice);
}

.page-home .case-card .card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.page-home .case-card .card-text {
  margin-top: 0.45rem;
  font-size: 0.94rem;
  line-height: 1.72;
  color: var(--text-soft);
}

.page-home .case-card .card-meta {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

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

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

.page-home .cases-figure .media-caption,
.page-home .weekend-figure .media-caption,
.page-home .sub-figure .media-caption {
  display: block;
  padding: 0.75rem 1rem;
  background: rgba(17, 20, 24, 0.9);
  font-size: 0.84rem;
  color: var(--text-soft);
}

.page-home .cases-foot {
  display: grid;
  gap: 0.9rem;
  margin-top: clamp(1.4rem, 3vw, 2rem);
  justify-items: start;
}

.page-home .cases-foot .note {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 46ch;
}

/* ============ 周末连看 ============ */
.page-home .weekend {
  border-top: 1px solid var(--line-soft);
}

.page-home .weekend-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.4rem, 3.5vw, 2.4rem);
}

.page-home .timeline {
  list-style: none;
  position: relative;
  margin: 0;
  padding: 0 0 0 1.35rem;
  display: grid;
  gap: 1rem;
}

.page-home .timeline::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--orange), var(--ice), transparent);
}

.page-home .tl-item {
  position: relative;
}

.page-home .tl-item::before {
  content: "";
  position: absolute;
  left: -1.19rem;
  top: 1.35rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--ice);
}

.page-home .tl-check {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.page-home .tl-card {
  display: grid;
  gap: 0.5rem;
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--ph-line);
  background: var(--ph-card);
  transition: border-color 0.22s ease, transform 0.22s ease;
}

.page-home .tl-check:checked + .tl-card {
  border-color: var(--grass);
  transform: translateX(3px);
}

.page-home .tl-check:focus-visible + .tl-card {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

.page-home .tl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.page-home .tl-time {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  color: var(--ice);
}

.page-home .tl-card .card-title {
  font-size: 1.02rem;
  font-weight: 700;
}

.page-home .tl-card .card-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-soft);
}

.page-home .tl-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  margin-top: 0.2rem;
  padding: 0.42rem 1rem 0.42rem 0.7rem;
  border-radius: var(--pill);
  border: 1px solid var(--line-strong);
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-soft);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.page-home .tl-toggle:hover {
  border-color: var(--orange);
  color: var(--text);
}

.page-home .tl-box {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 1.5px solid var(--ice);
  display: inline-grid;
  place-items: center;
}

.page-home .tl-box::after {
  content: "";
  width: 7px;
  height: 4px;
  margin-top: -2px;
  border-left: 2px solid var(--ink-deep);
  border-bottom: 2px solid var(--ink-deep);
  transform: rotate(-45deg);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.page-home .tl-check:checked + .tl-card .tl-box {
  background: var(--grass);
  border-color: var(--grass);
}

.page-home .tl-check:checked + .tl-card .tl-box::after {
  opacity: 1;
}

.page-home .tl-check:checked + .tl-card .tl-toggle {
  border-color: var(--grass);
  color: var(--grass);
}

.page-home .tl-when-on {
  display: none;
}

.page-home .tl-check:checked + .tl-card .tl-when-off {
  display: none;
}

.page-home .tl-check:checked + .tl-card .tl-when-on {
  display: inline;
}

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

.page-home .weekend-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

/* ============ 订阅 ============ */
.page-home .subscribe {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(760px 420px at 18% 0%, rgba(255, 107, 26, 0.16), transparent 62%),
    radial-gradient(620px 380px at 88% 90%, rgba(79, 195, 247, 0.12), transparent 62%),
    rgba(7, 15, 26, 0.75);
}

.page-home .sub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
}

.page-home .sub-copy {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.page-home .sub-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.page-home .sub-list li {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr);
  gap: 0.7rem;
  padding: 0.72rem 0.95rem;
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--ice);
  background: rgba(22, 27, 34, 0.66);
  font-size: 0.93rem;
  line-height: 1.68;
  color: var(--text-soft);
}

.page-home .sub-list strong {
  align-self: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.page-home .sub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

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

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

/* ============ 宽屏 ============ */
@media (min-width: 620px) {
  .page-home .hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 780px) {
  .page-home .block-head {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
  }

  .page-home .cases-foot {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-items: start;
  }
}

@media (min-width: 900px) {
  .page-home .cases-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: start;
  }

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

  .page-home .sub-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
  }
}

@media (min-width: 960px) {
  .page-home .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
  }

  .page-home .hero-photo {
    aspect-ratio: 5 / 4;
  }
}

/* ============ 窄屏护栏 ============ */
@media (max-width: 480px) {
  .page-home .live-chip {
    padding: 0.65rem 0.85rem;
  }

  .page-home .case-card {
    padding: 1.05rem 1rem 1.1rem 1rem;
    transform: none;
  }

  .page-home .case-card:nth-child(even) {
    transform: none;
  }

  .page-home .case-card:nth-child(odd):hover,
  .page-home .case-card:nth-child(even):hover {
    transform: translateY(-4px);
  }

  .page-home .case-idx {
    position: static;
    display: block;
    margin-bottom: 0.35rem;
  }

  .page-home .sub-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .arc,
  .page-home .dot {
    animation: none;
  }

  .page-home .board-row,
  .page-home .case-card,
  .page-home .tl-card,
  .page-home .tl-toggle,
  .page-home .league-tab {
    transition: none;
  }

  .page-home .board-row:hover,
  .page-home .case-card:hover,
  .page-home .tl-check:checked + .tl-card {
    transform: none;
  }
}
