.page-home {
  --home-line-soft: rgba(58, 51, 80, .55);
  --home-rail: 168px;
  --home-shell-max: 1440px;
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  background:
    radial-gradient(circle at 50% 6%, rgba(75, 31, 134, .46), transparent 58%),
    var(--obsidian);
  color: var(--frost);
  font-family: var(--font-sans);
}

.page-home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--home-line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--home-line-soft) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .26;
}

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

.page-home .home-shell {
  max-width: var(--home-shell-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.page-home .ra-breadcrumb {
  padding: calc(var(--baseline) * 1.25) 0 0;
}

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

@media (min-width: 1100px) {
  .page-home .home-layout {
    grid-template-columns: var(--home-rail) minmax(0, 1fr);
    gap: 56px;
  }
}

.page-home .home-rail {
  display: none;
}

@media (min-width: 1100px) {
  .page-home .home-rail {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: sticky;
    top: 148px;
    align-self: start;
    padding: 8px 0 0 0;
    border-left: 1px solid var(--line);
  }

  .page-home .home-rail .ra-index-rail__link {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 11px 0 11px 16px;
    margin-left: -1px;
    border-left: 2px solid transparent;
    color: var(--lilac);
    font-size: 14px;
    letter-spacing: .02em;
    text-decoration: none;
    transition: color var(--t) var(--ease), border-color var(--t) var(--ease), background-color var(--t) var(--ease);
  }

  .page-home .home-rail .ra-index-rail__link:hover,
  .page-home .home-rail .ra-index-rail__link.is-active {
    color: var(--gold-light);
    border-left-color: var(--gold);
    background: rgba(75, 31, 134, .22);
  }

  .page-home .home-rail .ra-index-rail__num {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--gold);
  }
}

.page-home .home-flow {
  min-width: 0;
}

/* ---------- 首屏框景 ---------- */

.page-home .home-hero {
  padding: 40px 0 72px;
}

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

.page-home .home-hero__frame {
  position: relative;
  border: 2px solid var(--line);
  background: linear-gradient(180deg, rgba(27, 12, 51, .78), rgba(7, 6, 11, .94));
  box-shadow: var(--hard-shadow);
  padding: 34px 20px 40px;
  overflow: hidden;
  transition: border-color var(--t) var(--ease);
}

.page-home .home-hero__frame::before,
.page-home .home-hero__frame::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 9px;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 24px);
  opacity: .9;
}

.page-home .home-hero__frame::before { top: 0; }

.page-home .home-hero__frame::after {
  bottom: 0;
  transform: scaleY(-1);
}

.page-home .home-hero__frame:hover,
.page-home .home-hero__frame:focus-within {
  border-color: var(--gold);
}

@media (min-width: 900px) {
  .page-home .home-hero__frame {
    padding: 52px 44px 60px;
  }
}

.page-home .home-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 60px;
  }
}

.page-home .home-hero__figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--obsidian);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

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

.page-home .home-hero__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 54%, rgba(232, 184, 75, .2), transparent 64%);
}

.page-home .home-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.page-home .home-hero__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(30px, 6.4vw, 62px);
  line-height: 1.14;
  letter-spacing: -.01em;
  color: var(--frost);
}

.page-home .home-hero__lead {
  margin: 0;
  color: var(--frost);
  max-width: 34em;
}

.page-home .home-hero__note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--lilac);
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

.page-home .home-hero__actions > * {
  flex: 1 1 210px;
  max-width: 300px;
  text-align: center;
}

/* ---------- 通用区块 ---------- */

.page-home .home-block {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 900px) {
  .page-home .home-block {
    padding: 88px 0;
  }
}

.page-home .home-block .ra-section-head {
  margin-bottom: 28px;
}

.page-home .home-block__lead {
  margin: 0 0 32px;
  max-width: 46em;
  color: var(--frost);
}

.page-home .ra-prose {
  margin: 0 0 16px;
  color: var(--lilac);
  max-width: 44em;
}

.page-home .ra-prose:last-child {
  margin-bottom: 0;
}

.page-home .home-link {
  color: var(--gold-light);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease);
}

.page-home .home-link:hover,
.page-home .home-link:focus-visible {
  color: var(--frost);
  border-color: var(--frost);
}

.page-home .home-figure {
  margin: 0;
  border: 2px solid var(--line);
  background: var(--obsidian);
  overflow: hidden;
  transition: border-color var(--t) var(--ease);
}

