/* ================= 首页 · 财神棋牌局 ================= */
.page-home {
  --ph-gap: 16px;
  display: block;
  padding-bottom: 64px;
}

/* ---------- 首屏导语 ---------- */
.page-home .home-lede {
  padding: 24px 0 4px;
  max-width: 800px;
}

.page-home .home-lede h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 10px 0 16px;
}

.page-home .home-lede .lede {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  max-width: 68ch;
}

.page-home .home-lede__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

/* ---------- Bento 目录板 ---------- */
.page-home .bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--ph-gap);
  margin: 26px 0 52px;
}

.page-home .bento__focus {
  grid-area: focus;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 340px;
  background: var(--ink-green);
  color: var(--jade);
  border: var(--bd);
  box-shadow: var(--shadow-1);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}

.page-home .bento__focus:hover {
  transform: translate(2px, -2px);
  box-shadow: var(--shadow-2);
}

.page-home .bento__focusbg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .42;
}

.page-home .bento__focus::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 48, 42, .30) 22%, rgba(16, 48, 42, .94) 80%);
  pointer-events: none;
}

.page-home .bento__focusbody {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  padding: 22px 20px 24px;
}

.page-home .bento__focustitle {
  font-family: var(--font-display);
  font-size: clamp(21px, 3vw, 29px);
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: var(--jade);
  margin: 0;
}

.page-home .bento__focusbody p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(248, 242, 228, .88);
  max-width: 52ch;
}

.page-home .bento__focusbody .btn {
  justify-self: start;
  margin-top: 6px;
}

.page-home .bento__side {
  grid-area: auto;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 20px;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}

.page-home .bento__side:hover {
  transform: translate(2px, -2px);
  box-shadow: var(--shadow-2);
}

.page-home .bento__side h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
}

.page-home .bento__side p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--grey);
}

.page-home .bento__side .linkarrow {
  margin-top: 6px;
}

.page-home .bento__bar {
  grid-area: bar;
  display: grid;
  gap: 20px;
  padding: 22px 20px;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}

.page-home .bento__bar:hover {
  transform: translate(2px, -2px);
  box-shadow: var(--shadow-2);
}

.page-home .bento__barcell {
  display: grid;
  gap: 8px;
  align-content: start;
}

.page-home .bento__barcell h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--jade);
  margin: 0;
}

.page-home .bento__barcell p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(248, 242, 228, .8);
}

.page-home .eyebrow--jade {
  color: var(--gold);
}

.page-home .linkarrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--red);
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
  justify-self: start;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.page-home .linkarrow::after {
  content: "→";
}

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

.page-home .linkarrow--jade {
  color: var(--gold);
  border-color: var(--gold);
}

.page-home .linkarrow--jade:hover {
  color: var(--jade);
  border-color: var(--jade);
}

/* ---------- 通用区块骨架 ---------- */
.page-home .home-block {
  margin: 0 0 52px;
}

.page-home .home-block__head {
  max-width: 720px;
  margin-bottom: 22px;
}

.page-home .home-block__head h2,
.page-home .switchline__text h2,
.page-home .legacy__text h2,
.page-home .records__panel h2,
.page-home .closer__body h2 {
  font-family: var(--font-display);
  font-size: clamp(23px, 3.4vw, 34px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 8px 0 12px;
}

.page-home .home-block__lede {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  max-width: 68ch;
}

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

/* ---------- 三步自查 ---------- */
.page-home .steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  counter-reset: none;
}

.page-home .steps__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  background: var(--jade);
  border: var(--bd);
  box-shadow: var(--shadow-1);
}

.page-home .steps__body h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.32;
  color: var(--ink);
  margin: 0 0 6px;
}

.page-home .steps__body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--grey);
}

.page-home .home-block__aside {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 20px;
}

.page-home .home-block__aside h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
}

.page-home .home-block__aside p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--grey);
}

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

.page-home .plainlist li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink);
}

.page-home .plainlist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-deep);
}

/* ---------- 切换入口 ---------- */
.page-home .switchline {
  display: grid;
  gap: 20px;
  margin: 0 0 52px;
  padding: 24px 20px;
  background: var(--red);
  color: var(--jade);
  border: var(--bd);
  box-shadow: var(--shadow-1);
}

.page-home .switchline__text h2 {
  color: var(--jade);
}

.page-home .switchline__text p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(248, 242, 228, .9);
  max-width: 60ch;
}

.page-home .switchline__text .linkarrow {
  color: var(--gold);
  border-color: var(--gold);
  margin-top: 4px;
}

.page-home .switchline__text .linkarrow:hover {
  color: var(--jade);
  border-color: var(--jade);
}

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

.page-home .switchline__step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: rgba(248, 242, 228, .08);
  border: 2px solid rgba(248, 242, 228, .28);
}

.page-home .switchline__step--lit {
  background: var(--jade);
  border-color: var(--jade);
}

.page-home .switchline__step--lit .switchline__label {
  color: var(--red);
}

.page-home .switchline__step--lit .switchline__hint {
  color: var(--grey);
}

