.page-home {
  --tile-gap: 10px;
  --card-radius: 14px;
  --tile-min-h: 92px;
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
}

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

.page-home .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon);
}

.page-home .kicker-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.7);
}

.page-home .wall-heading {
  margin-bottom: 32px;
}

.page-home .wall-heading h1,
.page-home .wall-heading h2 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  transform: skewX(-2deg);
}

.page-home .wall-heading h1 {
  font-size: clamp(30px, 5vw, 58px);
  margin: 12px 0 18px;
}

.page-home .wall-heading h2 {
  font-size: clamp(26px, 3.6vw, 42px);
  margin: 8px 0 10px;
}

.page-home .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.page-home .btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.page-home .btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.page-home .btn {
  background: var(--accent);
  color: var(--ink);
}

.page-home .btn:hover {
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.4);
  transform: translateY(-2px);
}

/* ── 分类磁贴墙 ── */
.page-home .tile-wall {
  position: relative;
  padding: 48px 0 56px;
  background: var(--bg-purple);
  overflow: hidden;
}

.page-home .tile-wall-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-home .tile-wall-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  transform: scale(1.05);
}

.page-home .tile-wall-inner {
  position: relative;
  z-index: 1;
}

.page-home .wall-summary {
  max-width: 780px;
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

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

.page-home .tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: var(--tile-min-h);
  padding: 16px 14px 14px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.page-home .tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.page-home .tile::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.page-home .tile-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.page-home .tile-subcount {
  font-size: 12px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  margin-top: 4px;
  font-family: var(--font-mono);
}

.page-home .tile:hover .tile-subcount {
  opacity: 0.9;
  transform: translateY(0);
}

.page-home .tile-count {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.78;
  margin-top: 8px;
}

.page-home .tile-arrow {
  position: absolute;
  right: 14px;
  bottom: 14px;
  font-size: 15px;
  opacity: 0.5;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.page-home .tile:hover .tile-arrow {
  opacity: 1;
  transform: translateX(3px);
}

.page-home .tone-a { background: var(--bg-purple); color: var(--white); }
.page-home .tone-b { background: var(--pink); color: var(--white); }
.page-home .tone-c { background: var(--bg-red); color: var(--white); }
.page-home .tone-d { background: var(--accent); color: var(--ink); }
.page-home .tone-e { background: var(--gold); color: var(--ink); }
.page-home .tone-f { background: var(--tomato); color: var(--white); }
.page-home .tone-g { background: var(--orange); color: var(--ink); }
.page-home .tone-h { background: var(--lime); color: var(--ink); }
.page-home .tone-i { background: var(--neon); color: var(--ink); }

.page-home .tile-wall-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.page-home .tile-footer-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-mono);
}

/* ── 最新入库 ── */
.page-home .latest-wall {
  background: var(--bg);
  padding: 56px 0 48px;
}

.page-home .wall-heading--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.page-home .heading-left h2 {
  margin-bottom: 0;
}

.page-home .card-horizontal-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
}

.page-home .card-horizontal-scroll::-webkit-scrollbar {
  height: 6px;
}

.page-home .card-horizontal-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 6px;
}

.page-home .card-horizontal-scroll .media-card {
  flex: 0 0 168px;
  scroll-snap-align: start;
  background: var(--surface);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-home .card-horizontal-scroll .media-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.page-home .card-horizontal-scroll .media-frame {
  position: relative;
  aspect-ratio: 240 / 340;
  overflow: hidden;
  background: var(--bg-purple);
}

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

.page-home .media-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.page-home .badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.page-home .badge-new {
  background: var(--orange);
  color: var(--ink);
}

.page-home .badge-update {
  background: var(--neon);
  color: var(--ink);
}

.page-home .badge-complete {
  background: var(--lime);
  color: var(--ink);
}

.page-home .quality-badge {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  background: rgba(11, 12, 20, 0.8);
  color: var(--accent);
  border: 1px solid rgba(0, 229, 255, 0.4);
}

.page-home .media-body {
  padding: 12px 12px 14px;
}

.page-home .media-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .media-meta {
  margin: 0 0 8px;
  font-size: 12px;
  color: rgba(26, 26, 26, 0.6);
}

.page-home .scroll-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-mono);
}

.page-home .scroll-hint-line {
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

/* ── 热门榜单 ── */
.page-home .hot-ranking {
  background: var(--bg-red);
  padding: 56px 0;
}

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

.page-home .serial-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 13px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.2s ease;
}

.page-home .serial-row:last-child {
  border-bottom: none;
}

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

.page-home .serial-number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  color: var(--neon);
  text-shadow: 0 0 12px rgba(57, 255, 20, 0.5);
}

.page-home .entry-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.page-home .entry-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .entry-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}

