.page-home {
  --home-line: rgba(196, 146, 46, 0.45);
  --home-shadow: 0 24px 44px -34px rgba(27, 25, 23, 0.65);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}

.page-home .home-crumbs {
  padding: 18px 0 4px;
  font-size: 13px;
}

.page-home .crumbs {
  color: var(--ink-soft);
}

.page-home .crumbs a {
  color: var(--ink-soft);
  text-decoration: none;
}

.page-home .crumbs a:hover {
  color: var(--red);
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 24px 0 54px;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: auto;
  right: -40%;
  bottom: -20%;
  width: 122%;
  height: 50%;
  background: linear-gradient(156deg, var(--red) 0%, var(--red-deep) 78%);
  border-radius: 46px;
  transform: rotate(-7deg);
  opacity: 0.94;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -72px;
  top: 12%;
  width: 168px;
  height: 168px;
  border: 2px dashed var(--gold);
  border-radius: 50%;
  opacity: 0.5;
}

.page-home .home-hero__inner {
  position: relative;
  display: grid;
  gap: 26px;
  align-items: start;
}

.page-home .home-hero__title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(34px, 8.2vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 10px 0 14px;
}

.page-home .home-hero__title em {
  font-style: normal;
  color: var(--red);
  background: linear-gradient(transparent 64%, var(--gold-pale) 64%);
}

.page-home .home-hero__lede {
  max-width: 34em;
  font-size: 16px;
  line-height: 1.78;
  color: var(--ink-soft);
  margin: 0;
}

.page-home .home-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 10px;
}

.page-home .chip {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--home-line);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.page-home .chip:hover {
  border-color: var(--red);
  color: var(--red);
}

.page-home .chip[aria-pressed="true"] {
  background: var(--red);
  border-color: var(--red);
  color: var(--paper);
}

.page-home .home-index__status {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--ink-soft);
}

.page-home .home-index {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.page-home .home-index__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid rgba(27, 25, 23, 0.08);
  border-left: 3px solid var(--celadon);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 12px 26px -26px rgba(27, 25, 23, 0.7);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.page-home .home-index__link:hover {
  transform: translateY(-2px);
  border-left-color: var(--red);
  box-shadow: var(--home-shadow);
}

.page-home .home-index__num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}

.page-home .home-index__body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.page-home .home-index__name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.01em;
}

.page-home .home-index__desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.page-home .home-index__tag {
  font-size: 11px;
  white-space: nowrap;
}

/* 入口卡片 */
.page-home .home-hero__entry {
  min-width: 0;
}

.page-home .home-entry {
  background: var(--paper);
  border: 1px solid var(--gold-pale);
  border-radius: var(--radius-lg);
  box-shadow: var(--home-shadow);
  padding: 16px 16px 22px;
}

.page-home .home-entry__shot {
  margin: 0;
}

.page-home .home-entry__shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  background: var(--celadon-pale);
}

.page-home .home-entry__body {
  padding: 16px 4px 0;
}

.page-home .home-entry__kicker {
  display: inline-block;
  margin: 0 0 10px;
  padding-bottom: 3px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--red);
  border-bottom: 2px solid var(--gold);
}

.page-home .home-entry__title {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.24;
  margin: 0 0 8px;
}

.page-home .home-entry__body p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink-soft);
}

.page-home .home-entry__cta {
  display: block;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
}

.page-home .home-entry__link {
  display: table;
  margin: 14px auto 0;
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px dashed var(--home-line);
  padding-bottom: 2px;
}

.page-home .home-entry__link:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* ---------- 三步路径 ---------- */
.page-home .home-steps {
  padding: 48px 0;
}

.page-home .home-steps__head {
  max-width: 48ch;
}

.page-home .home-steps__head h2 {
  font-family: var(--font-head);
  font-size: clamp(26px, 5.6vw, 40px);
  font-weight: 900;
  line-height: 1.16;
  margin: 8px 0 10px;
}

.page-home .home-steps__head p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.page-home .home-steps__grid {
  display: grid;
  gap: 24px;
  margin-top: 26px;
}

.page-home .step-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.page-home .home-step__btn {
  width: 100%;
  display: grid;
  gap: 6px;
  justify-items: start;
  padding: 12px;
  background: var(--paper);
  border: 1px solid rgba(27, 25, 23, 0.1);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-sans);
  text-align: left;
  color: var(--ink);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.page-home .home-step__btn[aria-pressed="true"] {
  background: var(--red);
  border-color: var(--red-deep);
  color: var(--paper);
}

.page-home .step-rail__num {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--red);
}

.page-home .home-step__btn[aria-pressed="true"] .step-rail__num {
  color: var(--gold-pale);
}

.page-home .step-rail__text {
  font-weight: 700;
  font-size: 15px;
}

