.page-home {
  --hm-gap: clamp(64px, 9vw, 108px);
  --hm-card-radius: 16px;
  --hm-soft-line: rgba(11, 42, 74, 0.1);
  background: var(--pearl);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* ---------- 首屏 ---------- */
.page-home .hm-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--pearl);
  padding: clamp(48px, 9vw, 104px) 0 clamp(56px, 8vw, 88px);
}

.page-home .hm-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-home .hm-hero__wedge {
  position: absolute;
  inset: -8% -6% auto -6%;
  height: 82%;
  background: linear-gradient(152deg, var(--navy) 0%, var(--navy-mid) 100%);
  clip-path: polygon(0 0, 100% 0, 66% 100%, 0 84%);
}

.page-home .hm-hero__arc {
  position: absolute;
  right: -20%;
  top: -14%;
  width: min(720px, 82vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 58%, rgba(255, 107, 74, 0.45), rgba(255, 107, 74, 0) 68%);
}

.page-home .hm-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 162, 75, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 162, 75, 0.1) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 78%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 78%);
}

.page-home .hm-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(32px, 6vw, 56px);
  align-items: center;
}

.page-home .hm-hero__copy {
  max-width: 640px;
}

.page-home .hm-hero__kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.page-home .hm-hero__title {
  margin: 18px 0 0;
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(2.35rem, 8.4vw, 5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--pearl);
}

.page-home .hm-hero__lead {
  margin: 22px 0 0;
  max-width: 46ch;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: rgba(247, 244, 239, 0.86);
}

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

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

.page-home .hm-hero__tags li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 7px 13px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: rgba(247, 244, 239, 0.9);
}

.page-home .hm-hero__media {
  position: relative;
  margin: 0;
}

.page-home .hm-hero__media::after {
  content: "";
  position: absolute;
  left: -18px;
  bottom: -18px;
  width: 108px;
  height: 108px;
  border: 1px solid var(--coral);
  border-radius: 50%;
  opacity: 0.65;
  pointer-events: none;
}

.page-home .hm-hero__figure {
  position: relative;
  z-index: 1;
  margin: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
}

.page-home .hm-hero__figure .media-frame__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
}

.page-home .hm-hero__index {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 24px;
  border-top: 1px solid rgba(201, 162, 75, 0.32);
}

.page-home .hm-hero__index a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 0.88rem;
  color: rgba(247, 244, 239, 0.78);
  text-decoration: none;
  transition: color 160ms var(--ease);
}

.page-home .hm-hero__index a:hover,
.page-home .hm-hero__index a:focus-visible {
  color: var(--coral);
}

.page-home .hm-hero__index .mono {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--gold);
}

@keyframes hm-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.page-home .hm-hero__kicker,
.page-home .hm-hero__title,
.page-home .hm-hero__lead,
.page-home .hm-hero__actions,
.page-home .hm-hero__tags {
  animation: hm-rise 420ms var(--ease) both;
}

.page-home .hm-hero__title { animation-delay: 60ms; }
.page-home .hm-hero__lead { animation-delay: 120ms; }
.page-home .hm-hero__actions { animation-delay: 180ms; }
.page-home .hm-hero__tags { animation-delay: 240ms; }

/* ---------- 通用章节 ---------- */
.page-home .hm-band {
  background: var(--pearl);
  padding: var(--hm-gap) 0;
}

.page-home .hm-views {
  background: var(--paper);
  padding: var(--hm-gap) 0;
}

.page-home .hm-scenes {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--pearl);
  padding: var(--hm-gap) 0;
}

.page-home .hm-stable {
  background: var(--navy-deep);
  color: var(--pearl);
  padding: var(--hm-gap) 0;
}

.page-home .hm-head {
  max-width: 720px;
  margin-bottom: clamp(34px, 5vw, 56px);
}

.page-home .hm-head .eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--coral-deep);
}

.page-home .hm-head--on-dark .eyebrow {
  color: var(--gold);
}

.page-home .hm-head .section-head__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.page-home .hm-head--on-dark .section-head__title {
  color: var(--pearl);
}

.page-home .hm-head .section-head__lead {
  margin: 18px 0 0;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--slate);
}

.page-home .hm-head--on-dark .section-head__lead {
  color: rgba(247, 244, 239, 0.82);
}

/* ---------- 登陆路径 ---------- */
.page-home .hm-path__grid {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
}

.page-home .hm-path__figure {
  margin: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}

