.page-home {
  --ph-line: #14405F;
  --ph-line-soft: rgba(20, 64, 95, 0.55);
  --ph-panel: rgba(14, 44, 69, 0.55);
  --ph-panel-strong: rgba(14, 44, 69, 0.9);
  position: relative;
  background: var(--deep-900);
  color: var(--white-100);
  padding-bottom: clamp(48px, 6vw, 88px);
}

.page-home .img-frame {
  display: block;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--ph-line);
  background: var(--deep-700);
}

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

.page-home .mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ---------- 首屏 ---------- */

.page-home .ph-hero {
  position: relative;
  padding: clamp(34px, 5.5vw, 70px) 0 clamp(30px, 4.5vw, 54px);
  background:
    radial-gradient(120% 90% at 88% 0%, rgba(31, 163, 122, 0.16), transparent 62%),
    linear-gradient(180deg, var(--deep-900) 0%, var(--deep-900) 58%, var(--deep-700) 100%);
  overflow: hidden;
}

.page-home .ph-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(180deg, rgba(242, 246, 248, 0.035) 0 1px, transparent 1px 5px);
}

.page-home .ph-hero__inner,
.page-home .ph-hero + .container {
  position: relative;
  z-index: 1;
}

.page-home .ph-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 4vw, 40px);
  align-items: start;
}

.page-home .ph-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.page-home .ph-crumb__sep {
  color: var(--deep-500);
}

.page-home .ph-crumb__now {
  color: var(--green-400);
}

.page-home .ph-hero__title {
  margin: 0 0 20px;
  max-width: 16em;
}

.page-home .ph-hero__text {
  margin: 0 0 14px;
  max-width: 40em;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.8;
  color: var(--text-soft);
}

.page-home .lead.ph-hero__text {
  font-size: clamp(16px, 1.9vw, 19px);
  color: var(--white-100);
}

.page-home .ph-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-home .ph-hero__figure {
  order: -1;
  aspect-ratio: 3 / 4;
  max-height: 420px;
}

/* ---------- 目录入口 ---------- */

.page-home .ph-dir {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: clamp(30px, 4vw, 48px);
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--ph-line-soft);
}

.page-home .ph-dir__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--ph-line-soft);
  background: rgba(7, 26, 43, 0.6);
  color: inherit;
  text-decoration: none;
  transition: transform var(--t-base), border-color var(--t-base), background var(--t-base);
}

.page-home .ph-dir__item:hover,
.page-home .ph-dir__item:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(95, 211, 168, 0.5);
  background: var(--ph-panel-strong);
}

.page-home .ph-dir__no {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--green-400);
  padding-top: 3px;
}

.page-home .ph-dir__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-home .ph-dir__name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--white-100);
}

.page-home .ph-dir__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
}

.page-home .ph-dir__arrow {
  color: var(--deep-500);
  font-size: 16px;
  transition: color var(--t-fast), transform var(--t-fast);
}

.page-home .ph-dir__item:hover .ph-dir__arrow {
  color: var(--green-400);
  transform: translateX(3px);
}

/* ---------- 筛选带 ---------- */

.page-home .ph-band {
  padding: clamp(34px, 5vw, 62px) 0;
  background: var(--deep-900);
}

.page-home .ph-band__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 28px;
  margin-bottom: clamp(20px, 3vw, 30px);
}

.page-home .ph-band__head .h2 {
  margin: 8px 0 10px;
  max-width: 22em;
}

.page-home .ph-band__intro {
  margin: 0;
  max-width: 40em;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-soft);
}

.page-home .ph-band__count {
  margin: 0;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--green-800);
  background: rgba(15, 107, 82, 0.18);
  color: var(--green-400);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.page-home .ph-band__rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-home .ph-band__row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--ph-line-soft);
  background: rgba(7, 26, 43, 0.62);
}

.page-home .ph-band__label {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.page-home .ph-chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .ph-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--ph-line);
  background: rgba(14, 44, 69, 0.6);
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}

.page-home .ph-pill--on {
  background: var(--green-600);
  border-color: var(--green-600);
  color: var(--ink-50);
  font-weight: 600;
}

.page-home .ph-band__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 20px;
}

