.page-home {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

.page-home .container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== 首页窄带标题 ===== */
.page-home .home-strip {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px 22px;
  border-bottom: 2px solid var(--primary);
  background:
    linear-gradient(90deg, rgba(255, 107, 0, 0.14) 0%, rgba(255, 107, 0, 0.02) 42%, transparent 70%),
    var(--bg-card);
}

.page-home .home-strip__en {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
}

.page-home .home-strip__title {
  margin: 0;
  max-width: 80%;
  font-size: clamp(1.6rem, 4vw, 3.25rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  transform: skewX(-5deg);
  transform-origin: left center;
  color: var(--text);
  text-shadow: 0 4px 0 rgba(255, 107, 0, 0.22);
}

.page-home .home-strip__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.page-home .home-strip__jump {
  position: absolute;
  right: 16px;
  bottom: 18px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--primary);
  text-decoration: none;
  border: 1px solid var(--primary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.page-home .home-strip__jump:hover,
.page-home .home-strip__jump:focus {
  background: var(--primary);
  color: #1a1a1a;
}

/* ===== 区块标题通用 ===== */
.page-home .section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 18px;
}

.page-home .section-head__stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .section-head__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.page-home .section-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.2;
  transform: skewX(-3deg);
  transform-origin: left center;
}

.page-home .section-title__index {
  display: inline-block;
  margin-right: 8px;
  font-family: var(--font-mono);
  font-size: 0.72em;
  color: var(--primary);
  vertical-align: 2px;
}

.page-home .section-subtitle {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.page-home .section-subtitle__link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 212, 255, 0.4);
}

.page-home .link-more {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid rgba(0, 212, 255, 0.4);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.page-home .link-more:hover,
.page-home .link-more:focus {
  background: rgba(0, 212, 255, 0.12);
  border-color: var(--accent);
}

.page-home .link-more--solo {
  color: var(--status-live);
  border-color: rgba(255, 214, 0, 0.45);
}

.page-home .link-more--solo:hover,
.page-home .link-more--solo:focus {
  background: rgba(255, 214, 0, 0.1);
  border-color: var(--status-live);
}

/* ===== 01 热门场次 ===== */
.page-home .chart-section {
  padding: 30px 0 40px;
}

.page-home .chart-list {
  display: flex;
  flex-direction: column;
}

.page-home .chart-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 8px 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.page-home .chart-row__index {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--primary);
}

.page-home .chart-row__main {
  min-width: 0;
}

.page-home .chart-row__title {
  margin: 0 0 3px;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
}

.page-home .chart-row__channel {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.page-home .chart-row__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  grid-column: 3;
}

.page-home .chart-row__metric {
  min-width: 0;
  grid-column: 2 / 4;
}

.page-home .chart-row__metric .metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.page-home .chart-row__metric .metric-row span:first-child {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
}

.page-home .metric-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.page-home .metric-bar__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
}

/* ===== 徽标与标签 ===== */
.page-home .badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.page-home .badge--new {
  background: rgba(0, 230, 118, 0.14);
  color: var(--status-new);
  border: 1px solid rgba(0, 230, 118, 0.35);
}

.page-home .badge--live {
  background: rgba(255, 214, 0, 0.12);
  color: var(--status-live);
  border: 1px solid rgba(255, 214, 0, 0.35);
}

.page-home .badge--done {
  background: rgba(255, 93, 177, 0.12);
  color: var(--status-done);
  border: 1px solid rgba(255, 93, 177, 0.35);
}

.page-home .badge--accent {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent);
  border: 1px solid rgba(0, 212, 255, 0.32);
}

.page-home .tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.page-home .tag--orange {
  background: rgba(255, 107, 0, 0.16);
  color: var(--primary);
}

.page-home .tag--cyan {
  background: rgba(0, 212, 255, 0.14);
  color: var(--accent);
}

.page-home .tag--yellow {
  background: rgba(255, 214, 0, 0.14);
  color: var(--status-live);
}

.page-home .tag--pink {
  background: rgba(255, 93, 177, 0.14);
  color: var(--status-done);
}

.page-home .tag--lime {
  background: rgba(192, 255, 0, 0.12);
  color: var(--tag-lime);
}

