.page-home {
  --home-rule: rgba(16, 35, 63, 0.14);
  --home-rule-ink: rgba(242, 244, 247, 0.18);
  --home-ink-dim: rgba(242, 244, 247, 0.72);
  --home-rounded: calc(var(--radius) + 4px);
  background: var(--paper);
  color: var(--text);
}

.page-home .home-coord {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px var(--gutter) 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.page-home .home-head {
  max-width: 46rem;
  margin-bottom: 32px;
}

.page-home .home-head--center {
  margin-inline: auto;
  text-align: center;
}

.page-home .home-head h2 {
  margin: 10px 0 12px;
  font-size: 26px;
  line-height: 1.32;
  font-weight: 800;
  letter-spacing: 0.005em;
  color: var(--text);
}

.page-home .home-head__lede {
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-muted);
}

.page-home .home-head--ink h2 {
  color: var(--ink-text);
}

.page-home .home-head--ink .home-head__lede {
  color: var(--home-ink-dim);
}

/* ---------- 首屏：主题声明 + 内容索引 ---------- */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding-top: 36px;
  padding-bottom: 56px;
  background: var(--ink);
  color: var(--ink-text);
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  right: -25%;
  bottom: -45%;
  width: min(680px, 90vw);
  height: min(680px, 90vw);
  background: radial-gradient(closest-side, rgba(240, 128, 60, 0.22), transparent 72%);
  pointer-events: none;
}

.page-home .home-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 36px;
}

.page-home .home-hero__intro .eyebrow {
  color: var(--orange);
}

.page-home .home-hero__intro h1 {
  margin: 14px 0 18px;
  font-size: 34px;
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: 0.005em;
  color: var(--ink-text);
}

.page-home .home-hero__intro .lede {
  margin: 0 0 26px;
  max-width: 34rem;
  font-size: 17px;
  line-height: 1.85;
  color: var(--home-ink-dim);
}

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

.page-home .home-hero__note {
  margin: 22px 0 0;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(242, 244, 247, 0.56);
}

.page-home .home-hero__figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--home-rounded);
  border: 1px solid var(--home-rule-ink);
  box-shadow: var(--shadow);
}

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

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

.page-home .home-index__link {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "coord label"
    "coord desc";
  column-gap: 14px;
  row-gap: 6px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--home-rule-ink);
  background: var(--glass);
  color: var(--ink);
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.page-home .home-index__link:hover,
.page-home .home-index__link:focus-visible {
  transform: translateY(-3px);
  border-color: var(--orange);
  box-shadow: 0 20px 38px -28px rgba(10, 23, 41, 0.7);
}

.page-home .home-index__coord {
  grid-area: coord;
  align-self: start;
  padding-top: 3px;
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.08em;
}

.page-home .home-index__label {
  grid-area: label;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}

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

/* ---------- 本版更新 ---------- */
.page-home .change-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.page-home .change-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 20px 18px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--home-rule);
  border-left: 3px solid var(--orange);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.page-home .change-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.page-home .change-item__num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--orange);
  padding-top: 4px;
}

.page-home .change-item__title {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.4;
  font-weight: 800;
  color: var(--text);
}

.page-home .change-item__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ---------- 版本对照台 ---------- */
.page-home #compare-new,
.page-home #compare-old,
.page-home #whats-new,
.page-home #services,
.page-home #steps,
.page-home #trust,
.page-home #next {
  scroll-margin-top: 96px;
}

.page-home .compare-deck {
  border-radius: var(--home-rounded);
  border: 1px solid var(--home-rule-ink);
  background: rgba(250, 248, 245, 0.06);
  padding: 18px;
}

