.page-home {
  --home-rail: 240px;
  --home-hair: rgba(40, 70, 107, 0.22);
}

/* ---------- 首屏 ---------- */

.page-home .hero {
  padding-block: clamp(24px, 4vw, 46px) clamp(36px, 6vw, 68px);
}

.page-home .hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.page-home .hero__lead-block {
  order: -1;
}

.page-home .hero__title {
  margin: 14px 0 0;
  font-size: clamp(30px, 5.2vw, 58px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.03em;
  color: var(--sea);
  max-width: 16em;
}

.page-home .hero__lead {
  margin: 16px 0 0;
  max-width: 36em;
  color: var(--graphite);
}

.page-home .hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* 章节索引 */
.page-home .hero__index-title {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--graphite);
}

.page-home .chapter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  border-left: 1px solid rgba(40, 70, 107, 0.3);
}

.page-home .chapter-list__item {
  margin: 0;
}

.page-home .chapter-list__link {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 9px 10px 9px 14px;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-home .chapter-list__link::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: transparent;
  transition: background 0.2s ease;
}

.page-home .chapter-list__link:hover {
  color: var(--orange);
}

.page-home .chapter-list__link[aria-current="true"] {
  color: var(--orange);
}

.page-home .chapter-list__link[aria-current="true"]::before {
  background: var(--orange);
}

.page-home .chapter-list__no {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--graphite);
}

.page-home .chapter-list__link[aria-current="true"] .chapter-list__no {
  color: var(--orange);
}

/* 指标面板组 */
.page-home .hero__panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.page-home .hero__media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 16 / 7;
  background: var(--sea);
}

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

.page-home .mcard {
  position: relative;
  padding: 18px 18px 20px;
  background: var(--ink-blue);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.page-home .mcard__value {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 56px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--paper);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--orange);
}

.page-home .mcard__unit {
  margin-left: 4px;
  font-size: 0.42em;
  color: var(--soft);
}

.page-home .mcard__label {
  margin: 12px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--paper);
}

.page-home .mcard__note {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--soft);
}

/* ---------- 通用区块 ---------- */

.page-home .section__title {
  max-width: 22em;
}

.page-home .section__lead {
  max-width: 32em;
  color: var(--graphite);
}

.page-home .plans__grid,
.page-home .coverage__grid,
.page-home .updates__grid {
  align-items: start;
}

/* ---------- 01 订阅费用与周期 ---------- */

.page-home .plans__aside {
  display: grid;
  align-content: start;
  gap: 14px;
}

.page-home .plans__figure {
  margin: 8px 0 0;
}

.page-home .plans__main {
  display: grid;
  align-content: start;
  gap: 18px;
}

.page-home .plans__table thead th {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-home .plans__table th[scope="row"] {
  font-weight: 700;
  color: var(--sea);
  white-space: nowrap;
}

.page-home .plans__note {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
}

/* ---------- 02 苹果版与旧版通道 ---------- */

.page-home .apps__grid {
  margin-top: 28px;
}

.page-home .apps__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}

.page-home .apps__card-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--paper);
}

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

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

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

.page-home .apps__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--mint);
}

.page-home .apps__card--offset .apps__list li::before {
  background: var(--orange);
}

.page-home .apps__link {
  margin-top: auto;
  align-self: flex-start;
  padding-bottom: 2px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--orange);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 106, 26, 0.5);
}

.page-home .apps__link:hover {
  border-color: var(--orange);
}

.page-home .apps__figure {
  margin: 34px 0 0;
}

/* ---------- 03 覆盖范围 ---------- */

.page-home .coverage__aside {
  display: grid;
  align-content: start;
  gap: 14px;
}

.page-home .coverage__stat {
  margin-top: 6px;
  padding: 16px 18px;
  background: var(--sea);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius);
}

.page-home .coverage__stat-value {
  margin: 0;
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(38px, 7vw, 54px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .coverage__stat-label {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--soft);
}

.page-home .coverage__aside-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--graphite);
}

.page-home .coverage__link {
  color: var(--orange-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(226, 87, 12, 0.4);
}

.page-home .coverage__link:hover {
  border-color: var(--orange-deep);
}

.page-home .lanes {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .lanes__item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 6px 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--home-hair);
}

.page-home .lanes__item:first-child {
  border-top: 1px solid var(--home-hair);
}

.page-home .lanes__no {
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--orange);
}

.page-home .lanes__name {
  grid-column: 2;
  font-size: 16px;
  font-weight: 700;
  color: var(--sea);
}

.page-home .lanes__bar {
  grid-column: 2;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--orange-deep));
  opacity: 0.85;
}

