.page-home {
  --tile-ty: 0px;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  padding: clamp(26px, 5.5vw, 60px) 0 clamp(30px, 6vw, 68px);
}

.page-home .hero-intro {
  max-width: 46rem;
}

.page-home .hero-title {
  margin: .55rem 0 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.05rem, 7vw, 4.1rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--ink);
}

.page-home .hero-lede {
  margin: 1.15rem 0 0;
  max-width: 40rem;
  font-size: clamp(1rem, 1.9vw, 1.14rem);
  line-height: 1.85;
  color: var(--teal);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.6rem;
}

.page-home .hero-map {
  margin-top: clamp(30px, 5vw, 54px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.page-home .hero-tile {
  --ty: 0px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .4rem;
  min-height: 154px;
  padding: 1.1rem 1.15rem;
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transform: translateY(var(--ty));
  transition: transform .28s ease, box-shadow .28s ease;
}

.page-home .hero-tile:hover,
.page-home .hero-tile:focus-visible {
  --ty: -4px;
  box-shadow: 0 4px 0 rgba(20, 32, 43, .06), 0 30px 50px -34px rgba(20, 32, 43, .6);
}

.page-home .hero-tile:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.page-home .hero-tile__label {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .08em;
}

.page-home .hero-tile__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.12rem;
  line-height: 1.35;
}

.page-home .hero-tile__desc {
  font-size: .92rem;
  line-height: 1.65;
  opacity: .88;
}

.page-home .hero-tile__num {
  font-size: .95rem;
  letter-spacing: .06em;
  opacity: .82;
}

.page-home .hero-tile--map {
  padding: 0;
  min-height: 235px;
  background: var(--teal);
  color: var(--cream);
}

.page-home .hero-tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .hero-tile--map .hero-tile__body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .38rem;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(20, 32, 43, .94) 0%, rgba(27, 58, 75, .56) 52%, rgba(27, 58, 75, .06) 100%);
}

.page-home .hero-tile--map .hero-tile__label {
  color: var(--yellow);
}

.page-home .hero-tile--batch {
  background: var(--yellow);
  color: var(--ink);
}

.page-home .hero-tile--steps {
  background: var(--orange);
  color: var(--ink);
}

.page-home .hero-tile--mobile {
  background: var(--paper);
  border: 1.5px dashed var(--clay);
}

@media (min-width: 940px) {
  .page-home .hero-map {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: minmax(150px, auto) minmax(150px, auto);
    grid-template-areas:
      "map map batch batch"
      "map map steps mobile";
    gap: 16px;
  }

  .page-home .hero-tile--map {
    grid-area: map;
    min-height: 320px;
  }

  .page-home .hero-tile--batch {
    grid-area: batch;
    --ty: -10px;
  }

  .page-home .hero-tile--steps {
    grid-area: steps;
  }

  .page-home .hero-tile--mobile {
    grid-area: mobile;
    --ty: 12px;
  }

  .page-home .hero-tile--batch:hover,
  .page-home .hero-tile--batch:focus-visible {
    --ty: -14px;
  }

  .page-home .hero-tile--mobile:hover,
  .page-home .hero-tile--mobile:focus-visible {
    --ty: 8px;
  }
}

/* ---------- 区块标题 ---------- */
.page-home .section-head {
  max-width: 42rem;
  margin-bottom: clamp(1.5rem, 3.5vw, 2.4rem);
}

.page-home .section-head h2 {
  margin: .5rem 0 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  line-height: 1.25;
  color: var(--ink);
}

.page-home .section-head .lede {
  margin-top: .7rem;
}

/* ---------- 三块工具 ---------- */
.page-home .tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

@media (min-width: 780px) {
  .page-home .tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
}

.page-home .tool-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-top: 6px solid var(--orange);
  border-radius: var(--r-md);
}

.page-home .tool-card:nth-child(2) {
  border-top-color: var(--yellow);
}

.page-home .tool-card:nth-child(3) {
  border-top-color: var(--rose);
}

.page-home .tool-card__fig {
  margin: 0;
}

.page-home .tool-card__fig img {
  display: block;
  width: 100%;
  height: 168px;
  object-fit: cover;
}

.page-home .tool-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .55rem;
  padding: 1.15rem 1.2rem 1.35rem;
}

.page-home .tool-card__num {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .05em;
  color: var(--clay);
}

.page-home .tool-card .card__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.16rem;
  line-height: 1.4;
}

.page-home .tool-card .card__body {
  font-size: .96rem;
  line-height: 1.8;
  color: var(--teal);
}

.page-home .tool-card .card__meta {
  font-size: .86rem;
  line-height: 1.75;
  color: var(--stone);
}

.page-home .tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: .3rem 0 0;
  padding: 0;
  list-style: none;
}

/* ---------- 批次面板 ---------- */
.page-home .batch-panel {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.4rem, 4vw, 2.6rem);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-panel);
}

.page-home .batch-lead h2 {
  margin: .7rem 0 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.45rem, 3.6vw, 2.05rem);
  line-height: 1.28;
  color: var(--cream);
}

