/* =========================================
   首页 · page-home
   移动端优先 / 作用域限定
   ========================================= */

.page-home {
  display: block;
}

/* ---------- 首屏：框景 + 航道留白 ---------- */
.page-home .hero {
  padding-block: clamp(20px, 3vw, 40px) 0;
}

.page-home .hero-frame {
  position: relative;
  padding: clamp(28px, 4vw, 56px) clamp(20px, 4vw, 60px) clamp(24px, 3.5vw, 44px);
  overflow: hidden;
}

.page-home .hero h1 {
  margin: 14px 0 0;
  max-width: 14em;
  overflow-wrap: break-word;
}

.page-home .hero-lede {
  margin: 22px 0 0;
  max-width: 36em;
  color: var(--mist);
}

.page-home .cta-row {
  margin-top: 30px;
}

.page-home .hero-note {
  margin: 24px 0 0;
  max-width: 48em;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--mist);
}

.page-home .hero-visual {
  margin: clamp(32px, 5vw, 60px) 0 0;
}

/* ---------- 图片容器通用 ---------- */
.page-home .media-frame {
  overflow: hidden;
}

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

.page-home .hero-visual { aspect-ratio: 16 / 9; }
.page-home .clusters-visual { aspect-ratio: 3 / 2; }
.page-home .shortcut-visual { aspect-ratio: 16 / 10; }
.page-home .search-visual { aspect-ratio: 3 / 2; }

/* ---------- 区块标题组 ---------- */
.page-home .section-head {
  max-width: 48em;
}

/* ---------- 通用两栏 ---------- */
.page-home .home-grid {
  display: grid;
  gap: clamp(28px, 4vw, 44px);
  align-items: start;
}

.page-home .clusters,
.page-home .search-block {
  margin-top: clamp(32px, 5vw, 56px);
}

@media (min-width: 900px) {
  .page-home .home-grid--7-5 {
    grid-template-columns: 7fr 5fr;
    gap: clamp(36px, 4vw, 64px);
  }
  .page-home .home-grid--5-7 {
    grid-template-columns: 5fr 7fr;
    gap: clamp(36px, 4vw, 64px);
    align-items: center;
  }
  .page-home .hero-visual {
    aspect-ratio: 21 / 9;
  }
}

/* ---------- 六个主栏目 ---------- */
.page-home .cluster-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .cluster-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  transition: transform 0.32s var(--ease);
}

.page-home .cluster-item::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 0;
  height: 1px;
  background: var(--grad);
  transition: width 0.4s var(--ease);
}

.page-home .cluster-item:hover {
  transform: translateX(4px);
}

.page-home .cluster-item:hover::after {
  width: 100%;
}

.page-home .cluster-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.page-home .cluster-item:last-child {
  padding-bottom: 0;
}

.page-home .cluster-idx {
  font-size: 12px;
  line-height: 1.9;
  letter-spacing: 0.12em;
  color: var(--purple-soft);
}

.page-home .cluster-name {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--warm);
}

.page-home .cluster-item p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--mist);
}

/* ---------- 回访路径 ---------- */
.page-home .shortcut-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .shortcut-list li {
  position: relative;
  padding-inline-start: 22px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .shortcut-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.72em;
  width: 10px;
  height: 1px;
  background: var(--grad);
}

.page-home .shortcut-stat {
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.72;
  letter-spacing: 0.04em;
  color: var(--purple-soft);
}

/* ---------- 版本对照 ---------- */
.page-home .compare-pair {
  display: grid;
  gap: 18px;
  margin-top: clamp(30px, 4vw, 48px);
}

@media (min-width: 780px) {
  .page-home .compare-pair {
    grid-template-columns: 1fr 1fr;
  }
}

.page-home .compare-card {
  position: relative;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, var(--panel), var(--deep));
  overflow: hidden;
  transition: border-color 0.32s var(--ease);
}

.page-home .compare-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0.24);
  transform-origin: left center;
  transition: transform 0.55s var(--ease);
}

.page-home .compare-card--b::before {
  background: linear-gradient(90deg, var(--cyan), var(--purple));
}

.page-home .compare-card:hover {
  border-color: rgba(122, 92, 255, 0.55);
}

.page-home .compare-card:hover::before {
  transform: scaleX(1);
}

.page-home .compare-card h3 {
  margin: 16px 0 0;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--warm);
}

.page-home .compare-card p {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .compare-card .btn {
  margin-top: 22px;
}

/* ---------- 先搜再问 ---------- */
.page-home .scene-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .scene-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--deep);
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--mist);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.page-home .scene-item:hover {
  border-color: rgba(53, 214, 200, 0.45);
  transform: translateX(4px);
}

.page-home .search-copy .btn {
  margin-top: 24px;
}

/* ---------- 运行读数 ---------- */
.page-home .readout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(30px, 4vw, 48px);
}

.page-home .readout {
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--panel), var(--deep));
}

.page-home .readout-num {
  display: block;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--gold);
}

.page-home .readout-label {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

@media (min-width: 760px) {
  .page-home .readout-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
  }
  .page-home .readout:nth-child(1) { grid-column: span 4; }
  .page-home .readout:nth-child(2) { grid-column: span 3; }
  .page-home .readout:nth-child(3) { grid-column: span 3; }
  .page-home .readout:nth-child(4) { grid-column: span 2; }
}

.page-home .rhythm-list {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.page-home .rhythm-item {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.page-home .rhythm-key {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  min-width: 6em;
}

.page-home .rhythm-val {
  font-size: 15px;
  line-height: 1.65;
  color: var(--mist);
}

.page-home .numbers-link {
  margin: 26px 0 0;
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.04em;
}

.page-home .numbers-link a {
  color: var(--cyan);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(53, 214, 200, 0.35);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.page-home .numbers-link a:hover {
  color: var(--purple-soft);
  border-bottom-color: rgba(169, 155, 255, 0.6);
}

/* ---------- 收尾 ---------- */
.page-home .close-frame {
  padding: clamp(30px, 4vw, 52px) clamp(22px, 4vw, 56px);
  background: linear-gradient(140deg, var(--deep), var(--ink));
}

.page-home .close-frame h2 {
  margin: 0;
  max-width: 22em;
}

.page-home .close-frame p {
  margin: 16px 0 0;
  max-width: 46em;
  line-height: 1.78;
  color: var(--mist);
}

/* ---------- 窄屏收缩 ---------- */
@media (max-width: 599px) {
  .page-home .hero-frame {
    padding: 24px 18px 22px;
  }
  .page-home .compare-card {
    padding: 22px 18px;
  }
  .page-home .readout {
    padding: 18px 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .cluster-item,
  .page-home .cluster-item::after,
  .page-home .compare-card,
  .page-home .compare-card::before,
  .page-home .scene-item {
    transition: none;
  }
  .page-home .cluster-item:hover,
  .page-home .scene-item:hover {
    transform: none;
  }
}