.page-home .lanes__item:nth-child(1) .lanes__bar { width: 100%; }
.page-home .lanes__item:nth-child(2) .lanes__bar { width: 82%; }
.page-home .lanes__item:nth-child(3) .lanes__bar { width: 66%; }
.page-home .lanes__item:nth-child(4) .lanes__bar { width: 52%; }
.page-home .lanes__item:nth-child(5) .lanes__bar { width: 38%; }

.page-home .coverage__fields {
  margin-top: 28px;
  padding: 20px;
  background: var(--sea);
  border-radius: var(--radius);
}

.page-home .coverage__fields-title {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--soft);
}

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

.page-home .fields li {
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--paper);
  background: var(--ink-blue);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.page-home .coverage__fields-note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--soft);
}

/* ---------- 04 三步路径 ---------- */

.page-home .steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0 0 4px;
  display: grid;
  gap: 18px;
}

.page-home .steps__item {
  padding: 22px;
  background: var(--paper);
  border: 1px solid rgba(40, 70, 107, 0.28);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.page-home .steps__item:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}

.page-home .steps__no {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--orange);
}

.page-home .steps__title {
  margin: 10px 0 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--sea);
}

.page-home .steps__text {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--graphite);
}

.page-home .steps__link {
  display: inline-block;
  margin-top: 14px;
  padding-bottom: 2px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--sea);
  text-decoration: none;
  border-bottom: 1px solid rgba(40, 70, 107, 0.4);
}

.page-home .steps__link:hover {
  color: var(--orange);
  border-color: var(--orange);
}

/* ---------- 05 最近更新 ---------- */

.page-home .updates__list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
}

.page-home .updates__item {
  padding: 20px 0;
  border-top: 1px solid var(--home-hair);
}

.page-home .updates__item:last-child {
  border-bottom: 1px solid var(--home-hair);
}

.page-home .updates__time {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--orange);
}

.page-home .updates__title {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--sea);
}

.page-home .updates__text {
  margin: 6px 0 0;
  max-width: 42em;
  font-size: 15px;
  line-height: 1.75;
  color: var(--graphite);
}

.page-home .updates__more {
  margin-top: 24px;
}

.page-home .updates__aside {
  align-self: start;
}

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

/* ---------- 图片统一处理 ---------- */

.page-home .img-frame__media {
  overflow: hidden;
}

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

/* ---------- 响应式 ---------- */

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

  .page-home .hero__media {
    grid-column: 1 / -1;
  }

  .page-home .mcard--tilt {
    transform: rotate(-1.2deg);
  }

  .page-home .mcard--sink {
    margin-top: 20px;
  }

  .page-home .mcard:hover {
    transform: translateY(-2px);
    border-color: var(--orange);
  }

  .page-home .mcard--tilt:hover {
    transform: rotate(-1.2deg) translateY(-2px);
  }
}

@media (min-width: 900px) {
  .page-home .apps__card--offset {
    transform: rotate(1.1deg);
  }

  .page-home .apps__card--offset:hover {
    transform: rotate(1.1deg) translateY(-2px);
    border-color: var(--orange);
  }
}

@media (min-width: 960px) {
  .page-home .hero__inner {
    grid-template-columns: var(--home-rail) minmax(0, 1fr);
    grid-template-areas:
      "index lead"
      "index panels";
    gap: 28px 40px;
  }

  .page-home .hero__index {
    grid-area: index;
    position: sticky;
    top: calc(var(--bar-h) + 24px);
  }

  .page-home .hero__lead-block {
    grid-area: lead;
    order: 0;
  }

  .page-home .hero__panels {
    grid-area: panels;
  }
}

@media (min-width: 880px) {
  .page-home .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    padding-bottom: 36px;
  }

  .page-home .steps__item:nth-child(2) {
    transform: translateY(16px);
  }

  .page-home .steps__item:nth-child(3) {
    transform: translateY(32px);
  }

  .page-home .steps__item:nth-child(2):hover {
    transform: translateY(14px);
  }

  .page-home .steps__item:nth-child(3):hover {
    transform: translateY(30px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .mcard,
  .page-home .steps__item,
  .page-home .apps__card--offset,
  .page-home .chapter-list__link,
  .page-home .chapter-list__link::before {
    transition: none;
  }

  .page-home .mcard--tilt,
  .page-home .mcard--sink,
  .page-home .apps__card--offset,
  .page-home .steps__item:nth-child(2),
  .page-home .steps__item:nth-child(3) {
    transform: none;
  }

  .page-home .mcard:hover,
  .page-home .mcard--tilt:hover,
  .page-home .apps__card--offset:hover,
  .page-home .steps__item:hover,
  .page-home .steps__item:nth-child(2):hover,
  .page-home .steps__item:nth-child(3):hover {
    transform: none;
  }
}
