.page-home {
  --page-blue-deep: #22313f;
  --page-panel-dark: #171717;
  --page-mosaic-gap: 0.75rem;
}

.page-home .wrap {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

/* ---------- 面包屑 ---------- */
.page-home .breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.page-home .crumb + .crumb::before {
  content: " / ";
  color: var(--archive);
  margin: 0 0.4rem;
}

/* ---------- 首屏 Hero ---------- */
.page-home .page-hero {
  background:
    linear-gradient(rgba(13,13,13,0.92), rgba(26,26,26,0.98)),
    repeating-linear-gradient(135deg, rgba(155,89,182,0.08) 0 2px, transparent 2px 18px);
  padding: 2.5rem 1.25rem;
  min-height: 60vh;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  position: relative;
  overflow: hidden;
}
.page-home .hero-copy {
  max-width: 560px;
}
.page-home .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--yellow);
  border: 1px solid var(--line);
  padding: 0.4rem 0.85rem;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  background: rgba(26,26,26,0.6);
  text-shadow: 0 0 10px rgba(241,196,15,0.35);
}
.page-home .hero-title {
  margin: 1.1rem 0 0.85rem;
  font-size: clamp(1.85rem, 5vw, 3.6rem);
  line-height: 1.12;
  color: var(--white);
  text-shadow: 0 0 18px rgba(230,126,34,0.55), 0 0 42px rgba(155,89,182,0.25);
  text-transform: uppercase;
  font-weight: 900;
}
.page-home .hero-lead {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 50ch;
  margin-bottom: 1.5rem;
}
.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ---------- 磁贴矩阵 ---------- */
.page-home .mosaic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--page-mosaic-gap);
}
.page-home .mosaic-cell--large {
  grid-column: 1 / -1;
}
.page-home .mosaic-cell--wide {
  grid-column: 1 / -1;
}
.page-home .tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 118px;
  padding: 1rem;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
  overflow: hidden;
}
.page-home .tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.5), 0 0 24px rgba(255,255,255,0.08);
}
.page-home .tile--large,
.page-home .mosaic-cell--large {
  min-height: 190px;
}
.page-home .tile-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  transition: opacity 0.25s ease, transform 0.35s ease;
}
.page-home .tile:hover .tile-bg {
  opacity: 0.38;
  transform: scale(1.04);
}
.page-home .tile-frame {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.page-home .tile-name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.45rem;
  letter-spacing: 2px;
  color: var(--white);
  text-shadow: 0 0 10px currentColor;
}
.page-home .tile-num {
  font-family: var(--font-num);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}
.page-home .tile-num small {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.85);
  margin-left: 0.3rem;
  font-weight: 400;
}
.page-home .tile-arch {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.4px;
}
.page-home .tile-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.7rem;
}
.page-home .tile-tags .tag {
  font-size: 0.78rem;
  padding: 0.16rem 0.55rem;
}

/* ---------- 区块通用 ---------- */
.page-home .section {
  padding: 3.2rem 1.25rem;
}
.page-home .section-head {
  margin-bottom: 2rem;
}
.page-home .section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.page-home .section-kicker {
  font-size: 0.82rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.4rem;
  text-shadow: 0 0 10px rgba(241,196,15,0.3);
}
.page-home .section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.page-home .section-head-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- 频道栅格 ---------- */
.page-home .channel-section {
  background: var(--panel);
}
.page-home .channel-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.page-home .content-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
}
.page-home .content-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45), 0 0 20px rgba(230,126,34,0.12);
}
.page-home .card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.page-home .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.page-home .content-card:hover .card-media img {
  transform: scale(1.04);
}
.page-home .res-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: rgba(13,13,13,0.82);
  color: var(--yellow);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.22rem 0.55rem;
  border: 1px solid rgba(241,196,15,0.65);
  border-radius: 4px;
  letter-spacing: 1px;
  z-index: 1;
}
.page-home .card-body {
  padding: 0.9rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.page-home .card-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
}
.page-home .card-title a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.15s ease;
}
.page-home .card-title a:hover {
  color: var(--primary);
}
.page-home .card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

