.page-home {
  --home-shift: clamp(16px, 3vw, 40px);
}

.page-home [id] {
  scroll-margin-top: 112px;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(36px, 6vw, 76px) 0 clamp(32px, 4vw, 52px);
  background:
    radial-gradient(115% 85% at 90% 4%, rgba(92, 156, 134, 0.2), transparent 55%),
    radial-gradient(95% 80% at 4% 96%, rgba(178, 58, 46, 0.16), transparent 58%),
    linear-gradient(158deg, var(--ink) 0%, var(--ink-800) 52%, var(--ink) 100%);
  overflow: hidden;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(235, 212, 138, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(235, 212, 138, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.page-home .home-hero__inner {
  position: relative;
  display: grid;
  gap: clamp(26px, 4vw, 48px);
  align-items: center;
}

.page-home .home-hero__meta {
  margin: 0 0 16px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gold-soft);
}

.page-home .home-hero__desc {
  max-width: 34em;
  margin-top: 18px;
  color: var(--paper);
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 28px;
}

.page-home .home-hero__link {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--gold-soft);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(235, 212, 138, 0.42);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-home .home-hero__link:hover,
.page-home .home-hero__link:focus-visible {
  color: var(--paper);
  border-color: var(--paper);
}

.page-home .home-hero__art {
  position: relative;
  margin: 0;
}

.page-home .home-hero__art img {
  display: block;
  width: 100%;
  height: auto;
  clip-path: polygon(0 14%, 100% 0, 100% 88%, 0 100%);
}

.page-home .home-hero__art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(200deg, rgba(11, 22, 34, 0) 42%, rgba(11, 22, 34, 0.55) 100%);
  clip-path: polygon(0 14%, 100% 0, 100% 88%, 0 100%);
}

.page-home .home-hero__num {
  position: absolute;
  right: -4px;
  bottom: -0.16em;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: clamp(80px, 17vw, 160px);
  line-height: 0.8;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(235, 212, 138, 0.55);
  pointer-events: none;
}

.page-home .home-hero__stats {
  list-style: none;
  margin: clamp(28px, 4vw, 48px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(235, 212, 138, 0.2);
}

.page-home .home-hero__stats li {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding: 16px clamp(8px, 2vw, 20px);
  border-bottom: 1px solid rgba(235, 212, 138, 0.12);
}

.page-home .home-hero__stats strong {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.6vw, 34px);
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
}

.page-home .home-hero__stats span {
  font-size: 13px;
  color: var(--slate);
}

/* ---------- 序号索引 ---------- */
.page-home .home-index {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
  margin-top: clamp(24px, 3vw, 40px);
}

.page-home .home-index__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(235, 212, 138, 0.18);
}

.page-home .home-index__list li {
  border-bottom: 1px solid rgba(235, 212, 138, 0.12);
}

.page-home .home-index__list a {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-areas:
    "num label"
    "num desc";
  column-gap: 14px;
  padding: 15px 4px;
  text-decoration: none;
  color: var(--paper);
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}

.page-home .home-index__num {
  grid-area: num;
  font-family: var(--font-mono);
  font-size: 22px;
  letter-spacing: 0.06em;
  line-height: 1.35;
  color: var(--gold);
}

.page-home .home-index__label {
  grid-area: label;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.page-home .home-index__desc {
  grid-area: desc;
  font-size: 13px;
  line-height: 1.65;
  color: var(--slate);
}

.page-home .home-index__list a:hover,
.page-home .home-index__list a:focus-visible {
  transform: translateX(6px);
  color: var(--gold-soft);
}

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

.page-home .home-index__figure img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--ink-600);
  border: 1px solid rgba(235, 212, 138, 0.2);
}

.page-home .home-index__figure figcaption {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--slate);
}

/* ---------- 案例速览 ---------- */
.page-home .home-cases {
  display: grid;
  gap: clamp(16px, 2.4vw, 26px);
  margin-top: clamp(24px, 3vw, 40px);
}

.page-home .home-case {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(16px, 2vw, 22px);
  background: var(--ink-600);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-brutal);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-home .home-case:hover,
.page-home .home-case:focus-within {
  transform: translateY(-2px);
  border-color: var(--gold);
}

.page-home .home-case__media {
  margin: 0 0 4px;
}

.page-home .home-case__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.page-home .home-case__kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--jade);
}

.page-home .home-case__title {
  margin: 0;
  font-size: 19px;
  line-height: 1.42;
}

.page-home .home-case .plus-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.78;
  color: var(--slate);
}

.page-home .home-case__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: auto 0 0;
  padding: 12px 0 0;
  border-top: 1px dashed rgba(235, 212, 138, 0.18);
}

.page-home .home-cases__more {
  margin-top: clamp(24px, 3vw, 36px);
}

/* ---------- 标签矩阵 ---------- */
.page-home .home-tags {
  display: grid;
  gap: clamp(22px, 3vw, 36px);
  margin-top: clamp(24px, 3vw, 40px);
}

