.page-home {
  display: block;
  background: var(--ink-deep);
  color: var(--fg);
}

.page-home .shell {
  position: relative;
  z-index: 1;
}

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

.page-home .hm-hero {
  position: relative;
  padding: clamp(48px, 9vw, 104px) 0 clamp(44px, 7vw, 88px);
  overflow: hidden;
  isolation: isolate;
}

.page-home .hm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(108deg, var(--ink-navy) 0 56%, transparent 56.4%),
    radial-gradient(120% 90% at 92% 6%, rgba(198, 75, 224, 0.22), transparent 64%);
  z-index: -1;
  pointer-events: none;
}

.page-home .hm-hero__inner {
  display: grid;
  gap: clamp(30px, 5vw, 56px);
  align-items: center;
}

.page-home .hm-crumb {
  display: inline-block;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--index-blue);
}

.page-home .hm-hero__title {
  margin: 14px 0 0;
  text-wrap: balance;
}

.page-home .hm-hero__lede {
  margin: 22px 0 0;
  max-width: 34em;
  font-size: var(--step-1);
  line-height: 1.78;
  color: var(--fg-soft);
}

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

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

.page-home .hm-hero__figure::before {
  content: "";
  position: absolute;
  left: -12px;
  top: -12px;
  width: 76px;
  height: 76px;
  border-left: 2px solid var(--brick);
  border-top: 2px solid var(--brick);
  pointer-events: none;
}

.page-home .hm-hero__figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-stack);
}

/* ---------- 四个入口 ---------- */

.page-home .hm-doors {
  position: relative;
  background: var(--ink-deep);
}

.page-home .hm-doors::after {
  content: "";
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: 0;
  height: 1px;
  background: var(--line);
  transform: skewY(-1.2deg);
  transform-origin: left center;
  pointer-events: none;
}

.page-home .hm-doors__grid {
  display: grid;
  gap: 16px;
  margin-top: clamp(26px, 4vw, 42px);
}

.page-home .hm-door {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 3vw, 32px) clamp(20px, 3vw, 30px) clamp(20px, 3vw, 26px);
  background: linear-gradient(158deg, var(--ink-navy), rgba(11, 16, 38, 0.92));
  border: 1px solid var(--line);
  border-left: 3px solid var(--brick);
  border-radius: var(--radius);
  color: var(--fg);
  text-decoration: none;
  min-height: 176px;
  overflow: hidden;
  transition:
    transform 0.24s var(--ease),
    border-left-color 0.24s var(--ease),
    box-shadow 0.24s var(--ease);
}

.page-home .hm-door::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, transparent 48%, rgba(240, 116, 58, 0.3) 50%);
  pointer-events: none;
}

.page-home .hm-door:hover,
.page-home .hm-door:focus-visible {
  transform: translateY(-3px);
  border-left-color: var(--neon-pink);
  box-shadow: var(--shadow-stack);
}

.page-home .hm-door__num {
  position: absolute;
  right: 18px;
  top: 16px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--amber);
}

.page-home .hm-door__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.2vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  padding-right: 46px;
}

.page-home .hm-door__desc {
  font-size: 0.975rem;
  line-height: 1.72;
  color: var(--fg-soft);
  max-width: 40em;
}

.page-home .hm-door__go {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  color: var(--brick);
}

.page-home .hm-door:hover .hm-door__go,
.page-home .hm-door:focus-visible .hm-door__go {
  color: var(--neon-pink);
}

/* ---------- 16 个分类 ---------- */

.page-home .hm-map {
  position: relative;
  background: var(--ink-deep);
}

.page-home .hm-map__figure {
  margin-top: clamp(24px, 4vw, 40px);
}

.page-home .hm-map__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: clamp(22px, 3vw, 32px) 0 0;
  padding: 0;
  list-style: none;
}

.page-home .hm-map__item {
  position: relative;
  padding: 16px 16px 18px;
  background: rgba(22, 32, 74, 0.62);
  border: 1px solid var(--line);
  border-top: 2px solid var(--neon-purple);
  border-radius: var(--radius);
  transition:
    transform 0.24s var(--ease),
    border-top-color 0.24s var(--ease),
    background 0.24s var(--ease);
}

.page-home .hm-map__item:nth-child(4n + 2) {
  border-top-color: var(--brick);
}

.page-home .hm-map__item:nth-child(4n + 3) {
  border-top-color: var(--cyan);
}

.page-home .hm-map__item:nth-child(4n + 4) {
  border-top-color: var(--neon-pink);
}

.page-home .hm-map__item:hover {
  transform: translateY(-3px);
  background: rgba(22, 32, 74, 0.9);
}

.page-home .hm-map__num {
  display: inline-block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--amber);
}

.page-home .hm-map__name {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  line-height: 1.32;
  color: var(--fg);
}

.page-home .hm-map__desc {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.62;
  color: var(--fg-soft);
}

/* ---------- 六大场景 ---------- */

.page-home .hm-scenes {
  position: relative;
  background:
    radial-gradient(80% 100% at 12% 0%, rgba(240, 116, 58, 0.13), transparent 62%),
    var(--ink-deep);
}