.page-home .hm-path__figure .media-frame__img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
}

.page-home .hm-path__figure .media-frame__caption {
  padding: 12px 16px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--slate);
}

.page-home .hm-path__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.page-home .hm-step {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--hm-soft-line);
  border-left: 3px solid var(--coral);
  border-radius: 14px;
  padding: 22px 22px 24px;
}

.page-home .hm-step__index {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 107, 74, 0.14);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--coral-deep);
}

.page-home .hm-step__title {
  margin: 12px 0 8px;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}

.page-home .hm-step__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--slate);
}

.page-home .hm-step__signal {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px dashed rgba(11, 42, 74, 0.18);
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--slate);
}

.page-home .hm-step__signal b {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--coral-deep);
}

/* ---------- 场景切换 ---------- */
.page-home .hm-tabs .tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 28px;
  padding: 0;
  border-bottom: 1px solid rgba(201, 162, 75, 0.3);
}

.page-home .hm-tabs .tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 12px 16px;
  min-height: 44px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: rgba(247, 244, 239, 0.66);
  cursor: pointer;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.page-home .hm-tabs .tab[aria-selected="true"] {
  color: var(--pearl);
  border-bottom-color: var(--coral);
}

.page-home .hm-tabs .tab:hover {
  color: var(--pearl);
}

.page-home .hm-tabs .tab:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 6px;
}

.page-home .hm-scene-panel {
  display: grid;
  gap: 14px;
  border-left: 3px solid var(--coral);
  padding: 6px 0 6px 22px;
}

.page-home .hm-scene-panel[hidden] {
  display: none;
}

.page-home .hm-scene-panel__title {
  margin: 0;
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--pearl);
}

.page-home .hm-scene-panel__text {
  margin: 0;
  max-width: 62ch;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: rgba(247, 244, 239, 0.82);
}

.page-home .hm-scene-panel__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.page-home .hm-scene-panel__links {
  margin: 4px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.page-home .hm-textlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.95rem;
  color: var(--coral);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 107, 74, 0.5);
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.page-home .hm-textlink:hover,
.page-home .hm-textlink:focus-visible {
  color: var(--pearl);
  border-bottom-color: var(--pearl);
}

/* ---------- 收藏 ---------- */
.page-home .hm-fav__grid {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.page-home .hm-fav__copy .section-head__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.page-home .hm-fav__copy .eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--coral-deep);
}

.page-home .hm-fav__copy .section-head__lead {
  margin: 18px 0 0;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--slate);
}

.page-home .hm-fav__list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .hm-fav__list li {
  position: relative;
  padding-left: 26px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
}

.page-home .hm-fav__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 10px;
  background: var(--coral);
  border-radius: 3px;
  transform: rotate(45deg);
}

.page-home .hm-fav__cta {
  margin: 28px 0 0;
}

.page-home .hm-fav__card {
  position: relative;
  margin: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}

.page-home .hm-fav__card .media-frame__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
}

.page-home .hm-fav__caption {
  padding: 14px 18px;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--slate);
  border-top: 1px solid var(--hairline);
}

/* ---------- 两套视图 ---------- */
.page-home .hm-views__pair {
  display: grid;
  gap: clamp(20px, 3vw, 36px);
}

.page-home .hm-view-card {
  position: relative;
  background: var(--pearl);
  border: 1px solid rgba(11, 42, 74, 0.12);
  border-top: 4px solid var(--navy-mid);
  border-radius: var(--hm-card-radius);
  padding: 28px 26px 30px;
}

.page-home .hm-view-card--new {
  border-top-color: var(--coral);
}

.page-home .hm-view-card__tag {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
}

.page-home .hm-view-card__title {
  margin: 12px 0 0;
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.page-home .hm-view-card__text {
  margin: 14px 0 0;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--slate);
}

.page-home .hm-view-card__list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .hm-view-card__list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--ink);
}

.page-home .hm-view-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

.page-home .hm-views__cta {
  margin: clamp(32px, 4vw, 48px) 0 0;
}

/* ---------- 适配与更新 ---------- */
.page-home .hm-stable__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 clamp(30px, 4vw, 44px);
  background: rgba(201, 162, 75, 0.28);
  border: 1px solid rgba(201, 162, 75, 0.28);
  border-radius: var(--hm-card-radius);
  overflow: hidden;
}

.page-home .hm-stat {
  background: var(--navy-deep);
  padding: 22px 20px;
}

