.page-home {
  --home-line: rgba(243, 235, 221, 0.16);
  --home-line-strong: rgba(243, 235, 221, 0.34);
  --home-gap: clamp(1rem, 2.4vw, 2rem);
  --home-pad: clamp(2.25rem, 6vw, 5rem);
  background: var(--mat);
  color: var(--ivory);
  overflow-x: hidden;
}

.page-home img {
  max-width: 100%;
}

.page-home .section-pad {
  padding-top: var(--home-pad);
  padding-bottom: var(--home-pad);
}

.page-home .media__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--mat-deep);
}

/* ---------- 框景首屏 ---------- */
.page-home .hero-frame {
  position: relative;
  overflow: hidden;
  padding-top: clamp(1rem, 3vw, 2rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  border-bottom: 3px solid var(--tea);
  background:
    radial-gradient(120% 80% at 84% -12%, rgba(94, 140, 106, 0.28), transparent 62%),
    linear-gradient(180deg, var(--mat) 0%, var(--mat-deep) 100%);
}

.page-home .hero-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 24px;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(201, 162, 39, 0.6) 0 1px,
    transparent 1px 48px
  );
  opacity: 0.55;
  pointer-events: none;
}

.page-home .hero-frame .breadcrumb {
  position: relative;
  z-index: 1;
  margin-bottom: clamp(1rem, 2.4vw, 1.75rem);
}

.page-home .frame-box {
  position: relative;
  border: 2px solid var(--home-line-strong);
  border-radius: var(--radius-tile);
  padding: clamp(1.25rem, 3.4vw, 3rem);
  background: linear-gradient(180deg, rgba(10, 31, 26, 0.72), rgba(20, 19, 18, 0.52));
  box-shadow: var(--shadow-hard);
}

.page-home .frame-box::before,
.page-home .frame-box::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--gold);
  pointer-events: none;
}

.page-home .frame-box::before {
  top: -2px;
  left: -2px;
  border-right: 0;
  border-bottom: 0;
}

.page-home .frame-box::after {
  right: -2px;
  bottom: -2px;
  border-left: 0;
  border-top: 0;
}

.page-home .hero-kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  color: var(--bamboo-light);
  font-family: var(--font-body);
}

.page-home .hero-kicker__tick {
  display: inline-block;
  width: 30px;
  height: 2px;
  background: var(--cinnabar);
}

.page-home .hero-title {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 6.6vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
  color: var(--ivory);
}

.page-home .hero-lede {
  max-width: 46ch;
  margin: 0;
  font-size: clamp(0.95rem, 1.5vw, 1.0625rem);
  line-height: 1.85;
  color: var(--ivory-dim);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.25rem, 3vw, 2rem);
}

.page-home .hero-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.75rem;
}

.page-home .hero-seal {
  border: 2px solid var(--gold);
  border-radius: var(--radius-tile);
  padding: 1.1rem 1.25rem;
  background: linear-gradient(160deg, rgba(201, 162, 39, 0.16), rgba(14, 43, 36, 0.9));
  box-shadow: var(--shadow-hard);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.page-home .hero-seal:hover {
  transform: translateY(-2px) rotateY(-5deg);
  box-shadow: 8px 10px 0 rgba(0, 0, 0, 0.55);
}

.page-home .hero-seal__label {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.page-home .hero-seal__num {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ivory);
}

.page-home .hero-seal__note {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--ivory-dim);
}

.page-home .hero-legend {
  display: grid;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: var(--stone);
}

.page-home .hero-legend .legend__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.page-home .hero-legend .legend__dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: inline-block;
}

.page-home .hero-legend .legend__dot--gold { background: var(--gold); }
.page-home .hero-legend .legend__dot--red { background: var(--cinnabar); }
.page-home .hero-legend .legend__dot--stone { background: var(--stone); }

.page-home .hero-media {
  --media-ratio: 16 / 10;
  margin: clamp(1.25rem, 3vw, 2rem) 0 0;
  border: 2px solid var(--home-line);
  border-radius: var(--radius-tile);
  overflow: hidden;
  box-shadow: var(--shadow-hard);
  aspect-ratio: 16 / 10;
}

.page-home .hero-media .media__caption,
.page-home .media__caption {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--stone);
  padding: 0.55rem 0.15rem 0;
}

.page-home .hero-media .media__caption {
  padding: 0.6rem 0.9rem;
  background: var(--char);
}

/* ---------- 门道索引 ---------- */
.page-home .table-index {
  background: var(--tea);
  border-bottom: 3px solid var(--char);
}

.page-home .table-index__inner {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.9rem 0;
}

.page-home .table-index__title {
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  color: var(--ivory);
  opacity: 0.7;
}

.page-home .table-index__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .table-index__link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: var(--ivory);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.page-home .table-index__link .mono {
  font-size: 0.6875rem;
  color: var(--gold);
}

.page-home .table-index__link:hover,
.page-home .table-index__link:focus-visible {
  color: #fff;
  border-bottom-color: var(--gold);
}

