.page-home {
  --ph-rail: 244px;
  --ph-gap: clamp(1rem, 2.2vw, 1.625rem);
  --ph-line: rgba(245, 242, 233, 0.14);
  --ph-dim: rgba(245, 242, 233, 0.68);
  display: block;
}

/* ---------- 页面上下文 ---------- */
.page-home .ph-context {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding-block: clamp(1.25rem, 3vw, 1.75rem) 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #93AEA3;
}
.page-home .ph-context__dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(231, 183, 95, 0.16);
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(0.75rem, 2.5vw, 1.5rem) clamp(2.5rem, 6vw, 4.5rem);
}
.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58% 64% at 14% 4%, rgba(123, 77, 255, 0.24), transparent 70%),
    radial-gradient(48% 54% at 90% 0%, rgba(231, 183, 95, 0.15), transparent 72%),
    radial-gradient(130% 92% at 50% 110%, rgba(7, 35, 26, 0.92), transparent 74%);
}
.page-home .hero__kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--neon-soft);
}
.page-home .hero__title {
  margin: 0.625rem 0 0;
  max-width: 21ch;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.875rem, 5.2vw, 3.375rem);
  line-height: 1.14;
  letter-spacing: -0.012em;
  color: var(--porcelain);
}
.page-home .hero__title em {
  font-style: normal;
  color: var(--gold);
}
.page-home .hero__lede {
  margin: 1rem 0 0;
  max-width: 60ch;
  font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
  line-height: 1.78;
  color: rgba(245, 242, 233, 0.78);
}
.page-home .hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ph-gap);
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
}

/* 左侧熟悉入口通道 */
.page-home .hero__rail {
  display: grid;
  gap: 0.625rem;
  align-content: start;
}
.page-home .entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.25rem 0.625rem;
  padding: 0.875rem 1rem;
  border: 2px solid var(--ph-line);
  border-radius: var(--radius);
  background: rgba(7, 35, 26, 0.62);
  color: var(--porcelain);
  text-decoration: none;
  transition: transform 240ms var(--ease), border-color 240ms var(--ease),
    box-shadow 240ms var(--ease), background-color 240ms var(--ease);
}
.page-home .entry:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  background: rgba(7, 35, 26, 0.92);
  box-shadow: var(--shadow-hard);
}
.page-home .entry:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-hard);
}
.page-home .entry__no {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  padding-top: 0.2rem;
}
.page-home .entry__title {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.page-home .entry__desc {
  grid-column: 1 / -1;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  line-height: 1.68;
  color: rgba(245, 242, 233, 0.6);
}

/* 右侧错位拼贴 */
.page-home .hero__collage {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ph-gap);
}
.page-home .collage {
  position: relative;
  padding: clamp(0.875rem, 1.8vw, 1.25rem);
  border: 2px solid var(--ph-line);
  border-radius: var(--radius);
  background: rgba(7, 35, 26, 0.72);
  box-shadow: var(--shadow-hard);
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease),
    border-color 240ms var(--ease);
}
.page-home .collage:hover,
.page-home .collage:focus-within {
  transform: translateY(-5px);
  border-color: rgba(231, 183, 95, 0.5);
  box-shadow: var(--shadow-hard-lg);
}
.page-home .collage__no {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--gold);
}
.page-home .collage h2,
.page-home .collage h3 {
  margin: 0.4rem 0 0;
  color: var(--porcelain);
  font-weight: 700;
  line-height: 1.42;
}
.page-home .collage h2 {
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
}
.page-home .collage h3 {
  font-size: 1.0625rem;
}
.page-home .collage p {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--ph-dim);
}
.page-home .collage__foot {
  font-family: var(--font-mono);
  font-size: 0.6875rem !important;
  letter-spacing: 0.1em;
  color: rgba(245, 242, 233, 0.5) !important;
}
.page-home .collage--main {
  padding-bottom: clamp(1rem, 2vw, 1.5rem);
}
.page-home .collage__figure {
  margin: 0;
}
.page-home .collage__figure .figure__media {
  aspect-ratio: 3 / 2;
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
}
.page-home .collage__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-home .collage__body {
  margin-top: 1rem;
}