.page-home .hm-stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--coral);
}

.page-home .hm-stat__label {
  display: block;
  margin-top: 8px;
  font-size: 0.84rem;
  line-height: 1.6;
  color: rgba(247, 244, 239, 0.76);
}

.page-home .hm-stable__figure {
  margin: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
}

.page-home .hm-stable__figure .media-frame__img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 5;
  height: auto;
  object-fit: cover;
}

.page-home .hm-stable__figure .media-frame__caption {
  padding: 12px 16px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(247, 244, 239, 0.72);
  border-top: 1px solid rgba(201, 162, 75, 0.24);
}

.page-home .hm-stable__note {
  margin: 26px 0 0;
  max-width: 76ch;
  font-size: 0.98rem;
  line-height: 1.85;
  color: rgba(247, 244, 239, 0.78);
}

/* ---------- 支持通道 ---------- */
.page-home .hm-help__flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.page-home .hm-help__step {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--hm-soft-line);
  border-radius: var(--hm-card-radius);
  padding: 26px 24px 28px;
}

.page-home .hm-help__step--primary {
  background: var(--navy);
  border-color: var(--navy-mid);
}

.page-home .hm-help__num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--coral-deep);
}

.page-home .hm-help__step--primary .hm-help__num {
  color: var(--gold);
}

.page-home .hm-help__title {
  margin: 10px 0 0;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}

.page-home .hm-help__step--primary .hm-help__title {
  color: var(--pearl);
}

.page-home .hm-help__text {
  margin: 12px 0 0;
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--slate);
}

.page-home .hm-help__step--primary .hm-help__text {
  color: rgba(247, 244, 239, 0.8);
}

.page-home .hm-help__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--coral-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(196, 68, 31, 0.35);
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.page-home .hm-help__step--primary .hm-help__link {
  color: var(--coral);
  border-bottom-color: rgba(255, 107, 74, 0.45);
}

.page-home .hm-help__link:hover,
.page-home .hm-help__link:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.page-home .hm-help__step--primary .hm-help__link:hover,
.page-home .hm-help__step--primary .hm-help__link:focus-visible {
  color: var(--pearl);
  border-bottom-color: var(--pearl);
}

/* ---------- 收尾 ---------- */
.page-home .hm-next {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-top: 1px solid var(--gold);
  padding: clamp(48px, 6vw, 76px) 0;
  color: var(--pearl);
}

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

.page-home .hm-next__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  letter-spacing: -0.01em;
  color: var(--pearl);
}

.page-home .hm-next__lead {
  margin: 0;
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(247, 244, 239, 0.78);
}

.page-home .hm-next__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.page-home .hm-next__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--pearl);
  text-decoration: none;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.page-home .hm-next__links a:hover,
.page-home .hm-next__links a:focus-visible {
  color: var(--coral);
  border-color: var(--coral);
}

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

  .page-home .hm-step:last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 860px) {
  .page-home .hm-stable__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .page-home .hm-views__pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .page-home .hm-views__pair > .hm-view-card:nth-child(2) {
    margin-top: 56px;
  }
}

@media (min-width: 900px) {
  .page-home .hm-path__grid {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    align-items: start;
  }

  .page-home .hm-path__figure {
    margin-top: 52px;
  }

  .page-home .hm-path__steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-home .hm-step:last-child {
    grid-column: auto;
  }

  .page-home .hm-fav__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

@media (min-width: 960px) {
  .page-home .hm-hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    column-gap: clamp(40px, 5vw, 72px);
  }

  .page-home .hm-hero__index {
    justify-content: flex-start;
  }
}

@media (max-width: 719px) {
  .page-home .hm-hero__index {
    gap: 4px 14px;
  }

  .page-home .hm-hero__media::after {
    width: 76px;
    height: 76px;
    left: -12px;
    bottom: -12px;
  }

  .page-home .hm-tabs .tabs__list {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .page-home .hm-tabs .tab {
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hm-hero__kicker,
  .page-home .hm-hero__title,
  .page-home .hm-hero__lead,
  .page-home .hm-hero__actions,
  .page-home .hm-hero__tags {
    animation: none;
  }

  .page-home .hm-hero__index a,
  .page-home .hm-tabs .tab,
  .page-home .hm-textlink,
  .page-home .hm-help__link,
  .page-home .hm-next__links a {
    transition: none;
  }
}