/* ===== 02 频道栅格 ===== */
.page-home .channel-section {
  background: linear-gradient(135deg, var(--bg-section-purple) 0%, #2b0090 58%, #1a1a1a 100%);
  padding: 42px 0 48px;
}

.page-home .channel-section .section-title {
  color: #ffffff;
}

.page-home .channel-wall {
  columns: 1;
  column-gap: 14px;
  margin-top: 22px;
}

.page-home .channel-card {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.page-home .channel-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--glow-accent);
}

.page-home .channel-card__preview {
  position: relative;
  height: 150px;
  background: linear-gradient(135deg, #242424, #3a3a3a);
}

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

.page-home .channel-card__preview--short {
  height: 118px;
}

.page-home .channel-card__preview--tall {
  height: 186px;
}

.page-home .channel-card__preview--gradient-cyan {
  background: linear-gradient(135deg, #00d4ff 0%, #4a00e0 72%, #1a1a1a 100%);
}

.page-home .channel-card__preview--gradient-amber {
  background: linear-gradient(135deg, #ff6b00 0%, #ff5db1 60%, #4a00e0 130%);
}

.page-home .channel-card__preview--gradient-lime {
  background: linear-gradient(135deg, #c0ff00 0%, #00e676 55%, #0d3b1f 110%);
}

.page-home .channel-card__preview--gradient-magenta {
  background: linear-gradient(135deg, #ff5db1 0%, #4a00e0 70%, #1a1a1a 115%);
}

.page-home .channel-card__quality {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.76);
  border: 1px solid rgba(0, 212, 255, 0.4);
  border-radius: 4px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
}

.page-home .channel-card__body {
  padding: 12px 14px 14px;
}

.page-home .channel-card__title {
  margin: 0 0 8px;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.3;
}

.page-home .channel-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.page-home .channel-card__time {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  white-space: nowrap;
}

/* ===== 03 今日时段表 ===== */
.page-home .schedule-section {
  position: relative;
  overflow: hidden;
  background: var(--bg-section-green);
  padding: 42px 0 52px;
}

.page-home .schedule-section__pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
  pointer-events: none;
}

.page-home .schedule-section .container {
  position: relative;
  z-index: 1;
}

.page-home .schedule-section .section-title {
  color: #ffffff;
}

.page-home .schedule-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 34, 18, 0.82);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}

.page-home .schedule-grid {
  display: grid;
  grid-template-columns: 72px repeat(9, minmax(132px, 1fr));
  min-width: 1160px;
}

.page-home .schedule-grid__cell {
  min-height: 72px;
  padding: 10px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.72rem;
  line-height: 1.45;
  color: #ffffff;
}

.page-home .schedule-grid__cell:last-child {
  border-right: none;
}

.page-home .schedule-grid__cell--head {
  min-height: 40px;
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.04);
}

.page-home .schedule-grid__cell--band {
  display: flex;
  align-items: center;
  font-weight: 900;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.05);
}

.page-home .schedule-grid__cell--live {
  background: rgba(255, 214, 0, 0.16);
  border-top: 2px solid var(--status-live);
}

.page-home .schedule-grid__cell--queued {
  background: rgba(0, 212, 255, 0.07);
}

.page-home .schedule-grid__cell--done {
  background: rgba(255, 93, 177, 0.08);
  border-top: 2px solid rgba(255, 93, 177, 0.4);
}

.page-home .schedule-grid__name {
  display: block;
  font-weight: 800;
  color: var(--text);
}

.page-home .schedule-grid__program {
  display: block;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 2px;
}

.page-home .schedule-grid__status {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--accent);
  background: rgba(0, 212, 255, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
}

.page-home .schedule-grid__cell--live .schedule-grid__status {
  color: var(--status-live);
  background: rgba(255, 214, 0, 0.12);
}

.page-home .schedule-grid__cell--done .schedule-grid__status {
  color: var(--status-done);
  background: rgba(255, 93, 177, 0.12);
}

/* ===== 04 回放归档列表 ===== */
.page-home .archive-section {
  background: var(--bg);
  padding: 44px 0 48px;
}

.page-home .section-head--archive {
  align-items: flex-start;
}