/* ---------- 版本画板 ---------- */
.page-home .section-version {
  background: linear-gradient(180deg, var(--char) 0%, var(--char-soft) 100%);
}

.page-home .section-head {
  padding-bottom: clamp(1rem, 2.5vw, 1.75rem);
  margin-bottom: clamp(1.5rem, 3.5vw, 2.5rem);
  border-bottom: 2px solid var(--tea);
}

.page-home .section-head--tight {
  margin-bottom: 1.25rem;
}

.page-home .section-head .display-title {
  margin: 0.4rem 0 0.8rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.25;
  color: var(--ivory);
}

.page-home .section-head .lede {
  max-width: 60ch;
  margin: 0;
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  line-height: 1.85;
  color: var(--ivory-dim);
}

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

.page-home .board-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px dashed var(--home-line);
  transition: transform 0.2s var(--ease);
}

.page-home .board-row:hover {
  transform: translateY(-2px);
}

.page-home .board-row__num {
  font-size: 0.8125rem;
  color: var(--gold);
  padding-top: 0.2rem;
}

.page-home .board-row__body {
  min-width: 0;
}

.page-home .board-row__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--ivory);
}

.page-home .board-row .body-text {
  margin: 0;
  max-width: 52ch;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--ivory-dim);
}

.page-home .board-row__mark {
  grid-column: 2;
  justify-self: start;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
}

.page-home .board-tail {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--stone);
}

.page-home .inline-link {
  color: var(--bamboo-light);
  text-decoration: none;
  border-bottom: 1px solid var(--bamboo);
  padding-bottom: 1px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

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

.page-home .version-figure {
  margin-top: 1.5rem;
}

.page-home .version-figure .media {
  --media-ratio: 3 / 2;
  margin: 0;
  border: 2px solid var(--home-line);
  border-radius: var(--radius-tile);
  overflow: hidden;
  box-shadow: var(--shadow-hard);
  aspect-ratio: 3 / 2;
}

.page-home .version-figure .media__caption {
  background: var(--mat-deep);
  padding: 0.6rem 0.9rem;
}

/* ---------- 十分钟牌路 ---------- */
.page-home .section-first {
  background:
    radial-gradient(90% 60% at 10% 0%, rgba(94, 140, 106, 0.16), transparent 60%),
    var(--mat);
}

.page-home .first-lane {
  align-items: start;
}

.page-home .first-figure .media {
  --media-ratio: 3 / 4;
  margin: 0 0 1.5rem;
  border: 2px solid var(--home-line-strong);
  border-radius: var(--radius-tile);
  overflow: hidden;
  box-shadow: var(--shadow-hard);
  aspect-ratio: 3 / 4;
}

.page-home .first-figure .media__caption {
  background: var(--mat-deep);
  padding: 0.6rem 0.9rem;
}

.page-home .steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--home-line);
  border: 1px solid var(--home-line);
  border-radius: var(--radius-tile);
  overflow: hidden;
}

.page-home .step {
  padding: 1.1rem 1.15rem 1.25rem;
  background: var(--mat-deep);
}

.page-home .step__num {
  display: block;
  font-size: 1.25rem;
  color: var(--cinnabar);
  margin-bottom: 0.35rem;
}

.page-home .step__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ivory);
}

.page-home .step .body-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--ivory-dim);
}

/* ---------- 手牌侧列 ---------- */
.page-home .section-hand {
  background: var(--ivory);
  color: var(--ink);
  border-top: 3px solid var(--char);
  border-bottom: 3px solid var(--char);
}

.page-home .section-hand .eyebrow--dark {
  color: var(--cinnabar);
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  margin: 0 0 0.5rem;
}

.page-home .hand-main__title {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 4.2vw, 2.5rem);
  line-height: 1.22;
  color: var(--ink);
}

.page-home .hand-main__text {
  margin: 0 0 1rem;
  max-width: 60ch;
  font-size: 0.9375rem;
  line-height: 1.9;
  color: #3A342C;
}

.page-home .hand-main__cta {
  margin-top: 0.75rem;
}

.page-home .hand-cards {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.page-home .hand-card {
  border: 2px solid var(--ink);
  border-radius: var(--radius-tile);
  padding: 1rem 1.1rem;
  background: #FBF6EC;
  box-shadow: 5px 5px 0 rgba(20, 19, 18, 0.85);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.page-home .hand-card--bamboo {
  background: #E9F0E6;
}

.page-home .hand-card:hover {
  transform: translateY(-2px);
  box-shadow: 7px 8px 0 rgba(20, 19, 18, 0.85);
}

.page-home .hand-card__tag {
  margin: 0 0 0.4rem;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--cinnabar);
}

.page-home .hand-card__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
}

.page-home .hand-card__text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.8;
  color: #4A443B;
}

.page-home .hand-fold {
  border-left: 3px solid var(--bamboo);
  padding: 0.55rem 0 0.55rem 0.85rem;
  background: rgba(94, 140, 106, 0.08);
}