.page-home .switchline__step .numchip {
  grid-row: 1 / 3;
}

.page-home .switchline__label {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  color: var(--jade);
  line-height: 1.3;
}

.page-home .switchline__hint {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(248, 242, 228, .75);
}

/* ---------- 十二项清单 ---------- */
.page-home .checklist {
  margin: 0 0 52px;
}

.page-home .checklist__group {
  margin-bottom: 22px;
}

.page-home .checklist__grouptitle {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 12px;
  padding-left: 12px;
  border-left: 6px solid var(--gold);
  line-height: 1.3;
}

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

.page-home .checklist__item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 11px 14px;
  background: var(--ledger);
  border: 2px solid var(--ink);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  transition: background .18s var(--ease), transform .18s var(--ease);
}

.page-home .checklist__item:hover {
  background: var(--jade);
  transform: translateX(3px);
}

.page-home .checklist__item--key {
  border-color: var(--red-lit);
  border-left-width: 8px;
}

.page-home .checklist__state {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--red);
}

.page-home .checklist__foot {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--grey);
  max-width: 68ch;
}

.page-home .checklist__foot a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 旧版对照 ---------- */
.page-home .legacy {
  display: grid;
  gap: 22px;
  margin: 0 0 52px;
  padding: 22px 20px;
  background: var(--ink-green);
  border: var(--bd);
  box-shadow: var(--shadow-1);
}

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

.page-home .legacy__figure .figure__frame {
  border: 3px solid var(--gold);
  background: var(--jade);
  overflow: hidden;
}

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

.page-home .legacy__figure .figure__cap {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(248, 242, 228, .72);
  margin-top: 8px;
}

.page-home .legacy__text h2 {
  color: var(--jade);
}

.page-home .legacy__text > p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(248, 242, 228, .88);
  max-width: 62ch;
}

.page-home .legacy__points {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .legacy__points li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.72;
  color: rgba(248, 242, 228, .88);
}

.page-home .legacy__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--gold);
}

.page-home .legacy__points strong {
  color: var(--gold);
  font-weight: 700;
}

/* ---------- 记录与回溯 ---------- */
.page-home .records {
  display: grid;
  gap: 20px;
  margin: 0 0 52px;
}

.page-home .records__panel {
  padding: 22px 20px;
  background: var(--jade);
  border: var(--bd);
  box-shadow: var(--shadow-1);
}

.page-home .records__panel p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.78;
  color: var(--ink);
  max-width: 62ch;
}

.page-home .records__facts {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .records__facts li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}

.page-home .records__facts .numchip {
  flex: 0 0 auto;
}

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

.page-home .records__figure .figure__frame {
  border: var(--bd);
  box-shadow: var(--shadow-1);
  background: var(--ledger);
  overflow: hidden;
}

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

.page-home .records__figure .figure__cap {
  font-size: 13px;
  line-height: 1.6;
  color: var(--grey);
  margin-top: 8px;
}

/* ---------- 收尾 ---------- */
.page-home .closer {
  position: relative;
  overflow: hidden;
  border: var(--bd);
  box-shadow: var(--shadow-1);
  background: var(--ledger);
}

.page-home .closer__figure {
  margin: 0;
  line-height: 0;
}

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

.page-home .closer__body {
  padding: 20px;
}

.page-home .closer__body h2 {
  margin-top: 0;
}

.page-home .closer__body p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  max-width: 68ch;
}

.page-home .closer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .btn--ghost-ink {
  color: var(--ink);
  border-color: var(--ink);
}

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

  .page-home .bento__focusbody {
    padding: 26px 26px 28px;
  }
}

@media (min-width: 760px) {
  .page-home .bento {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "focus focus"
      "sideA sideB"
      "bar bar";
    gap: 18px;
  }

  .page-home .bento__side:first-of-type {
    grid-area: sideA;
  }

  .page-home .bento__side:last-of-type {
    grid-area: sideB;
  }

  .page-home .bento__bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 26px 28px;
  }

  .page-home .home-block__grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: start;
  }

  .page-home .switchline {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: start;
    padding: 28px 26px;
  }

  .page-home .records {
    grid-template-columns: minmax(0, 1fr) minmax(0, 260px);
    align-items: start;
  }

  .page-home .closer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .page-home .closer__figure img {
    height: 100%;
    max-height: none;
  }

  .page-home .closer__body {
    padding: 26px 28px;
    align-self: center;
  }
}

@media (min-width: 1080px) {
  .page-home .bento {
    grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
    grid-template-areas:
      "focus sideA"
      "focus sideB"
      "bar bar";
    gap: 20px;
  }

  .page-home .bento__focus {
    min-height: 430px;
  }

  .page-home .bento__focusbody {
    padding: 30px 32px 32px;
  }

  .page-home .legacy {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: start;
    padding: 28px 26px;
    gap: 28px;
  }

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

  .page-home .home-block,
  .page-home .checklist,
  .page-home .legacy,
  .page-home .records {
    margin-bottom: 64px;
  }
}

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