.page-home {
  --home-hero-bg: var(--c-deep-purple);
  --home-tiles-bg: var(--c-dark-orange);
  --home-index-bg: var(--c-ink-green);
  --home-card-w: 160px;
  --home-card-w-lg: 224px;
  --home-stripe: 8px;
}

/* ===== 首屏 ===== */
.page-home .home-hero {
  position: relative;
  background-color: var(--home-hero-bg);
  color: var(--c-cream);
  padding: 20px 0 36px;
  overflow: hidden;
  border-bottom: var(--home-stripe) solid var(--c-pink);
}

.page-home .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.32;
  pointer-events: none;
}

.page-home .hero-bg__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .home-hero .content-wrap {
  position: relative;
  z-index: 1;
}

.page-home .hero-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--c-cream);
  margin-bottom: 8px;
}

.page-home .hero-topline__total {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 4px 12px;
  border-radius: 999px;
}

.page-home .hero-topline__total b {
  color: var(--c-yellow);
  font-weight: 700;
}

.page-home .hero-topline__batch {
  background: var(--c-pink);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
}

.page-home .hero-topline__catalog {
  margin-left: auto;
  color: var(--c-cream);
  text-decoration: none;
  border-bottom: 2px solid var(--c-pink);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-home .hero-topline__catalog:hover {
  color: var(--c-pink);
  border-color: var(--c-cream);
}

.page-home .hero-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 8vw, 4.4rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 12px 0 8px;
  background: linear-gradient(90deg, var(--c-cream) 60%, var(--c-yellow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-home .hero-sub {
  font-family: var(--font-head);
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 600;
  color: var(--c-yellow);
  margin: 0 0 20px;
  letter-spacing: 0.02em;
}

/* ===== 首屏 Tabs ===== */
.page-home .hero-tabs {
  margin-top: 20px;
}

.page-home .tabs__list {
  display: flex;
  gap: 6px;
  border-bottom: 3px solid rgba(255, 255, 255, 0.18);
  margin-bottom: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.page-home .tabs__tab {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  padding: 10px 18px 12px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: rgba(245, 240, 230, 0.7);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.page-home .tabs__tab:hover {
  color: var(--c-cream);
}

.page-home .tabs__tab.is-active,
.page-home .tabs__tab[aria-selected="true"] {
  color: var(--c-pink);
  border-bottom-color: var(--c-pink);
  background: rgba(255, 42, 157, 0.08);
}

.page-home .tabs__panel[hidden] {
  display: none;
}

/* ===== 筛选条 ===== */
.page-home .filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.page-home .filter-bar__label {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--c-cream);
  opacity: 0.85;
}

.page-home .tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--c-cream);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.22);
  white-space: nowrap;
}

.page-home .tag-chip.is-active {
  background: var(--c-pink);
  border-color: var(--c-pink);
  color: #fff;
}

.page-home .tag-chip--yellow {
  background: var(--c-yellow);
  color: var(--c-dark);
  border-color: var(--c-yellow);
}

.page-home .tag-chip--coral {
  background: var(--c-coral);
  color: var(--c-dark);
  border-color: var(--c-coral);
}

.page-home .tag-chip--teal {
  background: var(--c-teal);
  color: #fff;
  border-color: var(--c-teal);
}

/* ===== 卡片墙 ===== */
.page-home .card-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 4px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--c-pink) rgba(255, 255, 255, 0.15);
}

.page-home .card-strip .media-card {
  flex: 0 0 var(--home-card-w);
  scroll-snap-align: start;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  color: var(--c-dark);
}

.page-home .card-strip .media-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.page-home .media-card__cover {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.1);
}

.page-home .media-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.page-home .card-strip .media-card:hover .media-card__cover img {
  transform: scale(1.06);
}

.page-home .media-card__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--c-dark);
  color: var(--c-cream);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.page-home .media-card__type {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: rgba(34, 34, 34, 0.82);
  color: var(--c-cream);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
}

.page-home .media-card__body {
  padding: 10px 12px 12px;
}

.page-home .media-card__title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 6px;
  line-height: 1.3;
  color: inherit;
}

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

.page-home .media-card__year {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
}

.page-home .status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.page-home .status-badge--updating {
  background: var(--c-blue);
  color: #fff;
}

.page-home .status-badge--complete {
  background: var(--c-emerald);
  color: #fff;
}

.page-home .status-badge--pending {
  background: var(--c-gray);
  color: var(--c-cream);
}

/* ===== 热门榜单 ===== */
.page-home .hot-leader {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  border-left: 6px solid var(--c-pink);
}

.page-home .hot-leader img {
  border-radius: 8px;
}

.page-home .hot-leader__text {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--c-cream);
}

.page-home .hot-leader__note {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: rgba(245, 240, 230, 0.65);
  margin-left: auto;
}

.page-home .row-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .row-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 6px;
  border-bottom: 1px solid var(--row-line);
  border-radius: 6px;
  transition: background 0.2s ease;
}

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

.page-home .row-item__index {
  flex: 0 0 32px;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-pink);
}

.page-home .row-item__title {
  flex: 1 1 auto;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-cream);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-home .row-item__meta {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(245, 240, 230, 0.75);
  flex: 0 0 auto;
}

.page-home .row-item__type {
  display: none;
}