.page-home .hand-fold__summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.6;
}

.page-home .hand-fold__summary::-webkit-details-marker {
  display: none;
}

.page-home .hand-fold__summary::before {
  content: "＋ ";
  color: var(--bamboo);
  font-weight: 700;
}

.page-home .hand-fold[open] .hand-fold__summary::before {
  content: "－ ";
}

.page-home .hand-fold__body {
  padding-top: 0.5rem;
}

.page-home .hand-fold__body p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.85;
  color: #4A443B;
}

/* ---------- 跨端结算 ---------- */
.page-home .section-settle {
  background: linear-gradient(180deg, var(--char-soft) 0%, var(--char) 100%);
}

.page-home .settle-panel {
  border: 2px solid var(--bamboo);
  border-radius: var(--radius-tile);
  padding: clamp(1.25rem, 3.5vw, 2.75rem);
  background:
    linear-gradient(150deg, rgba(178, 58, 47, 0.12), transparent 55%),
    var(--mat-deep);
  box-shadow: var(--shadow-hard);
}

.page-home .settle-title {
  margin: 0.4rem 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 3.8vw, 2.25rem);
  line-height: 1.25;
  color: var(--ivory);
}

.page-home .settle-panel .body-text {
  margin: 0 0 0.85rem;
  max-width: 58ch;
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--ivory-dim);
}

.page-home .settle-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.page-home .settle-side {
  margin-top: 1.5rem;
  border-left: 2px solid var(--gold);
  padding-left: 1rem;
}

.page-home .settle-side__title {
  margin: 0 0 0.7rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.page-home .settle-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.55rem;
  font-size: 0.8125rem;
  line-height: 1.75;
  color: var(--ivory-dim);
}

.page-home .settle-side__hint {
  margin: 0.9rem 0 0;
  font-size: 0.75rem;
  color: var(--stone);
}

/* ---------- 牌桌江湖 ---------- */
.page-home .section-craft {
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--tea);
  background: var(--mat-deep);
}

.page-home .craft-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .craft-media .media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: saturate(0.8);
}

.page-home .craft-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 31, 26, 0.86), rgba(20, 19, 18, 0.94));
}

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

.page-home .craft-title {
  margin: 0.4rem 0 1rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 4.4vw, 2.75rem);
  line-height: 1.2;
  color: var(--ivory);
}

.page-home .craft-text {
  margin: 0 0 0.9rem;
  max-width: 60ch;
  font-size: 0.9375rem;
  line-height: 1.95;
  color: var(--ivory-dim);
}

.page-home .craft-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.page-home .craft-quote {
  margin-top: 1.75rem;
}

.page-home .craft-quote .quote {
  margin: 0 0 0.6rem;
  padding-left: 0.9rem;
  border-left: 3px solid var(--cinnabar);
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 2.4vw, 1.3rem);
  line-height: 1.7;
  color: var(--ivory);
}

.page-home .craft-quote__note {
  margin: 0;
  padding-left: 0.9rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--stone);
}

/* ---------- 返回顶部 ---------- */
.page-home .back-to-top {
  display: inline-block;
  margin: 1.5rem auto 0;
  padding: 0.6rem 1.1rem;
  font-size: 0.8125rem;
  color: var(--ivory);
  text-decoration: none;
  border: 1px solid var(--home-line-strong);
  border-radius: var(--radius-ui);
  background: var(--char);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.page-home .back-to-top:hover,
.page-home .back-to-top:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
}

/* ---------- 焦点可见 ---------- */
.page-home a:focus-visible,
.page-home summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-home .table-index__inner {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
  }

  .page-home .steps {
    grid-template-columns: 1fr 1fr;
  }

  .page-home .hand-cards {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .page-home .hand-fold {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .page-home .hero-aside {
    margin-top: 0;
    padding-left: clamp(0.5rem, 2vw, 1.75rem);
  }

  .page-home .version-figure {
    margin-top: 0;
    padding-left: clamp(0.5rem, 2vw, 1.75rem);
  }

  .page-home .first-figure .media {
    margin-bottom: 0;
  }

  .page-home .hand-cards {
    margin-top: 0;
    padding-left: clamp(0.75rem, 2vw, 2rem);
    grid-template-columns: 1fr;
  }

  .page-home .settle-side {
    margin-top: 0;
    padding-left: 1.5rem;
  }

  .page-home .craft-quote {
    margin-top: 0.5rem;
    padding-left: clamp(0.5rem, 2vw, 1.75rem);
  }

  .page-home .back-to-top {
    display: block;
    width: max-content;
    margin-left: auto;
    margin-right: max(1.5rem, calc((100% - 1240px) / 2));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-seal,
  .page-home .board-row,
  .page-home .hand-card,
  .page-home .table-index__link {
    transition: none;
  }

  .page-home .hero-seal:hover,
  .page-home .board-row:hover,
  .page-home .hand-card:hover {
    transform: none;
  }
}
<<<END>>>