/* 迷你进度条 */
.page-home .mini-progress {
  margin-top: 0.875rem;
  height: 6px;
  border-radius: 999px;
  background: rgba(245, 242, 233, 0.12);
  overflow: hidden;
}
.page-home .mini-progress__fill {
  display: block;
  width: 78.6%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--neon), var(--neon-soft) 46%, var(--gold));
  animation: ph-breathe 3.6s var(--ease) infinite;
}
@keyframes ph-breathe {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* ---------- 房间预览 ---------- */
.page-home .ph-preview {
  border-top: 1px solid rgba(231, 183, 95, 0.22);
}
.page-home .ph-preview__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
}
.page-home .ph-preview__media .figure__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
}
.page-home .ph-preview__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-home .ph-preview__body .h-section {
  margin-top: 0.5rem;
}
.page-home .ph-rooms {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.625rem;
}
.page-home .ph-rooms__item {
  padding: 0.75rem 0.875rem;
  border-left: 3px solid var(--neon);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(7, 35, 26, 0.55);
}
.page-home .ph-rooms__name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--porcelain);
}
.page-home .ph-rooms__desc {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8125rem;
  line-height: 1.66;
  color: var(--ph-dim);
}
.page-home .ph-preview__note {
  margin: 1.25rem 0 1.5rem;
  padding-left: 0.875rem;
  border-left: 3px solid var(--gold);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: rgba(245, 242, 233, 0.66);
}

/* ---------- 操作手册 ---------- */
.page-home .ph-steps__lede {
  max-width: 58ch;
}
.page-home .ph-steps__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2.4vw, 1.75rem);
  margin-top: clamp(1.5rem, 3.5vw, 2.25rem);
}
.page-home .ph-step {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: clamp(1.25rem, 2.6vw, 1.875rem);
  box-shadow: var(--shadow-hard);
}
.page-home .ph-step__head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.page-home .ph-step__no {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--neon);
}
.page-home .ph-step__title {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.4;
}
.page-home .ph-step__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.625rem;
  counter-reset: phstep;
}
.page-home .ph-step__list li {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  gap: 0.5rem;
  align-items: start;
}
.page-home .ph-step__list li::before {
  counter-increment: phstep;
  content: counter(phstep, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--neon);
  padding-top: 0.15rem;
}
.page-home .ph-step__list p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.72;
}
.page-home .ph-step__link {
  align-self: flex-start;
  margin-top: auto;
  padding-bottom: 2px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--neon);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  transition: color 240ms var(--ease), border-color 240ms var(--ease);
}
.page-home .ph-step__link:hover,
.page-home .ph-step__link:focus-visible {
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.page-home .ph-steps__note {
  margin: 1.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: #93AEA3;
}

/* ---------- 收藏夹归档 ---------- */
.page-home .ph-fav__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.page-home .ph-fav__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.page-home .ph-fav__tabs a {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border: 2px solid var(--ph-line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--porcelain);
  text-decoration: none;
  transition: border-color 240ms var(--ease), background-color 240ms var(--ease),
    color 240ms var(--ease);
}
.page-home .ph-fav__tabs a:hover {
  border-color: var(--gold);
  background: rgba(231, 183, 95, 0.14);
  color: var(--gold-light);
}
.page-home .ph-fav__tabs a:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 2px;
  border-color: var(--gold);
  color: var(--gold-light);
}
.page-home .ph-fav__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
  margin-top: 1.25rem;
}
.page-home .ph-fav__card {
  padding: 1rem 1.125rem;
  border: 2px solid var(--ph-line);
  border-radius: var(--radius);
  background: rgba(7, 35, 26, 0.6);
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
  transition: transform 240ms var(--ease), border-color 240ms var(--ease),
    box-shadow 240ms var(--ease);
}
.page-home .ph-fav__card:hover {
  transform: translateY(-4px);
  border-color: rgba(231, 183, 95, 0.5);
  box-shadow: var(--shadow-hard);
}
.page-home .ph-fav__card p.mono {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--neon-soft);
}
.page-home .ph-fav__card h3 {
  margin: 0.3rem 0 0;
  font-size: 1rem;
  color: var(--porcelain);
}
.page-home .ph-fav__card p {
  margin: 0.4rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.68;
  color: var(--ph-dim);
}
.page-home .ph-fav__media .figure__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
}
.page-home .ph-fav__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 赛季末节奏 ---------- */
.page-home .ph-season {
  border-top: 1px solid rgba(231, 183, 95, 0.22);
}
.page-home .ph-season__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: center;
}
.page-home .ph-season__media .figure__media {
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  overflow: hidden;
}
.page-home .ph-season__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-home .ph-season__progress {
  margin-top: 1.5rem;
  padding: 1rem 1.125rem 1.125rem;
  border: 2px solid var(--ph-line);
  border-radius: var(--radius);
  background: rgba(7, 35, 26, 0.62);
  transition: border-color 240ms var(--ease), box-shadow 240ms var(--ease);
}
.page-home .ph-season__progress:hover,
.page-home .ph-season__progress:focus-within {
  border-color: var(--gold);
  box-shadow: var(--shadow-hard);
}
.page-home .ph-season__progress:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}
.page-home .ph-season__bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(245, 242, 233, 0.12);
  overflow: hidden;
}
.page-home .ph-season__fill {
  display: block;
  width: 78.6%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--neon), var(--neon-soft) 46%, var(--gold));
}
.page-home .ph-season__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(245, 242, 233, 0.7);
}
.page-home .ph-season__reveal {
  margin: 0.75rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(245, 242, 233, 0.16);
  font-size: 0.8125rem;
  line-height: 1.72;
  color: var(--ph-dim);
}
.page-home .ph-season__link {
  margin-top: 1.5rem;
}