.page-home .home-figure:hover {
  border-color: var(--gold);
}

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

/* ---------- 01 入口 ---------- */

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

@media (min-width: 900px) {
  .page-home .home-entry__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 56px;
    align-items: start;
  }
}

.page-home .home-entry__body {
  min-width: 0;
}

.page-home .home-entry__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

/* ---------- 02 迁移 ---------- */

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

@media (min-width: 1024px) {
  .page-home .home-migrate__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 56px;
    align-items: start;
  }
}

.page-home .home-stepper {
  min-width: 0;
}

.page-home .home-step__title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.35;
  color: var(--gold-light);
}

.page-home .home-migrate__figure {
  border-color: var(--line);
}

.page-home .home-migrate__more {
  margin: 32px 0 0;
  padding: 20px 22px;
  border-left: 3px solid var(--gold);
  background: rgba(42, 17, 72, .5);
  color: var(--lilac);
  max-width: 60em;
}

/* ---------- 03 更新 ---------- */

.page-home .home-weekly__body {
  max-width: 62em;
}

.page-home .home-weekly__list {
  list-style: none;
  margin: 28px 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

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

.page-home .home-weekly__item {
  background: linear-gradient(180deg, rgba(27, 12, 51, .72), rgba(7, 6, 11, .92));
  padding: 26px 22px 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background-color var(--t) var(--ease);
}

.page-home .home-weekly__item:hover {
  background: linear-gradient(180deg, rgba(42, 17, 72, .92), rgba(7, 6, 11, .96));
}

.page-home .home-weekly__idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--gold);
}

.page-home .home-weekly__item-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 20px;
  color: var(--frost);
}

.page-home .home-weekly__item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--lilac);
}

.page-home .home-weekly__figure {
  margin-top: 36px;
}

/* ---------- 04 人群 ---------- */

.page-home .home-people {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

@media (min-width: 900px) {
  .page-home .home-people {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 24px;
  }

  .page-home .home-people__item:nth-child(1) { grid-column: span 3; }
  .page-home .home-people__item:nth-child(2) { grid-column: span 3; }
  .page-home .home-people__item:nth-child(3) { grid-column: span 2; }
  .page-home .home-people__item:nth-child(4) { grid-column: span 4; }
}

.page-home .home-people__item {
  position: relative;
  padding: 28px 24px 30px;
  border: 1px solid var(--line);
  background: rgba(27, 12, 51, .42);
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease);
}

.page-home .home-people__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 2px;
  background: var(--gold);
}

.page-home .home-people__item:hover {
  border-color: var(--gold);
  background: rgba(42, 17, 72, .62);
}

.page-home .home-people__title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(18px, 2.2vw, 23px);
  color: var(--frost);
}

.page-home .home-people__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--lilac);
}

/* ---------- 收尾 ---------- */

.page-home .home-close {
  padding: 0 0 88px;
}

.page-home .home-stats {
  list-style: none;
  margin: 0 0 48px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

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

.page-home .home-stats__item {
  background: var(--obsidian);
  padding: 28px 22px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-home .home-stats__value {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1;
  color: var(--gold-light);
}

.page-home .home-stats__label {
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--lilac);
}

.page-home .home-close__cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 32px 26px;
  border: 2px solid var(--line);
  background: linear-gradient(120deg, rgba(42, 17, 72, .82), rgba(7, 6, 11, .92));
  transition: border-color var(--t) var(--ease);
}

.page-home .home-close__cta:hover {
  border-color: var(--gold);
}

.page-home .home-close__cta .ra-prose {
  margin: 0;
  color: var(--frost);
}

@media (min-width: 900px) {
  .page-home .home-close__cta {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 40px;
    padding: 40px 44px;
  }
}

.page-home .home-close__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-home .home-close__actions > * {
  flex: 1 1 180px;
  text-align: center;
}

@media (max-width: 480px) {
  .page-home .home-hero__frame {
    box-shadow: 6px 6px 0 rgba(3, 3, 7, .9);
    padding: 28px 16px 34px;
  }

  .page-home .home-hero__actions > *,
  .page-home .home-close__actions > * {
    flex: 1 1 100%;
    max-width: none;
  }

  .page-home .home-close__cta {
    padding: 26px 18px;
  }
}
