.page-home {
  --home-dot: rgba(10, 35, 56, 0.07);
  --home-soft-rule: 1px solid rgba(10, 35, 56, 0.28);
  color: var(--ink);
  font-family: var(--font-sans);
  background-color: var(--paper);
  overflow-x: hidden;
}

.page-home .home-toc {
  display: none;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  padding: 28px var(--pad) 44px;
  border-bottom: var(--line);
  background-image: radial-gradient(var(--home-dot) 1px, transparent 1px);
  background-size: 14px 14px;
  background-position: 0 0;
}

.page-home .hero-eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--orange-deep);
  text-transform: uppercase;
}

.page-home .home-hero h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 7.4vw, 56px);
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.page-home .hero-lead {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 30em;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.page-home .hero-textlink {
  font-size: 14px;
  font-weight: 500;
  color: var(--orange-deep);
  text-decoration: none;
  border-bottom: 2px solid var(--orange-deep);
  padding-bottom: 2px;
}

.page-home .hero-textlink:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.page-home .path-card {
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 18px 16px 12px;
}

.page-home .path-title {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.page-home .route-svg {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .route-svg .svg-body {
  fill: var(--white);
  stroke: var(--ink);
  stroke-width: 2;
}

.page-home .route-svg .svg-band {
  fill: var(--paper-deep);
  stroke: none;
}

.page-home .route-svg .svg-soft {
  fill: var(--paper-deep);
  stroke: none;
}

.page-home .route-svg .svg-accent {
  fill: var(--orange);
  stroke: none;
}

.page-home .route-svg .svg-arrow {
  fill: none;
  stroke: var(--orange-deep);
  stroke-width: 2;
  stroke-dasharray: 5 5;
}

.page-home .route-svg .svg-arrowhead {
  fill: var(--orange-deep);
}

.page-home .route-steps {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  border-top: var(--home-soft-rule);
}

.page-home .route-steps li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: var(--home-soft-rule);
}

.page-home .route-steps li:last-child {
  border-bottom: none;
}

.page-home .route-num {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: var(--orange-tint);
  border: 2px solid var(--ink);
  border-radius: 2px;
}

.page-home .route-name {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.page-home .route-desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--slate);
}

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

.page-home .hero-shot .media-frame {
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-sm);
  border-radius: 2px;
}

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

.page-home .media-caption {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--slate);
}

/* ---------- 章节通用 ---------- */
.page-home .home-section {
  position: relative;
  padding: 42px var(--pad) 48px;
  border-bottom: var(--line);
}

.page-home .section-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.page-home .chapter-num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 10px 6px 6px;
  font-family: var(--font-mono);
  font-size: clamp(26px, 6vw, 40px);
  font-weight: 700;
  line-height: 1;
  color: var(--paper);
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 2px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: background 120ms ease-out, transform 120ms ease-out;
}

.page-home .chapter-num:hover {
  background: var(--orange-deep);
  transform: translateY(-2px);
}

.page-home .section-kicker {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--slate);
}

.page-home .home-section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(21px, 4.8vw, 34px);
  line-height: 1.32;
}

.page-home .section-lead {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 46em;
}

.page-home .text-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--orange-deep);
  text-decoration: none;
  border-bottom: 2px solid var(--orange-deep);
  padding-bottom: 2px;
}

.page-home .text-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ---------- 筛选与品类索引 ---------- */
.page-home .filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 20px 0 24px;
}

.page-home .filter-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--slate);
  margin-right: 4px;
}

.page-home .filter-btn {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  padding: 7px 13px;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
  transition: background 120ms ease-out, color 120ms ease-out;
}

.page-home .filter-btn:hover {
  background: var(--orange-tint);
}

.page-home .filter-btn[aria-pressed="true"] {
  background: var(--orange-tint);
  color: var(--orange-deep);
  box-shadow: var(--shadow-sm);
}

.page-home .index-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
}

.page-home .service-index {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: var(--line);
}

.page-home .index-item {
  padding: 15px 10px 14px;
  margin: 0 -10px;
  border-bottom: var(--home-soft-rule);
  transition: background 120ms ease-out;
}

.page-home .index-item:hover {
  background: var(--orange-tint);
}

.page-home .index-item h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.35;
}

.page-home .index-detail {
  margin: 0 0 8px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--slate);
}

.page-home .index-price {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--orange-deep);
}

.page-home .index-figure {
  margin: 0;
}

.page-home .index-figure .media-frame {
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-sm);
  border-radius: 2px;
}

/* ---------- 覆盖数据 ---------- */
.page-home .home-coverage {
  overflow: hidden;
}

.page-home .coverage-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-home .coverage-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.14;
  filter: grayscale(0.65);
}

.page-home .home-coverage > .section-head,
.page-home .home-coverage > .section-lead,
.page-home .home-coverage > .stat-grid,
.page-home .home-coverage > .coverage-note,
.page-home .home-coverage > .table-scroll {
  position: relative;
  z-index: 1;
}

