.page-home {
  --tile-violet: #8B5CF6;
  --tile-pink: #FF6FA5;
  --tile-lime: #C6FF4A;
  --tag-block-bg: #F1EADB;
  --index-bg: #E4F3EC;
  --tile-shadow: 0 8px 20px rgba(58, 28, 97, 0.22);
  --card-shadow: 0 6px 18px rgba(0, 85, 102, 0.18);
  background: var(--page-bg);
}

.page-home .content-container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 20px;
  position: relative;
  z-index: 2;
}

/* ===== 面包屑 ===== */
.page-home .hero-poster .breadcrumb {
  padding: 0 0 22px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.62);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.page-home .hero-poster .breadcrumb a {
  color: var(--accent-green);
  text-decoration: none;
}

.page-home .hero-poster .breadcrumb a:hover {
  color: #fff;
}

.page-home .hero-poster .breadcrumb-sep {
  opacity: 0.6;
}

/* ===== 海报首屏 ===== */
.page-home .hero-poster {
  position: relative;
  overflow: hidden;
  color: var(--text-inverse);
  background-color: var(--deep-purple);
  padding: 28px 0 56px;
}

.page-home .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  pointer-events: none;
}

.page-home .hero-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 107, 53, 0.3), transparent 32%),
    radial-gradient(circle at 88% 68%, rgba(77, 195, 255, 0.22), transparent 30%),
    radial-gradient(circle at 55% 96%, rgba(82, 255, 158, 0.12), transparent 28%);
}

.page-home .hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--accent-green);
  margin: 0 0 14px;
  text-transform: uppercase;
}

.page-home .hero-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 18px;
}

.page-home .hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 5.4vw, 3.6rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 12ch;
  color: #fff;
}

.page-home .hero-title::after {
  content: "";
  display: block;
  width: 108px;
  height: 8px;
  border-radius: 4px;
  background: var(--accent-green);
  margin-top: 12px;
}

.page-home .hero-float-cards {
  display: none;
  flex-shrink: 0;
  gap: 12px;
}

.page-home .mini-card {
  position: relative;
  display: block;
  width: 190px;
  border-radius: var(--radius-card);
  padding: 16px 14px 14px;
  text-decoration: none;
  box-shadow: var(--tile-shadow);
  transform: rotate(1.5deg);
  transition: transform 120ms ease-out, box-shadow 120ms ease-out;
}

.page-home .mini-card--yellow {
  transform: rotate(-2deg);
}

.page-home .mini-card:hover,
.page-home .mini-card:focus-visible {
  transform: rotate(0deg) scale(1.03);
  z-index: 4;
}

.page-home .mini-card--orange {
  background: var(--card-orange);
  color: #fff;
}

.page-home .mini-card--yellow {
  background: var(--card-yellow);
  color: var(--text-primary);
}

.page-home .mini-card-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  opacity: 0.8;
  margin-bottom: 8px;
}

.page-home .mini-card-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.page-home .mini-card-foot {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  opacity: 0.82;
}

.page-home .hero-lead-row {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.page-home .hero-lead {
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  max-width: 78ch;
  margin: 0;
}

.page-home .hero-help-link {
  color: var(--accent-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-home .hero-meta {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
}

.page-home .hero-meta-item {
  display: block;
  text-align: center;
  padding: 10px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-decoration: none;
  color: var(--text-inverse);
}

.page-home .hero-meta-item:hover {
  background: rgba(82, 255, 158, 0.1);
}

.page-home .hero-meta-item strong {
  display: block;
  font-family: var(--font-figure);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--accent-green);
}

.page-home .hero-meta-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.66);
}

.page-home .hero-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.page-home .kw {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 5px 10px 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
}

.page-home a.kw:hover {
  background: var(--accent-green);
  color: var(--text-primary);
  border-color: var(--accent-green);
}

/* ===== 系列磁贴矩阵 ===== */
.page-home .tile-matrix--hero {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 6px;
}

.page-home .tile {
  position: relative;
  display: block;
  min-height: 128px;
  border-radius: 16px;
  padding: 18px 14px 13px;
  box-shadow: var(--tile-shadow);
  text-decoration: none;
  overflow: hidden;
  transition: transform 120ms ease-out, box-shadow 120ms ease-out;
}

.page-home .tile:hover,
.page-home .tile:focus-visible {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 28px rgba(58, 28, 97, 0.3);
}

.page-home .tile-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  opacity: 0.72;
}

.page-home .tile-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.08rem;
  margin: 4px 0 2px;
}

.page-home .tile-count {
  font-family: var(--font-figure);
  font-size: 1.38rem;
  font-weight: 700;
  line-height: 1;
}