.page-home .batch-lead p {
  margin: .9rem 0 1.4rem;
  font-size: .98rem;
  line-height: 1.85;
  color: rgba(247, 243, 234, .86);
}

.page-home .batch-details {
  border: 1px solid rgba(247, 243, 234, .22);
  border-radius: var(--r-md);
  background: rgba(247, 243, 234, .06);
}

.page-home .batch-details > summary {
  cursor: pointer;
  list-style: none;
  padding: .9rem 1.05rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--yellow);
}

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

.page-home .batch-details > summary::after {
  content: "＋";
  float: right;
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--yellow);
}

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

.page-home .batch-grid {
  display: grid;
  gap: .95rem;
  padding: .2rem 1.05rem 1.15rem;
}

.page-home .batch-item {
  border-left: 3px solid var(--yellow);
  padding-left: .85rem;
}

.page-home .batch-item p {
  margin: 0;
  font-size: .93rem;
  line-height: 1.75;
  color: rgba(247, 243, 234, .88);
}

.page-home .batch-item .batch-item__label {
  margin-bottom: .25rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .06em;
  color: var(--yellow);
}

@media (min-width: 900px) {
  .page-home .batch-panel {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(2rem, 5vw, 3.4rem);
  }
}

/* ---------- 两步查记录 ---------- */
.page-home .steps {
  display: grid;
  gap: 1.6rem;
  align-items: center;
}

.page-home .steps-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-panel);
}

.page-home .steps-copy h2 {
  margin: .55rem 0 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.8vw, 2.15rem);
  line-height: 1.26;
  color: var(--ink);
}

.page-home .steps-copy > .muted {
  margin: .8rem 0 0;
  font-size: .95rem;
  line-height: 1.8;
}

.page-home .steps-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: .9rem;
}

.page-home .step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .9rem;
  padding: 1rem 1.05rem;
  background: var(--paper);
  border-left: 5px solid var(--orange);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
}

.page-home .step:nth-child(2) {
  border-left-color: var(--yellow);
}

.page-home .step__num {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--clay);
}

.page-home .step__body p {
  margin: 0;
  font-size: .94rem;
  line-height: 1.8;
  color: var(--teal);
}

.page-home .step__body .step__title {
  margin-bottom: .28rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.03rem;
  color: var(--ink);
}

.page-home .steps-copy > .btn {
  margin-top: 1.4rem;
}

@media (min-width: 880px) {
  .page-home .steps {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: clamp(2rem, 5vw, 4rem);
  }
}

/* ---------- 手机版 · 中文版 ---------- */
.page-home .mobile-note {
  display: grid;
  gap: 1.6rem;
  align-items: center;
}

.page-home .mobile-copy h2 {
  margin: .55rem 0 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.8vw, 2.15rem);
  line-height: 1.26;
  color: var(--ink);
}

.page-home .mobile-copy > p {
  margin: .95rem 0 0;
  font-size: .98rem;
  line-height: 1.85;
  color: var(--teal);
}

.page-home .mobile-points {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: .6rem;
}

.page-home .mobile-point {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .6rem;
  align-items: start;
  font-size: .94rem;
  line-height: 1.7;
  color: var(--ink);
}

.page-home .mobile-point .dot {
  width: 8px;
  height: 8px;
  margin-top: .62em;
  border-radius: 50%;
  background: var(--moss);
}

.page-home .mobile-cta {
  margin: 1.5rem 0 0;
}

.page-home .mobile-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-panel);
}

@media (min-width: 880px) {
  .page-home .mobile-note {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
  }
}

/* ---------- 热门分类横向带 ---------- */
.page-home .band-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .6rem 1.2rem;
  margin-bottom: 1.1rem;
}

.page-home .band-head h2 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.4rem, 3.4vw, 1.95rem);
  line-height: 1.3;
  color: var(--ink);
}

.page-home .band-head .muted {
  margin: 0;
  font-size: .92rem;
}

.page-home .cat-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: .55rem 0;
}

.page-home .cat-band__track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: .55rem 2px 1rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

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

.page-home .cat-band__track::-webkit-scrollbar-thumb {
  background: rgba(20, 32, 43, .18);
  border-radius: var(--pill);
}

.page-home .cat-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  padding: .6rem 1.05rem;
  border-radius: var(--pill);
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: .95rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, background-color .22s ease;
}

.page-home .cat-chip:hover,
.page-home .cat-chip:focus-visible {
  transform: translateY(-3px);
  border-color: var(--orange);
  background: rgba(255, 107, 53, .09);
}

.page-home .cat-chip:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* ---------- 减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home .hero-tile,
  .page-home .cat-chip {
    transition: none;
  }

  .page-home .hero-tile:hover,
  .page-home .hero-tile:focus-visible {
    --ty: 0px;
  }

  .page-home .hero-tile--batch:hover,
  .page-home .hero-tile--batch:focus-visible {
    --ty: -10px;
  }

  .page-home .hero-tile--mobile:hover,
  .page-home .hero-tile--mobile:focus-visible {
    --ty: 12px;
  }

  .page-home .cat-chip:hover,
  .page-home .cat-chip:focus-visible {
    transform: none;
  }
}