.page-home .serial-row .badge {
  display: none;
}

.page-home .metric {
  grid-column: 2 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-home .metric-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--neon);
  white-space: nowrap;
}

.page-home .metric-bar {
  flex: 1;
  height: 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.page-home .metric-fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--pink), var(--orange));
}

.page-home .heat-1 { width: 98%; }
.page-home .heat-2 { width: 94%; }
.page-home .heat-3 { width: 91%; }
.page-home .heat-4 { width: 87%; }
.page-home .heat-5 { width: 85%; }
.page-home .heat-6 { width: 82%; }
.page-home .heat-7 { width: 79%; }
.page-home .heat-8 { width: 76%; }
.page-home .heat-9 { width: 72%; }
.page-home .heat-10 { width: 68%; }

/* ── 标签云 ── */
.page-home .tag-cloud {
  position: relative;
  background: var(--bg-purple);
  padding: 56px 0;
  overflow: hidden;
}

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

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

.page-home .tag-cloud-inner {
  position: relative;
  z-index: 1;
}

.page-home .tag-block {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.page-home .tag {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.page-home .tag:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.page-home .tag-lg {
  font-size: 22px;
  padding: 12px 22px;
}

.page-home .tag-md {
  font-size: 16px;
  padding: 9px 14px;
}

.page-home .tag-sm {
  font-size: 12px;
  padding: 5px 10px;
}

.page-home .tag-hot { background: var(--tomato); color: var(--white); }
.page-home .tag-warm { background: var(--gold); color: var(--ink); }
.page-home .tag-cool { background: var(--accent); color: var(--ink); }
.page-home .tag-neon { background: var(--neon); color: var(--ink); }
.page-home .tag-orange { background: var(--orange); color: var(--ink); }
.page-home .tag-lime { background: var(--lime); color: var(--ink); }
.page-home .tag-pink { background: var(--pink); color: var(--white); }
.page-home .tag-white { background: rgba(255, 255, 255, 0.92); color: var(--ink); }
.page-home .tag-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.page-home .tag-cloud-footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.page-home .tag-footer-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-mono);
}

/* ── 改版说明 ── */
.page-home .version-note {
  background: var(--surface);
  color: var(--ink);
  padding: 56px 0;
}

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

.page-home .version-image img {
  width: 100%;
  height: auto;
  border-radius: var(--card-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-home .version-content .wall-heading h2 {
  color: var(--ink);
}

.page-home .version-lead {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(26, 26, 26, 0.8);
  margin: 0 0 24px;
}

.page-home .version-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.page-home .version-point {
  flex: 1;
  min-width: 96px;
  background: var(--bg);
  border-radius: 12px;
  padding: 16px 12px 14px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.page-home .version-point-num {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--neon);
}

.page-home .version-point-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 4px;
  display: block;
}

.page-home .version-timeline {
  border-left: 2px solid rgba(26, 26, 26, 0.2);
  padding-left: 18px;
  margin: 0 0 24px;
}

.page-home .version-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.page-home .version-item:last-child {
  margin-bottom: 0;
}

.page-home .version-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  background: var(--ink);
  color: var(--neon);
  padding: 3px 9px;
  border-radius: 4px;
  white-space: nowrap;
}

.page-home .version-desc {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(26, 26, 26, 0.85);
}

.page-home .version-meta-line {
  font-size: 13px;
  font-family: var(--font-mono);
  color: rgba(26, 26, 26, 0.65);
  margin-bottom: 20px;
}

.page-home .version-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .version-links .btn-outline {
  border-color: rgba(26, 26, 26, 0.4);
  color: var(--ink);
}

.page-home .version-links .btn-outline:hover {
  border-color: var(--accent);
  color: var(--ink);
  background: rgba(0, 229, 255, 0.1);
}

/* ── 平板断点 ── */
@media (min-width: 768px) {
  .page-home .tile-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }

  .page-home .card-horizontal-scroll .media-card {
    flex: 0 0 196px;
  }

  .page-home .serial-row {
    grid-template-columns: 42px minmax(160px, 1fr) auto minmax(140px, 200px);
    gap: 14px;
    padding: 14px 16px;
  }

  .page-home .serial-row .badge {
    display: inline-block;
  }

  .page-home .metric {
    grid-column: auto;
  }

  .page-home .version-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: center;
  }
}

/* ── 桌面断点 ── */
@media (min-width: 1024px) {
  .page-home .tile-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
  }

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

  .page-home .tile-title {
    font-size: 20px;
  }

  .page-home .card-horizontal-scroll {
    margin: 0;
    padding: 4px 4px 18px;
  }

  .page-home .card-horizontal-scroll .media-card {
    flex: 0 0 220px;
  }

  .page-home .wall-heading h1 {
    font-size: 58px;
  }
}