.page-home .home-step__panels {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.page-home .home-step__panel {
  background: var(--paper);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.page-home .home-step__panel h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.3;
  margin: 0 0 8px;
}

.page-home .home-step__panel p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.page-home .copy-btn {
  margin-top: 14px;
  padding: 8px 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: var(--gold-pale);
  border: 1px dashed var(--gold);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.page-home .copy-btn:hover {
  background: var(--gold);
}

.page-home .home-steps__figure {
  margin: 0;
}

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

.page-home .home-steps__figure img {
  border-radius: var(--radius-md);
}

/* ---------- 额度与旧版 ---------- */
.page-home .home-ledger {
  padding: 46px 0;
  background: linear-gradient(180deg, var(--celadon-pale) 0%, #EAF1EC 100%);
  border-top: 1px solid rgba(63, 122, 104, 0.18);
  border-bottom: 1px solid rgba(63, 122, 104, 0.18);
}

.page-home .home-ledger__grid {
  display: grid;
  gap: 26px;
  align-items: center;
}

.page-home .home-ledger__copy h2 {
  font-family: var(--font-head);
  font-size: clamp(25px, 5.4vw, 38px);
  font-weight: 900;
  line-height: 1.18;
  margin: 8px 0 12px;
}

.page-home .home-ledger__copy > p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.page-home .ledger {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 14px 18px;
  background: var(--paper);
  border-left: 5px solid var(--red);
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 30px -28px rgba(27, 25, 23, 0.8);
}

.page-home .ledger__num {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  color: var(--red);
}

.page-home .ledger__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

.page-home .home-ledger__note {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(27, 25, 23, 0.6);
}

.page-home .home-fold {
  margin-top: 14px;
  padding: 12px 16px;
  background: rgba(255, 252, 245, 0.75);
  border: 1px solid rgba(63, 122, 104, 0.25);
  border-radius: var(--radius-md);
}

.page-home .home-fold summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.page-home .home-fold ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.page-home .home-fold li {
  padding-left: 14px;
  border-left: 2px solid var(--gold-pale);
}

.page-home .home-fold strong {
  color: var(--ink);
}

.page-home .home-backlink {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
  border-bottom: 2px solid var(--gold-pale);
  padding-bottom: 2px;
}

.page-home .home-backlink:hover {
  border-bottom-color: var(--red);
}

.page-home .home-ledger__figure {
  margin: 0;
}

.page-home .home-ledger__figure img {
  border-radius: var(--radius-md);
}

/* ---------- 常见处境 ---------- */
.page-home .home-scenes {
  padding: 50px 0 20px;
}

.page-home .home-scenes__head {
  max-width: 46ch;
}

.page-home .home-scenes__head h2 {
  font-family: var(--font-head);
  font-size: clamp(25px, 5.4vw, 38px);
  font-weight: 900;
  line-height: 1.18;
  margin: 8px 0 10px;
}

.page-home .home-scenes__head p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.page-home .home-scenes__grid {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.page-home .home-scene {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid rgba(27, 25, 23, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 34px -30px rgba(27, 25, 23, 0.6);
}

.page-home .home-scene h3 {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.32;
  margin: 0;
}

.page-home .home-scene p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--ink-soft);
}

.page-home .home-scene__link {
  justify-self: start;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
  border-bottom: 2px solid var(--gold-pale);
  padding-bottom: 2px;
}

.page-home .home-scene__link:hover {
  border-bottom-color: var(--red);
}

.page-home .home-scenes__foot {
  display: grid;
  gap: 22px;
  margin-top: 26px;
}

.page-home .home-scenes__figure {
  margin: 0;
}

.page-home .home-scenes__figure img {
  border-radius: var(--radius-md);
}

.page-home .home-check {
  padding: 24px 22px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
}

.page-home .home-check h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.3;
  margin: 0 0 16px;
}

.page-home .home-check ol {
  list-style: none;
  counter-reset: home-check;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.page-home .home-check li {
  counter-increment: home-check;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 252, 245, 0.84);
}

.page-home .home-check li::before {
  content: counter(home-check);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  background: var(--gold-pale);
  border-radius: 50%;
}

.page-home .home-check .copy-btn {
  margin-top: 18px;
  background: var(--gold);
  border-color: transparent;
  color: var(--ink);
}

.page-home .home-scenes__back {
  margin: 18px 0 0;
}

/* ---------- 下一步 ---------- */
.page-home .home-next {
  padding: 44px 0 62px;
}

.page-home .home-next__head {
  max-width: 52ch;
}

.page-home .home-next__head h2 {
  font-family: var(--font-head);
  font-size: clamp(25px, 5.2vw, 38px);
  font-weight: 900;
  line-height: 1.18;
  margin: 8px 0 10px;
}

.page-home .home-next__head p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.page-home .home-next__grid {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.page-home .home-next__card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 20px 18px;
  background: var(--paper);
  border-radius: var(--radius-md);
  border-bottom: 4px solid var(--red);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.page-home .home-next__card:nth-child(2) {
  border-bottom-color: var(--gold);
}

.page-home .home-next__card:nth-child(3) {
  border-bottom-color: var(--celadon);
}

.page-home .home-next__card:nth-child(4) {
  border-bottom-color: var(--ink);
}

.page-home .home-next__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--home-shadow);
}

.page-home .home-next__no {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
}

.page-home .home-next__card h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.page-home .home-next__card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.page-home .home-next__more {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-home .home-hero {
    padding: 30px 0 62px;
  }

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

  .page-home .home-next__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

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

  .page-home .home-hero::before {
    top: -18%;
    right: -44%;
    bottom: auto;
    width: 90%;
    height: 128%;
    border-radius: 72px;
    transform: rotate(-8deg);
  }

  .page-home .home-hero::after {
    left: -90px;
    top: 46%;
    width: 220px;
    height: 220px;
  }

  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    gap: 40px;
  }

  .page-home .home-hero__lede {
    font-size: 17px;
  }

  .page-home .home-steps {
    padding: 62px 0;
  }

  .page-home .home-steps__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: start;
    gap: 36px;
  }

  .page-home .home-step__btn {
    padding: 14px 12px;
  }

  .page-home .home-ledger {
    padding: 60px 0;
  }

  .page-home .home-ledger__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 42px;
  }

  .page-home .home-scenes {
    padding: 64px 0 24px;
  }

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

  .page-home .home-scenes__foot {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 36px;
    margin-top: 32px;
  }

  .page-home .home-next {
    padding: 60px 0 78px;
  }

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

@media (min-width: 1180px) {
  .page-home .home-hero__title {
    font-size: 68px;
  }

  .page-home .home-entry__title {
    font-size: 28px;
  }
}