.page-home .tile-count small {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  opacity: 0.8;
}

.page-home .tile-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
  margin-top: 6px;
}

.page-home .tile-recents {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1.45;
  margin-top: 8px;
  opacity: 0.8;
  max-height: 0;
  overflow: hidden;
  transition: max-height 120ms ease-out, opacity 120ms ease-out;
}

.page-home .tile:hover .tile-recents,
.page-home .tile:focus-visible .tile-recents,
.page-home .tile:focus .tile-recents {
  max-height: 42px;
  opacity: 1;
}

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

.page-home .tile--yellow {
  background: var(--card-yellow);
  color: var(--text-primary);
}

.page-home .tile--mint {
  background: var(--card-mint);
  color: var(--text-primary);
}

.page-home .tile--baby-blue {
  background: var(--card-baby-blue);
  color: var(--text-primary);
}

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

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

.page-home .tile--pink {
  background: var(--tile-pink);
  color: var(--text-primary);
}

.page-home .tile--lime {
  background: var(--tile-lime);
  color: var(--text-primary);
}

/* ===== 状态徽标与角标 ===== */
.page-home .badge-corner {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1;
  padding: 4px 9px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

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

.page-home .status-badge--updated {
  background: var(--status-updated);
  color: var(--text-primary);
}

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

.page-home .status-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 3px 10px 2px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ===== 分区标题 ===== */
.page-home .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.page-home .section-kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.page-home .section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.7rem;
  line-height: 1.12;
  margin: 0;
}

.page-home .section-more {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-decoration: none;
  border-bottom: 2px solid;
  padding-bottom: 2px;
}

/* ===== 最新收录 ===== */
.page-home .latest-section {
  background: var(--dark-cyan);
  padding: 48px 0 44px;
  color: var(--text-inverse);
}

.page-home .latest-section .section-title {
  color: var(--text-inverse);
}

.page-home .latest-section .section-kicker {
  color: var(--accent-green);
}

.page-home .latest-section .section-more {
  color: var(--accent-green);
  border-color: rgba(82, 255, 158, 0.45);
}

.page-home .latest-section .section-more:hover {
  color: #fff;
  border-color: #fff;
}

.page-home .latest-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 6px 4px 18px 4px;
  scroll-snap-type: x mandatory;
  margin-inline: -4px;
}

.page-home .latest-scroll .card {
  scroll-snap-align: start;
  flex: 0 0 226px;
  max-width: 260px;
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: var(--radius-card);
  overflow: hidden;
  color: var(--text-primary);
  box-shadow: var(--card-shadow);
  transition: transform 120ms ease-out, box-shadow 120ms ease-out;
}

.page-home .latest-scroll .card:hover,
.page-home .latest-scroll .card:focus-visible {
  transform: translateY(-3px) scale(1.02);
}

.page-home .card--orange {
  background: var(--card-orange);
  color: #fff;
}

.page-home .card--yellow {
  background: var(--card-yellow);
  color: var(--text-primary);
}

.page-home .card--mint {
  background: var(--card-mint);
  color: var(--text-primary);
}

.page-home .card--baby-blue {
  background: var(--card-baby-blue);
  color: var(--text-primary);
}

.page-home .card--cyan-card {
  background: var(--dark-cyan);
  color: #fff;
}

.page-home .card--purple-card {
  background: var(--deep-purple);
  color: #fff;
}

.page-home .card-media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 55%);
}

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

.page-home .card-media--geo {
  background:
    radial-gradient(circle at 82% 22%, currentColor 0 4px, transparent 5px),
    radial-gradient(circle at 68% 52%, currentColor 0 7px, transparent 8px),
    linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.28) 100%);
}

.page-home .card-media--geo::before {
  content: "";
  position: absolute;
  width: 72px;
  height: 26px;
  border-radius: 14px;
  background: currentColor;
  opacity: 0.32;
  top: 34%;
  left: 16%;
  transform: rotate(-11deg);
}

.page-home .card-media--geo::after {
  content: "";
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.22;
  top: 20%;
  right: 12%;
}

.page-home .card-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  margin: 12px 14px 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.14);
}

.page-home .card-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1.28;
  margin: 0 14px 5px;
}

.page-home .card-desc {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  opacity: 0.8;
  margin: 0 14px 16px;
}

/* ===== 热门标签 ===== */
.page-home .tags-section {
  padding: 52px 0 56px;
  background: var(--page-bg);
}

.page-home .tags-section .section-kicker {
  color: var(--dark-cyan);
}

.page-home .tags-section .section-more {
  color: var(--deep-purple);
  border-color: rgba(58, 28, 97, 0.35);
}

