.page-home {
  --home-num-stroke: 2px;
  --home-hero-pad-top: clamp(112px, 16vh, 176px);
  --home-hero-pad-bottom: clamp(64px, 10vh, 120px);
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--home-hero-pad-top) 0 var(--home-hero-pad-bottom);
  background:
    radial-gradient(120% 90% at 82% 8%, rgba(111, 195, 216, 0.28) 0%, rgba(111, 195, 216, 0) 58%),
    linear-gradient(176deg, var(--qf-lake-deep) 0%, #0b5a73 46%, var(--qf-lake) 82%, var(--qf-snow) 100%);
  color: var(--qf-snow);
}

.page-home .home-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

.page-home .home-hero__eyebrow {
  color: var(--qf-prayer);
  letter-spacing: 0.08em;
}

.page-home .home-hero__title {
  margin: 14px 0 0;
  font-size: clamp(32px, 7.6vw, 60px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--qf-snow);
  max-width: 15em;
}

.page-home .home-hero__lede {
  margin: 20px 0 0;
  max-width: 30em;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(251, 253, 254, 0.86);
}

.page-home .home-hero__actions {
  margin-top: 32px;
}

.page-home .home-hero__version {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px 20px;
}

.page-home .home-hero__version-label {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: rgba(251, 253, 254, 0.68);
}

.page-home .home-hero__version-num {
  font-size: clamp(52px, 11vw, 120px);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  color: transparent;
  -webkit-text-stroke: var(--home-num-stroke) var(--qf-prayer);
  paint-order: stroke fill;
}

.page-home .home-hero__copy {
  align-self: center;
}

.page-home .home-hero__right {
  position: relative;
  min-height: 300px;
}

.page-home .home-hero__bg {
  position: absolute;
  inset: -8% -14% 4% -6%;
  z-index: 0;
  border-radius: var(--qf-radius-lg);
  overflow: hidden;
  opacity: 0.5;
  mix-blend-mode: screen;
}

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

.page-home .home-hero__cards {
  position: relative;
  z-index: 1;
  border-radius: var(--qf-radius-md);
  overflow: hidden;
  box-shadow: var(--qf-shadow-2);
  transform: translateY(0);
  transition: transform 320ms ease-out;
}

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

.page-home .home-hero__trace {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--qf-sunset) 0%, var(--qf-prayer) 44%, transparent 100%);
  opacity: 0.85;
}

@media (min-width: 900px) {
  .page-home .home-hero__grid {
    grid-template-columns: 11fr 9fr;
    gap: 56px;
  }

  .page-home .home-hero__right {
    min-height: 540px;
    margin-right: calc(-1 * (var(--qf-gutter) + 40px));
  }

  .page-home .home-hero__cards {
    width: 108%;
    margin-left: -4%;
  }

  .page-home .home-hero__cards:hover,
  .page-home .home-hero__cards:focus-within {
    transform: translateY(-6px);
  }
}

/* ---------- 章节编号通用 ---------- */
.page-home .home-entry__num,
.page-home .home-second__num,
.page-home .home-step__num {
  font-size: clamp(58px, 9vw, 96px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--qf-lake);
  opacity: 0.55;
  user-select: none;
}

/* ---------- 01 专区入口 ---------- */
.page-home .home-entry {
  position: relative;
}

.page-home .home-entry__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.page-home .home-entry__body .qf-h2 {
  margin: 12px 0 0;
  color: var(--qf-lake-deep);
}

.page-home .home-entry__body .qf-prose {
  margin: 18px 0 0;
  max-width: 34em;
  color: var(--qf-ink);
}

.page-home .home-entry__list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .home-entry__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  color: var(--qf-ink);
}

.page-home .home-entry__idx {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: var(--qf-radius-pill);
  background: var(--qf-mist);
  color: var(--qf-lake-deep);
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.page-home .home-entry__cta {
  margin-top: 30px;
}

.page-home .home-entry__media {
  border-radius: var(--qf-radius-lg);
  overflow: hidden;
  background: var(--qf-mist);
}

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

@media (min-width: 768px) {
  .page-home .home-entry__grid {
    grid-template-columns: 1fr 6fr 5fr;
    gap: 24px;
  }
}

@media (min-width: 1100px) {
  .page-home .home-entry__grid {
    grid-template-columns: 1fr 5fr 6fr;
    align-items: stretch;
  }
}

/* ---------- 02 第二栏 ---------- */
.page-home .home-second {
  border-radius: 0;
}

.page-home .home-second__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.page-home .home-second__body .qf-h2 {
  margin: 12px 0 0;
  color: var(--qf-lake-deep);
}

.page-home .home-second__body .qf-prose {
  margin: 18px 0 0;
  max-width: 36em;
  color: var(--qf-ink);
}

.page-home .home-second__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.page-home .home-second__card {
  background: var(--qf-snow);
  border: 1px solid var(--qf-line);
  border-radius: var(--qf-radius-md);
  padding: 24px 24px 26px;
  transition: transform 240ms ease-out, box-shadow 240ms ease-out;
}

.page-home .home-second__card:hover,
.page-home .home-second__card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--qf-shadow-2);
}