.page-home .row-item__bar {
  flex: 0 1 76px;
  min-width: 56px;
}

.page-home .row-item .metric-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-home .row-item .metric-bar__track {
  flex: 1 1 auto;
  display: block;
  height: 5px;
  background: var(--track-bg);
  border-radius: 999px;
  overflow: hidden;
}

.page-home .row-item .metric-bar__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--c-pink), var(--c-yellow));
  border-radius: 999px;
}

.page-home .row-item .metric-bar__num {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-yellow);
}

.page-home .row-item__status {
  flex: 0 0 auto;
}

/* ===== 分类磁贴 ===== */
.page-home .home-tiles {
  border-bottom: var(--home-stripe) solid var(--c-yellow);
}

.page-home .section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-top: 34px;
}

.page-home .section-head__title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--c-cream);
  margin: 0;
  line-height: 1.1;
}

.page-home .section-head__count {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--c-pink);
  background: rgba(255, 255, 255, 0.14);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
}

.page-home .section-head__note {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(245, 240, 230, 0.7);
  transform: rotate(0deg);
  letter-spacing: 0.05em;
}

.page-home .section-head__link {
  margin-left: auto;
  color: var(--c-yellow);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--c-yellow);
  padding-bottom: 2px;
  white-space: nowrap;
}

.page-home .section-head__link:hover {
  color: var(--c-pink);
  border-color: var(--c-pink);
}

.page-home .tile-group {
  margin-bottom: 28px;
}

.page-home .tile-group__title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--c-cream);
  margin: 0 0 12px;
  padding-left: 12px;
  border-left: 6px solid var(--c-pink);
}

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

.page-home .tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 15px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--c-dark);
  border: 3px solid rgba(0, 0, 0, 0.16);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 84px;
}

.page-home .tile:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.page-home .tile__name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
}

.page-home .tile__count {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

.page-home .tile__note {
  font-size: 0.8rem;
  color: rgba(34, 34, 34, 0.75);
  font-weight: 600;
}

.page-home .tile--yellow {
  background: var(--c-yellow);
}

.page-home .tile--coral {
  background: var(--c-coral);
}

.page-home .tile--teal {
  background: var(--c-teal);
  color: #fff;
}

.page-home .tile--teal .tile__note {
  color: rgba(255, 255, 255, 0.78);
}

/* ===== 索引条 + 时间轴 ===== */
.page-home .home-index {
  border-bottom: var(--home-stripe) solid var(--c-pink);
}

.page-home .index-batch-grid {
  display: block;
  padding-bottom: 26px;
}

.page-home .index-zone,
.page-home .timeline-zone {
  min-width: 0;
}

.page-home .index-strips {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

.page-home .index-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.page-home .index-strip__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--chip-bg);
  color: var(--c-cream);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.page-home .index-strip__item:hover {
  background: var(--c-pink);
  border-color: var(--c-pink);
  color: #fff;
  transform: translateY(-2px);
}

.page-home .index-help {
  margin-top: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  border-left: 6px solid var(--c-teal);
}

.page-home .index-help__text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(245, 240, 230, 0.85);
  margin: 0;
}

/* ===== 批次列表 ===== */
.page-home .batch-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .batch-item {
  position: relative;
  padding: 16px 0 16px 20px;
  border-left: 3px solid rgba(255, 255, 255, 0.25);
}

.page-home .batch-item + .batch-item {
  margin-top: 4px;
}

.page-home .batch-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 22px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--c-pink);
  border: 2px solid var(--c-cream);
}

.page-home .batch-item__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.page-home .batch-item__date {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--c-yellow);
  font-size: 0.95rem;
}

.page-home .batch-item__count {
  font-family: var(--font-mono);
  background: var(--c-pink);
  color: #fff;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
}

.page-home .batch-item__desc {
  margin: 0 0 8px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(245, 240, 230, 0.9);
}

.page-home .batch-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.page-home .home-help {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.page-home .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid transparent;
}

.page-home .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.page-home .btn--primary {
  background: var(--c-pink);
  color: #fff;
  border-color: var(--c-pink);
}

.page-home .btn--secondary {
  background: transparent;
  color: var(--c-cream);
  border-color: var(--c-cream);
}

/* ===== 桌面增强 ===== */
@media (min-width: 768px) {
  .page-home .home-hero {
    padding: 28px 0 48px;
  }

  .page-home .card-strip .media-card {
    flex-basis: var(--home-card-w-lg);
  }

  .page-home .row-item__type {
    display: inline;
  }

  .page-home .row-item {
    gap: 16px;
    padding: 13px 10px;
  }

  .page-home .row-item__index {
    flex-basis: 44px;
  }

  .page-home .row-item__bar {
    flex: 0 0 160px;
    max-width: 160px;
  }

  .page-home .tile-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }

  .page-home .tile {
    padding: 18px 16px;
    min-height: 100px;
  }

  .page-home .tile-group--decade .tile-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .page-home .hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
  }

  .page-home .hero-topline {
    font-size: 1rem;
  }

  .page-home .tile-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-home .tile-group--region .tile-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .tile-group--decade .tile-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-home .index-batch-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 44px;
  }

  .page-home .index-zone,
  .page-home .timeline-zone {
    padding-top: 8px;
  }

  .page-home .index-strip__item {
    min-width: 38px;
    height: 38px;
  }
}