.page-home .compare-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.page-home .compare-tab {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--home-rule-ink);
  color: var(--ink-text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.page-home .compare-tab:hover,
.page-home .compare-tab:focus-visible {
  border-color: var(--orange);
  color: var(--orange);
}

.page-home .compare-deck:has(#compare-new:target) .compare-tab[href="#compare-new"],
.page-home .compare-deck:has(#compare-old:target) .compare-tab[href="#compare-old"] {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink-deep);
}

.page-home .compare-pane {
  display: none;
}

.page-home #compare-new {
  display: block;
}

.page-home .compare-deck:has(#compare-new:target) #compare-new,
.page-home .compare-deck:has(#compare-old:target) #compare-old {
  display: block;
}

.page-home .compare-deck:has(#compare-new:target) #compare-new:not(:target),
.page-home .compare-deck:has(#compare-old:target) #compare-new:not(:target) {
  display: none;
}

.page-home .compare-pane__tag {
  margin: 0 0 16px;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--orange);
}

.page-home .compare-list {
  margin: 0;
  display: grid;
  gap: 0;
}

.page-home .compare-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 14px 0;
  border-top: 1px solid var(--home-rule-ink);
}

.page-home .compare-row:first-child {
  border-top: none;
  padding-top: 0;
}

.page-home .compare-row dt {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--mint);
}

.page-home .compare-row dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--home-ink-dim);
}

.page-home .home-compare__figure {
  margin: 32px auto 0;
  max-width: 420px;
  overflow: hidden;
  border-radius: var(--home-rounded);
  border: 1px solid var(--home-rule-ink);
}

.page-home .home-compare__figure .media-frame__caption {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(242, 244, 247, 0.6);
}

/* ---------- 三条业务线 ---------- */
.page-home .line-cards {
  display: grid;
  gap: 20px;
}

.page-home .line-card {
  position: relative;
  padding: 24px 20px;
  border-radius: var(--home-rounded);
  background: var(--paper);
  border: 1px solid var(--home-rule);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.page-home .line-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 128, 60, 0.5);
  box-shadow: var(--shadow);
}

.page-home .line-card__title {
  margin: 12px 0 10px;
  font-size: 21px;
  line-height: 1.35;
  font-weight: 800;
  color: var(--text);
}

.page-home .line-card__text {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
}

.page-home .line-card__list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-home .line-card__list li {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}

.page-home .line-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.page-home .line-card__link {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.page-home .line-card__link:hover,
.page-home .line-card__link:focus-visible {
  border-bottom-color: var(--orange);
}

.page-home .line-card__figure {
  margin: 0 0 18px;
  overflow: hidden;
  border-radius: var(--radius);
}

.page-home .line-card--member {
  background: var(--orange-soft);
  border-color: rgba(240, 128, 60, 0.28);
}

.page-home .line-card--member .card__index {
  color: var(--ink);
}

/* ---------- 五步路径 ---------- */
.page-home .steps-layout {
  display: grid;
  gap: 28px;
}

.page-home .step-track {
  list-style: none;
  margin: 0;
  padding: 0 0 14px;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.page-home .step-item {
  flex: 0 0 78%;
  scroll-snap-align: start;
  position: relative;
  padding: 20px 18px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--home-rule);
  border-top: 3px solid var(--orange);
}

.page-home .step-item__num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--orange);
}

.page-home .step-item__title {
  margin: 10px 0 8px;
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
}

.page-home .step-item__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
}

.page-home .steps-layout__figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--home-rounded);
  border: 1px solid var(--home-rule);
}

.page-home .steps-layout__figure .media-frame__caption {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ---------- 信任凭据 ---------- */
.page-home .trust-index {
  margin: 0;
  display: grid;
  gap: 1px;
  background: var(--home-rule-ink);
  border: 1px solid var(--home-rule-ink);
  border-radius: var(--home-rounded);
  overflow: hidden;
}

.page-home .trust-index__cell {
  padding: 20px 18px;
  background: var(--ink-deep);
}

.page-home .trust-index__label {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--orange);
}

.page-home .trust-index__value {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--home-ink-dim);
}