/* ---------- 时段表 ---------- */
.page-home .schedule-section {
  background:
    linear-gradient(rgba(44,62,80,0.96), rgba(34,49,63,0.98)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 26px);
  color: var(--white);
}
.page-home .schedule-section .section-head-meta {
  color: rgba(245,245,245,0.72);
}
.page-home .date-tabs-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.page-home .tab-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.page-home .tab-bar {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.3rem;
  background: rgba(0,0,0,0.32);
  border-radius: 999px;
  border: 1px solid var(--line);
}
.page-home .tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--muted);
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}
.page-home .tab-radio:focus-visible + .tab-bar .tab-btn {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}
.page-home #tab-today:checked ~ .tab-bar .tab-btn[for="tab-today"],
.page-home #tab-tomorrow:checked ~ .tab-bar .tab-btn[for="tab-tomorrow"] {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 14px rgba(230,126,34,0.5);
}
.page-home .tab-panel--today {
  display: block;
}
.page-home .tab-panel--tomorrow {
  display: none;
}
.page-home #tab-tomorrow:checked ~ .tab-panel--today {
  display: none;
}
.page-home #tab-tomorrow:checked ~ .tab-panel--tomorrow {
  display: block;
}
.page-home .schedule-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0,0,0,0.22);
}
.page-home .schedule-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
}
.page-home .schedule-table th,
.page-home .schedule-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  white-space: nowrap;
}
.page-home .schedule-table th {
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--yellow);
  background: rgba(255,255,255,0.04);
}
.page-home .schedule-table tbody tr:last-child td {
  border-bottom: 0;
}
.page-home .schedule-table tbody tr:hover td {
  background: rgba(255,255,255,0.035);
}
.page-home .state-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.45rem;
  vertical-align: middle;
}
.page-home .state-dot--live {
  background: var(--live);
  box-shadow: 0 0 8px var(--live);
}
.page-home .state-dot--done {
  background: var(--archive);
}
.page-home .state-dot--archive {
  background: var(--teal);
  box-shadow: 0 0 6px rgba(26,188,156,0.6);
}

/* ---------- 回放归档 ---------- */
.page-home .archive-section {
  background: var(--bg);
}
.page-home .index-bar {
  display: flex;
  gap: 4px;
  width: min(200px, 100%);
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
  align-self: center;
}
.page-home .index-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--yellow));
  box-shadow: 0 0 8px rgba(26,188,156,0.5);
}
.page-home .entry-list {
  border-top: 1px solid var(--line);
}
.page-home .entry-row {
  display: grid;
  grid-template-columns: 2.2rem 1fr auto 2.4rem;
  gap: 0.85rem;
  align-items: center;
  padding: 0.9rem 0.4rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}
.page-home .entry-row:hover {
  background: rgba(255,255,255,0.035);
}
.page-home .entry-rank {
  font-family: var(--font-num);
  font-weight: 700;
  color: var(--archive);
  font-size: 0.95rem;
}
.page-home .entry-main {
  min-width: 0;
}
.page-home .entry-title {
  display: block;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
}
.page-home .entry-title:hover {
  color: var(--primary);
}
.page-home .entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.2rem;
}
.page-home .entry-time {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}
.page-home .entry-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  color: var(--white);
  background: var(--primary);
  box-shadow: 0 0 12px rgba(230,126,34,0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.page-home .entry-play:hover {
  transform: scale(1.08);
  box-shadow: 0 0 22px rgba(230,126,34,0.7);
}
.page-home .entry-play svg {
  display: block;
  margin-left: 2px;
}

/* ---------- 热门场次榜 ---------- */
.page-home .hot-section {
  background: var(--bg-deep);
  position: relative;
}
.page-home .hot-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(230,126,34,0.045) 0 3px, transparent 3px 14px);
  pointer-events: none;
}
.page-home .rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.page-home .rank-row {
  display: grid;
  grid-template-columns: 2.4rem 1fr minmax(110px, 150px);
  gap: 0.85rem;
  align-items: center;
  padding: 0.9rem 0.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  transition: background 0.15s ease;
}
.page-home .rank-row:hover {
  background: rgba(255,255,255,0.04);
}
.page-home .rank-thumb {
  display: none;
  color: var(--violet);
  justify-self: center;
  align-self: stretch;
  align-items: center;
}
.page-home .rank-num {
  font-family: var(--font-num);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--archive);
  text-align: center;
  line-height: 1;
}
.page-home .rank-num--top {
  font-size: 1.95rem;
  color: var(--primary);
  text-shadow: 0 0 14px rgba(230,126,34,0.55);
}
.page-home .rank-body {
  min-width: 0;
}
.page-home .rank-title {
  display: block;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
}
.page-home .rank-title:hover {
  color: var(--primary);
}
.page-home .rank-source {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.2rem;
}
.page-home .metric {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: flex-end;
}
.page-home .metric-track {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  overflow: hidden;
  min-width: 48px;
}
.page-home .metric-bar {
  height: 100%;
  border-radius: inherit;
}
.page-home .metric-text {
  font-family: var(--font-num);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  min-width: 2ch;
  text-align: right;
}