/* ---------- 本地访问与站点信息 ---------- */
.page-home .ph-local__panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 2px solid var(--ph-line);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(123, 77, 255, 0.2), transparent 62%),
    radial-gradient(70% 120% at 100% 100%, rgba(231, 183, 95, 0.14), transparent 66%),
    rgba(7, 35, 26, 0.8);
}
.page-home .ph-local__intro p {
  margin: 0.875rem 0 0;
  max-width: 52ch;
  font-size: 0.9375rem;
  line-height: 1.78;
  color: rgba(245, 242, 233, 0.76);
}
.page-home .ph-local__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.375rem;
}
.page-home .ph-local__facts {
  margin: 0;
  display: grid;
  gap: 0.75rem;
  align-content: start;
}
.page-home .ph-local__fact {
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 1fr);
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed rgba(245, 242, 233, 0.16);
}
.page-home .ph-local__fact:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.page-home .ph-local__fact dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(245, 242, 233, 0.52);
  padding-top: 0.2rem;
}
.page-home .ph-local__fact dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--porcelain);
  overflow-wrap: anywhere;
}

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

@media (min-width: 760px) {
  .page-home .hero__collage {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  }
  .page-home .collage--main {
    grid-row: span 2;
  }
}

@media (min-width: 820px) {
  .page-home .ph-steps__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 880px) {
  .page-home .ph-preview__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }
  .page-home .ph-fav__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
  .page-home .ph-fav__media {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
  .page-home .ph-season__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

@media (min-width: 900px) {
  .page-home .hero__grid {
    grid-template-columns: var(--ph-rail) minmax(0, 1fr);
    align-items: start;
  }
  .page-home .hero__rail {
    position: sticky;
    top: calc(var(--header-h) + 1.25rem);
  }
  .page-home .ph-local__panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }
}

@media (max-width: 400px) {
  .page-home .ph-local__fact {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .mini-progress__fill {
    animation: none;
  }
  .page-home .entry,
  .page-home .collage,
  .page-home .ph-fav__card,
  .page-home .ph-season__progress,
  .page-home .ph-fav__tabs a,
  .page-home .ph-step__link {
    transition: none;
  }
  .page-home .entry:hover,
  .page-home .collage:hover,
  .page-home .ph-fav__card:hover {
    transform: none;
  }
}