.page-home .ph-band__hint {
  font-size: 14px;
  color: var(--text-dim);
}

.page-home .ph-band__shot {
  margin-top: clamp(22px, 3.2vw, 36px);
}

/* ---------- 路径 ---------- */

.page-home .ph-path {
  padding: clamp(40px, 6vw, 84px) 0;
  background: linear-gradient(180deg, var(--deep-700) 0%, var(--deep-900) 100%);
}

.page-home .ph-path .h2 {
  margin: 8px 0 10px;
  max-width: 20em;
}

.page-home .ph-path__intro {
  margin: 0 0 clamp(24px, 3.6vw, 40px);
  max-width: 42em;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-soft);
}

.page-home .ph-path__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.page-home .ph-path__steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-home .ph-path__steps::before {
  content: "";
  position: absolute;
  left: 33px;
  top: 34px;
  bottom: 34px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--green-800) 18%, var(--green-800) 82%, transparent);
}

.page-home .ph-step {
  position: relative;
  padding: 20px 22px 20px 66px;
  border-radius: var(--r-md);
  border: 1px solid var(--ph-line-soft);
  background: rgba(7, 26, 43, 0.66);
  transition: transform var(--t-base), border-color var(--t-base);
}

.page-home .ph-step:hover {
  transform: translateY(-2px);
  border-color: rgba(95, 211, 168, 0.45);
}

.page-home .ph-step__no {
  position: absolute;
  left: 20px;
  top: 23px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--green-400);
}

.page-home .ph-step__title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  color: var(--white-100);
}

.page-home .ph-step__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dim);
}

.page-home .ph-path__figure {
  aspect-ratio: 1 / 1;
  max-height: 460px;
}

/* ---------- 排名快照 ---------- */

.page-home .ph-fresh {
  padding: clamp(40px, 6vw, 84px) 0;
  background: var(--deep-900);
}

.page-home .ph-fresh__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 4vw, 48px);
  align-items: center;
}

.page-home .ph-fresh .h2 {
  margin: 8px 0 16px;
  max-width: 18em;
}

.page-home .ph-fresh__text {
  margin: 0 0 12px;
  max-width: 34em;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-soft);
}

.page-home .ph-fresh__viz {
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--r-lg);
  border: 1px solid var(--ph-line-soft);
  background: linear-gradient(160deg, rgba(14, 44, 69, 0.85), rgba(7, 26, 43, 0.9));
}

.page-home .ph-scale {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .ph-scale__now {
  animation: ph-home-pulse 2.4s ease-in-out infinite;
}

@keyframes ph-home-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.32; }
}

.page-home .ph-scale__cap {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--text-dim);
}

.page-home .ph-fresh__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(18px, 2.6vw, 26px);
}

.page-home .ph-fresh__stats .stat {
  padding: 16px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--ph-line-soft);
  background: rgba(7, 26, 43, 0.7);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.page-home .ph-fresh__stats .stat--amber {
  border-color: rgba(232, 163, 61, 0.42);
}

.page-home .ph-fresh__stats .stat__num {
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1;
  font-weight: 600;
  color: var(--white-100);
}

.page-home .ph-fresh__stats .stat--amber .stat__num {
  color: var(--amber-500);
}

.page-home .ph-fresh__stats .stat__unit {
  font-size: 12px;
  color: var(--text-dim);
}

.page-home .ph-fresh__stats .stat__label {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--gray-400);
}

/* ---------- PC 内容中心 ---------- */

.page-home .ph-desk {
  padding: clamp(40px, 6vw, 84px) 0;
  background: linear-gradient(180deg, var(--deep-900) 0%, var(--deep-700) 100%);
}

.page-home .ph-desk__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.page-home .ph-desk .h2 {
  margin: 8px 0 16px;
  max-width: 16em;
}

.page-home .ph-desk__text {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-soft);
}

.page-home .ph-desk__note {
  margin: 0;
  padding: 14px 16px;
  border-left: 2px solid var(--amber-500);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: rgba(232, 163, 61, 0.08);
  font-size: 14px;
  line-height: 1.8;
  color: var(--amber-200);
}

.page-home .ph-desk__figure {
  margin-bottom: clamp(18px, 2.6vw, 26px);
}

