.page-home {
  --home-line: rgba(22, 19, 15, 0.12);
  --home-line-soft: rgba(138, 133, 120, 0.34);
  --home-gap: clamp(18px, 3vw, 32px);
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 84% 8%, rgba(201, 162, 39, 0.20), transparent 62%),
    var(--ink);
  color: var(--paper);
  padding: clamp(30px, 5vw, 58px) var(--gutter) clamp(34px, 5vw, 62px);
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 162, 39, 0.085) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 162, 39, 0.085) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.page-home .hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  gap: clamp(24px, 4vw, 46px);
  align-items: center;
}

.page-home .crumb {
  margin: 0 0 14px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--gold-pale);
}

.page-home .hero h1 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55);
}

.page-home .hero__lede {
  margin: 0 0 1.6em;
  max-width: 34em;
  font-size: clamp(0.98rem, 1.05vw, 1.08rem);
  line-height: 1.85;
  color: rgba(247, 243, 234, 0.82);
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.page-home .hero__meta {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: rgba(247, 243, 234, 0.62);
}

.page-home .hero__figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.38);
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.9);
  max-width: 520px;
}

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

@media (min-width: 920px) {
  .page-home .hero__inner {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr);
  }
}

/* ---------- 章节通用 ---------- */
.page-home .sec-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 2.3rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 24em;
}

.page-home .sec-lede {
  margin: 0 0 clamp(24px, 3.5vw, 40px);
  max-width: 40em;
  font-size: clamp(0.96rem, 1.02vw, 1.04rem);
  line-height: 1.85;
  color: var(--text-soft);
}

.page-home .sec-foot {
  margin: clamp(20px, 3vw, 32px) 0 0;
}

/* ---------- 分类矩阵 ---------- */
.page-home .strip {
  margin: 0 0 clamp(26px, 3.5vw, 40px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--home-line);
  background: var(--ink);
}

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

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

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

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

.page-home .cat-card {
  position: relative;
  display: block;
  padding: 30px 22px 22px;
  background: var(--paper);
  border: 1px solid var(--home-line);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.page-home .cat-card:hover,
.page-home .cat-card:focus-visible {
  background: var(--gold-pale);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.page-home .cat-card__idx {
  position: absolute;
  top: -13px;
  left: 20px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cinnabar);
  color: var(--paper);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.page-home .cat-card__title {
  margin: 0 0 14px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
}

.page-home .cat-card__meta {
  margin: 0;
  display: grid;
  gap: 7px;
}

.page-home .cat-card__meta > div {
  display: grid;
  grid-template-columns: 5.2em minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  border-bottom: 1px dashed var(--home-line-soft);
  padding-bottom: 6px;
}

.page-home .cat-card__meta dt {
  font-size: 0.82rem;
  color: var(--stone);
}

.page-home .cat-card__meta dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.page-home .cat-card__sample {
  margin: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-soft);
  transition: max-height 0.26s ease, opacity 0.22s ease, margin-top 0.26s ease;
}

.page-home .cat-card:hover .cat-card__sample,
.page-home .cat-card:focus-visible .cat-card__sample {
  max-height: 90px;
  opacity: 1;
  margin-top: 14px;
}

@media (hover: none) {
  .page-home .cat-card__sample {
    max-height: 90px;
    opacity: 1;
    margin-top: 14px;
  }
}

/* ---------- 地图与街道索引 ---------- */
.page-home .map-figure {
  margin: 0 0 clamp(26px, 3.5vw, 40px);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--home-line);
}

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

.page-home .map-figure figcaption {
  padding: 12px 18px;
  font-size: 0.84rem;
  color: rgba(247, 243, 234, 0.7);
}

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

@media (min-width: 800px) {
  .page-home .district-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.page-home .dgroup {
  background: var(--paper);
  border: 1px solid var(--home-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-home .dgroup > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  border-bottom: 1px solid var(--home-line-soft);
}

.page-home .dgroup > summary::-webkit-details-marker {
  display: none;
}

.page-home .dgroup > summary::after {
  content: "＋";
  font-size: 1rem;
  color: var(--gold-deep);
  margin-left: 8px;
}

.page-home .dgroup[open] > summary::after {
  content: "－";
}

.page-home .dgroup__count {
  margin-left: auto;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--stone);
  letter-spacing: 0.06em;
}

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

.page-home .dlist li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px dashed var(--home-line-soft);
}

.page-home .dlist li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-home .dname {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.page-home .dmeta {
  font-size: 0.8rem;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* ---------- 三步上手 ---------- */
.page-home .steps-figure {
  margin: 0 0 clamp(26px, 3.5vw, 40px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--home-line);
  background: var(--paper-2);
}

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

.page-home .steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--home-gap);
}

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

  .page-home .steps::before {
    content: "";
    position: absolute;
    top: 26px;
    left: 14%;
    right: 14%;
    border-top: 2px dashed rgba(201, 162, 39, 0.6);
  }
}

.page-home .step {
  position: relative;
  z-index: 1;
  background: var(--paper);
  border: 1px solid var(--home-line);
  border-radius: var(--radius);
  padding: 24px 20px 22px;
}

.page-home .step__num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: 0 0 0 6px var(--paper-2);
}

.page-home .step__title {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
}

.page-home .step p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-soft);
}

/* ---------- 更新清单 ---------- */
.page-home .updates {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--home-line);
}

.page-home .updates li {
  display: grid;
  grid-template-columns: 4.2em minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--home-line);
}

.page-home .updates__idx {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
}

.page-home .updates__body {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--ink);
}

/* ---------- 服务保障 ---------- */
.page-home .assure {
  display: grid;
  gap: var(--home-gap);
  grid-template-columns: minmax(0, 1fr);
}

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

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

.page-home .assure__item {
  position: relative;
  padding: 26px 20px 22px;
  background: var(--paper);
  border: 1px solid var(--home-line);
  border-radius: var(--radius);
}

.page-home .assure__mark {
  display: block;
  width: 44px;
  height: 4px;
  margin-bottom: 16px;
  background: var(--gold);
  border-radius: 2px;
}

.page-home .assure__item h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}

.page-home .assure__item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-soft);
}

/* ---------- 收尾 ---------- */
.page-home .closing {
  margin-top: clamp(30px, 4vw, 48px);
  padding: clamp(24px, 3.5vw, 36px);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  display: grid;
  gap: 20px;
}

.page-home .closing__text {
  margin: 0;
  max-width: 40em;
  font-size: clamp(0.98rem, 1.05vw, 1.06rem);
  line-height: 1.85;
  color: rgba(247, 243, 234, 0.85);
}

.page-home .closing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (min-width: 860px) {
  .page-home .closing {
    grid-template-columns: minmax(0, 1.35fr) auto;
    align-items: center;
  }
}