.page-home .filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .filter-tag {
  appearance: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 99px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.page-home .filter-tag:hover,
.page-home .filter-tag:focus {
  border-color: var(--accent);
  color: var(--accent);
}

.page-home .filter-tag[aria-pressed="true"] {
  background: rgba(0, 212, 255, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}

.page-home .filter-empty {
  display: none;
  padding: 24px 0;
  text-align: center;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.page-home .archive-list {
  display: flex;
  flex-direction: column;
  margin-top: 18px;
  border-top: 1px solid var(--border);
}

.page-home .archive-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 10px 12px;
  align-items: center;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.16s ease;
}

.page-home .archive-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.page-home .archive-row__thumb {
  grid-row: 1 / span 2;
  width: 72px;
  height: 54px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-card);
  display: block;
}

.page-home .archive-row__thumb--css {
  background:
    repeating-linear-gradient(90deg, rgba(0, 212, 255, 0.3) 0 3px, transparent 3px 8px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 10px),
    linear-gradient(135deg, #1e1e1e, #2d2d2d);
}

.page-home .archive-row__main {
  min-width: 0;
}

.page-home .archive-row__title {
  margin: 0 0 3px;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.35;
}

.page-home .archive-row__channel {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
}

.page-home .archive-row__tags {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.page-home .archive-row__meta {
  grid-column: 2 / 4;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.page-home .archive-row__chip {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 7px;
  background: rgba(255, 255, 255, 0.02);
}

/* ===== 05 批次更新时间轴 ===== */
.page-home .timeline-section {
  background: linear-gradient(180deg, var(--bg-card) 0%, #1a1a1a 100%);
  padding: 44px 0 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.page-home .timeline-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 20px;
}

.page-home .timeline-layout__art {
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  object-fit: cover;
  justify-self: center;
}

.page-home .timeline {
  position: relative;
  padding-left: 20px;
  border-left: 2px solid var(--primary);
}

.page-home .batch-group {
  position: relative;
  margin-bottom: 30px;
}

.page-home .batch-group::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.18);
}

.page-home .batch-group__marker {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-bottom: 10px;
}

.page-home .batch-group__code {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--primary);
}

.page-home .batch-group__count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  padding: 2px 8px;
  border-radius: 4px;
}

.page-home .batch-group__time {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
}

.page-home .batch-group__cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-home .batch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-decoration: none;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.page-home .batch-card:hover,
.page-home .batch-card:focus {
  border-color: var(--accent);
  background: rgba(0, 212, 255, 0.05);
}

.page-home .batch-card__title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.page-home .back-to-index {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 107, 0, 0.4);
  padding-bottom: 2px;
}

.page-home .back-to-index:hover,
.page-home .back-to-index:focus {
  color: var(--status-live);
  border-bottom-color: var(--status-live);
}

/* ===== 窄屏以上 ===== */
@media (min-width: 640px) {
  .page-home .home-strip {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
  }

  .page-home .home-strip__en {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.64rem;
    margin-right: 8px;
  }

  .page-home .home-strip__title {
    max-width: 62%;
  }

  .page-home .home-strip__jump {
    position: static;
    margin-left: auto;
  }

  .page-home .channel-wall {
    column-count: 2;
  }

  .page-home .archive-row {
    grid-template-columns: 88px 1fr auto;
  }

  .page-home .archive-row__thumb {
    width: 88px;
    height: 66px;
  }

  .page-home .timeline-layout__art {
    max-width: 280px;
  }
}

@media (min-width: 900px) {
  .page-home .chart-row {
    grid-template-columns: 44px minmax(260px, 1fr) minmax(180px, 0.7fr) auto;
    align-items: center;
  }

  .page-home .chart-row__meta {
    grid-column: 4;
  }

  .page-home .chart-row__metric {
    grid-column: 3;
  }

  .page-home .archive-row {
    grid-template-columns: 110px minmax(220px, 1.3fr) minmax(180px, 0.9fr) 1fr;
    align-items: center;
  }

  .page-home .archive-row__thumb {
    grid-row: auto;
    width: 110px;
    height: 78px;
  }

  .page-home .archive-row__meta {
    grid-column: auto;
    justify-content: flex-end;
  }

  .page-home .archive-row__tags {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .page-home .archive-row__chip:last-child {
    margin-right: 0;
  }

  .page-home .timeline-layout {
    grid-template-columns: 240px 1fr;
    gap: 28px;
  }

  .page-home .timeline-layout__art {
    position: sticky;
    top: 88px;
    align-self: start;
    margin-top: 8px;
  }

  .page-home .batch-group__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .page-home .batch-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (min-width: 1200px) {
  .page-home .channel-wall {
    column-count: 4;
  }

  .page-home .home-strip__title {
    max-width: none;
  }
}

@media (min-width: 1400px) {
  .page-home .container {
    padding: 0 24px;
  }
}