.page-home .hm-scenes::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 64px;
  background: var(--ink-navy);
  clip-path: polygon(0 0, 100% 0, 100% 24%, 0 100%);
  opacity: 0.45;
  pointer-events: none;
}

.page-home .hm-scenes__head {
  display: grid;
  gap: 18px;
}

.page-home .hm-scenes__title {
  margin: 10px 0 0;
  text-wrap: balance;
}

.page-home .hm-scenes__lede {
  margin: 0;
  max-width: 42em;
  font-size: var(--step-1);
  line-height: 1.78;
  color: var(--fg-soft);
}

.page-home .hm-scenes__figure {
  margin-top: clamp(24px, 4vw, 40px);
}

.page-home .hm-scenes__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: clamp(20px, 3vw, 28px) 0 0;
  padding: 0;
  list-style: none;
}

.page-home .hm-scene {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 14px 16px;
  background: var(--ink-navy);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-home .hm-scene__idx {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--neon-purple);
}

.page-home .hm-scene__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--fg);
}

.page-home .hm-scene__note {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--fg-soft);
}

/* ---------- 跨设备同步 ---------- */

.page-home .hm-sync {
  position: relative;
  background:
    linear-gradient(180deg, transparent 0%, rgba(22, 32, 74, 0.55) 100%),
    var(--ink-deep);
}

.page-home .hm-sync__grid {
  display: grid;
  gap: clamp(26px, 5vw, 56px);
  align-items: center;
}

.page-home .hm-sync__visual .figure-frame {
  margin: 0;
}

.page-home .hm-sync__copy .t-title {
  margin: 10px 0 0;
  text-wrap: balance;
}

.page-home .hm-sync__lede {
  margin: 18px 0 0;
  max-width: 34em;
  font-size: var(--step-1);
  line-height: 1.78;
  color: var(--fg-soft);
}

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

.page-home .hm-sync__list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.95rem;
  line-height: 1.72;
  color: var(--fg-soft);
}

.page-home .hm-sync__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 10px;
  height: 2px;
  background: var(--cyan);
}

.page-home .hm-sync__more {
  margin: 24px 0 0;
}

.page-home .hm-sync__fine {
  margin: 12px 0 0;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--index-blue);
}

.page-home .hm-sync__fine a {
  color: var(--sign-cream);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 本季动态 ---------- */

.page-home .hm-news__list {
  display: grid;
  gap: 0;
  margin: clamp(24px, 4vw, 36px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.page-home .hm-news__item {
  display: grid;
  gap: 6px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.page-home .hm-news__time {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--amber);
}

.page-home .hm-news__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  line-height: 1.36;
  color: var(--fg);
}

.page-home .hm-news__desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.72;
  color: var(--fg-soft);
}

.page-home .hm-news__more {
  margin: 24px 0 0;
}

/* ---------- 敲门预约 ---------- */

.page-home .hm-cta {
  padding-bottom: clamp(64px, 10vw, 120px);
}

.page-home .hm-cta__inner {
  position: relative;
  display: grid;
  gap: clamp(28px, 5vw, 52px);
  padding: clamp(26px, 5vw, 48px);
  background: linear-gradient(152deg, var(--ink-navy) 0%, rgba(74, 36, 24, 0.5) 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-home .hm-cta__inner::before {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -42%;
  width: 62%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(240, 116, 58, 0.24), transparent 72%);
  pointer-events: none;
}

.page-home .hm-cta__copy {
  position: relative;
  z-index: 1;
}

.page-home .hm-cta__copy .t-title {
  margin: 10px 0 0;
  text-wrap: balance;
}

.page-home .hm-cta__lede {
  margin: 18px 0 0;
  max-width: 36em;
  font-size: var(--step-0);
  line-height: 1.78;
  color: var(--fg-soft);
}

.page-home .hm-cta__copy .btn {
  margin-top: 26px;
}

.page-home .hm-cta__list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  margin: 0;
}

.page-home .hm-cta__list dt {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--neon-purple);
}

.page-home .hm-cta__list dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.68;
  color: var(--fg);
  word-break: break-word;
}

/* ---------- 断点 ---------- */

@media (max-width: 519px) {
  .page-home .hm-map__grid {
    grid-template-columns: 1fr;
  }
}

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

  .page-home .hm-door--a {
    grid-column: span 7;
  }

  .page-home .hm-door--b {
    grid-column: span 5;
  }

  .page-home .hm-door--c {
    grid-column: span 5;
  }

  .page-home .hm-door--d {
    grid-column: span 7;
  }

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

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

  .page-home .hm-news__item {
    grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1.7fr);
    gap: 20px;
    align-items: baseline;
  }
}

@media (min-width: 900px) {
  .page-home .hm-hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .page-home .hm-hero__figure {
    transform: translateY(-10px);
  }

  .page-home .hm-scenes__head {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: end;
  }

  .page-home .hm-sync__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .page-home .hm-cta__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

@media (min-width: 1080px) {
  .page-home .hm-map__figure {
    width: 62%;
    margin-left: auto;
  }

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

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

@media (prefers-reduced-motion: reduce) {
  .page-home .hm-door,
  .page-home .hm-map__item {
    transition: none;
  }

  .page-home .hm-door:hover,
  .page-home .hm-door:focus-visible,
  .page-home .hm-map__item:hover {
    transform: none;
  }
}