/* ---------- 更新机制说明 ---------- */
.page-home .update-section {
  background:
    linear-gradient(rgba(44,62,80,0.96), rgba(34,49,63,0.98)),
    radial-gradient(circle at 85% 20%, rgba(155,89,182,0.18), transparent 55%);
  color: var(--white);
}
.page-home .update-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.2rem;
}
.page-home .update-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  font-size: 0.96rem;
}
.page-home .update-dot {
  width: 7px;
  height: 7px;
  background: var(--teal);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(26,188,156,0.62);
  flex-shrink: 0;
}

/* ---------- 桌面端 ---------- */
@media (min-width: 768px) {
  .page-home .wrap {
    padding: 0 1rem;
  }
  .page-home .page-hero {
    padding: 3rem 1.5rem;
    gap: 2rem;
  }
  .page-home .mosaic-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(112px, auto);
    grid-auto-flow: dense;
    gap: 1rem;
  }
  .page-home .mosaic-cell--large {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 0;
  }
  .page-home .mosaic-cell--wide {
    grid-column: span 2;
    min-height: 0;
  }
  .page-home .channel-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-home .schedule-section {
    padding: 3.6rem 1.5rem;
  }
  .page-home .rank-thumb {
    display: flex;
  }
  .page-home .rank-row:nth-child(n + 4) .rank-thumb {
    display: none;
  }
}

@media (min-width: 1024px) {
  .page-home .page-hero {
    grid-template-columns: minmax(280px, 380px) 1fr;
    align-items: center;
    padding: 0 3rem;
    min-height: 68vh;
  }
  .page-home .hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .page-home .hero-title {
    font-size: clamp(2.1rem, 4vw, 3.3rem);
  }
  .page-home .mosaic-grid {
    gap: 1.15rem;
  }
  .page-home .section {
    padding: 4.2rem 2rem;
  }
  .page-home .channel-card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  .page-home .channel-card-grid .content-card:nth-child(2),
  .page-home .channel-card-grid .content-card:nth-child(5),
  .page-home .channel-card-grid .content-card:nth-child(8) {
    transform: translateY(1rem);
  }
  .page-home .schedule-table {
    min-width: 720px;
  }
  .page-home .archive-section {
    display: grid;
  }
  .page-home .entry-row {
    padding: 1rem 0.6rem;
  }
  .page-home .rank-row {
    grid-template-columns: 3.2rem 1.2fr 2fr minmax(160px, 220px);
    padding: 1rem 0.6rem;
  }
  .page-home .rank-thumb {
    grid-column: 1;
    grid-row: 1;
  }
  .page-home .rank-num {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
  }
  .page-home .rank-body {
    grid-column: 3;
    grid-row: 1;
  }
  .page-home .metric {
    grid-column: 4;
    grid-row: 1;
  }
  .page-home .update-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.2rem 2.5rem;
  }
  .page-home .update-section {
    padding: 3.6rem 3rem;
  }
}