.page-home .trust-index__value strong {
  display: block;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 900;
  color: var(--ink-text);
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.page-home .trust-index__value span {
  display: block;
}

.page-home .trust-note {
  margin: 24px 0 0;
  padding: 16px 18px;
  border-left: 3px solid var(--mint);
  font-size: 15px;
  line-height: 1.75;
  color: var(--home-ink-dim);
}

/* ---------- 分流入口 ---------- */
.page-home .home-next {
  padding-bottom: 88px;
}

.page-home .next-grid {
  display: grid;
  gap: 14px;
}

.page-home .next-card {
  display: block;
  padding: 22px 20px;
  border-radius: var(--home-rounded);
  border: 1px solid var(--home-rule);
  background: var(--paper);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.page-home .next-card:hover,
.page-home .next-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--orange);
  background: var(--orange-soft);
}

.page-home .next-card__coord {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--orange);
}

.page-home .next-card__title {
  margin: 10px 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.page-home .next-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
}

.page-home .next-card--wide {
  background: var(--mist);
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-home .home-hero__intro h1 {
    font-size: 44px;
  }

  .page-home .home-head h2 {
    font-size: 32px;
  }

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

  .page-home .home-index__item:nth-child(even) {
    margin-top: 26px;
  }

  .page-home .change-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .change-item:nth-child(1) {
    grid-column: 1 / -1;
  }

  .page-home .compare-row {
    grid-template-columns: 120px 1fr;
    gap: 20px;
    align-items: start;
  }

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

  .page-home .next-card--wide {
    grid-column: 1 / -1;
  }

  .page-home .line-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .line-card--member {
    grid-row: span 2;
  }
}

@media (min-width: 900px) {
  .page-home .home-coord {
    padding-top: 24px;
  }

  .page-home .home-hero {
    padding-top: 56px;
    padding-bottom: 88px;
  }

  .page-home .home-hero__grid {
    grid-template-columns: 4fr 7fr;
    gap: 56px;
    align-items: start;
  }

  .page-home .home-hero__intro h1 {
    font-size: 46px;
  }

  .page-home .home-index {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .page-home .change-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .page-home .change-item:nth-child(1) {
    grid-column: auto;
  }

  .page-home .change-item:nth-child(2) {
    margin-top: 28px;
  }

  .page-home .change-item:nth-child(4) {
    margin-top: 28px;
  }

  .page-home .compare-deck {
    padding: 26px 28px;
  }

  .page-home .compare-list {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 36px;
  }

  .page-home .compare-row:nth-child(2) {
    border-top: none;
    padding-top: 0;
  }

  .page-home .home-compare__figure {
    max-width: 460px;
  }

  .page-home .line-cards {
    grid-template-columns: 5fr 7fr;
    grid-template-areas:
      "card-a card-b"
      "card-c card-b";
    gap: 22px;
  }

  .page-home .line-card--diagnose {
    grid-area: card-a;
  }

  .page-home .line-card--member {
    grid-area: card-b;
    grid-row: span 1;
  }

  .page-home .line-card--scene {
    grid-area: card-c;
  }

  .page-home .steps-layout {
    grid-template-columns: 7fr 4fr;
    gap: 36px;
    align-items: start;
  }

  .page-home .step-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    overflow: visible;
    padding-bottom: 0;
  }

  .page-home .step-item {
    flex: none;
  }

  .page-home .step-item:nth-child(4),
  .page-home .step-item:nth-child(5) {
    margin-top: 24px;
  }

  .page-home .trust-index {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .next-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-home .next-card--wide {
    grid-column: span 4;
  }
}

@media (min-width: 1180px) {
  .page-home .home-hero__intro h1 {
    font-size: 52px;
  }

  .page-home .home-head h2 {
    font-size: 36px;
  }

  .page-home .change-list {
    grid-template-columns: repeat(5, 1fr);
  }

  .page-home .change-item:nth-child(3) {
    margin-top: 28px;
  }

  .page-home .change-item:nth-child(5) {
    margin-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-index__link,
  .page-home .change-item,
  .page-home .line-card,
  .page-home .next-card,
  .page-home .compare-tab {
    transition: none;
  }

  .page-home .home-index__link:hover,
  .page-home .home-index__link:focus-visible,
  .page-home .change-item:hover,
  .page-home .line-card:hover,
  .page-home .next-card:hover,
  .page-home .next-card:focus-visible {
    transform: none;
  }
}