.page-home .stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 22px;
  background: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-sm);
}

.page-home .stat {
  background: var(--white);
  padding: 16px 13px 14px;
}

.page-home .stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(24px, 6vw, 34px);
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}

.page-home .stat-label {
  display: block;
  margin-top: 7px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--slate);
}

.page-home .coverage-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.page-home .table-scroll {
  margin-top: 22px;
  overflow-x: auto;
}

.page-home .table-scroll .data-table {
  min-width: 520px;
  width: 100%;
}

.page-home .table-scroll .data-table caption {
  caption-side: top;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--slate);
  padding-bottom: 8px;
}

/* ---------- 本期案例 ---------- */
.page-home .case-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  margin-top: 22px;
}

.page-home .case-figure {
  margin: 0;
}

.page-home .case-media {
  aspect-ratio: 4 / 5;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-sm);
  border-radius: 2px;
  background: var(--paper-deep);
}

.page-home .case-lead {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.page-home .case-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  border-top: var(--line);
}

.page-home .case-list li {
  position: relative;
  padding: 11px 0 11px 26px;
  font-size: 14px;
  line-height: 1.7;
  border-bottom: var(--home-soft-rule);
}

.page-home .case-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 18px;
  width: 9px;
  height: 9px;
  background: var(--mint);
  border-radius: 1px;
}

.page-home .case-note {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--slate);
}

/* ---------- 版本更新 ---------- */
.page-home .version-list {
  list-style: none;
  margin: 24px 0 4px;
  padding: 0 0 0 22px;
  border-left: var(--line);
}

.page-home .version-list li {
  position: relative;
  padding: 0 0 20px;
}

.page-home .version-list li:last-child {
  padding-bottom: 0;
}

.page-home .version-list li::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 6px;
  width: 10px;
  height: 10px;
  background: var(--orange);
  border: 2px solid var(--ink);
}

.page-home .version-list strong {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 3px;
}

.page-home .version-list span {
  display: block;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--slate);
}

/* ---------- 人工协助 ---------- */
.page-home .support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 22px;
  border-top: var(--line);
}

.page-home .support-card {
  display: block;
  padding: 18px 0 20px;
  border-bottom: var(--home-soft-rule);
  text-decoration: none;
  color: inherit;
  transition: background 120ms ease-out;
}

.page-home .support-card:hover {
  background: var(--orange-tint);
}

.page-home .support-tag {
  display: inline-block;
  margin-bottom: 9px;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--mint);
  background: var(--mint-tint);
  border: 1px solid var(--mint);
  border-radius: 2px;
}

.page-home .support-card h3 {
  margin: 0 0 7px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.4;
}

.page-home .support-card p {
  margin: 0 0 8px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.page-home .support-card p:last-child {
  margin-bottom: 0;
}

.page-home .support-contact {
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink);
}

/* ---------- 页尾条 ---------- */
.page-home .home-footbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px var(--pad) 30px;
}

.page-home .home-footbar p {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--slate);
}

.page-home .home-footbar .text-link {
  margin-top: 0;
}

/* ---------- 断点 ---------- */
@media (min-width: 640px) {
  .page-home .stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .page-home .home-hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
    gap: 36px;
    padding: 44px 32px 56px;
  }

  .page-home .home-section {
    padding: 48px 32px 56px;
  }

  .page-home .service-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 34px;
  }

  .page-home .case-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    gap: 34px;
    align-items: start;
  }

  .page-home .support-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: var(--line);
  }

  .page-home .support-card {
    padding: 18px 18px 20px;
    border-bottom: none;
    border-right: var(--home-soft-rule);
  }

  .page-home .support-card:last-child {
    border-right: none;
  }

  .page-home .home-footbar {
    padding: 20px 32px 34px;
  }
}

@media (min-width: 1024px) {
  .page-home .index-wrap {
    grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }

  .page-home .index-figure {
    margin-top: 8px;
  }

  .page-home .hero-path {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
}

@media (min-width: 1280px) {
  .page-home .home-toc {
    display: block;
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
  }

  .page-home .home-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-end;
  }

  .page-home .home-toc .toc-link {
    display: flex;
    align-items: center;
    gap: 5px;
    writing-mode: vertical-rl;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--slate);
    padding: 3px 2px;
    border-radius: 2px;
  }

  .page-home .home-toc .toc-link:hover {
    color: var(--ink);
  }

  .page-home .home-toc .toc-link[aria-current="true"] {
    color: var(--orange-deep);
    background: var(--orange-tint);
  }

  .page-home .home-toc .toc-num {
    font-size: 10px;
    color: var(--ink);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .chapter-num,
  .page-home .filter-btn,
  .page-home .index-item,
  .page-home .support-card {
    transition: none;
  }

  .page-home .chapter-num:hover {
    transform: none;
  }
}