.page-home .home-second__card .qf-h3 {
  margin: 12px 0 8px;
  color: var(--qf-lake-deep);
}

.page-home .home-second__concl {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--qf-stone);
}

@media (min-width: 768px) {
  .page-home .home-second__grid {
    grid-template-columns: 1fr 6fr 5fr;
    gap: 24px;
  }

  .page-home .home-second__cards {
    grid-column: 2 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .home-second__cards > :first-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1180px) {
  .page-home .home-second__grid {
    grid-template-columns: 1fr 4fr 7fr;
    align-items: start;
  }

  .page-home .home-second__cards {
    grid-column: 2 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .home-second__cards > :first-child {
    grid-column: auto;
  }
}

/* ---------- 03 第四步 ---------- */
.page-home .home-step {
  position: relative;
}

.page-home .home-step__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-home .home-step__media {
  border-radius: var(--qf-radius-lg);
  overflow: hidden;
  background: var(--qf-prayer-soft);
}

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

.page-home .home-step__body .qf-h2 {
  margin: 12px 0 0;
  color: var(--qf-lake-deep);
}

.page-home .home-step__body .qf-prose {
  margin: 18px 0 0;
  max-width: 34em;
  color: var(--qf-ink);
}

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

.page-home .home-step__tags .qf-tag {
  background: var(--qf-prayer-soft);
  color: var(--qf-lake-deep);
}

.page-home .home-step__body .qf-btn {
  margin-top: 30px;
}

@media (min-width: 900px) {
  .page-home .home-step__grid {
    grid-template-columns: 1fr 6fr 5fr;
    gap: 28px;
    align-items: center;
  }
}

/* ---------- 数据带 ---------- */
.page-home .home-band {
  padding: clamp(52px, 8vh, 84px) 0;
}

.page-home .home-band__eyebrow {
  color: var(--qf-prayer-soft);
}

.page-home .home-band__title {
  margin: 10px 0 0;
  color: var(--qf-snow);
}

.page-home .home-band__hint {
  margin: 12px 0 0;
  font-size: 13px;
  color: rgba(251, 253, 254, 0.66);
}

.page-home .home-band__scroller {
  margin-top: 30px;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 18px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--qf-lake-light) transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 calc(100% - 26px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 calc(100% - 26px), transparent 100%);
}

.page-home .home-band__scroller:focus-visible {
  outline: 2px solid var(--qf-sunset);
  outline-offset: 6px;
  border-radius: var(--qf-radius-sm);
}

.page-home .home-band__scroller::-webkit-scrollbar {
  height: 6px;
}

.page-home .home-band__scroller::-webkit-scrollbar-thumb {
  background: var(--qf-lake-light);
  border-radius: var(--qf-radius-pill);
}

.page-home .home-band__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-width: 186px;
  padding: 22px 22px 24px;
  border-radius: var(--qf-radius-md);
  background: rgba(251, 253, 254, 0.1);
  border: 1px solid rgba(251, 253, 254, 0.22);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-home .home-band__num {
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--qf-snow);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.page-home .home-band__unit {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--qf-prayer);
}

.page-home .home-band__label {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(251, 253, 254, 0.82);
}

/* ---------- 结尾 ---------- */
.page-home .home-close {
  padding-bottom: clamp(72px, 12vh, 128px);
}

.page-home .home-close__inner {
  max-width: 780px;
}

.page-home .home-close__title {
  color: var(--qf-lake-deep);
}

.page-home .home-close__text {
  margin: 18px 0 0;
  color: var(--qf-ink);
}

.page-home .home-close__actions {
  margin-top: 30px;
  flex-wrap: wrap;
}

/* ---------- 焦点与动效降级 ---------- */
.page-home a:focus-visible,
.page-home button:focus-visible,
.page-home [tabindex]:focus-visible {
  outline: 2px solid var(--qf-sunset);
  outline-offset: 3px;
  border-radius: var(--qf-radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-second__card,
  .page-home .home-hero__cards {
    transition: none;
  }

  .page-home .home-second__card:hover,
  .page-home .home-second__card:focus-visible,
  .page-home .home-hero__cards:hover,
  .page-home .home-hero__cards:focus-within {
    transform: none;
  }
}
</main>