.page-home .home-tags__label {
  margin: 0 0 14px;
  padding-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold-soft);
  border-bottom: 1px solid rgba(235, 212, 138, 0.2);
}

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

.page-home .home-tag--dense {
  background: rgba(201, 162, 39, 0.16);
  border-color: var(--gold);
  color: var(--gold-soft);
}

.page-home .home-tags__note {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--slate);
  max-width: 36em;
}

.page-home .home-tags__link {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--gold-soft);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(235, 212, 138, 0.4);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-home .home-tags__link:hover,
.page-home .home-tags__link:focus-visible {
  color: var(--paper);
  border-color: var(--paper);
}

/* ---------- 路径对比 ---------- */
.page-home .home-routes {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  margin-top: clamp(24px, 3vw, 40px);
}

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

.page-home .home-routes__figure img {
  display: block;
  width: 100%;
  height: auto;
  clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
}

.page-home .home-route {
  padding: 18px 0;
  border-bottom: 1px solid rgba(235, 212, 138, 0.14);
}

.page-home .home-route:first-child {
  border-top: 1px solid rgba(235, 212, 138, 0.14);
}

.page-home .home-route__head {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.page-home .home-route__steps {
  list-style: none;
  margin: 12px 0 10px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.page-home .home-route__steps li {
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--paper);
  border: 1px solid rgba(235, 212, 138, 0.32);
  border-radius: var(--radius-pill);
}

.page-home .home-route__steps li + li {
  position: relative;
  margin-left: 22px;
}

.page-home .home-route__steps li + li::before {
  content: "→";
  position: absolute;
  left: -21px;
  color: var(--gold);
}

.page-home .home-route__steps li:last-child {
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.14);
  color: var(--gold-soft);
}

.page-home .home-route__note {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--slate);
}

/* ---------- 合作配置 ---------- */
.page-home .home-plans {
  display: grid;
  gap: clamp(16px, 2.4vw, 24px);
  margin-top: clamp(24px, 3vw, 40px);
}

.page-home .home-plan {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(18px, 2.2vw, 24px);
  border: 1px solid rgba(235, 212, 138, 0.22);
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, rgba(28, 53, 80, 0.92), rgba(11, 22, 34, 0.94));
}

.page-home .home-plan__step {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.page-home .home-plan h3 {
  margin: 0;
}

.page-home .home-plan p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--slate);
}

.page-home .home-plan p strong {
  color: var(--paper);
  font-weight: 500;
}

.page-home .home-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(24px, 3vw, 36px);
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(201, 162, 39, 0.42);
  border-radius: var(--radius-card);
  background: rgba(201, 162, 39, 0.09);
}

.page-home .home-cta__text {
  flex: 1 1 300px;
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--paper);
}

.page-home .home-cta__note {
  margin: 14px 0 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: var(--slate);
}

/* ---------- 平板与桌面 ---------- */
@media (min-width: 720px) {
  .page-home .home-hero__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .home-hero__stats li {
    border-bottom: 0;
    border-right: 1px solid rgba(235, 212, 138, 0.12);
  }

  .page-home .home-hero__stats li:last-child {
    border-right: 0;
  }

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

  .page-home .home-cases > :nth-child(even) {
    margin-top: 28px;
  }

  .page-home .home-routes__paths {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(20px, 3vw, 32px);
  }

  .page-home .home-route {
    border-bottom: 0;
  }

  .page-home .home-route:first-child {
    border-top: 0;
    border-right: 1px solid rgba(235, 212, 138, 0.14);
    padding-right: clamp(18px, 2.4vw, 28px);
  }

  .page-home .home-route:last-child {
    padding-left: clamp(18px, 2.4vw, 28px);
  }
}

@media (min-width: 900px) {
  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    align-items: end;
  }

  .page-home .home-hero__num {
    right: -12px;
    bottom: -0.2em;
  }

  .page-home .home-index {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: start;
  }

  .page-home .home-tags {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(26px, 3.2vw, 44px);
  }
}

@media (min-width: 960px) {
  .page-home .home-routes {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    align-items: center;
  }
}

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

  .page-home .home-cases > :nth-child(even) {
    margin-top: 36px;
  }

  .page-home .home-cases > :nth-child(2),
  .page-home .home-cases > :nth-child(4) {
    transform: translateX(calc(var(--home-shift) * 0.6));
  }

  .page-home .home-case__title {
    font-size: 17px;
  }

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

  .page-home .home-plan:nth-child(2) {
    border-color: var(--gold);
    box-shadow: var(--shadow-brutal);
  }
}

@media (max-width: 480px) {
  .page-home .home-hero__actions .plus-btn {
    width: 100%;
    text-align: center;
  }

  .page-home .home-hero__num {
    font-size: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-case,
  .page-home .home-index__list a,
  .page-home .home-hero__link,
  .page-home .home-tags__link {
    transition: none;
  }

  .page-home .home-case:hover,
  .page-home .home-index__list a:hover {
    transform: none;
  }
}
