.page-home {
  --home-panel: linear-gradient(160deg, rgba(18, 58, 49, 0.62), rgba(21, 13, 41, 0.74));
  --home-line: rgba(220, 180, 108, 0.18);
  --home-glow: 0 0 0 1px rgba(220, 180, 108, 0.2), 0 32px 64px -38px rgba(0, 0, 0, 0.94);
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  padding: 30px 0 52px;
  overflow: hidden;
}

.page-home .hero::before {
  content: "";
  position: absolute;
  top: -22%;
  right: -14%;
  width: min(600px, 96vw);
  height: min(600px, 96vw);
  background: radial-gradient(circle at 50% 50%, rgba(79, 242, 212, 0.15), transparent 68%);
  pointer-events: none;
}

.page-home .hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: min(520px, 90vw);
  height: min(520px, 90vw);
  background: radial-gradient(circle at 50% 50%, rgba(220, 180, 108, 0.13), transparent 70%);
  pointer-events: none;
}

.page-home .hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 32px;
  align-items: center;
}

.page-home .hero-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .hero-facts {
  list-style: none;
  margin: 4px 0 0;
  padding: 22px 0 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  border-top: 1px solid var(--home-line);
}

.page-home .hero-fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .hero-fact-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--champagne-2);
  line-height: 1.05;
}

.page-home .hero-fact:nth-child(2) .hero-fact-num {
  color: var(--neon);
}

.page-home .hero-fact-label {
  font-size: 0.82rem;
  color: var(--paper-3);
  line-height: 1.4;
}

.page-home .hero-visual {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 32px 32px 32px 8px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.4deg);
}

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

/* ---------- 进场路径 ---------- */
.page-home .room-path {
  position: relative;
}

.page-home .path-grid {
  display: grid;
  gap: 16px;
}

.page-home .path-step {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--radius-m);
  background: var(--home-panel);
  border: 1px solid var(--home-line);
  overflow: hidden;
}

.page-home .path-step--neon {
  border-color: rgba(79, 242, 212, 0.32);
}

.page-home .path-step--neon::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--neon), rgba(79, 242, 212, 0));
}

.page-home .path-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(220, 180, 108, 0.6);
  margin-bottom: 14px;
}

.page-home .path-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--paper);
}

.page-home .path-text {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--paper-2);
}

.page-home .path-visual {
  margin: 0;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--home-line);
  background: var(--ink-2);
}

.page-home .path-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.page-home .path-caption {
  padding: 12px 16px 14px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--paper-3);
  border-top: 1px solid var(--home-line);
}

/* ---------- 段位 ---------- */
.page-home .ranks .lede {
  max-width: 62ch;
}

.page-home .rank-wall {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.page-home .rank-intro {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(21, 13, 41, 0.9), rgba(18, 58, 49, 0.6));
}

.page-home .rank-figure {
  margin: 0;
}

.page-home .rank-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-home .rank-intro-body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-home .rank-kicker {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--champagne);
}

.page-home .rank-text {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--paper-2);
}

.page-home .rank-card {
  position: relative;
  padding: 22px 20px;
  border-radius: var(--radius-m);
  background: rgba(7, 22, 20, 0.72);
  border: 1px solid var(--home-line);
  border-left: 2px solid var(--champagne);
}

.page-home .rank-card--neon {
  border-left-color: var(--neon);
}

.page-home .rank-title {
  margin: 12px 0 8px;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--paper);
}

/* ---------- 房间筛选 ---------- */
.page-home .rooms {
  position: relative;
}

.page-home .room-grid {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.page-home .room-card {
  padding: 22px 20px;
  border-radius: var(--radius-m);
  background: var(--card-bg);
  border: 1px solid var(--home-line);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.page-home .room-card--neon {
  border-color: rgba(79, 242, 212, 0.28);
}

.page-home .room-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

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

.page-home .room-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--paper);
}

.page-home .room-text {
  margin: 0 0 14px;
  font-size: 0.92rem;
  line-height: 1.72;
  color: var(--paper-2);
}

.page-home .room-meta {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--champagne);
}

.page-home .room-card--neon .room-meta {
  color: var(--neon);
}

/* ---------- 日志 ---------- */
.page-home .journal-visual {
  margin: 22px 0 20px;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--home-line);
  transform: rotate(0.5deg);
}

.page-home .journal-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

/* ---------- 订阅条 ---------- */
.page-home .band {
  margin-top: 54px;
  padding: 44px 0 50px;
  background:
    radial-gradient(120% 140% at 82% 10%, rgba(79, 242, 212, 0.14), transparent 58%),
    linear-gradient(150deg, var(--violet), var(--ink-3));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home .band-inner {
  display: grid;
  gap: 24px;
  align-items: center;
}

.page-home .band-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-home .band-text {
  margin: 0;
  max-width: 58ch;
  font-size: 0.96rem;
  line-height: 1.8;
  color: var(--paper-2);
}

.page-home .band-meta {
  margin: 0;
  font-size: 0.84rem;
  color: var(--champagne);
  letter-spacing: 0.02em;
}

.page-home .band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-home .path-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .path-visual {
    grid-column: 1 / -1;
  }

  .page-home .path-visual img {
    aspect-ratio: 21 / 9;
  }

  .page-home .room-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .page-home .hero {
    padding: 42px 0 64px;
  }

  .page-home .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 52px;
  }

  .page-home .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .path-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: stretch;
  }

  .page-home .path-visual {
    grid-column: auto;
    display: flex;
    flex-direction: column;
  }

  .page-home .path-visual img {
    aspect-ratio: 4 / 5;
    flex: 1;
  }

  .page-home .rank-wall {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-auto-rows: min-content;
  }

  .page-home .rank-intro {
    grid-row: span 2;
  }

  .page-home .rank-figure img {
    aspect-ratio: 1 / 1;
  }

  .page-home .room-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .band-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 40px;
  }

  .page-home .band-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