.page-home .tag-cloud {
  position: relative;
  padding: 28px 22px;
  border-radius: 24px;
  background: var(--tag-block-bg);
  border: 1px solid var(--border-rule);
  overflow: hidden;
  box-shadow: var(--shadow-float);
}

.page-home .tag-cloud-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-home .tag-cloud-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.page-home .tag-group {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.page-home .tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--text-primary);
  background: var(--border-rule);
  transition: transform 120ms ease-out, box-shadow 120ms ease-out;
}

.page-home .tag-chip:hover,
.page-home .tag-chip:focus-visible {
  transform: scale(1.06);
  box-shadow: var(--tile-shadow);
}

.page-home .tag-chip--hot {
  font-size: 1.18rem;
  padding: 11px 18px;
  background: var(--accent-orange-red);
  color: #fff;
}

.page-home .tag-chip--cool {
  background: var(--card-mint);
  font-size: 0.98rem;
}

.page-home .tag-chip--calm {
  background: var(--border-rule);
  font-size: 0.78rem;
}

.page-home .tag-rank {
  background: rgba(0, 0, 0, 0.24);
  color: #fff;
  border-radius: 999px;
  font-size: 0.64rem;
  padding: 2px 7px;
  font-weight: 700;
}

/* ===== 索引总表 ===== */
.page-home .index-section {
  padding: 52px 0 64px;
  background: var(--index-bg);
}

.page-home .index-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.page-home .index-icon-img {
  width: 80px;
  height: 40px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(0, 85, 102, 0.25);
}

.page-home .index-head .section-kicker {
  color: var(--dark-cyan);
}

.page-home .index-head .section-title {
  color: var(--text-primary);
}

.page-home .index-head .btn {
  margin-left: auto;
}

.page-home .h-scroll-table {
  overflow-x: auto;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-float);
  background: #fff;
}

.page-home .data-table {
  width: 100%;
  min-width: 780px;
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--font-body);
  font-size: 0.82rem;
  background: #fff;
}

.page-home .data-table th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-align: left;
  padding: 13px 14px;
  background: var(--deep-purple);
  color: #fff;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.page-home .data-table td {
  padding: 11px 14px;
  border-top: 1px solid var(--border-rule);
  vertical-align: middle;
  color: var(--text-primary);
}

.page-home .data-table tbody tr {
  transition: background 120ms ease-out;
}

.page-home .data-table tbody tr:hover,
.page-home .data-table tbody tr:focus-within {
  background: #F6E7C8;
}

.page-home .data-table tbody tr a {
  color: var(--deep-purple);
  font-weight: 700;
  text-decoration-thickness: 2px;
}

.page-home .data-table tbody tr a:hover {
  color: var(--accent-orange-red);
}

.page-home .row-seq {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #999;
  width: 48px;
}

.page-home .row-tags {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #555;
}

.page-home .row-batch {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  white-space: nowrap;
}

/* ===== 桌面增强 ===== */
@media (min-width: 640px) {
  .page-home .hero-poster {
    padding: 40px 0 64px;
  }

  .page-home .hero-poster .breadcrumb {
    padding-bottom: 28px;
  }

  .page-home .hero-lead-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .page-home .hero-meta {
    width: 330px;
  }

  .page-home .hero-title {
    max-width: 16ch;
  }

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

  .page-home .tile-matrix--hero .tile:nth-child(even) {
    margin-top: 22px;
  }

  .page-home .tile {
    min-height: 138px;
  }

  .page-home .latest-scroll .card {
    flex-basis: 272px;
  }

  .page-home .tag-cloud {
    padding: 38px 32px;
  }

  .page-home .index-icon-img {
    width: 96px;
    height: 48px;
  }
}

@media (min-width: 1024px) {
  .page-home .hero-poster {
    padding: 48px 0 80px;
  }

  .page-home .hero-head-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    margin-bottom: 24px;
  }

  .page-home .hero-float-cards {
    display: grid;
    grid-template-columns: 1fr;
  }

  .page-home .hero-float-cards::after {
    content: "";
    display: block;
    clear: both;
  }

  .page-home .hero-title {
    max-width: 14ch;
  }

  .page-home .hero-lead-row {
    margin-bottom: 22px;
  }

  .page-home .hero-meta {
    width: 400px;
  }

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

  .page-home .latest-scroll .card {
    flex-basis: 304px;
  }

  .page-home .tag-cloud {
    display: grid;
    grid-template-columns: 1fr;
  }

  .page-home .index-head {
    gap: 18px;
  }

  .page-home .data-table th,
  .page-home .data-table td {
    padding: 13px 16px;
  }
}