.page-home .ph-desk__cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .ph-desk__cards li {
  padding: 9px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--ph-line);
  background: rgba(7, 26, 43, 0.7);
  font-size: 14px;
  color: var(--text-soft);
  transition: border-color var(--t-fast), color var(--t-fast);
}

.page-home .ph-desk__cards li:hover {
  border-color: var(--green-800);
  color: var(--green-400);
}

.page-home .ph-desk__foot {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--text-dim);
}

/* ---------- 场景 ---------- */

.page-home .ph-scenes {
  padding: clamp(40px, 6vw, 84px) 0;
  background: var(--deep-900);
}

.page-home .ph-scenes .h2 {
  margin: 8px 0 clamp(22px, 3.4vw, 36px);
  max-width: 20em;
}

.page-home .ph-scenes__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.page-home .ph-scene {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 3vw, 28px);
  border-radius: var(--r-lg);
  border: 1px solid var(--ph-line-soft);
  background: rgba(14, 44, 69, 0.5);
  transition: transform var(--t-base), border-color var(--t-base), background var(--t-base);
}

.page-home .ph-scene:hover {
  transform: translateY(-2px);
  border-color: rgba(95, 211, 168, 0.45);
  background: var(--ph-panel-strong);
}

.page-home .ph-scene__tag {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--green-800);
  color: var(--green-400);
  font-size: 11.5px;
  letter-spacing: 0.08em;
}

.page-home .ph-scene__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--white-100);
}

.page-home .ph-scene__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dim);
}

.page-home .ph-scene__link {
  margin-top: auto;
  padding-top: 6px;
  font-size: 14px;
  color: var(--green-400);
  text-decoration: none;
  transition: color var(--t-fast);
}

.page-home .ph-scene__link:hover,
.page-home .ph-scene__link:focus-visible {
  color: var(--amber-500);
}

/* ---------- 联系 ---------- */

.page-home .ph-contact {
  padding: 0 0 clamp(20px, 3vw, 36px);
  background: var(--deep-900);
}

.page-home .ph-contact__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 44px);
  padding: clamp(26px, 4vw, 48px);
  border-radius: var(--r-lg);
  border: 1px solid var(--ph-line);
  background:
    radial-gradient(110% 130% at 0% 0%, rgba(31, 163, 122, 0.18), transparent 58%),
    linear-gradient(135deg, rgba(14, 44, 69, 0.95), rgba(7, 26, 43, 0.95));
}

.page-home .ph-contact .h2 {
  margin: 8px 0 14px;
  max-width: 18em;
}

.page-home .ph-contact__text {
  margin: 0;
  max-width: 34em;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-soft);
}

.page-home .ph-contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.page-home .ph-contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--ph-line-soft);
}

.page-home .ph-contact__list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(7, 26, 43, 0.72);
}

.page-home .ph-contact__label {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  min-width: 44px;
}

.page-home .ph-contact__value {
  font-size: 15px;
  color: var(--white-100);
  word-break: break-word;
}

/* ---------- 响应式 ---------- */

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

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

@media (min-width: 900px) {
  .page-home .ph-hero__inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 300px);
    gap: clamp(30px, 4vw, 56px);
  }

  .page-home .ph-hero__figure {
    order: 0;
    max-height: none;
  }

  .page-home .ph-path__layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  }

  .page-home .ph-fresh__inner {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }

  .page-home .ph-desk__layout {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }

  .page-home .ph-contact__card {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: start;
  }
}

@media (max-width: 700px) {
  .page-home .ph-chiprow {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

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

  .page-home .ph-band__row {
    padding: 14px 14px 10px;
  }

  .page-home .ph-path__steps::before {
    left: 27px;
  }

  .page-home .ph-step {
    padding: 18px 18px 18px 56px;
  }

  .page-home .ph-step__no {
    left: 16px;
  }

  .page-home .ph-fresh__stats {
    gap: 8px;
  }

  .page-home .ph-fresh__stats .stat {
    padding: 12px 10px;
  }
}

@media (max-width: 980px) {
  .page-home {
    padding-bottom: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .ph-scale__now {
    animation: none;
  }

  .page-home .ph-dir__item,
  .page-home .ph-step,
  .page-home .ph-scene {
    transition: none;
  }
}
